| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 2 | # From configure.in Revision. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.68 for python 3.2. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8 | # | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | 
 | 11 | # Foundation, Inc. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12 | # | 
 | 13 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | # This configure script is free software; the Free Software Foundation | 
 | 15 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16 | ## -------------------- ## | 
 | 17 | ## M4sh Initialization. ## | 
 | 18 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible | 
 | 21 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23 |   emulate sh | 
 | 24 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 25 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26 |   # is contrary to our usage.  Disable this feature. | 
 | 27 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 28 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 29 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 30 |   case `(set -o) 2>/dev/null` in #( | 
 | 31 |   *posix*) : | 
 | 32 |     set -o posix ;; #( | 
 | 33 |   *) : | 
 | 34 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 35 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 37 |  | 
 | 38 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 39 | as_nl=' | 
 | 40 | ' | 
 | 41 | export as_nl | 
 | 42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 47 | # but without wasting forks for bash or zsh. | 
 | 48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 49 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 50 |   as_echo='print -r --' | 
 | 51 |   as_echo_n='print -rn --' | 
 | 52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 53 |   as_echo='printf %s\n' | 
 | 54 |   as_echo_n='printf %s' | 
 | 55 | else | 
 | 56 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 57 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 58 |     as_echo_n='/usr/ucb/echo -n' | 
 | 59 |   else | 
 | 60 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 61 |     as_echo_n_body='eval | 
 | 62 |       arg=$1; | 
 | 63 |       case $arg in #( | 
 | 64 |       *"$as_nl"*) | 
 | 65 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 66 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 67 |       esac; | 
 | 68 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 69 |     ' | 
 | 70 |     export as_echo_n_body | 
 | 71 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 72 |   fi | 
 | 73 |   export as_echo_body | 
 | 74 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 75 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 76 |  | 
 | 77 | # The user is always right. | 
 | 78 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 79 |   PATH_SEPARATOR=: | 
 | 80 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 81 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 82 |       PATH_SEPARATOR=';' | 
 | 83 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 85 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 86 |  | 
 | 87 | # IFS | 
 | 88 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 89 | # there to prevent editors from complaining about space-tab. | 
 | 90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 91 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 92 | IFS=" ""	$as_nl" | 
 | 93 |  | 
 | 94 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 95 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 96 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 97 |   *[\\/]* ) as_myself=$0 ;; | 
 | 98 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 99 | for as_dir in $PATH | 
 | 100 | do | 
 | 101 |   IFS=$as_save_IFS | 
 | 102 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 103 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 104 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 105 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 106 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 107 |      ;; | 
 | 108 | esac | 
 | 109 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 110 | # in which case we are not to be found in the path. | 
 | 111 | if test "x$as_myself" = x; then | 
 | 112 |   as_myself=$0 | 
 | 113 | fi | 
 | 114 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 115 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 116 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 117 | fi | 
 | 118 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 119 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 120 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 121 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 122 | # trigger a bug in pdksh 5.2.14. | 
 | 123 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 124 | do eval test x\${$as_var+set} = xset \ | 
 | 125 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 126 | done | 
 | 127 | PS1='$ ' | 
 | 128 | PS2='> ' | 
 | 129 | PS4='+ ' | 
 | 130 |  | 
 | 131 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 132 | LC_ALL=C | 
 | 133 | export LC_ALL | 
 | 134 | LANGUAGE=C | 
 | 135 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 136 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 137 | # CDPATH. | 
 | 138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 139 |  | 
 | 140 | if test "x$CONFIG_SHELL" = x; then | 
 | 141 |   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
 | 142 |   emulate sh | 
 | 143 |   NULLCMD=: | 
 | 144 |   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
 | 145 |   # is contrary to our usage.  Disable this feature. | 
 | 146 |   alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
 | 147 |   setopt NO_GLOB_SUBST | 
 | 148 | else | 
 | 149 |   case \`(set -o) 2>/dev/null\` in #( | 
 | 150 |   *posix*) : | 
 | 151 |     set -o posix ;; #( | 
 | 152 |   *) : | 
 | 153 |      ;; | 
 | 154 | esac | 
 | 155 | fi | 
 | 156 | " | 
 | 157 |   as_required="as_fn_return () { (exit \$1); } | 
 | 158 | as_fn_success () { as_fn_return 0; } | 
 | 159 | as_fn_failure () { as_fn_return 1; } | 
 | 160 | as_fn_ret_success () { return 0; } | 
 | 161 | as_fn_ret_failure () { return 1; } | 
 | 162 |  | 
 | 163 | exitcode=0 | 
 | 164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
 | 165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
 | 166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
 | 167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
 | 168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
 | 169 |  | 
 | 170 | else | 
 | 171 |   exitcode=1; echo positional parameters were not saved. | 
 | 172 | fi | 
 | 173 | test x\$exitcode = x0 || exit 1" | 
 | 174 |   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
 | 175 |   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
 | 176 |   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
 | 177 |   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
 | 178 | test \$(( 1 + 1 )) = 2 || exit 1" | 
 | 179 |   if (eval "$as_required") 2>/dev/null; then : | 
 | 180 |   as_have_required=yes | 
 | 181 | else | 
 | 182 |   as_have_required=no | 
 | 183 | fi | 
 | 184 |   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
 | 185 |  | 
 | 186 | else | 
 | 187 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 188 | as_found=false | 
 | 189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 190 | do | 
 | 191 |   IFS=$as_save_IFS | 
 | 192 |   test -z "$as_dir" && as_dir=. | 
 | 193 |   as_found=: | 
 | 194 |   case $as_dir in #( | 
 | 195 | 	 /*) | 
 | 196 | 	   for as_base in sh bash ksh sh5; do | 
 | 197 | 	     # Try only shells that exist, to save several forks. | 
 | 198 | 	     as_shell=$as_dir/$as_base | 
 | 199 | 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 200 | 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 201 |   CONFIG_SHELL=$as_shell as_have_required=yes | 
 | 202 | 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 203 |   break 2 | 
 | 204 | fi | 
 | 205 | fi | 
 | 206 | 	   done;; | 
 | 207 |        esac | 
 | 208 |   as_found=false | 
 | 209 | done | 
 | 210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
 | 211 | 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
 | 212 |   CONFIG_SHELL=$SHELL as_have_required=yes | 
 | 213 | fi; } | 
 | 214 | IFS=$as_save_IFS | 
 | 215 |  | 
 | 216 |  | 
 | 217 |       if test "x$CONFIG_SHELL" != x; then : | 
 | 218 |   # We cannot yet assume a decent shell, so we have to provide a | 
 | 219 | 	# neutralization value for shells without unset; and this also | 
 | 220 | 	# works around shells that cannot unset nonexistent variables. | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 221 | 	# Preserve -v and -x to the replacement shell. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 222 | 	BASH_ENV=/dev/null | 
 | 223 | 	ENV=/dev/null | 
 | 224 | 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 225 | 	export CONFIG_SHELL | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 226 | 	case $- in # (((( | 
 | 227 | 	  *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 228 | 	  *v* ) as_opts=-v ;; | 
 | 229 | 	  *x* ) as_opts=-x ;; | 
 | 230 | 	  * ) as_opts= ;; | 
 | 231 | 	esac | 
 | 232 | 	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 233 | fi | 
 | 234 |  | 
 | 235 |     if test x$as_have_required = xno; then : | 
 | 236 |   $as_echo "$0: This script requires a shell more modern than all" | 
 | 237 |   $as_echo "$0: the shells that I found on your system." | 
 | 238 |   if test x${ZSH_VERSION+set} = xset ; then | 
 | 239 |     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
 | 240 |     $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
 | 241 |   else | 
 | 242 |     $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
 | 243 | $0: http://bugs.python.org/ about your system, including | 
 | 244 | $0: any error possibly output before this message. Then | 
 | 245 | $0: install a modern shell, or manually run the script | 
 | 246 | $0: under such a shell if you do have one." | 
 | 247 |   fi | 
 | 248 |   exit 1 | 
 | 249 | fi | 
 | 250 | fi | 
 | 251 | fi | 
 | 252 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 253 | export SHELL | 
 | 254 | # Unset more variables known to interfere with behavior of common tools. | 
 | 255 | CLICOLOR_FORCE= GREP_OPTIONS= | 
 | 256 | unset CLICOLOR_FORCE GREP_OPTIONS | 
 | 257 |  | 
 | 258 | ## --------------------- ## | 
 | 259 | ## M4sh Shell Functions. ## | 
 | 260 | ## --------------------- ## | 
 | 261 | # as_fn_unset VAR | 
 | 262 | # --------------- | 
 | 263 | # Portably unset VAR. | 
 | 264 | as_fn_unset () | 
 | 265 | { | 
 | 266 |   { eval $1=; unset $1;} | 
 | 267 | } | 
 | 268 | as_unset=as_fn_unset | 
 | 269 |  | 
 | 270 | # as_fn_set_status STATUS | 
 | 271 | # ----------------------- | 
 | 272 | # Set $? to STATUS, without forking. | 
 | 273 | as_fn_set_status () | 
 | 274 | { | 
 | 275 |   return $1 | 
 | 276 | } # as_fn_set_status | 
 | 277 |  | 
 | 278 | # as_fn_exit STATUS | 
 | 279 | # ----------------- | 
 | 280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 281 | as_fn_exit () | 
 | 282 | { | 
 | 283 |   set +e | 
 | 284 |   as_fn_set_status $1 | 
 | 285 |   exit $1 | 
 | 286 | } # as_fn_exit | 
 | 287 |  | 
 | 288 | # as_fn_mkdir_p | 
 | 289 | # ------------- | 
 | 290 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 291 | as_fn_mkdir_p () | 
 | 292 | { | 
 | 293 |  | 
 | 294 |   case $as_dir in #( | 
 | 295 |   -*) as_dir=./$as_dir;; | 
 | 296 |   esac | 
 | 297 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 298 |     as_dirs= | 
 | 299 |     while :; do | 
 | 300 |       case $as_dir in #( | 
 | 301 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 302 |       *) as_qdir=$as_dir;; | 
 | 303 |       esac | 
 | 304 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 305 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 307 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 308 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 309 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 310 | $as_echo X"$as_dir" | | 
 | 311 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 312 | 	    s//\1/ | 
 | 313 | 	    q | 
 | 314 | 	  } | 
 | 315 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 316 | 	    s//\1/ | 
 | 317 | 	    q | 
 | 318 | 	  } | 
 | 319 | 	  /^X\(\/\/\)$/{ | 
 | 320 | 	    s//\1/ | 
 | 321 | 	    q | 
 | 322 | 	  } | 
 | 323 | 	  /^X\(\/\).*/{ | 
 | 324 | 	    s//\1/ | 
 | 325 | 	    q | 
 | 326 | 	  } | 
 | 327 | 	  s/.*/./; q'` | 
 | 328 |       test -d "$as_dir" && break | 
 | 329 |     done | 
 | 330 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 331 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 332 |  | 
 | 333 |  | 
 | 334 | } # as_fn_mkdir_p | 
 | 335 | # as_fn_append VAR VALUE | 
 | 336 | # ---------------------- | 
 | 337 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 338 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 339 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 340 | # implementations. | 
 | 341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 342 |   eval 'as_fn_append () | 
 | 343 |   { | 
 | 344 |     eval $1+=\$2 | 
 | 345 |   }' | 
 | 346 | else | 
 | 347 |   as_fn_append () | 
 | 348 |   { | 
 | 349 |     eval $1=\$$1\$2 | 
 | 350 |   } | 
 | 351 | fi # as_fn_append | 
 | 352 |  | 
 | 353 | # as_fn_arith ARG... | 
 | 354 | # ------------------ | 
 | 355 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 357 | # must be portable across $(()) and expr. | 
 | 358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 359 |   eval 'as_fn_arith () | 
 | 360 |   { | 
 | 361 |     as_val=$(( $* )) | 
 | 362 |   }' | 
 | 363 | else | 
 | 364 |   as_fn_arith () | 
 | 365 |   { | 
 | 366 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 367 |   } | 
 | 368 | fi # as_fn_arith | 
 | 369 |  | 
 | 370 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 372 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 375 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 376 | as_fn_error () | 
 | 377 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 378 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 379 |   if test "$4"; then | 
 | 380 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 381 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 382 |   fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 383 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 384 |   as_fn_exit $as_status | 
 | 385 | } # as_fn_error | 
 | 386 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 387 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 388 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 389 |   as_expr=expr | 
 | 390 | else | 
 | 391 |   as_expr=false | 
 | 392 | fi | 
 | 393 |  | 
 | 394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 395 |   as_basename=basename | 
 | 396 | else | 
 | 397 |   as_basename=false | 
 | 398 | fi | 
 | 399 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 401 |   as_dirname=dirname | 
 | 402 | else | 
 | 403 |   as_dirname=false | 
 | 404 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 405 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 406 | as_me=`$as_basename -- "$0" || | 
 | 407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 408 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 409 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 410 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 411 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 412 | 	    s//\1/ | 
 | 413 | 	    q | 
 | 414 | 	  } | 
 | 415 | 	  /^X\/\(\/\/\)$/{ | 
 | 416 | 	    s//\1/ | 
 | 417 | 	    q | 
 | 418 | 	  } | 
 | 419 | 	  /^X\/\(\/\).*/{ | 
 | 420 | 	    s//\1/ | 
 | 421 | 	    q | 
 | 422 | 	  } | 
 | 423 | 	  s/.*/./; q'` | 
 | 424 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 425 | # Avoid depending upon Character Ranges. | 
 | 426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 429 | as_cr_digits='0123456789' | 
 | 430 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 431 |  | 
 | 432 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 433 |   as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
 | 434 |   as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
 | 435 |   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
 | 436 |   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
 | 437 |   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 438 |   sed -n ' | 
 | 439 |     p | 
 | 440 |     /[$]LINENO/= | 
 | 441 |   ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 442 |     sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 443 |       s/[$]LINENO.*/&-/ | 
 | 444 |       t lineno | 
 | 445 |       b | 
 | 446 |       :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 |       N | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 448 |       :loop | 
 | 449 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 |       t loop | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 451 |       s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 |     ' >$as_me.lineno && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 453 |   chmod +x "$as_me.lineno" || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 454 |     { $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] | 455 |  | 
 | 456 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 457 |   # (the dirname of $[0] is not the place where we might find the | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 458 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 459 |   . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 460 |   # Exit status is that of the last command. | 
 | 461 |   exit | 
 | 462 | } | 
 | 463 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 464 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 465 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 467 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 468 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 469 |   xy)  ECHO_C='\c';; | 
 | 470 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 471 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 472 |   esac;; | 
 | 473 | *) | 
 | 474 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 475 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 476 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 | if test -d conf$$.dir; then | 
 | 479 |   rm -f conf$$.dir/conf$$.file | 
 | 480 | else | 
 | 481 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 482 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 484 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 485 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 486 |     as_ln_s='ln -s' | 
 | 487 |     # ... but there are two gotchas: | 
 | 488 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 489 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 490 |     # In both cases, we have to default to `cp -p'. | 
 | 491 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
 | 492 |       as_ln_s='cp -p' | 
 | 493 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 494 |     as_ln_s=ln | 
 | 495 |   else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 |     as_ln_s='cp -p' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 497 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 498 | else | 
 | 499 |   as_ln_s='cp -p' | 
 | 500 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 502 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 503 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 504 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 505 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 506 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 507 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 508 |   as_mkdir_p=false | 
 | 509 | fi | 
 | 510 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 | if test -x / >/dev/null 2>&1; then | 
 | 512 |   as_test_x='test -x' | 
 | 513 | else | 
 | 514 |   if ls -dL / >/dev/null 2>&1; then | 
 | 515 |     as_ls_L_option=L | 
 | 516 |   else | 
 | 517 |     as_ls_L_option= | 
 | 518 |   fi | 
 | 519 |   as_test_x=' | 
 | 520 |     eval sh -c '\'' | 
 | 521 |       if test -d "$1"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 522 | 	test -d "$1/."; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 523 |       else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 524 | 	case $1 in #( | 
 | 525 | 	-*)set "./$1";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 526 | 	esac; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 527 | 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 528 | 	???[sx]*):;;*)false;;esac;fi | 
 | 529 |     '\'' sh | 
 | 530 |   ' | 
 | 531 | fi | 
 | 532 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 533 |  | 
 | 534 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 535 | 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] | 536 |  | 
 | 537 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 538 | 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] | 539 |  | 
 | 540 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 541 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
 | 542 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 |  | 
 | 544 | # Name of the host. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 545 | # 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] | 546 | # so uname gets run too. | 
 | 547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 548 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | # | 
 | 550 | # Initializations. | 
 | 551 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 552 | ac_default_prefix=/usr/local | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 553 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 554 | ac_config_libobj_dir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 555 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | cross_compiling=no | 
 | 557 | subdirs= | 
 | 558 | MFLAGS= | 
 | 559 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 560 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 561 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='python' | 
 | 563 | PACKAGE_TARNAME='python' | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.2' | 
 | 565 | PACKAGE_STRING='python 3.2' | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 567 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 |  | 
 | 569 | ac_unique_file="Include/object.h" | 
 | 570 | # Factoring default headers for most tests. | 
 | 571 | ac_includes_default="\ | 
 | 572 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 573 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 574 | # include <sys/types.h> | 
 | 575 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 576 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 577 | # include <sys/stat.h> | 
 | 578 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 579 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # include <stdlib.h> | 
 | 581 | # include <stddef.h> | 
 | 582 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 583 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | #  include <stdlib.h> | 
 | 585 | # endif | 
 | 586 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 587 | #ifdef HAVE_STRING_H | 
 | 588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | #  include <memory.h> | 
 | 590 | # endif | 
 | 591 | # include <string.h> | 
 | 592 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 593 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <strings.h> | 
 | 595 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 596 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 598 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 599 | #ifdef HAVE_STDINT_H | 
 | 600 | # include <stdint.h> | 
 | 601 | #endif | 
 | 602 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | # include <unistd.h> | 
 | 604 | #endif" | 
 | 605 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 606 | ac_subst_vars='LTLIBOBJS | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 607 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 608 | THREADHEADERS | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 609 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 610 | LIBC | 
 | 611 | LIBM | 
 | 612 | HAVE_GETHOSTBYNAME | 
 | 613 | HAVE_GETHOSTBYNAME_R | 
 | 614 | HAVE_GETHOSTBYNAME_R_3_ARG | 
 | 615 | HAVE_GETHOSTBYNAME_R_5_ARG | 
 | 616 | HAVE_GETHOSTBYNAME_R_6_ARG | 
 | 617 | LIBOBJS | 
 | 618 | TRUE | 
 | 619 | MACHDEP_OBJS | 
 | 620 | DYNLOADFILE | 
 | 621 | DLINCLDIR | 
 | 622 | THREADOBJ | 
 | 623 | LDLAST | 
 | 624 | USE_THREAD_MODULE | 
 | 625 | SIGNAL_OBJS | 
 | 626 | USE_SIGNAL_MODULE | 
 | 627 | LIBFFI_INCLUDEDIR | 
 | 628 | PKG_CONFIG | 
 | 629 | SHLIBS | 
 | 630 | CFLAGSFORSHARED | 
 | 631 | LINKFORSHARED | 
 | 632 | CCSHARED | 
 | 633 | BLDSHARED | 
 | 634 | LDCXXSHARED | 
 | 635 | LDSHARED | 
 | 636 | SO | 
 | 637 | LIBTOOL_CRUFT | 
 | 638 | OTHER_LIBTOOL_OPT | 
 | 639 | UNIVERSAL_ARCH_FLAGS | 
 | 640 | BASECFLAGS | 
 | 641 | OPT | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 642 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 643 | LN | 
 | 644 | INSTALL_DATA | 
 | 645 | INSTALL_SCRIPT | 
 | 646 | INSTALL_PROGRAM | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 647 | HAS_PYTHON | 
 | 648 | DISABLE_ASDLGEN | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 649 | HAS_HG | 
 | 650 | HGBRANCH | 
 | 651 | HGTAG | 
 | 652 | HGVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 653 | SVNVERSION | 
 | 654 | ARFLAGS | 
 | 655 | AR | 
 | 656 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 657 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 658 | GNULD | 
 | 659 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 660 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 661 | RUNSHARED | 
 | 662 | INSTSONAME | 
 | 663 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 664 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 665 | BLDLIBRARY | 
 | 666 | DLLLIBRARY | 
 | 667 | LDLIBRARY | 
 | 668 | LIBRARY | 
 | 669 | BUILDEXEEXT | 
 | 670 | EGREP | 
 | 671 | GREP | 
 | 672 | CPP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 673 | NO_AS_NEEDED | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 674 | MAINCC | 
 | 675 | CXX | 
 | 676 | OBJEXT | 
 | 677 | EXEEXT | 
 | 678 | ac_ct_CC | 
 | 679 | CPPFLAGS | 
 | 680 | LDFLAGS | 
 | 681 | CFLAGS | 
 | 682 | CC | 
 | 683 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 684 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 685 | SGI_ABI | 
 | 686 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 687 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 688 | FRAMEWORKUNIXTOOLSPREFIX | 
 | 689 | FRAMEWORKALTINSTALLLAST | 
 | 690 | FRAMEWORKALTINSTALLFIRST | 
 | 691 | FRAMEWORKINSTALLLAST | 
 | 692 | FRAMEWORKINSTALLFIRST | 
 | 693 | PYTHONFRAMEWORKINSTALLDIR | 
 | 694 | PYTHONFRAMEWORKPREFIX | 
 | 695 | PYTHONFRAMEWORKDIR | 
 | 696 | PYTHONFRAMEWORKIDENTIFIER | 
 | 697 | PYTHONFRAMEWORK | 
 | 698 | LIPO_32BIT_FLAGS | 
 | 699 | ARCH_RUN_32BIT | 
 | 700 | UNIVERSALSDK | 
 | 701 | CONFIG_ARGS | 
 | 702 | SOVERSION | 
 | 703 | VERSION | 
 | 704 | target_alias | 
 | 705 | host_alias | 
 | 706 | build_alias | 
 | 707 | LIBS | 
 | 708 | ECHO_T | 
 | 709 | ECHO_N | 
 | 710 | ECHO_C | 
 | 711 | DEFS | 
 | 712 | mandir | 
 | 713 | localedir | 
 | 714 | libdir | 
 | 715 | psdir | 
 | 716 | pdfdir | 
 | 717 | dvidir | 
 | 718 | htmldir | 
 | 719 | infodir | 
 | 720 | docdir | 
 | 721 | oldincludedir | 
 | 722 | includedir | 
 | 723 | localstatedir | 
 | 724 | sharedstatedir | 
 | 725 | sysconfdir | 
 | 726 | datadir | 
 | 727 | datarootdir | 
 | 728 | libexecdir | 
 | 729 | sbindir | 
 | 730 | bindir | 
 | 731 | program_transform_name | 
 | 732 | prefix | 
 | 733 | exec_prefix | 
 | 734 | PACKAGE_URL | 
 | 735 | PACKAGE_BUGREPORT | 
 | 736 | PACKAGE_STRING | 
 | 737 | PACKAGE_VERSION | 
 | 738 | PACKAGE_TARNAME | 
 | 739 | PACKAGE_NAME | 
 | 740 | PATH_SEPARATOR | 
 | 741 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 742 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 743 | ac_user_opts=' | 
 | 744 | enable_option_checking | 
 | 745 | enable_universalsdk | 
 | 746 | with_universal_archs | 
 | 747 | with_framework_name | 
 | 748 | enable_framework | 
 | 749 | with_gcc | 
 | 750 | with_cxx_main | 
 | 751 | with_suffix | 
 | 752 | enable_shared | 
 | 753 | enable_profiling | 
 | 754 | with_pydebug | 
 | 755 | with_libs | 
 | 756 | with_system_expat | 
 | 757 | with_system_ffi | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 758 | enable_loadable_sqlite_extensions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 759 | with_dbmliborder | 
 | 760 | with_signal_module | 
 | 761 | with_dec_threads | 
 | 762 | with_threads | 
 | 763 | with_thread | 
 | 764 | enable_ipv6 | 
 | 765 | with_doc_strings | 
 | 766 | with_tsc | 
 | 767 | with_pymalloc | 
 | 768 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 769 | with_fpectl | 
 | 770 | with_libm | 
 | 771 | with_libc | 
 | 772 | enable_big_digits | 
 | 773 | with_wide_unicode | 
 | 774 | with_computed_gotos | 
 | 775 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 776 |       ac_precious_vars='build_alias | 
 | 777 | host_alias | 
 | 778 | target_alias | 
 | 779 | CC | 
 | 780 | CFLAGS | 
 | 781 | LDFLAGS | 
 | 782 | LIBS | 
 | 783 | CPPFLAGS | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 784 | CPP' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 785 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 786 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 787 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 788 | ac_init_help= | 
 | 789 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 790 | ac_unrecognized_opts= | 
 | 791 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 792 | # The variables have the same names as the options, with | 
 | 793 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 794 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 795 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 796 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 797 | no_recursion= | 
 | 798 | prefix=NONE | 
 | 799 | program_prefix=NONE | 
 | 800 | program_suffix=NONE | 
 | 801 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 802 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 803 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 804 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 806 | x_includes=NONE | 
 | 807 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 808 |  | 
 | 809 | # Installation directory options. | 
 | 810 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 811 | # and all the variables that are supposed to be based on exec_prefix | 
 | 812 | # by default will actually change. | 
 | 813 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 814 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 815 | bindir='${exec_prefix}/bin' | 
 | 816 | sbindir='${exec_prefix}/sbin' | 
 | 817 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 818 | datarootdir='${prefix}/share' | 
 | 819 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 820 | sysconfdir='${prefix}/etc' | 
 | 821 | sharedstatedir='${prefix}/com' | 
 | 822 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 823 | includedir='${prefix}/include' | 
 | 824 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 825 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 826 | infodir='${datarootdir}/info' | 
 | 827 | htmldir='${docdir}' | 
 | 828 | dvidir='${docdir}' | 
 | 829 | pdfdir='${docdir}' | 
 | 830 | psdir='${docdir}' | 
 | 831 | libdir='${exec_prefix}/lib' | 
 | 832 | localedir='${datarootdir}/locale' | 
 | 833 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 834 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 835 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 836 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 837 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 838 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 839 |   # If the previous option needs an argument, assign it. | 
 | 840 |   if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 841 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 842 |     ac_prev= | 
 | 843 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 844 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 845 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 846 |   case $ac_option in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 847 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 848 |   *=)   ac_optarg= ;; | 
 | 849 |   *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 850 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 851 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 852 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 853 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 854 |   case $ac_dashdash$ac_option in | 
 | 855 |   --) | 
 | 856 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 857 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 858 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 859 |     ac_prev=bindir ;; | 
 | 860 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 861 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 862 |  | 
 | 863 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 864 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 865 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 866 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 869 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 870 |     ac_prev=cache_file ;; | 
 | 871 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 872 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 873 |     cache_file=$ac_optarg ;; | 
 | 874 |  | 
 | 875 |   --config-cache | -C) | 
 | 876 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 877 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 878 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 879 |     ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 880 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 881 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 882 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 883 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 884 |   | --dataroo | --dataro | --datar) | 
 | 885 |     ac_prev=datarootdir ;; | 
 | 886 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 887 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 888 |     datarootdir=$ac_optarg ;; | 
 | 889 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 890 |   -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 891 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 892 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 893 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 894 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 895 |     ac_useropt_orig=$ac_useropt | 
 | 896 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 897 |     case $ac_user_opts in | 
 | 898 |       *" | 
 | 899 | "enable_$ac_useropt" | 
 | 900 | "*) ;; | 
 | 901 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 902 | 	 ac_unrecognized_sep=', ';; | 
 | 903 |     esac | 
 | 904 |     eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 905 |  | 
 | 906 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 907 |     ac_prev=docdir ;; | 
 | 908 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 909 |     docdir=$ac_optarg ;; | 
 | 910 |  | 
 | 911 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 912 |     ac_prev=dvidir ;; | 
 | 913 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 914 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 915 |  | 
 | 916 |   -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 917 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 918 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 919 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 920 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 921 |     ac_useropt_orig=$ac_useropt | 
 | 922 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 923 |     case $ac_user_opts in | 
 | 924 |       *" | 
 | 925 | "enable_$ac_useropt" | 
 | 926 | "*) ;; | 
 | 927 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 928 | 	 ac_unrecognized_sep=', ';; | 
 | 929 |     esac | 
 | 930 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 931 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 932 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 933 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 934 |   | --exec | --exe | --ex) | 
 | 935 |     ac_prev=exec_prefix ;; | 
 | 936 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 937 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 938 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 939 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 940 |  | 
 | 941 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 942 |     # Obsolete; use --with-gas. | 
 | 943 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 944 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 945 |   -help | --help | --hel | --he | -h) | 
 | 946 |     ac_init_help=long ;; | 
 | 947 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 948 |     ac_init_help=recursive ;; | 
 | 949 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 950 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 951 |  | 
 | 952 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 954 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 955 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 956 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 957 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 958 |     ac_prev=htmldir ;; | 
 | 959 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 960 |   | --ht=*) | 
 | 961 |     htmldir=$ac_optarg ;; | 
 | 962 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 963 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 964 |   | --includ | --inclu | --incl | --inc) | 
 | 965 |     ac_prev=includedir ;; | 
 | 966 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 967 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 969 |  | 
 | 970 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 971 |     ac_prev=infodir ;; | 
 | 972 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 973 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 974 |  | 
 | 975 |   -libdir | --libdir | --libdi | --libd) | 
 | 976 |     ac_prev=libdir ;; | 
 | 977 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 978 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 979 |  | 
 | 980 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 981 |   | --libexe | --libex | --libe) | 
 | 982 |     ac_prev=libexecdir ;; | 
 | 983 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 984 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 985 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 986 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 987 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 988 |     ac_prev=localedir ;; | 
 | 989 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 990 |     localedir=$ac_optarg ;; | 
 | 991 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 992 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 993 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 994 |     ac_prev=localstatedir ;; | 
 | 995 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 996 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 997 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 998 |  | 
 | 999 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1000 |     ac_prev=mandir ;; | 
 | 1001 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1002 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1003 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1004 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1005 |     # Obsolete; use --without-fp. | 
 | 1006 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1007 |  | 
 | 1008 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1009 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1010 |     no_create=yes ;; | 
 | 1011 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1012 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1013 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1014 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1015 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1016 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1017 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1018 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1019 |     ac_prev=oldincludedir ;; | 
 | 1020 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1021 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1022 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1023 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1024 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1026 |     ac_prev=prefix ;; | 
 | 1027 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1028 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1029 |  | 
 | 1030 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1031 |   | --program-pre | --program-pr | --program-p) | 
 | 1032 |     ac_prev=program_prefix ;; | 
 | 1033 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1034 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1035 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1036 |  | 
 | 1037 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1038 |   | --program-suf | --program-su | --program-s) | 
 | 1039 |     ac_prev=program_suffix ;; | 
 | 1040 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1041 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1042 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1043 |  | 
 | 1044 |   -program-transform-name | --program-transform-name \ | 
 | 1045 |   | --program-transform-nam | --program-transform-na \ | 
 | 1046 |   | --program-transform-n | --program-transform- \ | 
 | 1047 |   | --program-transform | --program-transfor \ | 
 | 1048 |   | --program-transfo | --program-transf \ | 
 | 1049 |   | --program-trans | --program-tran \ | 
 | 1050 |   | --progr-tra | --program-tr | --program-t) | 
 | 1051 |     ac_prev=program_transform_name ;; | 
 | 1052 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1053 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1054 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1055 |   | --program-transform=* | --program-transfor=* \ | 
 | 1056 |   | --program-transfo=* | --program-transf=* \ | 
 | 1057 |   | --program-trans=* | --program-tran=* \ | 
 | 1058 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1061 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1062 |     ac_prev=pdfdir ;; | 
 | 1063 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1064 |     pdfdir=$ac_optarg ;; | 
 | 1065 |  | 
 | 1066 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1067 |     ac_prev=psdir ;; | 
 | 1068 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1069 |     psdir=$ac_optarg ;; | 
 | 1070 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1072 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1073 |     silent=yes ;; | 
 | 1074 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1075 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1076 |     ac_prev=sbindir ;; | 
 | 1077 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1078 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1079 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1080 |  | 
 | 1081 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1082 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1083 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1084 |   | --sha | --sh) | 
 | 1085 |     ac_prev=sharedstatedir ;; | 
 | 1086 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1087 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1088 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1089 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1090 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1091 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1092 |   -site | --site | --sit) | 
 | 1093 |     ac_prev=site ;; | 
 | 1094 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1096 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1097 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1098 |     ac_prev=srcdir ;; | 
 | 1099 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1100 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1102 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1103 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1104 |     ac_prev=sysconfdir ;; | 
 | 1105 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1106 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1107 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1108 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1109 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1110 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1111 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1112 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1113 |  | 
 | 1114 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1115 |     verbose=yes ;; | 
 | 1116 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1117 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1118 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1119 |  | 
 | 1120 |   -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1121 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1122 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1123 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1124 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1125 |     ac_useropt_orig=$ac_useropt | 
 | 1126 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1127 |     case $ac_user_opts in | 
 | 1128 |       *" | 
 | 1129 | "with_$ac_useropt" | 
 | 1130 | "*) ;; | 
 | 1131 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1132 | 	 ac_unrecognized_sep=', ';; | 
 | 1133 |     esac | 
 | 1134 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1135 |  | 
 | 1136 |   -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1137 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1138 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1139 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1140 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1141 |     ac_useropt_orig=$ac_useropt | 
 | 1142 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1143 |     case $ac_user_opts in | 
 | 1144 |       *" | 
 | 1145 | "with_$ac_useropt" | 
 | 1146 | "*) ;; | 
 | 1147 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1148 | 	 ac_unrecognized_sep=', ';; | 
 | 1149 |     esac | 
 | 1150 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1151 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1152 |   --x) | 
 | 1153 |     # Obsolete; use --with-x. | 
 | 1154 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1155 |  | 
 | 1156 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1157 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1158 |     ac_prev=x_includes ;; | 
 | 1159 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1160 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1161 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1162 |  | 
 | 1163 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1164 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1165 |     ac_prev=x_libraries ;; | 
 | 1166 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1167 |   | --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] | 1168 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1169 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1170 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1171 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1172 |     ;; | 
 | 1173 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 |   *=*) | 
 | 1175 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1176 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1177 |     case $ac_envvar in #( | 
 | 1178 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1179 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1180 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1181 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1182 |     export $ac_envvar ;; | 
 | 1183 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1184 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1185 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1186 |     $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] | 1187 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1188 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1189 |     : "${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] | 1190 |     ;; | 
 | 1191 |  | 
 | 1192 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1193 | done | 
 | 1194 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1195 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1196 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1197 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1198 | fi | 
 | 1199 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1200 | if test -n "$ac_unrecognized_opts"; then | 
 | 1201 |   case $enable_option_checking in | 
 | 1202 |     no) ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1203 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1204 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1205 |   esac | 
 | 1206 | fi | 
 | 1207 |  | 
 | 1208 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1209 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1210 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1211 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1212 | 		libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1213 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1214 |   eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1215 |   # Remove trailing slashes. | 
 | 1216 |   case $ac_val in | 
 | 1217 |     */ ) | 
 | 1218 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1219 |       eval $ac_var=\$ac_val;; | 
 | 1220 |   esac | 
 | 1221 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1222 |   case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1223 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1224 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1225 |   esac | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1226 |   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] | 1227 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1228 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1229 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1230 | # used to hold the argument of --host etc. | 
 | 1231 | # FIXME: To remove some day. | 
 | 1232 | build=$build_alias | 
 | 1233 | host=$host_alias | 
 | 1234 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1235 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1236 | # FIXME: To remove some day. | 
 | 1237 | if test "x$host_alias" != x; then | 
 | 1238 |   if test "x$build_alias" = x; then | 
 | 1239 |     cross_compiling=maybe | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1240 |     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | 
 | 1241 |     If a cross compiler is detected then cross compile mode will be used" >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1242 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1243 |     cross_compiling=yes | 
 | 1244 |   fi | 
 | 1245 | fi | 
 | 1246 |  | 
 | 1247 | ac_tool_prefix= | 
 | 1248 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1249 |  | 
 | 1250 | test "$silent" = yes && exec 6>/dev/null | 
 | 1251 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1252 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1253 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1254 | ac_ls_di=`ls -di .` && | 
 | 1255 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1256 |   as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1257 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1258 |   as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1259 |  | 
 | 1260 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1261 | # Find the source files, if location was not specified. | 
 | 1262 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1263 |   ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1264 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1265 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1266 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1267 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1268 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1269 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1270 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1271 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1272 | 	    s//\1/ | 
 | 1273 | 	    q | 
 | 1274 | 	  } | 
 | 1275 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1276 | 	    s//\1/ | 
 | 1277 | 	    q | 
 | 1278 | 	  } | 
 | 1279 | 	  /^X\(\/\/\)$/{ | 
 | 1280 | 	    s//\1/ | 
 | 1281 | 	    q | 
 | 1282 | 	  } | 
 | 1283 | 	  /^X\(\/\).*/{ | 
 | 1284 | 	    s//\1/ | 
 | 1285 | 	    q | 
 | 1286 | 	  } | 
 | 1287 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1288 |   srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1289 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1290 |     srcdir=.. | 
 | 1291 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1292 | else | 
 | 1293 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1294 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1295 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1296 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1297 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1298 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1299 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1300 | ac_abs_confdir=`( | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1301 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1302 | 	pwd)` | 
 | 1303 | # When building in place, set srcdir=. | 
 | 1304 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1305 |   srcdir=. | 
 | 1306 | fi | 
 | 1307 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1308 | # Double slashes in file names in object file debugging info | 
 | 1309 | # mess up M-x gdb in Emacs. | 
 | 1310 | case $srcdir in | 
 | 1311 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1312 | esac | 
 | 1313 | for ac_var in $ac_precious_vars; do | 
 | 1314 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1315 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1316 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1317 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1318 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1319 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1320 | # | 
 | 1321 | # Report the --help message. | 
 | 1322 | # | 
 | 1323 | if test "$ac_init_help" = "long"; then | 
 | 1324 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1325 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1326 |   cat <<_ACEOF | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1327 | \`configure' configures python 3.2 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1328 |  | 
 | 1329 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1330 |  | 
 | 1331 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1332 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1333 |  | 
 | 1334 | Defaults for the options are specified in brackets. | 
 | 1335 |  | 
 | 1336 | Configuration: | 
 | 1337 |   -h, --help              display this help and exit | 
 | 1338 |       --help=short        display options specific to this package | 
 | 1339 |       --help=recursive    display the short help of all the included packages | 
 | 1340 |   -V, --version           display version information and exit | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1341 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1342 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1343 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1344 |   -n, --no-create         do not create output files | 
 | 1345 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1346 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1347 | Installation directories: | 
 | 1348 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1349 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1350 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1351 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1352 |  | 
 | 1353 | By default, \`make install' will install all the files in | 
 | 1354 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1355 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1356 | for instance \`--prefix=\$HOME'. | 
 | 1357 |  | 
 | 1358 | For better control, use the options below. | 
 | 1359 |  | 
 | 1360 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1361 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1362 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1363 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1364 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1365 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1366 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1367 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1368 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1369 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1370 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1371 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1372 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1373 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1374 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1375 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1376 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1377 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1378 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1379 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | _ACEOF | 
 | 1381 |  | 
 | 1382 |   cat <<\_ACEOF | 
 | 1383 | _ACEOF | 
 | 1384 | fi | 
 | 1385 |  | 
 | 1386 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1387 |   case $ac_init_help in | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1388 |      short | recursive ) echo "Configuration of python 3.2:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1389 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 |   cat <<\_ACEOF | 
 | 1391 |  | 
 | 1392 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1393 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1395 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1396 |   --enable-universalsdk[=SDKDIR] | 
| Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1397 |                           Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1398 |   --enable-framework[=INSTALLDIR] | 
 | 1399 |                           Build (MacOSX|Darwin) framework | 
 | 1400 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1401 |   --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1402 |   --enable-loadable-sqlite-extensions | 
 | 1403 |                           support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1404 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1405 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1406 |   --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1407 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1408 |  | 
 | 1409 | Optional Packages: | 
 | 1410 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1411 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1412 |   --with-universal-archs=ARCH | 
 | 1413 |                           select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 1414 |                           "64-bit", "3-way", "intel" or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1415 |   --with-framework-name=FRAMEWORK | 
 | 1416 |                           specify an alternate name of the framework built | 
 | 1417 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1418 |   --without-gcc           never use gcc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1419 |   --with-cxx-main=<compiler> | 
 | 1420 |                           compile main() and link python executable with C++ | 
 | 1421 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1422 |   --with-suffix=.exe      set executable suffix | 
 | 1423 |   --with-pydebug          build with Py_DEBUG defined | 
 | 1424 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1425 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1426 |                           library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1427 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1428 |   --with-dbmliborder=db1:db2:... | 
 | 1429 |                           order to check db backends for dbm. Valid value is a | 
 | 1430 |                           colon separated string with the backend names | 
 | 1431 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1432 |   --with-signal-module    disable/enable signal module | 
 | 1433 |   --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
 | 1434 |   --with(out)-threads[=DIRECTORY] | 
 | 1435 |                           disable/enable thread support | 
 | 1436 |   --with(out)-thread[=DIRECTORY] | 
 | 1437 |                           deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1438 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1439 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1440 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1441 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1442 |   --with-fpectl           enable SIGFPE catching | 
 | 1443 |   --with-libm=STRING      math library | 
 | 1444 |   --with-libc=STRING      C library | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1445 |   --with-wide-unicode     Use 4-byte Unicode characters (default is 2 bytes) | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1446 |   --with(out)-computed-gotos | 
 | 1447 |                           Use computed gotos in evaluation loop (enabled by | 
 | 1448 |                           default on supported compilers) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 |  | 
 | 1450 | Some influential environment variables: | 
 | 1451 |   CC          C compiler command | 
 | 1452 |   CFLAGS      C compiler flags | 
 | 1453 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1454 |               nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1455 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1456 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1457 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1458 |   CPP         C preprocessor | 
 | 1459 |  | 
 | 1460 | Use these variables to override the choices made by `configure' or to help | 
 | 1461 | it to find libraries and programs with nonstandard names/locations. | 
 | 1462 |  | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1463 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1465 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | fi | 
 | 1467 |  | 
 | 1468 | if test "$ac_init_help" = "recursive"; then | 
 | 1469 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1470 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1471 |     test -d "$ac_dir" || | 
 | 1472 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1473 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 |     ac_builddir=. | 
 | 1475 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1476 | case "$ac_dir" in | 
 | 1477 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1478 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1479 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1480 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1481 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1482 |   case $ac_top_builddir_sub in | 
 | 1483 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1484 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1485 |   esac ;; | 
 | 1486 | esac | 
 | 1487 | ac_abs_top_builddir=$ac_pwd | 
 | 1488 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1489 | # for backward compatibility: | 
 | 1490 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1491 |  | 
 | 1492 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1493 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1494 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1495 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1496 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1497 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1499 |     ac_top_srcdir=$srcdir | 
 | 1500 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1501 |   *) # Relative name. | 
 | 1502 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1503 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1504 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1506 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1507 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1508 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1509 |     # Check for guested configure. | 
 | 1510 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1511 |       echo && | 
 | 1512 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1513 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1514 |       echo && | 
 | 1515 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1517 |       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1518 |     fi || ac_status=$? | 
 | 1519 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1520 |   done | 
 | 1521 | fi | 
 | 1522 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1523 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1524 | if $ac_init_version; then | 
 | 1525 |   cat <<\_ACEOF | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1526 | python configure 3.2 | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1527 | generated by GNU Autoconf 2.68 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1528 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1529 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1530 | This configure script is free software; the Free Software Foundation | 
 | 1531 | gives unlimited permission to copy, distribute and modify it. | 
 | 1532 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1533 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1534 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1535 |  | 
 | 1536 | ## ------------------------ ## | 
 | 1537 | ## Autoconf initialization. ## | 
 | 1538 | ## ------------------------ ## | 
 | 1539 |  | 
 | 1540 | # ac_fn_c_try_compile LINENO | 
 | 1541 | # -------------------------- | 
 | 1542 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1543 | ac_fn_c_try_compile () | 
 | 1544 | { | 
 | 1545 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1546 |   rm -f conftest.$ac_objext | 
 | 1547 |   if { { ac_try="$ac_compile" | 
 | 1548 | case "(($ac_try" in | 
 | 1549 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1550 |   *) ac_try_echo=$ac_try;; | 
 | 1551 | esac | 
 | 1552 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1553 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1554 |   (eval "$ac_compile") 2>conftest.err | 
 | 1555 |   ac_status=$? | 
 | 1556 |   if test -s conftest.err; then | 
 | 1557 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1558 |     cat conftest.er1 >&5 | 
 | 1559 |     mv -f conftest.er1 conftest.err | 
 | 1560 |   fi | 
 | 1561 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1562 |   test $ac_status = 0; } && { | 
 | 1563 | 	 test -z "$ac_c_werror_flag" || | 
 | 1564 | 	 test ! -s conftest.err | 
 | 1565 |        } && test -s conftest.$ac_objext; then : | 
 | 1566 |   ac_retval=0 | 
 | 1567 | else | 
 | 1568 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1569 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1570 |  | 
 | 1571 | 	ac_retval=1 | 
 | 1572 | fi | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1573 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1574 |   as_fn_set_status $ac_retval | 
 | 1575 |  | 
 | 1576 | } # ac_fn_c_try_compile | 
 | 1577 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1578 | # ac_fn_c_try_link LINENO | 
 | 1579 | # ----------------------- | 
 | 1580 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1581 | ac_fn_c_try_link () | 
 | 1582 | { | 
 | 1583 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1584 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1585 |   if { { ac_try="$ac_link" | 
 | 1586 | case "(($ac_try" in | 
 | 1587 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1588 |   *) ac_try_echo=$ac_try;; | 
 | 1589 | esac | 
 | 1590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1591 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1592 |   (eval "$ac_link") 2>conftest.err | 
 | 1593 |   ac_status=$? | 
 | 1594 |   if test -s conftest.err; then | 
 | 1595 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1596 |     cat conftest.er1 >&5 | 
 | 1597 |     mv -f conftest.er1 conftest.err | 
 | 1598 |   fi | 
 | 1599 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1600 |   test $ac_status = 0; } && { | 
 | 1601 | 	 test -z "$ac_c_werror_flag" || | 
 | 1602 | 	 test ! -s conftest.err | 
 | 1603 |        } && test -s conftest$ac_exeext && { | 
 | 1604 | 	 test "$cross_compiling" = yes || | 
 | 1605 | 	 $as_test_x conftest$ac_exeext | 
 | 1606 |        }; then : | 
 | 1607 |   ac_retval=0 | 
 | 1608 | else | 
 | 1609 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1610 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1611 |  | 
 | 1612 | 	ac_retval=1 | 
 | 1613 | fi | 
 | 1614 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1615 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1616 |   # interfere with the next link command; also delete a directory that is | 
 | 1617 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1618 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1619 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1620 |   as_fn_set_status $ac_retval | 
 | 1621 |  | 
 | 1622 | } # ac_fn_c_try_link | 
 | 1623 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1624 | # ac_fn_c_try_cpp LINENO | 
 | 1625 | # ---------------------- | 
 | 1626 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1627 | ac_fn_c_try_cpp () | 
 | 1628 | { | 
 | 1629 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1630 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1631 | case "(($ac_try" in | 
 | 1632 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1633 |   *) ac_try_echo=$ac_try;; | 
 | 1634 | esac | 
 | 1635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1636 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1637 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1638 |   ac_status=$? | 
 | 1639 |   if test -s conftest.err; then | 
 | 1640 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1641 |     cat conftest.er1 >&5 | 
 | 1642 |     mv -f conftest.er1 conftest.err | 
 | 1643 |   fi | 
 | 1644 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1645 |   test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1646 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1647 | 	 test ! -s conftest.err | 
 | 1648 |        }; then : | 
 | 1649 |   ac_retval=0 | 
 | 1650 | else | 
 | 1651 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1652 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1653 |  | 
 | 1654 |     ac_retval=1 | 
 | 1655 | fi | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1656 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1657 |   as_fn_set_status $ac_retval | 
 | 1658 |  | 
 | 1659 | } # ac_fn_c_try_cpp | 
 | 1660 |  | 
 | 1661 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1662 | # ------------------------------------------------------- | 
 | 1663 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1664 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1665 | # accordingly. | 
 | 1666 | ac_fn_c_check_header_mongrel () | 
 | 1667 | { | 
 | 1668 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1669 |   if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1670 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1671 | $as_echo_n "checking for $2... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1672 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1673 |   $as_echo_n "(cached) " >&6 | 
 | 1674 | fi | 
 | 1675 | eval ac_res=\$$3 | 
 | 1676 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1677 | $as_echo "$ac_res" >&6; } | 
 | 1678 | else | 
 | 1679 |   # Is the header compilable? | 
 | 1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1681 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1683 | /* end confdefs.h.  */ | 
 | 1684 | $4 | 
 | 1685 | #include <$2> | 
 | 1686 | _ACEOF | 
 | 1687 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1688 |   ac_header_compiler=yes | 
 | 1689 | else | 
 | 1690 |   ac_header_compiler=no | 
 | 1691 | fi | 
 | 1692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1694 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1695 |  | 
 | 1696 | # Is the header present? | 
 | 1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1698 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1700 | /* end confdefs.h.  */ | 
 | 1701 | #include <$2> | 
 | 1702 | _ACEOF | 
 | 1703 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1704 |   ac_header_preproc=yes | 
 | 1705 | else | 
 | 1706 |   ac_header_preproc=no | 
 | 1707 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1708 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1710 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1711 |  | 
 | 1712 | # So?  What about this header? | 
 | 1713 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1714 |   yes:no: ) | 
 | 1715 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1716 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1717 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1718 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1719 |     ;; | 
 | 1720 |   no:yes:* ) | 
 | 1721 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1722 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1723 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1724 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1725 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1726 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1727 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1728 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1729 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1730 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1731 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1732 | ## Report this to http://bugs.python.org/ ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1733 | ## -------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1734 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1735 |     ;; | 
 | 1736 | esac | 
 | 1737 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1738 | $as_echo_n "checking for $2... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1739 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1740 |   $as_echo_n "(cached) " >&6 | 
 | 1741 | else | 
 | 1742 |   eval "$3=\$ac_header_compiler" | 
 | 1743 | fi | 
 | 1744 | eval ac_res=\$$3 | 
 | 1745 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1746 | $as_echo "$ac_res" >&6; } | 
 | 1747 | fi | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1748 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1749 |  | 
 | 1750 | } # ac_fn_c_check_header_mongrel | 
 | 1751 |  | 
 | 1752 | # ac_fn_c_try_run LINENO | 
 | 1753 | # ---------------------- | 
 | 1754 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1755 | # that executables *can* be run. | 
 | 1756 | ac_fn_c_try_run () | 
 | 1757 | { | 
 | 1758 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1759 |   if { { ac_try="$ac_link" | 
 | 1760 | case "(($ac_try" in | 
 | 1761 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1762 |   *) ac_try_echo=$ac_try;; | 
 | 1763 | esac | 
 | 1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1765 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1766 |   (eval "$ac_link") 2>&5 | 
 | 1767 |   ac_status=$? | 
 | 1768 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1769 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1770 |   { { case "(($ac_try" in | 
 | 1771 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1772 |   *) ac_try_echo=$ac_try;; | 
 | 1773 | esac | 
 | 1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1775 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1776 |   (eval "$ac_try") 2>&5 | 
 | 1777 |   ac_status=$? | 
 | 1778 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1779 |   test $ac_status = 0; }; }; then : | 
 | 1780 |   ac_retval=0 | 
 | 1781 | else | 
 | 1782 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1783 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1784 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1785 |  | 
 | 1786 |        ac_retval=$ac_status | 
 | 1787 | fi | 
 | 1788 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1789 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1790 |   as_fn_set_status $ac_retval | 
 | 1791 |  | 
 | 1792 | } # ac_fn_c_try_run | 
 | 1793 |  | 
 | 1794 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1795 | # ------------------------------------------------------- | 
 | 1796 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1797 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1798 | ac_fn_c_check_header_compile () | 
 | 1799 | { | 
 | 1800 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1801 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1802 | $as_echo_n "checking for $2... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1803 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1804 |   $as_echo_n "(cached) " >&6 | 
 | 1805 | else | 
 | 1806 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1807 | /* end confdefs.h.  */ | 
 | 1808 | $4 | 
 | 1809 | #include <$2> | 
 | 1810 | _ACEOF | 
 | 1811 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1812 |   eval "$3=yes" | 
 | 1813 | else | 
 | 1814 |   eval "$3=no" | 
 | 1815 | fi | 
 | 1816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1817 | fi | 
 | 1818 | eval ac_res=\$$3 | 
 | 1819 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1820 | $as_echo "$ac_res" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1821 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1822 |  | 
 | 1823 | } # ac_fn_c_check_header_compile | 
 | 1824 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1825 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1826 | # ------------------------------------------- | 
 | 1827 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1828 | # variable VAR accordingly. | 
 | 1829 | ac_fn_c_check_type () | 
 | 1830 | { | 
 | 1831 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1832 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1833 | $as_echo_n "checking for $2... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1834 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1835 |   $as_echo_n "(cached) " >&6 | 
 | 1836 | else | 
 | 1837 |   eval "$3=no" | 
 | 1838 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1839 | /* end confdefs.h.  */ | 
 | 1840 | $4 | 
 | 1841 | int | 
 | 1842 | main () | 
 | 1843 | { | 
 | 1844 | if (sizeof ($2)) | 
 | 1845 | 	 return 0; | 
 | 1846 |   ; | 
 | 1847 |   return 0; | 
 | 1848 | } | 
 | 1849 | _ACEOF | 
 | 1850 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1851 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1852 | /* end confdefs.h.  */ | 
 | 1853 | $4 | 
 | 1854 | int | 
 | 1855 | main () | 
 | 1856 | { | 
 | 1857 | if (sizeof (($2))) | 
 | 1858 | 	    return 0; | 
 | 1859 |   ; | 
 | 1860 |   return 0; | 
 | 1861 | } | 
 | 1862 | _ACEOF | 
 | 1863 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1864 |  | 
 | 1865 | else | 
 | 1866 |   eval "$3=yes" | 
 | 1867 | fi | 
 | 1868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1869 | fi | 
 | 1870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1871 | fi | 
 | 1872 | eval ac_res=\$$3 | 
 | 1873 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1874 | $as_echo "$ac_res" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1875 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1876 |  | 
 | 1877 | } # ac_fn_c_check_type | 
 | 1878 |  | 
 | 1879 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1880 | # ------------------------------------ | 
 | 1881 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1882 | # accordingly. | 
 | 1883 | ac_fn_c_find_uintX_t () | 
 | 1884 | { | 
 | 1885 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1886 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1887 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1888 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1889 |   $as_echo_n "(cached) " >&6 | 
 | 1890 | else | 
 | 1891 |   eval "$3=no" | 
 | 1892 |      # Order is important - never check a type that is potentially smaller | 
 | 1893 |      # than half of the expected target width. | 
 | 1894 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 1895 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 1896 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1897 | /* end confdefs.h.  */ | 
 | 1898 | $ac_includes_default | 
 | 1899 | int | 
 | 1900 | main () | 
 | 1901 | { | 
 | 1902 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
 | 1903 | test_array [0] = 0 | 
 | 1904 |  | 
 | 1905 |   ; | 
 | 1906 |   return 0; | 
 | 1907 | } | 
 | 1908 | _ACEOF | 
 | 1909 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1910 |   case $ac_type in #( | 
 | 1911 |   uint$2_t) : | 
 | 1912 |     eval "$3=yes" ;; #( | 
 | 1913 |   *) : | 
 | 1914 |     eval "$3=\$ac_type" ;; | 
 | 1915 | esac | 
 | 1916 | fi | 
 | 1917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1918 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1919 |  | 
 | 1920 | else | 
 | 1921 |   break | 
 | 1922 | fi | 
 | 1923 |      done | 
 | 1924 | fi | 
 | 1925 | eval ac_res=\$$3 | 
 | 1926 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1927 | $as_echo "$ac_res" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1928 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1929 |  | 
 | 1930 | } # ac_fn_c_find_uintX_t | 
 | 1931 |  | 
 | 1932 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 1933 | # ----------------------------------- | 
 | 1934 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 1935 | # accordingly. | 
 | 1936 | ac_fn_c_find_intX_t () | 
 | 1937 | { | 
 | 1938 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1939 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 1940 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 1941 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1942 |   $as_echo_n "(cached) " >&6 | 
 | 1943 | else | 
 | 1944 |   eval "$3=no" | 
 | 1945 |      # Order is important - never check a type that is potentially smaller | 
 | 1946 |      # than half of the expected target width. | 
 | 1947 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 1948 | 	 'long long int' 'short int' 'signed char'; do | 
 | 1949 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1950 | /* end confdefs.h.  */ | 
 | 1951 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1952 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1953 | int | 
 | 1954 | main () | 
 | 1955 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1956 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1957 | test_array [0] = 0 | 
 | 1958 |  | 
 | 1959 |   ; | 
 | 1960 |   return 0; | 
 | 1961 | } | 
 | 1962 | _ACEOF | 
 | 1963 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1964 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1965 | /* end confdefs.h.  */ | 
 | 1966 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1967 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1968 | int | 
 | 1969 | main () | 
 | 1970 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1971 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1972 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
 | 1973 | test_array [0] = 0 | 
 | 1974 |  | 
 | 1975 |   ; | 
 | 1976 |   return 0; | 
 | 1977 | } | 
 | 1978 | _ACEOF | 
 | 1979 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1980 |  | 
 | 1981 | else | 
 | 1982 |   case $ac_type in #( | 
 | 1983 |   int$2_t) : | 
 | 1984 |     eval "$3=yes" ;; #( | 
 | 1985 |   *) : | 
 | 1986 |     eval "$3=\$ac_type" ;; | 
 | 1987 | esac | 
 | 1988 | fi | 
 | 1989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1990 | fi | 
 | 1991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1992 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1993 |  | 
 | 1994 | else | 
 | 1995 |   break | 
 | 1996 | fi | 
 | 1997 |      done | 
 | 1998 | fi | 
 | 1999 | eval ac_res=\$$3 | 
 | 2000 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2001 | $as_echo "$ac_res" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2002 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2003 |  | 
 | 2004 | } # ac_fn_c_find_intX_t | 
 | 2005 |  | 
 | 2006 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2007 | # -------------------------------------------- | 
 | 2008 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2009 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2010 | # computed | 
 | 2011 | ac_fn_c_compute_int () | 
 | 2012 | { | 
 | 2013 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2014 |   if test "$cross_compiling" = yes; then | 
 | 2015 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2017 | /* end confdefs.h.  */ | 
 | 2018 | $4 | 
 | 2019 | int | 
 | 2020 | main () | 
 | 2021 | { | 
 | 2022 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
 | 2023 | test_array [0] = 0 | 
 | 2024 |  | 
 | 2025 |   ; | 
 | 2026 |   return 0; | 
 | 2027 | } | 
 | 2028 | _ACEOF | 
 | 2029 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2030 |   ac_lo=0 ac_mid=0 | 
 | 2031 |   while :; do | 
 | 2032 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2033 | /* end confdefs.h.  */ | 
 | 2034 | $4 | 
 | 2035 | int | 
 | 2036 | main () | 
 | 2037 | { | 
 | 2038 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
 | 2039 | test_array [0] = 0 | 
 | 2040 |  | 
 | 2041 |   ; | 
 | 2042 |   return 0; | 
 | 2043 | } | 
 | 2044 | _ACEOF | 
 | 2045 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2046 |   ac_hi=$ac_mid; break | 
 | 2047 | else | 
 | 2048 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2049 | 			if test $ac_lo -le $ac_mid; then | 
 | 2050 | 			  ac_lo= ac_hi= | 
 | 2051 | 			  break | 
 | 2052 | 			fi | 
 | 2053 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2054 | fi | 
 | 2055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2056 |   done | 
 | 2057 | else | 
 | 2058 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2059 | /* end confdefs.h.  */ | 
 | 2060 | $4 | 
 | 2061 | int | 
 | 2062 | main () | 
 | 2063 | { | 
 | 2064 | static int test_array [1 - 2 * !(($2) < 0)]; | 
 | 2065 | test_array [0] = 0 | 
 | 2066 |  | 
 | 2067 |   ; | 
 | 2068 |   return 0; | 
 | 2069 | } | 
 | 2070 | _ACEOF | 
 | 2071 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2072 |   ac_hi=-1 ac_mid=-1 | 
 | 2073 |   while :; do | 
 | 2074 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2075 | /* end confdefs.h.  */ | 
 | 2076 | $4 | 
 | 2077 | int | 
 | 2078 | main () | 
 | 2079 | { | 
 | 2080 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
 | 2081 | test_array [0] = 0 | 
 | 2082 |  | 
 | 2083 |   ; | 
 | 2084 |   return 0; | 
 | 2085 | } | 
 | 2086 | _ACEOF | 
 | 2087 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2088 |   ac_lo=$ac_mid; break | 
 | 2089 | else | 
 | 2090 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2091 | 			if test $ac_mid -le $ac_hi; then | 
 | 2092 | 			  ac_lo= ac_hi= | 
 | 2093 | 			  break | 
 | 2094 | 			fi | 
 | 2095 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2096 | fi | 
 | 2097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2098 |   done | 
 | 2099 | else | 
 | 2100 |   ac_lo= ac_hi= | 
 | 2101 | fi | 
 | 2102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2103 | fi | 
 | 2104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2105 | # Binary search between lo and hi bounds. | 
 | 2106 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2107 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2108 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2109 | /* end confdefs.h.  */ | 
 | 2110 | $4 | 
 | 2111 | int | 
 | 2112 | main () | 
 | 2113 | { | 
 | 2114 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
 | 2115 | test_array [0] = 0 | 
 | 2116 |  | 
 | 2117 |   ; | 
 | 2118 |   return 0; | 
 | 2119 | } | 
 | 2120 | _ACEOF | 
 | 2121 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2122 |   ac_hi=$ac_mid | 
 | 2123 | else | 
 | 2124 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2125 | fi | 
 | 2126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2127 | done | 
 | 2128 | case $ac_lo in #(( | 
 | 2129 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2130 | '') ac_retval=1 ;; | 
 | 2131 | esac | 
 | 2132 |   else | 
 | 2133 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2134 | /* end confdefs.h.  */ | 
 | 2135 | $4 | 
 | 2136 | static long int longval () { return $2; } | 
 | 2137 | static unsigned long int ulongval () { return $2; } | 
 | 2138 | #include <stdio.h> | 
 | 2139 | #include <stdlib.h> | 
 | 2140 | int | 
 | 2141 | main () | 
 | 2142 | { | 
 | 2143 |  | 
 | 2144 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2145 |   if (! f) | 
 | 2146 |     return 1; | 
 | 2147 |   if (($2) < 0) | 
 | 2148 |     { | 
 | 2149 |       long int i = longval (); | 
 | 2150 |       if (i != ($2)) | 
 | 2151 | 	return 1; | 
 | 2152 |       fprintf (f, "%ld", i); | 
 | 2153 |     } | 
 | 2154 |   else | 
 | 2155 |     { | 
 | 2156 |       unsigned long int i = ulongval (); | 
 | 2157 |       if (i != ($2)) | 
 | 2158 | 	return 1; | 
 | 2159 |       fprintf (f, "%lu", i); | 
 | 2160 |     } | 
 | 2161 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2162 |      on some platforms.  */ | 
 | 2163 |   return ferror (f) || fclose (f) != 0; | 
 | 2164 |  | 
 | 2165 |   ; | 
 | 2166 |   return 0; | 
 | 2167 | } | 
 | 2168 | _ACEOF | 
 | 2169 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2170 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2171 | else | 
 | 2172 |   ac_retval=1 | 
 | 2173 | fi | 
 | 2174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2175 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2176 | rm -f conftest.val | 
 | 2177 |  | 
 | 2178 |   fi | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2179 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2180 |   as_fn_set_status $ac_retval | 
 | 2181 |  | 
 | 2182 | } # ac_fn_c_compute_int | 
 | 2183 |  | 
 | 2184 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2185 | # ---------------------------------- | 
 | 2186 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2187 | ac_fn_c_check_func () | 
 | 2188 | { | 
 | 2189 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2190 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2191 | $as_echo_n "checking for $2... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2192 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2193 |   $as_echo_n "(cached) " >&6 | 
 | 2194 | else | 
 | 2195 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2196 | /* end confdefs.h.  */ | 
 | 2197 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2198 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2199 | #define $2 innocuous_$2 | 
 | 2200 |  | 
 | 2201 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2202 |     which can conflict with char $2 (); below. | 
 | 2203 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2204 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2205 |  | 
 | 2206 | #ifdef __STDC__ | 
 | 2207 | # include <limits.h> | 
 | 2208 | #else | 
 | 2209 | # include <assert.h> | 
 | 2210 | #endif | 
 | 2211 |  | 
 | 2212 | #undef $2 | 
 | 2213 |  | 
 | 2214 | /* Override any GCC internal prototype to avoid an error. | 
 | 2215 |    Use char because int might match the return type of a GCC | 
 | 2216 |    builtin and then its argument prototype would still apply.  */ | 
 | 2217 | #ifdef __cplusplus | 
 | 2218 | extern "C" | 
 | 2219 | #endif | 
 | 2220 | char $2 (); | 
 | 2221 | /* The GNU C library defines this for functions which it implements | 
 | 2222 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2223 |     something starting with __ and the normal name is an alias.  */ | 
 | 2224 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2225 | choke me | 
 | 2226 | #endif | 
 | 2227 |  | 
 | 2228 | int | 
 | 2229 | main () | 
 | 2230 | { | 
 | 2231 | return $2 (); | 
 | 2232 |   ; | 
 | 2233 |   return 0; | 
 | 2234 | } | 
 | 2235 | _ACEOF | 
 | 2236 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2237 |   eval "$3=yes" | 
 | 2238 | else | 
 | 2239 |   eval "$3=no" | 
 | 2240 | fi | 
 | 2241 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2242 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2243 | fi | 
 | 2244 | eval ac_res=\$$3 | 
 | 2245 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2246 | $as_echo "$ac_res" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2247 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2248 |  | 
 | 2249 | } # ac_fn_c_check_func | 
 | 2250 |  | 
 | 2251 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2252 | # ---------------------------------------------------- | 
 | 2253 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2254 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2255 | ac_fn_c_check_member () | 
 | 2256 | { | 
 | 2257 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2258 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2259 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2260 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2261 |   $as_echo_n "(cached) " >&6 | 
 | 2262 | else | 
 | 2263 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2264 | /* end confdefs.h.  */ | 
 | 2265 | $5 | 
 | 2266 | int | 
 | 2267 | main () | 
 | 2268 | { | 
 | 2269 | static $2 ac_aggr; | 
 | 2270 | if (ac_aggr.$3) | 
 | 2271 | return 0; | 
 | 2272 |   ; | 
 | 2273 |   return 0; | 
 | 2274 | } | 
 | 2275 | _ACEOF | 
 | 2276 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2277 |   eval "$4=yes" | 
 | 2278 | else | 
 | 2279 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2280 | /* end confdefs.h.  */ | 
 | 2281 | $5 | 
 | 2282 | int | 
 | 2283 | main () | 
 | 2284 | { | 
 | 2285 | static $2 ac_aggr; | 
 | 2286 | if (sizeof ac_aggr.$3) | 
 | 2287 | return 0; | 
 | 2288 |   ; | 
 | 2289 |   return 0; | 
 | 2290 | } | 
 | 2291 | _ACEOF | 
 | 2292 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2293 |   eval "$4=yes" | 
 | 2294 | else | 
 | 2295 |   eval "$4=no" | 
 | 2296 | fi | 
 | 2297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2298 | fi | 
 | 2299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2300 | fi | 
 | 2301 | eval ac_res=\$$4 | 
 | 2302 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2303 | $as_echo "$ac_res" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2304 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2305 |  | 
 | 2306 | } # ac_fn_c_check_member | 
 | 2307 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2308 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2309 | # --------------------------------------------- | 
 | 2310 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2311 | # accordingly. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2312 | ac_fn_c_check_decl () | 
 | 2313 | { | 
 | 2314 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2315 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2316 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2317 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2318 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2319 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2320 |   $as_echo_n "(cached) " >&6 | 
 | 2321 | else | 
 | 2322 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2323 | /* end confdefs.h.  */ | 
 | 2324 | $4 | 
 | 2325 | int | 
 | 2326 | main () | 
 | 2327 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2328 | #ifndef $as_decl_name | 
 | 2329 | #ifdef __cplusplus | 
 | 2330 |   (void) $as_decl_use; | 
 | 2331 | #else | 
 | 2332 |   (void) $as_decl_name; | 
 | 2333 | #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2334 | #endif | 
 | 2335 |  | 
 | 2336 |   ; | 
 | 2337 |   return 0; | 
 | 2338 | } | 
 | 2339 | _ACEOF | 
 | 2340 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2341 |   eval "$3=yes" | 
 | 2342 | else | 
 | 2343 |   eval "$3=no" | 
 | 2344 | fi | 
 | 2345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2346 | fi | 
 | 2347 | eval ac_res=\$$3 | 
 | 2348 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2349 | $as_echo "$ac_res" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2350 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2351 |  | 
 | 2352 | } # ac_fn_c_check_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2353 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2354 | This file contains any messages produced by compilers while | 
 | 2355 | running configure, to aid debugging if configure makes a mistake. | 
 | 2356 |  | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 2357 | It was created by python $as_me 3.2, which was | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2358 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2359 |  | 
 | 2360 |   $ $0 $@ | 
 | 2361 |  | 
 | 2362 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2363 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2364 | { | 
 | 2365 | cat <<_ASUNAME | 
 | 2366 | ## --------- ## | 
 | 2367 | ## Platform. ## | 
 | 2368 | ## --------- ## | 
 | 2369 |  | 
 | 2370 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2371 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2372 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2373 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2374 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2375 |  | 
 | 2376 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2377 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2378 |  | 
 | 2379 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2380 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2381 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2382 | /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] | 2383 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2384 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2385 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2386 |  | 
 | 2387 | _ASUNAME | 
 | 2388 |  | 
 | 2389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2390 | for as_dir in $PATH | 
 | 2391 | do | 
 | 2392 |   IFS=$as_save_IFS | 
 | 2393 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2394 |     $as_echo "PATH: $as_dir" | 
 | 2395 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2396 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2397 |  | 
 | 2398 | } >&5 | 
 | 2399 |  | 
 | 2400 | cat >&5 <<_ACEOF | 
 | 2401 |  | 
 | 2402 |  | 
 | 2403 | ## ----------- ## | 
 | 2404 | ## Core tests. ## | 
 | 2405 | ## ----------- ## | 
 | 2406 |  | 
 | 2407 | _ACEOF | 
 | 2408 |  | 
 | 2409 |  | 
 | 2410 | # Keep a trace of the command line. | 
 | 2411 | # 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] | 2412 | # 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] | 2413 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2414 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2415 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2416 | ac_configure_args0= | 
 | 2417 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2418 | ac_must_keep_next=false | 
 | 2419 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2421 |   for ac_arg | 
 | 2422 |   do | 
 | 2423 |     case $ac_arg in | 
 | 2424 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2425 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2426 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2427 |       continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2428 |     *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2429 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2430 |     esac | 
 | 2431 |     case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2432 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2433 |     2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2434 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2435 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2436 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2437 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2438 | 	case $ac_arg in | 
 | 2439 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2440 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2441 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2442 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2443 | 	    case "$ac_configure_args0 " in | 
 | 2444 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2445 | 	    esac | 
 | 2446 | 	    ;; | 
 | 2447 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2448 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2449 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2450 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2451 |       ;; | 
 | 2452 |     esac | 
 | 2453 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2455 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2456 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2457 |  | 
 | 2458 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2459 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2460 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2461 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2462 | # 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] | 2463 | trap 'exit_status=$? | 
 | 2464 |   # Save into config.log some information that might help in debugging. | 
 | 2465 |   { | 
 | 2466 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2467 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2468 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2469 | ## Cache variables. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2470 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2471 |     echo | 
 | 2472 |     # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2473 | ( | 
 | 2474 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2475 |     eval ac_val=\$$ac_var | 
 | 2476 |     case $ac_val in #( | 
 | 2477 |     *${as_nl}*) | 
 | 2478 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2479 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2480 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2481 |       esac | 
 | 2482 |       case $ac_var in #( | 
 | 2483 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2484 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2485 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2486 |       esac ;; | 
 | 2487 |     esac | 
 | 2488 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2490 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2491 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2492 |       sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2493 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2494 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2495 |       ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2496 |     *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2497 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2498 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2499 |     esac | | 
 | 2500 |     sort | 
 | 2501 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2502 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2503 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2504 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2505 | ## Output variables. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2506 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2507 |     echo | 
 | 2508 |     for ac_var in $ac_subst_vars | 
 | 2509 |     do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2510 |       eval ac_val=\$$ac_var | 
 | 2511 |       case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2512 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2513 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2514 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2515 |     done | sort | 
 | 2516 |     echo | 
 | 2517 |  | 
 | 2518 |     if test -n "$ac_subst_files"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2519 |       $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2520 | ## File substitutions. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2521 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2522 |       echo | 
 | 2523 |       for ac_var in $ac_subst_files | 
 | 2524 |       do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2525 | 	eval ac_val=\$$ac_var | 
 | 2526 | 	case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2527 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2528 | 	esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2529 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2530 |       done | sort | 
 | 2531 |       echo | 
 | 2532 |     fi | 
 | 2533 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2534 |     if test -s confdefs.h; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2535 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | ## confdefs.h. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2537 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 |       echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2539 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 |       echo | 
 | 2541 |     fi | 
 | 2542 |     test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2543 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2544 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 |   } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2546 |   rm -f core *.core core.conftest.* && | 
 | 2547 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2548 |     exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2549 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2551 |   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] | 2552 | done | 
 | 2553 | ac_signal=0 | 
 | 2554 |  | 
 | 2555 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2556 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2558 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2559 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2560 | # Predefined preprocessor variables. | 
 | 2561 |  | 
 | 2562 | cat >>confdefs.h <<_ACEOF | 
 | 2563 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2564 | _ACEOF | 
 | 2565 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | cat >>confdefs.h <<_ACEOF | 
 | 2567 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2568 | _ACEOF | 
 | 2569 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2570 | cat >>confdefs.h <<_ACEOF | 
 | 2571 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2572 | _ACEOF | 
 | 2573 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | cat >>confdefs.h <<_ACEOF | 
 | 2575 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2576 | _ACEOF | 
 | 2577 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | cat >>confdefs.h <<_ACEOF | 
 | 2579 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2580 | _ACEOF | 
 | 2581 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2582 | cat >>confdefs.h <<_ACEOF | 
 | 2583 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2584 | _ACEOF | 
 | 2585 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 |  | 
 | 2587 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2588 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2589 | ac_site_file1=NONE | 
 | 2590 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2591 | if test -n "$CONFIG_SITE"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2592 |   # We do not want a PATH search for config.site. | 
 | 2593 |   case $CONFIG_SITE in #(( | 
 | 2594 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2595 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2596 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2597 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2598 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2599 |   ac_site_file1=$prefix/share/config.site | 
 | 2600 |   ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2601 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2602 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2603 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2604 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2605 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2606 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2607 |   test "x$ac_site_file" = xNONE && continue | 
 | 2608 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2609 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2610 | $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] | 2611 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2612 |     . "$ac_site_file" \ | 
 | 2613 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2614 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2615 | as_fn_error $? "failed to load site script $ac_site_file | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 2616 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2617 |   fi | 
 | 2618 | done | 
 | 2619 |  | 
 | 2620 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2621 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2622 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2623 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2624 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2625 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 |     case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2627 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2628 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2629 |     esac | 
 | 2630 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2631 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2632 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2633 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 |   >$cache_file | 
 | 2635 | fi | 
 | 2636 |  | 
 | 2637 | # Check that the precious variables saved in the cache have kept the same | 
 | 2638 | # value. | 
 | 2639 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2640 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2641 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2642 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2643 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2644 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2645 |   case $ac_old_set,$ac_new_set in | 
 | 2646 |     set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2647 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2648 | $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] | 2649 |       ac_cache_corrupted=: ;; | 
 | 2650 |     ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2651 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2652 | $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] | 2653 |       ac_cache_corrupted=: ;; | 
 | 2654 |     ,);; | 
 | 2655 |     *) | 
 | 2656 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2657 | 	# differences in whitespace do not lead to failure. | 
 | 2658 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2659 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2660 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2661 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2662 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2663 | 	  ac_cache_corrupted=: | 
 | 2664 | 	else | 
 | 2665 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2666 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2667 | 	  eval $ac_var=\$ac_old_val | 
 | 2668 | 	fi | 
 | 2669 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2670 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2671 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2672 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 |       fi;; | 
 | 2674 |   esac | 
 | 2675 |   # Pass precious variables to config.status. | 
 | 2676 |   if test "$ac_new_set" = set; then | 
 | 2677 |     case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2678 |     *\'*) 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] | 2679 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2680 |     esac | 
 | 2681 |     case " $ac_configure_args " in | 
 | 2682 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2683 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2684 |     esac | 
 | 2685 |   fi | 
 | 2686 | done | 
 | 2687 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2688 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2689 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2690 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2691 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2692 |   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] | 2693 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2694 | ## -------------------- ## | 
 | 2695 | ## Main body of script. ## | 
 | 2696 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2697 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2698 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2699 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2703 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2704 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2705 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2706 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2707 |  | 
 | 2708 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2709 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2710 | if test "$prefix" != "/"; then | 
 | 2711 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 2712 | fi | 
 | 2713 |  | 
 | 2714 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2715 |  | 
 | 2716 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2717 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 2718 | # with other autoconf-based packages that include Python.h | 
 | 2719 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 2720 | rm confdefs.h | 
 | 2721 | mv confdefs.h.new confdefs.h | 
 | 2722 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2723 |  | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 2724 | VERSION=3.2 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2725 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2726 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2727 |  | 
 | 2728 | SOVERSION=1.0 | 
 | 2729 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2730 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 2731 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 2732 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2733 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2734 |  | 
 | 2735 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2736 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2737 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 2738 | # them. | 
 | 2739 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2740 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2741 |  | 
 | 2742 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2743 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2744 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 2745 | # them. | 
 | 2746 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2747 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2748 |  | 
 | 2749 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2750 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2751 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 2752 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2753 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2754 |  | 
 | 2755 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2756 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2757 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 2758 | # them. | 
 | 2759 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2760 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2761 |  | 
 | 2762 |  | 
 | 2763 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2764 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2765 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2766 | # Arguments passed to configure. | 
 | 2767 |  | 
 | 2768 | CONFIG_ARGS="$ac_configure_args" | 
 | 2769 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 2771 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2772 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2773 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2774 |   enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2775 | 	case $enableval in | 
 | 2776 | 	yes) | 
 | 2777 | 		enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2778 | 		if test ! -d "${enableval}" | 
 | 2779 | 		then | 
 | 2780 | 			enableval=/ | 
 | 2781 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2782 | 		;; | 
 | 2783 | 	esac | 
 | 2784 | 	case $enableval in | 
 | 2785 | 	no) | 
 | 2786 | 		UNIVERSALSDK= | 
 | 2787 | 		enable_universalsdk= | 
 | 2788 | 		;; | 
 | 2789 | 	*) | 
 | 2790 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2791 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 2792 | 		then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2793 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2794 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2795 | 		;; | 
 | 2796 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2797 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2798 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2799 | else | 
 | 2800 |  | 
 | 2801 |    	UNIVERSALSDK= | 
 | 2802 | 	enable_universalsdk= | 
 | 2803 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2804 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2805 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2806 | if test -n "${UNIVERSALSDK}" | 
 | 2807 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2808 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 2809 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2810 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2811 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2812 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2813 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2814 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2815 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2816 |  | 
 | 2817 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2818 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2819 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 2821 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2822 |  | 
 | 2823 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2824 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2825 |   withval=$with_universal_archs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2826 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 2827 | $as_echo "$withval" >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2828 | 	UNIVERSAL_ARCHS="$withval" | 
 | 2829 |  | 
 | 2830 | else | 
 | 2831 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2832 |  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
 | 2833 | $as_echo "32-bit" >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2834 |  | 
 | 2835 | fi | 
 | 2836 |  | 
 | 2837 |  | 
 | 2838 |  | 
 | 2839 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2840 |  | 
 | 2841 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2842 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2843 |   withval=$with_framework_name; | 
 | 2844 |     PYTHONFRAMEWORK=${withval} | 
 | 2845 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 2846 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 2847 |  | 
 | 2848 | else | 
 | 2849 |  | 
 | 2850 |     PYTHONFRAMEWORK=Python | 
 | 2851 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 2852 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 2853 |  | 
 | 2854 | fi | 
 | 2855 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2856 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2857 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2858 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2859 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2860 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2861 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2862 | 	esac | 
 | 2863 | 	case $enableval in | 
 | 2864 | 	no) | 
 | 2865 | 		PYTHONFRAMEWORK= | 
 | 2866 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 2867 | 		PYTHONFRAMEWORKPREFIX= | 
 | 2868 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2869 | 		FRAMEWORKINSTALLFIRST= | 
 | 2870 | 		FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2871 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 2872 | 		FRAMEWORKALTINSTALLLAST= | 
 | 2873 | 		if test "x${prefix}" = "xNONE"; then | 
 | 2874 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 2875 | 		else | 
 | 2876 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2877 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2878 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2879 | 		;; | 
 | 2880 | 	*) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2881 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2882 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2883 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 2884 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2885 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 2886 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2887 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2888 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2889 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 2890 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2891 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2892 | 		else | 
 | 2893 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2894 | 		fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2895 |  | 
 | 2896 | 		case "${enableval}" in | 
 | 2897 | 		/System*) | 
 | 2898 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2899 | 			if test "${prefix}" = "NONE" ; then | 
 | 2900 | 				# See below | 
 | 2901 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 2902 | 			fi | 
 | 2903 | 			;; | 
 | 2904 |  | 
 | 2905 | 		/Library*) | 
 | 2906 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2907 | 			;; | 
 | 2908 |  | 
 | 2909 | 		*/Library/Frameworks) | 
 | 2910 | 			MDIR="`dirname "${enableval}"`" | 
 | 2911 | 			MDIR="`dirname "${MDIR}"`" | 
 | 2912 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 2913 |  | 
 | 2914 | 			if test "${prefix}" = "NONE"; then | 
 | 2915 | 				# User hasn't specified the | 
 | 2916 | 				# --prefix option, but wants to install | 
 | 2917 | 				# the framework in a non-default location, | 
 | 2918 | 				# ensure that the compatibility links get | 
 | 2919 | 				# installed relative to that prefix as well | 
 | 2920 | 				# instead of in /usr/local. | 
 | 2921 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 2922 | 			fi | 
 | 2923 | 			;; | 
 | 2924 |  | 
 | 2925 | 		*) | 
 | 2926 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2927 | 			;; | 
 | 2928 | 		esac | 
 | 2929 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2930 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2931 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2932 | 		# Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2933 | 		# files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2934 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2935 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2936 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2937 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2938 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 2939 |  | 
 | 2940 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 2941 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2942 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2943 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2944 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2945 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2946 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2947 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2948 | 	PYTHONFRAMEWORKPREFIX= | 
 | 2949 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2950 | 	FRAMEWORKINSTALLFIRST= | 
 | 2951 | 	FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2952 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 2953 | 	FRAMEWORKALTINSTALLLAST= | 
 | 2954 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 2955 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 2956 | 	else | 
 | 2957 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2958 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2959 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2960 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2961 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2962 | fi | 
 | 2963 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2964 |  | 
 | 2965 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2966 |  | 
 | 2967 |  | 
 | 2968 |  | 
 | 2969 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2970 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2971 |  | 
 | 2972 |  | 
 | 2973 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2974 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2975 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2976 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 2977 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 2978 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2979 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2980 | # Set name for machine-dependent library files | 
 | 2981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 2983 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2984 | if test -z "$MACHDEP" | 
 | 2985 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2986 | 	ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 2987 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2988 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2989 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2990 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2991 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2992 | 	fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2993 | 	ac_md_system=`echo $ac_sys_system | | 
 | 2994 | 			   tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 2995 | 	ac_md_release=`echo $ac_sys_release | | 
| Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2996 | 			   tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2997 | 	MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2998 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2999 | 	case $MACHDEP in | 
| Victor Stinner | 0c17d0d | 2011-08-20 14:01:05 +0200 | [diff] [blame] | 3000 | 	linux*) MACHDEP="linux2";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3001 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3002 | 	darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3003 |         irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3004 | 	'')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3005 | 	esac | 
 | 3006 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3007 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3008 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3009 | # disable features if it is defined, without any means to access these | 
 | 3010 | # features as extensions. For these systems, we skip the definition of | 
 | 3011 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3012 | # some feature, make sure there is no alternative way to access this | 
 | 3013 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3014 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3015 | # wildcard, and that the wildcard does not include future systems | 
 | 3016 | # (which may remove their limitations). | 
 | 3017 | case $ac_sys_system/$ac_sys_release in | 
 | 3018 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3019 |   # 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] | 3020 |   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3021 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3022 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3023 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3024 |     define_xopen_source=no | 
 | 3025 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3026 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3027 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3028 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3029 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3030 |  | 
 | 3031 |     ;; | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3032 |   OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3033 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3034 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3035 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3036 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3037 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3038 |  | 
 | 3039 |     ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3040 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3041 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3042 |   # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3043 |   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3044 |     define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3045 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3046 |   # request to enable features supported by the standard as a request | 
 | 3047 |   # to disable features not supported by the standard.  The best way | 
 | 3048 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3049 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3050 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3051 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3052 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3053 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3054 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3055 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3056 |     define_xopen_source=no;; | 
 | 3057 |   # 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] | 3058 |   # 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] | 3059 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3060 |     define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3061 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3062 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3063 |   FreeBSD/4.*) | 
 | 3064 |     define_xopen_source=no;; | 
 | 3065 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3066 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3067 |   # identifies itself as Darwin/7.* | 
 | 3068 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3069 |   # disables platform specific features beyond repair. | 
 | 3070 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3071 |   # has no effect, don't bother defining them | 
 | 3072 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3073 |     define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3074 |   Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3075 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3076 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3077 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3078 |   # 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] | 3079 |   AIX/4) | 
 | 3080 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3081 |   AIX/5) | 
 | 3082 |     if test `uname -r` -eq 1; then | 
 | 3083 |       define_xopen_source=no | 
 | 3084 |     fi | 
 | 3085 |     ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3086 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3087 |   # defining NI_NUMERICHOST. | 
 | 3088 |   QNX/6.3.2) | 
 | 3089 |     define_xopen_source=no | 
 | 3090 |     ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3091 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3092 | esac | 
 | 3093 |  | 
 | 3094 | if test $define_xopen_source = yes | 
 | 3095 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3096 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3097 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3098 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3099 |  | 
 | 3100 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3101 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3102 |   # several APIs are not declared. Since this is also needed in some | 
 | 3103 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3104 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3105 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3106 |  | 
 | 3107 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3108 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3109 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3110 |  | 
 | 3111 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3112 | fi | 
 | 3113 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3114 | # | 
 | 3115 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3116 | # ISA on the command line.  Depending on the values of these switches, | 
 | 3117 | # different and often incompatable code will be generated. | 
 | 3118 | # | 
 | 3119 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3120 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3121 | # variable is also adjusted. | 
 | 3122 | # | 
 | 3123 |  | 
 | 3124 | if test ! -z "$SGI_ABI" | 
 | 3125 | then | 
 | 3126 |         CC="cc $SGI_ABI" | 
 | 3127 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3128 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3129 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3131 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3132 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3133 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3134 | # it may influence the way we can build extensions, so distutils | 
 | 3135 | # needs to check it | 
 | 3136 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3137 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3138 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3139 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3140 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 | 
 | 3142 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } | 
| Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3143 | ac_sys_machine=`uname -m` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 | 
 | 3145 | $as_echo "$ac_sys_machine" >&6; } | 
| Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3146 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3147 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3148 |  | 
 | 3149 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3150 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3151 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3152 | # when running configure or make.  The build should not break if they do. | 
 | 3153 | # BASECFLAGS should generally not be messed with, however. | 
 | 3154 |  | 
 | 3155 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3156 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3158 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3159 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3160 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3161 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3162 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3163 | 	case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3164 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3165 | 		without_gcc=yes;; | 
 | 3166 | 	yes)	CC=gcc | 
 | 3167 | 		without_gcc=no;; | 
 | 3168 | 	*)	CC=$withval | 
 | 3169 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3170 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3171 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3172 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3173 | 	case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3174 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3175 | 		without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3176 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3177 | 	esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3178 | fi | 
 | 3179 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3181 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3182 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3183 | # If the user switches compilers, we can't believe the cache | 
 | 3184 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3185 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3186 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3187 | (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] | 3188 | fi | 
 | 3189 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3190 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
 | 3191 | # when the compiler supports them, but we don't always want -O2, and | 
 | 3192 | # we set -g later. | 
 | 3193 | if test -z "$CFLAGS"; then | 
 | 3194 |         CFLAGS= | 
 | 3195 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3196 | ac_ext=c | 
 | 3197 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3201 | if test -n "$ac_tool_prefix"; then | 
 | 3202 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3203 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3205 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3206 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3207 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3208 | else | 
 | 3209 |   if test -n "$CC"; then | 
 | 3210 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3211 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3213 | for as_dir in $PATH | 
 | 3214 | do | 
 | 3215 |   IFS=$as_save_IFS | 
 | 3216 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3217 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3218 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3219 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3220 |     $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] | 3221 |     break 2 | 
 | 3222 |   fi | 
 | 3223 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3224 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3225 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3226 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3227 | fi | 
 | 3228 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3229 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3230 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3231 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3232 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3233 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3234 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3235 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3236 | fi | 
 | 3237 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3238 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3239 | fi | 
 | 3240 | if test -z "$ac_cv_prog_CC"; then | 
 | 3241 |   ac_ct_CC=$CC | 
 | 3242 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3243 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3245 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3246 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3247 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3248 | else | 
 | 3249 |   if test -n "$ac_ct_CC"; then | 
 | 3250 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3251 | else | 
 | 3252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3253 | for as_dir in $PATH | 
 | 3254 | do | 
 | 3255 |   IFS=$as_save_IFS | 
 | 3256 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3257 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3258 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3259 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3260 |     $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] | 3261 |     break 2 | 
 | 3262 |   fi | 
 | 3263 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3264 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3265 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3266 |  | 
 | 3267 | fi | 
 | 3268 | fi | 
 | 3269 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3270 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3271 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3272 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3273 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3274 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3275 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3276 | fi | 
 | 3277 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3278 |   if test "x$ac_ct_CC" = x; then | 
 | 3279 |     CC="" | 
 | 3280 |   else | 
 | 3281 |     case $cross_compiling:$ac_tool_warned in | 
 | 3282 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3284 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3285 | ac_tool_warned=yes ;; | 
 | 3286 | esac | 
 | 3287 |     CC=$ac_ct_CC | 
 | 3288 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3289 | else | 
 | 3290 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3291 | fi | 
 | 3292 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3293 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3294 |           if test -n "$ac_tool_prefix"; then | 
 | 3295 |     # 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] | 3296 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3298 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3299 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3300 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3301 | else | 
 | 3302 |   if test -n "$CC"; then | 
 | 3303 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3304 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3306 | for as_dir in $PATH | 
 | 3307 | do | 
 | 3308 |   IFS=$as_save_IFS | 
 | 3309 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3310 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3311 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3312 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3313 |     $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] | 3314 |     break 2 | 
 | 3315 |   fi | 
 | 3316 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3317 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3318 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3319 |  | 
 | 3320 | fi | 
 | 3321 | fi | 
 | 3322 | CC=$ac_cv_prog_CC | 
 | 3323 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3324 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3325 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3326 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3327 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3328 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3329 | fi | 
 | 3330 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3331 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3332 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3333 | fi | 
 | 3334 | if test -z "$CC"; then | 
 | 3335 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3336 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3338 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3339 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3340 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3341 | else | 
 | 3342 |   if test -n "$CC"; then | 
 | 3343 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3344 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3345 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3347 | for as_dir in $PATH | 
 | 3348 | do | 
 | 3349 |   IFS=$as_save_IFS | 
 | 3350 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3351 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3352 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3353 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3354 |        ac_prog_rejected=yes | 
 | 3355 |        continue | 
 | 3356 |      fi | 
 | 3357 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3358 |     $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] | 3359 |     break 2 | 
 | 3360 |   fi | 
 | 3361 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3362 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3363 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3364 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3365 | if test $ac_prog_rejected = yes; then | 
 | 3366 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3367 |   set dummy $ac_cv_prog_CC | 
 | 3368 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3370 |     # We chose a different compiler from the bogus one. | 
 | 3371 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3372 |     # first if we set CC to just the basename; use the full file name. | 
 | 3373 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3374 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3375 |   fi | 
 | 3376 | fi | 
 | 3377 | fi | 
 | 3378 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3379 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3380 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3381 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3382 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3383 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3384 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3385 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3386 | fi | 
 | 3387 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3388 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3389 | fi | 
 | 3390 | if test -z "$CC"; then | 
 | 3391 |   if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3392 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 |   do | 
 | 3394 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3395 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3397 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3398 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3399 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3400 | else | 
 | 3401 |   if test -n "$CC"; then | 
 | 3402 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3403 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3405 | for as_dir in $PATH | 
 | 3406 | do | 
 | 3407 |   IFS=$as_save_IFS | 
 | 3408 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3409 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3410 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3412 |     $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] | 3413 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3414 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3415 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3416 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3417 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3418 |  | 
 | 3419 | fi | 
 | 3420 | fi | 
 | 3421 | CC=$ac_cv_prog_CC | 
 | 3422 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3423 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3424 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3425 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3426 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3427 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3428 | fi | 
 | 3429 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3430 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3431 |     test -n "$CC" && break | 
 | 3432 |   done | 
 | 3433 | fi | 
 | 3434 | if test -z "$CC"; then | 
 | 3435 |   ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3436 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3437 | do | 
 | 3438 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3439 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3441 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3442 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3443 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3444 | else | 
 | 3445 |   if test -n "$ac_ct_CC"; then | 
 | 3446 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3447 | else | 
 | 3448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3449 | for as_dir in $PATH | 
 | 3450 | do | 
 | 3451 |   IFS=$as_save_IFS | 
 | 3452 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3453 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3454 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3456 |     $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] | 3457 |     break 2 | 
 | 3458 |   fi | 
 | 3459 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3460 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3461 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3462 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | fi | 
 | 3464 | fi | 
 | 3465 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3466 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3467 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3468 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3469 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3470 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3471 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3472 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3473 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3474 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3475 |   test -n "$ac_ct_CC" && break | 
 | 3476 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3477 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3478 |   if test "x$ac_ct_CC" = x; then | 
 | 3479 |     CC="" | 
 | 3480 |   else | 
 | 3481 |     case $cross_compiling:$ac_tool_warned in | 
 | 3482 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3484 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3485 | ac_tool_warned=yes ;; | 
 | 3486 | esac | 
 | 3487 |     CC=$ac_ct_CC | 
 | 3488 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3489 | fi | 
 | 3490 |  | 
 | 3491 | fi | 
 | 3492 |  | 
 | 3493 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3494 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3495 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3496 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3497 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 |  | 
 | 3499 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3500 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 3501 | set X $ac_compile | 
 | 3502 | ac_compiler=$2 | 
 | 3503 | for ac_option in --version -v -V -qversion; do | 
 | 3504 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3505 | case "(($ac_try" in | 
 | 3506 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3507 |   *) ac_try_echo=$ac_try;; | 
 | 3508 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3509 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3510 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3511 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3513 |   if test -s conftest.err; then | 
 | 3514 |     sed '10a\ | 
 | 3515 | ... rest of stderr output deleted ... | 
 | 3516 |          10q' conftest.err >conftest.er1 | 
 | 3517 |     cat conftest.er1 >&5 | 
 | 3518 |   fi | 
 | 3519 |   rm -f conftest.er1 conftest.err | 
 | 3520 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3521 |   test $ac_status = 0; } | 
 | 3522 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3523 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3525 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3526 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | int | 
 | 3528 | main () | 
 | 3529 | { | 
 | 3530 |  | 
 | 3531 |   ; | 
 | 3532 |   return 0; | 
 | 3533 | } | 
 | 3534 | _ACEOF | 
 | 3535 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3536 | 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] | 3537 | # Try to create an executable without -o first, disregard a.out. | 
 | 3538 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 3539 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 3541 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 3542 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 3543 |  | 
 | 3544 | # The possible output files: | 
 | 3545 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 3546 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3547 | ac_rmfiles= | 
 | 3548 | for ac_file in $ac_files | 
 | 3549 | do | 
 | 3550 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3551 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3552 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 3553 |   esac | 
 | 3554 | done | 
 | 3555 | rm -f $ac_rmfiles | 
 | 3556 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3557 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3558 | case "(($ac_try" in | 
 | 3559 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3560 |   *) ac_try_echo=$ac_try;; | 
 | 3561 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3562 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3563 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3564 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3565 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3566 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3567 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3568 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 3569 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 3570 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 3571 | # so that the user can short-circuit this test for compilers unknown to | 
 | 3572 | # Autoconf. | 
 | 3573 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3574 | do | 
 | 3575 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3576 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3577 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3578 | 	;; | 
 | 3579 |     [ab].out ) | 
 | 3580 | 	# We found the default executable, but exeext='' is most | 
 | 3581 | 	# certainly right. | 
 | 3582 | 	break;; | 
 | 3583 |     *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3584 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3585 | 	then :; else | 
 | 3586 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3587 | 	fi | 
 | 3588 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 3589 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 3590 | 	# argument, so we may need to know it at that point already. | 
 | 3591 | 	# Even if this section looks crufty: it has the advantage of | 
 | 3592 | 	# actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3593 | 	break;; | 
 | 3594 |     * ) | 
 | 3595 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3596 |   esac | 
 | 3597 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3598 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 3599 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3600 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3601 |   ac_file='' | 
 | 3602 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3603 | if test -z "$ac_file"; then : | 
 | 3604 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3605 | $as_echo "no" >&6; } | 
 | 3606 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3607 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3608 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3609 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3610 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3611 | as_fn_error 77 "C compiler cannot create executables | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3612 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3613 | else | 
 | 3614 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 3615 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3616 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 3618 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 3620 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3621 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3622 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3623 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3624 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 3626 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 3627 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3628 | case "(($ac_try" in | 
 | 3629 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3630 |   *) ac_try_echo=$ac_try;; | 
 | 3631 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3633 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3634 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3635 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3636 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3637 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3638 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 3639 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 3640 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 3641 | # `rm'. | 
 | 3642 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 3643 |   test -f "$ac_file" || continue | 
 | 3644 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3645 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3646 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3647 | 	  break;; | 
 | 3648 |     * ) break;; | 
 | 3649 |   esac | 
 | 3650 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3651 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3652 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3653 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3654 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3655 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3656 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3657 | rm -f conftest conftest$ac_cv_exeext | 
 | 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 3659 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3660 |  | 
 | 3661 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3662 | EXEEXT=$ac_cv_exeext | 
 | 3663 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 3665 | /* end confdefs.h.  */ | 
 | 3666 | #include <stdio.h> | 
 | 3667 | int | 
 | 3668 | main () | 
 | 3669 | { | 
 | 3670 | FILE *f = fopen ("conftest.out", "w"); | 
 | 3671 |  return ferror (f) || fclose (f) != 0; | 
 | 3672 |  | 
 | 3673 |   ; | 
 | 3674 |   return 0; | 
 | 3675 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3676 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3677 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 3678 | # Check that the compiler produces executables we can run.  If not, either | 
 | 3679 | # the compiler is broken, or we cross compile. | 
 | 3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 3681 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 3682 | if test "$cross_compiling" != yes; then | 
 | 3683 |   { { ac_try="$ac_link" | 
 | 3684 | case "(($ac_try" in | 
 | 3685 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3686 |   *) ac_try_echo=$ac_try;; | 
 | 3687 | esac | 
 | 3688 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3689 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3690 |   (eval "$ac_link") 2>&5 | 
 | 3691 |   ac_status=$? | 
 | 3692 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3693 |   test $ac_status = 0; } | 
 | 3694 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 3695 |   { { case "(($ac_try" in | 
 | 3696 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3697 |   *) ac_try_echo=$ac_try;; | 
 | 3698 | esac | 
 | 3699 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3700 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3701 |   (eval "$ac_try") 2>&5 | 
 | 3702 |   ac_status=$? | 
 | 3703 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3704 |   test $ac_status = 0; }; }; then | 
 | 3705 |     cross_compiling=no | 
 | 3706 |   else | 
 | 3707 |     if test "$cross_compiling" = maybe; then | 
 | 3708 | 	cross_compiling=yes | 
 | 3709 |     else | 
 | 3710 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3712 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3713 | If you meant to cross compile, use \`--host'. | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3714 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3715 |     fi | 
 | 3716 |   fi | 
 | 3717 | fi | 
 | 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 3719 | $as_echo "$cross_compiling" >&6; } | 
 | 3720 |  | 
 | 3721 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 3722 | ac_clean_files=$ac_clean_files_save | 
 | 3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 3724 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3725 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3726 |   $as_echo_n "(cached) " >&6 | 
 | 3727 | else | 
 | 3728 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3729 | /* end confdefs.h.  */ | 
 | 3730 |  | 
 | 3731 | int | 
 | 3732 | main () | 
 | 3733 | { | 
 | 3734 |  | 
 | 3735 |   ; | 
 | 3736 |   return 0; | 
 | 3737 | } | 
 | 3738 | _ACEOF | 
 | 3739 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3740 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3741 | case "(($ac_try" in | 
 | 3742 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3743 |   *) ac_try_echo=$ac_try;; | 
 | 3744 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3746 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3747 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3749 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3750 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3751 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 3752 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3754 |     *.$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] | 3755 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 3756 |        break;; | 
 | 3757 |   esac | 
 | 3758 | done | 
 | 3759 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3760 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3761 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3762 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3763 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3765 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3766 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3768 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 3771 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3772 | OBJEXT=$ac_cv_objext | 
 | 3773 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 3775 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3776 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3777 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3778 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3779 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3780 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | int | 
 | 3783 | main () | 
 | 3784 | { | 
 | 3785 | #ifndef __GNUC__ | 
 | 3786 |        choke me | 
 | 3787 | #endif | 
 | 3788 |  | 
 | 3789 |   ; | 
 | 3790 |   return 0; | 
 | 3791 | } | 
 | 3792 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3793 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3794 |   ac_compiler_gnu=yes | 
 | 3795 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3796 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3798 | 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] | 3799 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 3800 |  | 
 | 3801 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 3803 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 3804 | if test $ac_compiler_gnu = yes; then | 
 | 3805 |   GCC=yes | 
 | 3806 | else | 
 | 3807 |   GCC= | 
 | 3808 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 3810 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 3812 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3813 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3814 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3815 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3816 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 3817 |    ac_c_werror_flag=yes | 
 | 3818 |    ac_cv_prog_cc_g=no | 
 | 3819 |    CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3820 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3821 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3822 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | int | 
 | 3824 | main () | 
 | 3825 | { | 
 | 3826 |  | 
 | 3827 |   ; | 
 | 3828 |   return 0; | 
 | 3829 | } | 
 | 3830 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3831 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3832 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3833 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3834 |   CFLAGS="" | 
 | 3835 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3836 | /* end confdefs.h.  */ | 
 | 3837 |  | 
 | 3838 | int | 
 | 3839 | main () | 
 | 3840 | { | 
 | 3841 |  | 
 | 3842 |   ; | 
 | 3843 |   return 0; | 
 | 3844 | } | 
 | 3845 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3846 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3847 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3848 | else | 
 | 3849 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3850 | 	 CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3851 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3852 | /* end confdefs.h.  */ | 
 | 3853 |  | 
 | 3854 | int | 
 | 3855 | main () | 
 | 3856 | { | 
 | 3857 |  | 
 | 3858 |   ; | 
 | 3859 |   return 0; | 
 | 3860 | } | 
 | 3861 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3862 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3863 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3864 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3866 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3868 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3870 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 3871 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 3873 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3874 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3876 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 3877 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3878 |     CFLAGS="-g -O2" | 
 | 3879 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3880 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3881 |   fi | 
 | 3882 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3883 |   if test "$GCC" = yes; then | 
 | 3884 |     CFLAGS="-O2" | 
 | 3885 |   else | 
 | 3886 |     CFLAGS= | 
 | 3887 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3888 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 3890 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 3891 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3892 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3893 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3894 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3895 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3897 | /* end confdefs.h.  */ | 
 | 3898 | #include <stdarg.h> | 
 | 3899 | #include <stdio.h> | 
 | 3900 | #include <sys/types.h> | 
 | 3901 | #include <sys/stat.h> | 
 | 3902 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 3903 | struct buf { int x; }; | 
 | 3904 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 3905 | static char *e (p, i) | 
 | 3906 |      char **p; | 
 | 3907 |      int i; | 
 | 3908 | { | 
 | 3909 |   return p[i]; | 
 | 3910 | } | 
 | 3911 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 3912 | { | 
 | 3913 |   char *s; | 
 | 3914 |   va_list v; | 
 | 3915 |   va_start (v,p); | 
 | 3916 |   s = g (p, va_arg (v,int)); | 
 | 3917 |   va_end (v); | 
 | 3918 |   return s; | 
 | 3919 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3920 |  | 
 | 3921 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 3922 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 3923 |    These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3924 |    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] | 3925 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 3926 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3927 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3928 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 3929 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3930 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 3931 |    inside strings and character constants.  */ | 
 | 3932 | #define FOO(x) 'x' | 
 | 3933 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 3934 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3935 | int test (int i, double x); | 
 | 3936 | struct s1 {int (*f) (int a);}; | 
 | 3937 | struct s2 {int (*f) (double a);}; | 
 | 3938 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 3939 | int argc; | 
 | 3940 | char **argv; | 
 | 3941 | int | 
 | 3942 | main () | 
 | 3943 | { | 
 | 3944 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 3945 |   ; | 
 | 3946 |   return 0; | 
 | 3947 | } | 
 | 3948 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3949 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 3950 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3951 | do | 
 | 3952 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3953 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3954 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3955 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3956 | rm -f core conftest.err conftest.$ac_objext | 
 | 3957 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3958 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3959 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3960 | CC=$ac_save_CC | 
 | 3961 |  | 
 | 3962 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3963 | # AC_CACHE_VAL | 
 | 3964 | case "x$ac_cv_prog_cc_c89" in | 
 | 3965 |   x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3966 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 3967 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3968 |   xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3969 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 3970 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3971 |   *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3972 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3973 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 3974 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3975 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3976 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3977 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3978 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3979 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | ac_ext=c | 
 | 3981 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3985 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3986 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3987 |  | 
 | 3988 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 3990 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3991 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3992 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3993 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3994 |   withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3995 |  | 
 | 3996 | 	case $withval in | 
 | 3997 | 	no)	with_cxx_main=no | 
 | 3998 | 		MAINCC='$(CC)';; | 
 | 3999 | 	yes)	with_cxx_main=yes | 
 | 4000 | 		MAINCC='$(CXX)';; | 
 | 4001 | 	*)	with_cxx_main=yes | 
 | 4002 | 		MAINCC=$withval | 
 | 4003 | 		if test -z "$CXX" | 
 | 4004 | 		then | 
 | 4005 | 			CXX=$withval | 
 | 4006 | 		fi;; | 
 | 4007 | 	esac | 
 | 4008 | else | 
 | 4009 |  | 
 | 4010 | 	with_cxx_main=no | 
 | 4011 | 	MAINCC='$(CC)' | 
 | 4012 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4013 | fi | 
 | 4014 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4016 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4017 |  | 
 | 4018 | preset_cxx="$CXX" | 
 | 4019 | if test -z "$CXX" | 
 | 4020 | then | 
 | 4021 |         case "$CC" in | 
 | 4022 |         gcc)    # Extract the first word of "g++", so it can be a program name with args. | 
 | 4023 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4025 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4026 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4027 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4028 | else | 
 | 4029 |   case $CXX in | 
 | 4030 |   [\\/]* | ?:[\\/]*) | 
 | 4031 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4032 |   ;; | 
 | 4033 |   *) | 
 | 4034 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4035 | for as_dir in notfound | 
 | 4036 | do | 
 | 4037 |   IFS=$as_save_IFS | 
 | 4038 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4039 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4040 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4041 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4042 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4043 |     break 2 | 
 | 4044 |   fi | 
 | 4045 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4046 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4047 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4048 |  | 
 | 4049 |   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" | 
 | 4050 |   ;; | 
 | 4051 | esac | 
 | 4052 | fi | 
 | 4053 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4054 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4055 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4056 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4057 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4058 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4059 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4060 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4061 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4062 |  ;; | 
 | 4063 |         cc)     # Extract the first word of "c++", so it can be a program name with args. | 
 | 4064 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4066 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4067 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4068 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4069 | else | 
 | 4070 |   case $CXX in | 
 | 4071 |   [\\/]* | ?:[\\/]*) | 
 | 4072 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4073 |   ;; | 
 | 4074 |   *) | 
 | 4075 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4076 | for as_dir in notfound | 
 | 4077 | do | 
 | 4078 |   IFS=$as_save_IFS | 
 | 4079 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4080 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4081 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4082 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4083 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4084 |     break 2 | 
 | 4085 |   fi | 
 | 4086 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4087 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4088 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4089 |  | 
 | 4090 |   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" | 
 | 4091 |   ;; | 
 | 4092 | esac | 
 | 4093 | fi | 
 | 4094 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4095 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4096 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4097 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4098 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4099 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4100 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4101 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4102 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4103 |  ;; | 
 | 4104 |         esac | 
 | 4105 | 	if test "$CXX" = "notfound" | 
 | 4106 | 	then | 
 | 4107 | 		CXX="" | 
 | 4108 | 	fi | 
 | 4109 | fi | 
 | 4110 | if test -z "$CXX" | 
 | 4111 | then | 
 | 4112 | 	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4113 | do | 
 | 4114 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4115 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4117 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4118 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4119 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4120 | else | 
 | 4121 |   if test -n "$CXX"; then | 
 | 4122 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 4123 | else | 
 | 4124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4125 | for as_dir in $PATH | 
 | 4126 | do | 
 | 4127 |   IFS=$as_save_IFS | 
 | 4128 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4129 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4130 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4131 |     ac_cv_prog_CXX="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4132 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4133 |     break 2 | 
 | 4134 |   fi | 
 | 4135 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4136 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4137 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4138 |  | 
 | 4139 | fi | 
 | 4140 | fi | 
 | 4141 | CXX=$ac_cv_prog_CXX | 
 | 4142 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4143 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4144 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4145 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4146 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4147 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4148 | fi | 
 | 4149 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4150 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4151 |   test -n "$CXX" && break | 
 | 4152 | done | 
 | 4153 | test -n "$CXX" || CXX="notfound" | 
 | 4154 |  | 
 | 4155 | 	if test "$CXX" = "notfound" | 
 | 4156 | 	then | 
 | 4157 | 		CXX="" | 
 | 4158 | 	fi | 
 | 4159 | fi | 
 | 4160 | if test "$preset_cxx" != "$CXX" | 
 | 4161 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4162 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4163 |  | 
 | 4164 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4165 |   If this is not intended, then set CXX on the configure command line. | 
 | 4166 |   " >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4167 | $as_echo "$as_me: WARNING: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4168 |  | 
 | 4169 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4170 |   If this is not intended, then set CXX on the configure command line. | 
 | 4171 |   " >&2;} | 
 | 4172 | fi | 
 | 4173 |  | 
 | 4174 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
 | 4176 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
 | 4177 | save_LDFLAGS="$LDFLAGS" | 
 | 4178 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4179 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4181 | /* end confdefs.h.  */ | 
 | 4182 |  | 
 | 4183 | int | 
 | 4184 | main () | 
 | 4185 | { | 
 | 4186 |  | 
 | 4187 |   ; | 
 | 4188 |   return 0; | 
 | 4189 | } | 
 | 4190 | _ACEOF | 
 | 4191 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 4192 |   NO_AS_NEEDED="-Wl,--no-as-needed" | 
 | 4193 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4194 | $as_echo "yes" >&6; } | 
 | 4195 | else | 
 | 4196 |   NO_AS_NEEDED="" | 
 | 4197 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4198 | $as_echo "no" >&6; } | 
 | 4199 | fi | 
 | 4200 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 4201 |     conftest$ac_exeext conftest.$ac_ext | 
 | 4202 | LDFLAGS="$save_LDFLAGS" | 
 | 4203 |  | 
 | 4204 |  | 
 | 4205 |  | 
 | 4206 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4207 | ac_ext=c | 
 | 4208 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4213 | $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] | 4214 | # On Suns, sometimes $CPP names a directory. | 
 | 4215 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4216 |   CPP= | 
 | 4217 | fi | 
 | 4218 | if test -z "$CPP"; then | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4219 |   if ${ac_cv_prog_CPP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4220 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4221 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4222 |       # Double quotes because CPP needs to be expanded | 
 | 4223 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4224 |     do | 
 | 4225 |       ac_preproc_ok=false | 
 | 4226 | for ac_c_preproc_warn_flag in '' yes | 
 | 4227 | do | 
 | 4228 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4229 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4230 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4231 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4232 |   # 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] | 4233 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4234 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4235 | /* end confdefs.h.  */ | 
 | 4236 | #ifdef __STDC__ | 
 | 4237 | # include <limits.h> | 
 | 4238 | #else | 
 | 4239 | # include <assert.h> | 
 | 4240 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4241 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4242 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4243 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4244 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4245 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4246 |   # Broken: fails on valid input. | 
 | 4247 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4248 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4249 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4250 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4251 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4252 |   # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4253 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4254 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4255 | #include <ac_nonexistent.h> | 
 | 4256 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4257 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4258 |   # Broken: success on invalid input. | 
 | 4259 | continue | 
 | 4260 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4261 |   # Passes both tests. | 
 | 4262 | ac_preproc_ok=: | 
 | 4263 | break | 
 | 4264 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4265 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4266 |  | 
 | 4267 | done | 
 | 4268 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4269 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4270 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4271 |   break | 
 | 4272 | fi | 
 | 4273 |  | 
 | 4274 |     done | 
 | 4275 |     ac_cv_prog_CPP=$CPP | 
 | 4276 |  | 
 | 4277 | fi | 
 | 4278 |   CPP=$ac_cv_prog_CPP | 
 | 4279 | else | 
 | 4280 |   ac_cv_prog_CPP=$CPP | 
 | 4281 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4283 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4284 | ac_preproc_ok=false | 
 | 4285 | for ac_c_preproc_warn_flag in '' yes | 
 | 4286 | do | 
 | 4287 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4288 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4289 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4290 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4291 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4292 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4293 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4294 | /* end confdefs.h.  */ | 
 | 4295 | #ifdef __STDC__ | 
 | 4296 | # include <limits.h> | 
 | 4297 | #else | 
 | 4298 | # include <assert.h> | 
 | 4299 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4300 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4302 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4303 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4304 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4305 |   # Broken: fails on valid input. | 
 | 4306 | continue | 
 | 4307 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4308 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4309 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4310 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4311 |   # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4312 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4313 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4314 | #include <ac_nonexistent.h> | 
 | 4315 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4316 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4317 |   # Broken: success on invalid input. | 
 | 4318 | continue | 
 | 4319 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4320 |   # Passes both tests. | 
 | 4321 | ac_preproc_ok=: | 
 | 4322 | break | 
 | 4323 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4324 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4325 |  | 
 | 4326 | done | 
 | 4327 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4328 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4329 | if $ac_preproc_ok; then : | 
 | 4330 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4331 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4332 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4333 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4334 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4335 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4336 | fi | 
 | 4337 |  | 
 | 4338 | ac_ext=c | 
 | 4339 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4340 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4341 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4342 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4343 |  | 
 | 4344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4346 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4347 | if ${ac_cv_path_GREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4348 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4349 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4350 |   if test -z "$GREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4351 |   ac_path_GREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4352 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4353 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4354 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4355 | do | 
 | 4356 |   IFS=$as_save_IFS | 
 | 4357 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4358 |     for ac_prog in grep ggrep; do | 
 | 4359 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4360 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4361 |       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
 | 4362 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4363 |   # Check for GNU $ac_path_GREP | 
 | 4364 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4365 | *GNU*) | 
 | 4366 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4367 | *) | 
 | 4368 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4369 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4370 |   while : | 
 | 4371 |   do | 
 | 4372 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4373 |     mv "conftest.tmp" "conftest.in" | 
 | 4374 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4375 |     $as_echo 'GREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4376 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4377 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4378 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4379 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4380 |       # Best one so far, save it but keep looking for a better one | 
 | 4381 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4382 |       ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4383 |     fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4384 |     # 10*(2^10) chars as input seems more than enough | 
 | 4385 |     test $ac_count -gt 10 && break | 
 | 4386 |   done | 
 | 4387 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4388 | esac | 
 | 4389 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4390 |       $ac_path_GREP_found && break 3 | 
 | 4391 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4392 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4393 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4394 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4395 |   if test -z "$ac_cv_path_GREP"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4396 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4397 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4398 | else | 
 | 4399 |   ac_cv_path_GREP=$GREP | 
 | 4400 | fi | 
 | 4401 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4402 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4404 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4405 |  GREP="$ac_cv_path_GREP" | 
 | 4406 |  | 
 | 4407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 4409 | $as_echo_n "checking for egrep... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4410 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4411 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4412 | else | 
 | 4413 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 4414 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 4415 |    else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4416 |      if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4417 |   ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4418 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4419 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4420 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4421 | do | 
 | 4422 |   IFS=$as_save_IFS | 
 | 4423 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4424 |     for ac_prog in egrep; do | 
 | 4425 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4426 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4427 |       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
 | 4428 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4429 |   # Check for GNU $ac_path_EGREP | 
 | 4430 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 4431 | *GNU*) | 
 | 4432 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 4433 | *) | 
 | 4434 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4435 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4436 |   while : | 
 | 4437 |   do | 
 | 4438 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4439 |     mv "conftest.tmp" "conftest.in" | 
 | 4440 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4441 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4442 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4443 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4444 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4445 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 4446 |       # Best one so far, save it but keep looking for a better one | 
 | 4447 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 4448 |       ac_path_EGREP_max=$ac_count | 
 | 4449 |     fi | 
 | 4450 |     # 10*(2^10) chars as input seems more than enough | 
 | 4451 |     test $ac_count -gt 10 && break | 
 | 4452 |   done | 
 | 4453 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4454 | esac | 
 | 4455 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4456 |       $ac_path_EGREP_found && break 3 | 
 | 4457 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4458 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4459 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4460 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4461 |   if test -z "$ac_cv_path_EGREP"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4462 |     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4463 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4464 | else | 
 | 4465 |   ac_cv_path_EGREP=$EGREP | 
 | 4466 | fi | 
 | 4467 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4468 |    fi | 
 | 4469 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 4471 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4472 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4473 |  | 
 | 4474 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 4476 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4477 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4478 |   $as_echo_n "(cached) " >&6 | 
 | 4479 | else | 
 | 4480 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4481 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4482 | #include <stdlib.h> | 
 | 4483 | #include <stdarg.h> | 
 | 4484 | #include <string.h> | 
 | 4485 | #include <float.h> | 
 | 4486 |  | 
 | 4487 | int | 
 | 4488 | main () | 
 | 4489 | { | 
 | 4490 |  | 
 | 4491 |   ; | 
 | 4492 |   return 0; | 
 | 4493 | } | 
 | 4494 | _ACEOF | 
 | 4495 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4496 |   ac_cv_header_stdc=yes | 
 | 4497 | else | 
 | 4498 |   ac_cv_header_stdc=no | 
 | 4499 | fi | 
 | 4500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4501 |  | 
 | 4502 | if test $ac_cv_header_stdc = yes; then | 
 | 4503 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4504 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4505 | /* end confdefs.h.  */ | 
 | 4506 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4507 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4508 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4510 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4511 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4512 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4513 |   ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4514 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 4515 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4516 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4517 | fi | 
 | 4518 |  | 
 | 4519 | if test $ac_cv_header_stdc = yes; then | 
 | 4520 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4521 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4522 | /* end confdefs.h.  */ | 
 | 4523 | #include <stdlib.h> | 
 | 4524 |  | 
 | 4525 | _ACEOF | 
 | 4526 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4527 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 4528 |  | 
 | 4529 | else | 
 | 4530 |   ac_cv_header_stdc=no | 
 | 4531 | fi | 
 | 4532 | rm -f conftest* | 
 | 4533 |  | 
 | 4534 | fi | 
 | 4535 |  | 
 | 4536 | if test $ac_cv_header_stdc = yes; then | 
 | 4537 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4538 |   if test "$cross_compiling" = yes; then : | 
 | 4539 |   : | 
 | 4540 | else | 
 | 4541 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4542 | /* end confdefs.h.  */ | 
 | 4543 | #include <ctype.h> | 
 | 4544 | #include <stdlib.h> | 
 | 4545 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4546 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4547 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4548 | #else | 
 | 4549 | # define ISLOWER(c) \ | 
 | 4550 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 4551 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 4552 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 4553 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 4554 | #endif | 
 | 4555 |  | 
 | 4556 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 4557 | int | 
 | 4558 | main () | 
 | 4559 | { | 
 | 4560 |   int i; | 
 | 4561 |   for (i = 0; i < 256; i++) | 
 | 4562 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 4563 | 	|| toupper (i) != TOUPPER (i)) | 
 | 4564 |       return 2; | 
 | 4565 |   return 0; | 
 | 4566 | } | 
 | 4567 | _ACEOF | 
 | 4568 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 4569 |  | 
 | 4570 | else | 
 | 4571 |   ac_cv_header_stdc=no | 
 | 4572 | fi | 
 | 4573 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 4574 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 4575 | fi | 
 | 4576 |  | 
 | 4577 | fi | 
 | 4578 | fi | 
 | 4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 4580 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 4581 | if test $ac_cv_header_stdc = yes; then | 
 | 4582 |  | 
 | 4583 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 4584 |  | 
 | 4585 | fi | 
 | 4586 |  | 
 | 4587 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 4588 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 4589 | 		  inttypes.h stdint.h unistd.h | 
 | 4590 | do : | 
 | 4591 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 4592 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 4593 | " | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4594 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4595 |   cat >>confdefs.h <<_ACEOF | 
 | 4596 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4597 | _ACEOF | 
 | 4598 |  | 
 | 4599 | fi | 
 | 4600 |  | 
 | 4601 | done | 
 | 4602 |  | 
 | 4603 |  | 
 | 4604 |  | 
 | 4605 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4606 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4607 |   MINIX=yes | 
 | 4608 | else | 
 | 4609 |   MINIX= | 
 | 4610 | fi | 
 | 4611 |  | 
 | 4612 |  | 
 | 4613 |   if test "$MINIX" = yes; then | 
 | 4614 |  | 
 | 4615 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 4616 |  | 
 | 4617 |  | 
 | 4618 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 4619 |  | 
 | 4620 |  | 
 | 4621 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 4622 |  | 
 | 4623 |   fi | 
 | 4624 |  | 
 | 4625 |  | 
 | 4626 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 4627 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4628 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4629 |   $as_echo_n "(cached) " >&6 | 
 | 4630 | else | 
 | 4631 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4632 | /* end confdefs.h.  */ | 
 | 4633 |  | 
 | 4634 | #	  define __EXTENSIONS__ 1 | 
 | 4635 | 	  $ac_includes_default | 
 | 4636 | int | 
 | 4637 | main () | 
 | 4638 | { | 
 | 4639 |  | 
 | 4640 |   ; | 
 | 4641 |   return 0; | 
 | 4642 | } | 
 | 4643 | _ACEOF | 
 | 4644 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4645 |   ac_cv_safe_to_define___extensions__=yes | 
 | 4646 | else | 
 | 4647 |   ac_cv_safe_to_define___extensions__=no | 
 | 4648 | fi | 
 | 4649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4650 | fi | 
 | 4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 4652 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 4653 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 4654 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 4655 |  | 
 | 4656 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 4657 |  | 
 | 4658 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 4659 |  | 
 | 4660 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 4661 |  | 
 | 4662 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 4663 |  | 
 | 4664 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4665 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4666 | # Check for unsupported systems | 
 | 4667 | case $ac_sys_system/$ac_sys_release in | 
 | 4668 | atheos*|Linux*/1*) | 
 | 4669 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 4670 |    echo See README for details. | 
 | 4671 |    exit 1;; | 
 | 4672 | esac | 
 | 4673 |  | 
 | 4674 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 4676 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4677 |  | 
 | 4678 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4679 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4680 |   withval=$with_suffix; | 
 | 4681 | 	case $withval in | 
 | 4682 | 	no)	EXEEXT=;; | 
 | 4683 | 	yes)	EXEEXT=.exe;; | 
 | 4684 | 	*)	EXEEXT=$withval;; | 
 | 4685 | 	esac | 
 | 4686 | fi | 
 | 4687 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 4689 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4690 |  | 
 | 4691 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 4692 | # case we give a warning if no ext is given | 
 | 4693 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 4695 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4696 | if test ! -d CaseSensitiveTestDir; then | 
 | 4697 | mkdir CaseSensitiveTestDir | 
 | 4698 | fi | 
 | 4699 |  | 
 | 4700 | if test -d casesensitivetestdir | 
 | 4701 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4702 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4703 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4704 |     BUILDEXEEXT=.exe | 
 | 4705 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4706 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4707 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4708 | 	BUILDEXEEXT=$EXEEXT | 
 | 4709 | fi | 
 | 4710 | rmdir CaseSensitiveTestDir | 
 | 4711 |  | 
 | 4712 | case $MACHDEP in | 
 | 4713 | bsdos*) | 
 | 4714 |     case $CC in | 
 | 4715 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 4716 |     esac;; | 
 | 4717 | esac | 
 | 4718 |  | 
 | 4719 | case $ac_sys_system in | 
 | 4720 | hp*|HP*) | 
 | 4721 |     case $CC in | 
 | 4722 |     cc|*/cc) CC="$CC -Ae";; | 
 | 4723 |     esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4724 | esac | 
 | 4725 |  | 
 | 4726 |  | 
 | 4727 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 4729 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4730 | if test -z "$LIBRARY" | 
 | 4731 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 4732 | 	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4733 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 4735 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4736 |  | 
 | 4737 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 4738 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 4739 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 4740 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 4741 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 4742 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 4743 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 4744 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 4745 | # | 
 | 4746 | # RUNSHARED is used to run shared python without installed libraries | 
 | 4747 | # | 
 | 4748 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 4749 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4750 | # | 
 | 4751 | # LDVERSION is the shared library version number, normally the Python version | 
 | 4752 | # with the ABI build flags appended. | 
 | 4753 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4754 |  | 
 | 4755 |  | 
 | 4756 |  | 
 | 4757 |  | 
 | 4758 |  | 
 | 4759 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4760 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4761 | LDLIBRARY="$LIBRARY" | 
 | 4762 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 4763 | INSTSONAME='$(LDLIBRARY)' | 
 | 4764 | DLLLIBRARY='' | 
 | 4765 | LDLIBRARYDIR='' | 
 | 4766 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 4767 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4768 |  | 
 | 4769 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 4770 | # If CXX is set, and if it is needed to link a main function that was | 
 | 4771 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 4772 | # python might then depend on the C++ runtime | 
 | 4773 | # This is altered for AIX in order to build the export list before | 
 | 4774 | # linking. | 
 | 4775 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 4777 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4778 | if test -z "$LINKCC" | 
 | 4779 | then | 
 | 4780 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 4781 | 	case $ac_sys_system in | 
 | 4782 | 	AIX*) | 
 | 4783 | 	   exp_extra="\"\"" | 
 | 4784 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 4785 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 4786 | 	       exp_extra="." | 
 | 4787 | 	   fi | 
 | 4788 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4789 | 	QNX*) | 
 | 4790 | 	   # qcc must be used because the other compilers do not | 
 | 4791 | 	   # support -N. | 
 | 4792 | 	   LINKCC=qcc;; | 
 | 4793 | 	esac | 
 | 4794 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 4796 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4797 |  | 
 | 4798 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 4799 | # make sure we default having it set to "no": this is used by | 
 | 4800 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 4801 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 4802 | # in the same bahaviour as before. | 
 | 4803 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 4805 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4806 | ac_prog=ld | 
 | 4807 | if test "$GCC" = yes; then | 
 | 4808 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 4809 | fi | 
 | 4810 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 4811 |       *GNU*) | 
 | 4812 |           GNULD=yes;; | 
 | 4813 |       *) | 
 | 4814 |           GNULD=no;; | 
 | 4815 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 4817 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4818 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
 | 4820 | $as_echo_n "checking for inline... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 4821 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4822 |   $as_echo_n "(cached) " >&6 | 
 | 4823 | else | 
 | 4824 |   ac_cv_c_inline=no | 
 | 4825 | for ac_kw in inline __inline__ __inline; do | 
 | 4826 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4827 | /* end confdefs.h.  */ | 
 | 4828 | #ifndef __cplusplus | 
 | 4829 | typedef int foo_t; | 
 | 4830 | static $ac_kw foo_t static_foo () {return 0; } | 
 | 4831 | $ac_kw foo_t foo () {return 0; } | 
 | 4832 | #endif | 
 | 4833 |  | 
 | 4834 | _ACEOF | 
 | 4835 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4836 |   ac_cv_c_inline=$ac_kw | 
 | 4837 | fi | 
 | 4838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4839 |   test "$ac_cv_c_inline" != no && break | 
 | 4840 | done | 
 | 4841 |  | 
 | 4842 | fi | 
 | 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
 | 4844 | $as_echo "$ac_cv_c_inline" >&6; } | 
 | 4845 |  | 
 | 4846 | case $ac_cv_c_inline in | 
 | 4847 |   inline | yes) ;; | 
 | 4848 |   *) | 
 | 4849 |     case $ac_cv_c_inline in | 
 | 4850 |       no) ac_val=;; | 
 | 4851 |       *) ac_val=$ac_cv_c_inline;; | 
 | 4852 |     esac | 
 | 4853 |     cat >>confdefs.h <<_ACEOF | 
 | 4854 | #ifndef __cplusplus | 
 | 4855 | #define inline $ac_val | 
 | 4856 | #endif | 
 | 4857 | _ACEOF | 
 | 4858 |     ;; | 
 | 4859 | esac | 
 | 4860 |  | 
 | 4861 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 4862 |  | 
 | 4863 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4864 |  | 
 | 4865 |  | 
 | 4866 | fi | 
 | 4867 |  | 
 | 4868 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 4870 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4871 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4872 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4873 |   enableval=$enable_shared; | 
 | 4874 | fi | 
 | 4875 |  | 
 | 4876 |  | 
 | 4877 | if test -z "$enable_shared" | 
 | 4878 | then | 
 | 4879 |   case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 4880 |   CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4881 |     enable_shared="yes";; | 
 | 4882 |   *) | 
 | 4883 |     enable_shared="no";; | 
 | 4884 |   esac | 
 | 4885 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 4887 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4888 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 4890 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4891 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4892 | if test "${enable_profiling+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4893 |   enableval=$enable_profiling; ac_save_cc="$CC" | 
 | 4894 |  CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4895 |  if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4896 |   ac_enable_profiling="no" | 
 | 4897 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4898 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4899 | /* end confdefs.h.  */ | 
 | 4900 | int main() { return 0; } | 
 | 4901 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4902 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4903 |   ac_enable_profiling="yes" | 
 | 4904 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4905 |   ac_enable_profiling="no" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4906 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4907 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 4908 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4909 | fi | 
 | 4910 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4911 |  CC="$ac_save_cc" | 
 | 4912 | fi | 
 | 4913 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 | 
 | 4915 | $as_echo "$ac_enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4916 |  | 
 | 4917 | case "$ac_enable_profiling" in | 
 | 4918 |     "yes") | 
 | 4919 | 	BASECFLAGS="-pg $BASECFLAGS" | 
 | 4920 | 	LDFLAGS="-pg $LDFLAGS" | 
 | 4921 |     ;; | 
 | 4922 | esac | 
 | 4923 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 4925 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4926 |  | 
 | 4927 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 4928 | # library that we build, but we do not want to link against it (we | 
 | 4929 | # will find it with a -framework option). For this reason there is an | 
 | 4930 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 4931 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 4932 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 4933 | if test "$enable_framework" | 
 | 4934 | then | 
 | 4935 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 4936 |   RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" | 
 | 4937 |   BLDLIBRARY='' | 
 | 4938 | else | 
 | 4939 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 4940 | fi | 
 | 4941 |  | 
 | 4942 | # Other platforms follow | 
 | 4943 | if test $enable_shared = "yes"; then | 
 | 4944 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4945 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4946 |  | 
 | 4947 |   case $ac_sys_system in | 
 | 4948 |     CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4949 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
 | 4950 |           DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4951 |           ;; | 
 | 4952 |     SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4953 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 4954 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4955 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4956 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4957 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4958 | 	  then | 
 | 4959 | 	      PY3LIBRARY=libpython3.so | 
 | 4960 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4961 |           ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 4962 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4963 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 4964 | 	  BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4965 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4966 | 	  case $ac_sys_system in | 
 | 4967 | 	      FreeBSD*) | 
 | 4968 | 		SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
 | 4969 | 		;; | 
 | 4970 | 	  esac | 
 | 4971 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4972 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4973 |           then | 
 | 4974 | 	      PY3LIBRARY=libpython3.so | 
 | 4975 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4976 | 	  ;; | 
 | 4977 |     hp*|HP*) | 
 | 4978 | 	  case `uname -m` in | 
 | 4979 | 		ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4980 | 			LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4981 | 			;; | 
 | 4982 | 		*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4983 | 			LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4984 | 			;; | 
 | 4985 | 	  esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4986 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4987 | 	  RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} | 
 | 4988 | 	  ;; | 
 | 4989 |     OSF*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4990 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 4991 | 	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4992 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4993 | 	  ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4994 |     Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4995 |     	LDLIBRARY='libpython$(LDVERSION).dylib' | 
 | 4996 | 	BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4997 | 	RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' | 
 | 4998 | 	;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 4999 |     AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5000 | 	LDLIBRARY='libpython$(LDVERSION).so' | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5001 | 	RUNSHARED=LIBPATH=`pwd`:${LIBPATH} | 
 | 5002 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5003 |  | 
 | 5004 |   esac | 
 | 5005 | else # shared is disabled | 
 | 5006 |   case $ac_sys_system in | 
 | 5007 |     CYGWIN*) | 
 | 5008 |           BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5009 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5010 |           ;; | 
 | 5011 |   esac | 
 | 5012 | fi | 
 | 5013 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 5015 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5016 |  | 
 | 5017 | if test -n "$ac_tool_prefix"; then | 
 | 5018 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5019 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5021 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5022 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5023 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5024 | else | 
 | 5025 |   if test -n "$RANLIB"; then | 
 | 5026 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5027 | else | 
 | 5028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5029 | for as_dir in $PATH | 
 | 5030 | do | 
 | 5031 |   IFS=$as_save_IFS | 
 | 5032 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5033 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5034 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5035 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5036 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5037 |     break 2 | 
 | 5038 |   fi | 
 | 5039 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5040 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5041 | IFS=$as_save_IFS | 
 | 5042 |  | 
 | 5043 | fi | 
 | 5044 | fi | 
 | 5045 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5046 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5047 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 5048 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5049 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5050 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5051 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5052 | fi | 
 | 5053 |  | 
 | 5054 |  | 
 | 5055 | fi | 
 | 5056 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5057 |   ac_ct_RANLIB=$RANLIB | 
 | 5058 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5059 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5061 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5062 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5063 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5064 | else | 
 | 5065 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5066 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5067 | else | 
 | 5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5069 | for as_dir in $PATH | 
 | 5070 | do | 
 | 5071 |   IFS=$as_save_IFS | 
 | 5072 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5073 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5074 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5075 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5076 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5077 |     break 2 | 
 | 5078 |   fi | 
 | 5079 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5080 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5081 | IFS=$as_save_IFS | 
 | 5082 |  | 
 | 5083 | fi | 
 | 5084 | fi | 
 | 5085 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5086 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5087 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 5088 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5089 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5090 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5091 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5092 | fi | 
 | 5093 |  | 
 | 5094 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 5095 |     RANLIB=":" | 
 | 5096 |   else | 
 | 5097 |     case $cross_compiling:$ac_tool_warned in | 
 | 5098 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5100 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5101 | ac_tool_warned=yes ;; | 
 | 5102 | esac | 
 | 5103 |     RANLIB=$ac_ct_RANLIB | 
 | 5104 |   fi | 
 | 5105 | else | 
 | 5106 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5107 | fi | 
 | 5108 |  | 
 | 5109 |  | 
 | 5110 | for ac_prog in ar aal | 
 | 5111 | do | 
 | 5112 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5113 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5115 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5116 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5117 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5118 | else | 
 | 5119 |   if test -n "$AR"; then | 
 | 5120 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5121 | else | 
 | 5122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5123 | for as_dir in $PATH | 
 | 5124 | do | 
 | 5125 |   IFS=$as_save_IFS | 
 | 5126 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5127 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5128 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5129 |     ac_cv_prog_AR="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5130 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5131 |     break 2 | 
 | 5132 |   fi | 
 | 5133 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5134 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5135 | IFS=$as_save_IFS | 
 | 5136 |  | 
 | 5137 | fi | 
 | 5138 | fi | 
 | 5139 | AR=$ac_cv_prog_AR | 
 | 5140 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5141 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 5142 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5143 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5144 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5145 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5146 | fi | 
 | 5147 |  | 
 | 5148 |  | 
 | 5149 |   test -n "$AR" && break | 
 | 5150 | done | 
 | 5151 | test -n "$AR" || AR="ar" | 
 | 5152 |  | 
 | 5153 |  | 
 | 5154 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 5155 |  | 
 | 5156 | if test -z "$ARFLAGS" | 
 | 5157 | then | 
 | 5158 |         ARFLAGS="rc" | 
 | 5159 | fi | 
 | 5160 |  | 
 | 5161 |  | 
 | 5162 | # Extract the first word of "svnversion", so it can be a program name with args. | 
 | 5163 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5165 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5166 | if ${ac_cv_prog_SVNVERSION+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5167 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5168 | else | 
 | 5169 |   if test -n "$SVNVERSION"; then | 
 | 5170 |   ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
 | 5171 | else | 
 | 5172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5173 | for as_dir in $PATH | 
 | 5174 | do | 
 | 5175 |   IFS=$as_save_IFS | 
 | 5176 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5177 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5178 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5179 |     ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5180 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5181 |     break 2 | 
 | 5182 |   fi | 
 | 5183 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5184 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5185 | IFS=$as_save_IFS | 
 | 5186 |  | 
 | 5187 |   test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
 | 5188 | fi | 
 | 5189 | fi | 
 | 5190 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
 | 5191 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5192 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
 | 5193 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5194 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5195 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5196 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5197 | fi | 
 | 5198 |  | 
 | 5199 |  | 
 | 5200 | if test $SVNVERSION = found | 
 | 5201 | then | 
 | 5202 | 	SVNVERSION="svnversion \$(srcdir)" | 
 | 5203 | else | 
 | 5204 | 	SVNVERSION="echo Unversioned directory" | 
 | 5205 | fi | 
 | 5206 |  | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5207 |  | 
 | 5208 |  | 
 | 5209 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5210 |  | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5211 | if test -e $srcdir/.hg/dirstate | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5212 | then | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5213 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 5214 | set dummy hg; ac_word=$2 | 
 | 5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5216 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5217 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5218 |   $as_echo_n "(cached) " >&6 | 
 | 5219 | else | 
 | 5220 |   if test -n "$HAS_HG"; then | 
 | 5221 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 5222 | else | 
 | 5223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5224 | for as_dir in $PATH | 
 | 5225 | do | 
 | 5226 |   IFS=$as_save_IFS | 
 | 5227 |   test -z "$as_dir" && as_dir=. | 
 | 5228 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5229 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5230 |     ac_cv_prog_HAS_HG="found" | 
 | 5231 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5232 |     break 2 | 
 | 5233 |   fi | 
 | 5234 | done | 
 | 5235 |   done | 
 | 5236 | IFS=$as_save_IFS | 
 | 5237 |  | 
 | 5238 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 5239 | fi | 
 | 5240 | fi | 
 | 5241 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 5242 | if test -n "$HAS_HG"; then | 
 | 5243 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 5244 | $as_echo "$HAS_HG" >&6; } | 
 | 5245 | else | 
 | 5246 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5247 | $as_echo "no" >&6; } | 
 | 5248 | fi | 
 | 5249 |  | 
 | 5250 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5251 | else | 
 | 5252 | HAS_HG=no-repository | 
 | 5253 | fi | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5254 | if test $HAS_HG = found | 
 | 5255 | then | 
 | 5256 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 5257 |     HGTAG="hg id -t \$(srcdir)" | 
 | 5258 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 5259 | else | 
 | 5260 |     HGVERSION="" | 
 | 5261 |     HGTAG="" | 
 | 5262 |     HGBRANCH="" | 
 | 5263 | fi | 
 | 5264 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5265 |  | 
 | 5266 | DISABLE_ASDLGEN="" | 
 | 5267 | # Extract the first word of "python", so it can be a program name with args. | 
 | 5268 | set dummy python; ac_word=$2 | 
 | 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5270 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5271 | if ${ac_cv_prog_HAS_PYTHON+:} false; then : | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5272 |   $as_echo_n "(cached) " >&6 | 
 | 5273 | else | 
 | 5274 |   if test -n "$HAS_PYTHON"; then | 
 | 5275 |   ac_cv_prog_HAS_PYTHON="$HAS_PYTHON" # Let the user override the test. | 
 | 5276 | else | 
 | 5277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5278 | for as_dir in $PATH | 
 | 5279 | do | 
 | 5280 |   IFS=$as_save_IFS | 
 | 5281 |   test -z "$as_dir" && as_dir=. | 
 | 5282 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5283 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5284 |     ac_cv_prog_HAS_PYTHON="found" | 
 | 5285 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5286 |     break 2 | 
 | 5287 |   fi | 
 | 5288 | done | 
 | 5289 |   done | 
 | 5290 | IFS=$as_save_IFS | 
 | 5291 |  | 
 | 5292 |   test -z "$ac_cv_prog_HAS_PYTHON" && ac_cv_prog_HAS_PYTHON="not-found" | 
 | 5293 | fi | 
 | 5294 | fi | 
 | 5295 | HAS_PYTHON=$ac_cv_prog_HAS_PYTHON | 
 | 5296 | if test -n "$HAS_PYTHON"; then | 
 | 5297 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PYTHON" >&5 | 
 | 5298 | $as_echo "$HAS_PYTHON" >&6; } | 
 | 5299 | else | 
 | 5300 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5301 | $as_echo "no" >&6; } | 
 | 5302 | fi | 
 | 5303 |  | 
 | 5304 |  | 
 | 5305 | if test $HAS_HG != found -o $HAS_PYTHON != found | 
 | 5306 | then | 
 | 5307 |     DISABLE_ASDLGEN="@echo hg: $HAS_HG, python: $HAS_PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" | 
 | 5308 | fi | 
 | 5309 |  | 
 | 5310 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5311 | case $MACHDEP in | 
 | 5312 | bsdos*|hp*|HP*) | 
 | 5313 | 	# install -d does not work on BSDI or HP-UX | 
 | 5314 | 	if test -z "$INSTALL" | 
 | 5315 | 	then | 
 | 5316 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 5317 | 	fi | 
 | 5318 | esac | 
 | 5319 | ac_aux_dir= | 
 | 5320 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5321 |   if test -f "$ac_dir/install-sh"; then | 
 | 5322 |     ac_aux_dir=$ac_dir | 
 | 5323 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 5324 |     break | 
 | 5325 |   elif test -f "$ac_dir/install.sh"; then | 
 | 5326 |     ac_aux_dir=$ac_dir | 
 | 5327 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 5328 |     break | 
 | 5329 |   elif test -f "$ac_dir/shtool"; then | 
 | 5330 |     ac_aux_dir=$ac_dir | 
 | 5331 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 5332 |     break | 
 | 5333 |   fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5334 | done | 
 | 5335 | if test -z "$ac_aux_dir"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5336 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5337 | fi | 
 | 5338 |  | 
 | 5339 | # These three variables are undocumented and unsupported, | 
 | 5340 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 5341 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 5342 | # whose full name contains unusual characters. | 
 | 5343 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 5344 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 5345 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 5346 |  | 
 | 5347 |  | 
 | 5348 | # Find a good install program.  We prefer a C program (faster), | 
 | 5349 | # so one script is as good as another.  But avoid the broken or | 
 | 5350 | # incompatible versions: | 
 | 5351 | # SysV /etc/install, /usr/sbin/install | 
 | 5352 | # SunOS /usr/etc/install | 
 | 5353 | # IRIX /sbin/install | 
 | 5354 | # AIX /bin/install | 
 | 5355 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 5356 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 5357 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5358 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5359 | # OS/2's system install, which has a completely different semantic | 
 | 5360 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5361 | # Reject install programs that cannot install multiple files. | 
 | 5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 5363 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5364 | if test -z "$INSTALL"; then | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5365 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5366 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5367 | else | 
 | 5368 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5369 | for as_dir in $PATH | 
 | 5370 | do | 
 | 5371 |   IFS=$as_save_IFS | 
 | 5372 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5373 |     # Account for people who put trailing slashes in PATH elements. | 
 | 5374 | case $as_dir/ in #(( | 
 | 5375 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5376 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5377 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5378 |   /usr/ucb/* ) ;; | 
 | 5379 |   *) | 
 | 5380 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 5381 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 5382 |     # by default. | 
 | 5383 |     for ac_prog in ginstall scoinst install; do | 
 | 5384 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5385 | 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
 | 5386 | 	  if test $ac_prog = install && | 
 | 5387 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5388 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 5389 | 	    : | 
 | 5390 | 	  elif test $ac_prog = install && | 
 | 5391 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5392 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 5393 | 	    : | 
 | 5394 | 	  else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5395 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 5396 | 	    echo one > conftest.one | 
 | 5397 | 	    echo two > conftest.two | 
 | 5398 | 	    mkdir conftest.dir | 
 | 5399 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 5400 | 	      test -s conftest.one && test -s conftest.two && | 
 | 5401 | 	      test -s conftest.dir/conftest.one && | 
 | 5402 | 	      test -s conftest.dir/conftest.two | 
 | 5403 | 	    then | 
 | 5404 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 5405 | 	      break 3 | 
 | 5406 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5407 | 	  fi | 
 | 5408 | 	fi | 
 | 5409 |       done | 
 | 5410 |     done | 
 | 5411 |     ;; | 
 | 5412 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5413 |  | 
 | 5414 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5415 | IFS=$as_save_IFS | 
 | 5416 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5417 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5418 |  | 
 | 5419 | fi | 
 | 5420 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5421 |     INSTALL=$ac_cv_path_install | 
 | 5422 |   else | 
 | 5423 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5424 |     # value for INSTALL within a source directory, because that will | 
 | 5425 |     # break other packages using the cache if that directory is | 
 | 5426 |     # removed, or if the value is a relative name. | 
 | 5427 |     INSTALL=$ac_install_sh | 
 | 5428 |   fi | 
 | 5429 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 5431 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5432 |  | 
 | 5433 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5434 | # It thinks the first close brace ends the variable substitution. | 
 | 5435 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5436 |  | 
 | 5437 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 5438 |  | 
 | 5439 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5440 |  | 
 | 5441 |  | 
 | 5442 | # Not every filesystem supports hard links | 
 | 5443 |  | 
 | 5444 | if test -z "$LN" ; then | 
 | 5445 | 	case $ac_sys_system in | 
 | 5446 | 		CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5447 | 		*) LN=ln;; | 
 | 5448 | 	esac | 
 | 5449 | fi | 
 | 5450 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5451 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5452 |  | 
 | 5453 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5454 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5455 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 5457 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5458 |  | 
 | 5459 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5460 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5461 |   withval=$with_pydebug; | 
 | 5462 | if test "$withval" != no | 
 | 5463 | then | 
 | 5464 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5465 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5466 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5467 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5468 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5469 |   Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5470 |   ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5471 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5472 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5473 | fi | 
 | 5474 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5475 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5476 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5477 | fi | 
 | 5478 |  | 
 | 5479 |  | 
 | 5480 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 5481 | # merged with this chunk of code? | 
 | 5482 |  | 
 | 5483 | # Optimizer/debugger flags | 
 | 5484 | # ------------------------ | 
 | 5485 | # (The following bit of code is complicated enough - please keep things | 
 | 5486 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 5487 |  | 
 | 5488 | # There are two parallel sets of case statements below, one that checks to | 
 | 5489 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 5490 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 5491 | # user set OPT. | 
 | 5492 |  | 
 | 5493 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 5494 | # it on the command line | 
 | 5495 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 5496 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5497 | then | 
 | 5498 |     case $GCC in | 
 | 5499 |     yes) | 
 | 5500 |         if test "$CC" != 'g++' ; then | 
 | 5501 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 5502 | 	fi | 
 | 5503 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 5504 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 5505 |            WRAP="-fwrapv" | 
 | 5506 |         fi | 
 | 5507 | 	case $ac_cv_prog_cc_g in | 
 | 5508 | 	yes) | 
 | 5509 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 5510 | 		# Optimization messes up debuggers, so turn it off for | 
 | 5511 | 		# debug builds. | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 5512 | 		OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5513 | 	    else | 
 | 5514 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 5515 | 	    fi | 
 | 5516 | 	    ;; | 
 | 5517 | 	*) | 
 | 5518 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 5519 | 	    ;; | 
 | 5520 | 	esac | 
 | 5521 | 	case $ac_sys_system in | 
 | 5522 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 5523 | 	    ;; | 
 | 5524 |         esac | 
 | 5525 | 	;; | 
 | 5526 |  | 
 | 5527 |     *) | 
 | 5528 | 	OPT="-O" | 
 | 5529 | 	;; | 
 | 5530 |     esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5531 | fi | 
 | 5532 |  | 
 | 5533 |  | 
 | 5534 |  | 
 | 5535 | # The -arch flags for universal builds on OSX | 
 | 5536 | UNIVERSAL_ARCH_FLAGS= | 
 | 5537 |  | 
 | 5538 |  | 
 | 5539 | # tweak BASECFLAGS based on compiler and platform | 
 | 5540 | case $GCC in | 
 | 5541 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5542 |     # Python doesn't violate C99 aliasing rules, but older versions of | 
 | 5543 |     # GCC produce warnings for legal Python code.  Enable | 
 | 5544 |     # -fno-strict-aliasing on versions of GCC that support but produce | 
 | 5545 |     # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5546 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
 | 5547 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5548 |      ac_save_cc="$CC" | 
 | 5549 |      CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5550 |      save_CFLAGS="$CFLAGS" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5551 |      if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5552 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5553 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5554 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5555 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5556 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5557 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5558 | int | 
 | 5559 | main () | 
 | 5560 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5561 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5562 |   ; | 
 | 5563 |   return 0; | 
 | 5564 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5565 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5566 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5567 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5568 |  | 
 | 5569 | 	   CC="$ac_save_cc -fstrict-aliasing" | 
 | 5570 |            CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
 | 5571 |            cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5572 | /* end confdefs.h.  */ | 
 | 5573 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5574 | 	       void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5575 | int | 
 | 5576 | main () | 
 | 5577 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5578 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5579 |   ; | 
 | 5580 |   return 0; | 
 | 5581 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5582 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5583 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5584 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5585 |  | 
 | 5586 | 	       ac_cv_no_strict_aliasing=no | 
 | 5587 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5588 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5589 |  | 
 | 5590 |                ac_cv_no_strict_aliasing=yes | 
 | 5591 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5592 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5594 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5595 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5596 |  | 
 | 5597 | 	   ac_cv_no_strict_aliasing=no | 
 | 5598 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5599 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5601 | fi | 
 | 5602 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5603 |      CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5604 |      CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5605 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
 | 5606 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5607 |     if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5608 |     then | 
 | 5609 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 5610 |     fi | 
 | 5611 |  | 
 | 5612 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 5613 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 5614 |     # the standard. | 
 | 5615 |     case $ac_sys_machine in | 
 | 5616 |          alpha*) | 
 | 5617 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 5618 |                 ;; | 
 | 5619 |     esac | 
 | 5620 |  | 
 | 5621 |     case $ac_sys_system in | 
 | 5622 | 	SCO_SV*) | 
 | 5623 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 5624 | 	    ;; | 
 | 5625 | 	# is there any other compiler on Darwin besides gcc? | 
 | 5626 | 	Darwin*) | 
 | 5627 | 	    # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 5628 | 	    # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5629 |             if test "${CC}" = gcc | 
 | 5630 | 	    then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5631 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
 | 5632 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5633 | 		case "${UNIVERSALSDK}" in | 
 | 5634 | 		*/MacOSX10.4u.sdk) | 
 | 5635 | 			# Build using 10.4 SDK, force usage of gcc when the | 
 | 5636 | 			# compiler is gcc, otherwise the user will get very | 
 | 5637 | 			# confusing error messages when building on OSX 10.6 | 
 | 5638 | 			CC=gcc-4.0 | 
 | 5639 | 			CPP=cpp-4.0 | 
 | 5640 | 			;; | 
 | 5641 | 		esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5642 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 5643 | $as_echo "$CC" >&6; } | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5644 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5645 |  | 
 | 5646 |  | 
 | 5647 | 	    if test "${enable_universalsdk}"; then | 
 | 5648 | 		UNIVERSAL_ARCH_FLAGS="" | 
 | 5649 | 	        if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
 | 5650 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 5651 | 		   ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 5652 | 		   LIPO_32BIT_FLAGS="" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5653 | 	         elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
 | 5654 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5655 | 		   LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5656 | 		   ARCH_RUN_32BIT="true" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5657 |  | 
 | 5658 | 	         elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
 | 5659 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5660 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5661 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5662 |  | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5663 | 	         elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
 | 5664 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5665 | 		   LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5666 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5667 |  | 
 | 5668 | 	         elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
 | 5669 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5670 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5671 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5672 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5673 | 		 else | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5674 | 	           as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5675 |  | 
 | 5676 | 		 fi | 
 | 5677 |  | 
 | 5678 |  | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5679 | 		CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 5680 | 		if test "${UNIVERSALSDK}" != "/" | 
 | 5681 | 		then | 
 | 5682 | 			CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 5683 | 			LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Ronald Oussoren | 712979d | 2010-04-20 19:51:33 +0000 | [diff] [blame] | 5684 | 			CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5685 | 		fi | 
 | 5686 | 	    fi | 
 | 5687 |  | 
 | 5688 | 	    # Calculate the right deployment target for this build. | 
 | 5689 | 	    # | 
 | 5690 | 	    cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` | 
 | 5691 | 	    if test ${cur_target} '>' 10.2; then | 
 | 5692 | 		    cur_target=10.3 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5693 | 		    if test ${enable_universalsdk}; then | 
 | 5694 | 			    if test "${UNIVERSAL_ARCHS}" = "all"; then | 
 | 5695 | 				    # Ensure that the default platform for a | 
 | 5696 | 				    # 4-way universal build is OSX 10.5, | 
 | 5697 | 				    # that's the first OS release where | 
 | 5698 | 				    # 4-way builds make sense. | 
 | 5699 | 				    cur_target='10.5' | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5700 |  | 
 | 5701 | 			    elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
 | 5702 | 				    cur_target='10.5' | 
 | 5703 |  | 
 | 5704 | 			    elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
 | 5705 | 				    cur_target='10.5' | 
 | 5706 |  | 
 | 5707 | 			    elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
 | 5708 | 				    cur_target='10.5' | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5709 | 			    fi | 
 | 5710 | 		    else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 5711 | 			    if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5712 | 				    # On Intel macs default to a deployment | 
 | 5713 | 				    # target of 10.4, that's the first OSX | 
 | 5714 | 				    # release with Intel support. | 
 | 5715 | 				    cur_target="10.4" | 
 | 5716 | 			    fi | 
 | 5717 | 		    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5718 | 	    fi | 
 | 5719 | 	    CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
 | 5720 |  | 
 | 5721 | 	    # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 5722 | 	    # environment with a value that is the same as what we'll use | 
 | 5723 | 	    # in the Makefile to ensure that we'll get the same compiler | 
 | 5724 | 	    # environment during configure and build time. | 
 | 5725 | 	    MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 5726 | 	    export MACOSX_DEPLOYMENT_TARGET | 
 | 5727 | 	    EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 5728 |  | 
 | 5729 | 	    ;; | 
 | 5730 | 	OSF*) | 
 | 5731 | 	    BASECFLAGS="$BASECFLAGS -mieee" | 
 | 5732 | 	    ;; | 
 | 5733 |     esac | 
 | 5734 |     ;; | 
 | 5735 |  | 
 | 5736 | *) | 
 | 5737 |     case $ac_sys_system in | 
 | 5738 |     OpenUNIX*|UnixWare*) | 
 | 5739 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 5740 | 	;; | 
 | 5741 |     OSF*) | 
 | 5742 | 	BASECFLAGS="$BASECFLAGS -ieee -std" | 
 | 5743 |     	;; | 
 | 5744 |     SCO_SV*) | 
 | 5745 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 5746 | 	;; | 
 | 5747 |     esac | 
 | 5748 |     ;; | 
 | 5749 | esac | 
 | 5750 |  | 
 | 5751 | if test "$Py_DEBUG" = 'true'; then | 
 | 5752 |   : | 
 | 5753 | else | 
 | 5754 |   OPT="-DNDEBUG $OPT" | 
 | 5755 | fi | 
 | 5756 |  | 
 | 5757 | if test "$ac_arch_flags" | 
 | 5758 | then | 
 | 5759 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 5760 | fi | 
 | 5761 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5762 | # Check whether GCC supports PyArg_ParseTuple format | 
 | 5763 | if test "$GCC" = "yes" | 
 | 5764 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5765 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
 | 5766 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5767 |   save_CFLAGS=$CFLAGS | 
 | 5768 |   CFLAGS="$CFLAGS -Werror" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5769 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5770 | /* end confdefs.h.  */ | 
 | 5771 |  | 
 | 5772 |     void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5773 | int | 
 | 5774 | main () | 
 | 5775 | { | 
 | 5776 |  | 
 | 5777 |   ; | 
 | 5778 |   return 0; | 
 | 5779 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5780 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5781 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5782 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5783 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5784 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5785 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5786 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5787 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5788 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5789 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5790 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5791 |  | 
 | 5792 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5793 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5794 |  | 
 | 5795 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5797 |   CFLAGS=$save_CFLAGS | 
 | 5798 | fi | 
 | 5799 |  | 
 | 5800 | # On some compilers, pthreads are available without further options | 
 | 5801 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 5802 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 5803 | # So we have to see first whether pthreads are available without | 
 | 5804 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 5806 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5807 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5808 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5809 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5810 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5811 |   ac_cv_pthread_is_default=no | 
 | 5812 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5813 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5814 | /* end confdefs.h.  */ | 
 | 5815 |  | 
 | 5816 | #include <pthread.h> | 
 | 5817 |  | 
 | 5818 | void* routine(void* p){return NULL;} | 
 | 5819 |  | 
 | 5820 | int main(){ | 
 | 5821 |   pthread_t p; | 
 | 5822 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5823 |     return 1; | 
 | 5824 |   (void)pthread_detach(p); | 
 | 5825 |   return 0; | 
 | 5826 | } | 
 | 5827 |  | 
 | 5828 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5829 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5830 |  | 
 | 5831 |   ac_cv_pthread_is_default=yes | 
 | 5832 |   ac_cv_kthread=no | 
 | 5833 |   ac_cv_pthread=no | 
 | 5834 |  | 
 | 5835 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5836 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5837 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5839 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5840 | fi | 
 | 5841 |  | 
 | 5842 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5843 | fi | 
 | 5844 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 5846 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5847 |  | 
 | 5848 |  | 
 | 5849 | if test $ac_cv_pthread_is_default = yes | 
 | 5850 | then | 
 | 5851 |   ac_cv_kpthread=no | 
 | 5852 | else | 
 | 5853 | # -Kpthread, if available, provides the right #defines | 
 | 5854 | # and linker options to make pthread_create available | 
 | 5855 | # Some compilers won't report that they do not support -Kpthread, | 
 | 5856 | # so we need to run a program to see whether it really made the | 
 | 5857 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 5859 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5860 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5861 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5862 | else | 
 | 5863 |   ac_save_cc="$CC" | 
 | 5864 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5865 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5866 |   ac_cv_kpthread=no | 
 | 5867 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5868 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5869 | /* end confdefs.h.  */ | 
 | 5870 |  | 
 | 5871 | #include <pthread.h> | 
 | 5872 |  | 
 | 5873 | void* routine(void* p){return NULL;} | 
 | 5874 |  | 
 | 5875 | int main(){ | 
 | 5876 |   pthread_t p; | 
 | 5877 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5878 |     return 1; | 
 | 5879 |   (void)pthread_detach(p); | 
 | 5880 |   return 0; | 
 | 5881 | } | 
 | 5882 |  | 
 | 5883 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5884 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5885 |   ac_cv_kpthread=yes | 
 | 5886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5887 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5888 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5890 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5891 | fi | 
 | 5892 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5893 | CC="$ac_save_cc" | 
 | 5894 | fi | 
 | 5895 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 5897 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5898 | fi | 
 | 5899 |  | 
 | 5900 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 5901 | then | 
 | 5902 | # -Kthread, if available, provides the right #defines | 
 | 5903 | # and linker options to make pthread_create available | 
 | 5904 | # Some compilers won't report that they do not support -Kthread, | 
 | 5905 | # so we need to run a program to see whether it really made the | 
 | 5906 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 5908 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5909 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5910 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5911 | else | 
 | 5912 |   ac_save_cc="$CC" | 
 | 5913 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5914 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5915 |   ac_cv_kthread=no | 
 | 5916 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5917 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5918 | /* end confdefs.h.  */ | 
 | 5919 |  | 
 | 5920 | #include <pthread.h> | 
 | 5921 |  | 
 | 5922 | void* routine(void* p){return NULL;} | 
 | 5923 |  | 
 | 5924 | int main(){ | 
 | 5925 |   pthread_t p; | 
 | 5926 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5927 |     return 1; | 
 | 5928 |   (void)pthread_detach(p); | 
 | 5929 |   return 0; | 
 | 5930 | } | 
 | 5931 |  | 
 | 5932 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5933 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5934 |   ac_cv_kthread=yes | 
 | 5935 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5936 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5937 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5938 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5939 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5940 | fi | 
 | 5941 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5942 | CC="$ac_save_cc" | 
 | 5943 | fi | 
 | 5944 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 5946 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5947 | fi | 
 | 5948 |  | 
 | 5949 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 5950 | then | 
 | 5951 | # -pthread, if available, provides the right #defines | 
 | 5952 | # and linker options to make pthread_create available | 
 | 5953 | # Some compilers won't report that they do not support -pthread, | 
 | 5954 | # so we need to run a program to see whether it really made the | 
 | 5955 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 5957 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5958 | if ${ac_cv_thread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5959 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5960 | else | 
 | 5961 |   ac_save_cc="$CC" | 
 | 5962 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5963 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5964 |   ac_cv_pthread=no | 
 | 5965 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5966 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5967 | /* end confdefs.h.  */ | 
 | 5968 |  | 
 | 5969 | #include <pthread.h> | 
 | 5970 |  | 
 | 5971 | void* routine(void* p){return NULL;} | 
 | 5972 |  | 
 | 5973 | int main(){ | 
 | 5974 |   pthread_t p; | 
 | 5975 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5976 |     return 1; | 
 | 5977 |   (void)pthread_detach(p); | 
 | 5978 |   return 0; | 
 | 5979 | } | 
 | 5980 |  | 
 | 5981 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5982 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5983 |   ac_cv_pthread=yes | 
 | 5984 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5985 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5986 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5987 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5988 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5989 | fi | 
 | 5990 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5991 | CC="$ac_save_cc" | 
 | 5992 | fi | 
 | 5993 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 5995 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5996 | fi | 
 | 5997 |  | 
 | 5998 | # If we have set a CC compiler flag for thread support then | 
 | 5999 | # check if it works for CXX, too. | 
 | 6000 | ac_cv_cxx_thread=no | 
 | 6001 | if test ! -z "$CXX" | 
 | 6002 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 6004 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6005 | ac_save_cxx="$CXX" | 
 | 6006 |  | 
 | 6007 | if test "$ac_cv_kpthread" = "yes" | 
 | 6008 | then | 
 | 6009 |   CXX="$CXX -Kpthread" | 
 | 6010 |   ac_cv_cxx_thread=yes | 
 | 6011 | elif test "$ac_cv_kthread" = "yes" | 
 | 6012 | then | 
 | 6013 |   CXX="$CXX -Kthread" | 
 | 6014 |   ac_cv_cxx_thread=yes | 
 | 6015 | elif test "$ac_cv_pthread" = "yes" | 
 | 6016 | then | 
 | 6017 |   CXX="$CXX -pthread" | 
 | 6018 |   ac_cv_cxx_thread=yes | 
 | 6019 | fi | 
 | 6020 |  | 
 | 6021 | if test $ac_cv_cxx_thread = yes | 
 | 6022 | then | 
 | 6023 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 6024 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 6025 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 6026 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 6027 |   then | 
 | 6028 |     ac_cv_cxx_thread=yes | 
 | 6029 |   else | 
 | 6030 |     ac_cv_cxx_thread=no | 
 | 6031 |   fi | 
 | 6032 |   rm -fr conftest* | 
 | 6033 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 6035 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6036 | fi | 
 | 6037 | CXX="$ac_save_cxx" | 
 | 6038 |  | 
 | 6039 |  | 
 | 6040 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 6042 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6043 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6044 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6045 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6046 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6047 | /* end confdefs.h.  */ | 
 | 6048 | #include <stdlib.h> | 
 | 6049 | #include <stdarg.h> | 
 | 6050 | #include <string.h> | 
 | 6051 | #include <float.h> | 
 | 6052 |  | 
 | 6053 | int | 
 | 6054 | main () | 
 | 6055 | { | 
 | 6056 |  | 
 | 6057 |   ; | 
 | 6058 |   return 0; | 
 | 6059 | } | 
 | 6060 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6061 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6062 |   ac_cv_header_stdc=yes | 
 | 6063 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6064 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6065 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6067 |  | 
 | 6068 | if test $ac_cv_header_stdc = yes; then | 
 | 6069 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6070 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6071 | /* end confdefs.h.  */ | 
 | 6072 | #include <string.h> | 
 | 6073 |  | 
 | 6074 | _ACEOF | 
 | 6075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6076 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 6077 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6078 | else | 
 | 6079 |   ac_cv_header_stdc=no | 
 | 6080 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6081 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6082 |  | 
 | 6083 | fi | 
 | 6084 |  | 
 | 6085 | if test $ac_cv_header_stdc = yes; then | 
 | 6086 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6087 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6088 | /* end confdefs.h.  */ | 
 | 6089 | #include <stdlib.h> | 
 | 6090 |  | 
 | 6091 | _ACEOF | 
 | 6092 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6093 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 6094 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6095 | else | 
 | 6096 |   ac_cv_header_stdc=no | 
 | 6097 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6098 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6099 |  | 
 | 6100 | fi | 
 | 6101 |  | 
 | 6102 | if test $ac_cv_header_stdc = yes; then | 
 | 6103 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6104 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6105 |   : | 
 | 6106 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6107 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6108 | /* end confdefs.h.  */ | 
 | 6109 | #include <ctype.h> | 
 | 6110 | #include <stdlib.h> | 
 | 6111 | #if ((' ' & 0x0FF) == 0x020) | 
 | 6112 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 6113 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 6114 | #else | 
 | 6115 | # define ISLOWER(c) \ | 
 | 6116 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6117 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6118 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 6119 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6120 | #endif | 
 | 6121 |  | 
 | 6122 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6123 | int | 
 | 6124 | main () | 
 | 6125 | { | 
 | 6126 |   int i; | 
 | 6127 |   for (i = 0; i < 256; i++) | 
 | 6128 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 6129 | 	|| toupper (i) != TOUPPER (i)) | 
 | 6130 |       return 2; | 
 | 6131 |   return 0; | 
 | 6132 | } | 
 | 6133 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6134 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 6135 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6136 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6137 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6138 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6140 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6141 | fi | 
 | 6142 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6143 | fi | 
 | 6144 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 6146 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6147 | if test $ac_cv_header_stdc = yes; then | 
 | 6148 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6149 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6150 |  | 
 | 6151 | fi | 
 | 6152 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6153 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ | 
 | 6154 | fcntl.h grp.h \ | 
| Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6155 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6156 | 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] | 6157 | unistd.h utime.h \ | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6158 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
 | 6159 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6160 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 6161 | sys/termio.h sys/time.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6162 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ | 
| Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 6163 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Ronald Oussoren | 755740f | 2010-02-07 19:56:39 +0000 | [diff] [blame] | 6164 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6165 | do : | 
 | 6166 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6167 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6168 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6169 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6170 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6171 | _ACEOF | 
 | 6172 |  | 
 | 6173 | fi | 
 | 6174 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6175 | done | 
 | 6176 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6177 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6179 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 6181 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6182 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6183 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6184 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6185 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6186 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6187 | #include <sys/types.h> | 
 | 6188 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6189 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6190 | int | 
 | 6191 | main () | 
 | 6192 | { | 
 | 6193 | if ((DIR *) 0) | 
 | 6194 | return 0; | 
 | 6195 |   ; | 
 | 6196 |   return 0; | 
 | 6197 | } | 
 | 6198 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6199 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6200 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6201 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6202 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6203 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6205 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6206 | eval ac_res=\$$as_ac_Header | 
 | 6207 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 6208 | $as_echo "$ac_res" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6209 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6210 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6211 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6212 | _ACEOF | 
 | 6213 |  | 
 | 6214 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6215 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6216 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6217 | done | 
 | 6218 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 6219 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6220 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6221 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6222 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6223 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6224 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6225 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6227 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6228 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6229 | /* Override any GCC internal prototype to avoid an error. | 
 | 6230 |    Use char because int might match the return type of a GCC | 
 | 6231 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6232 | #ifdef __cplusplus | 
 | 6233 | extern "C" | 
 | 6234 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6235 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6236 | int | 
 | 6237 | main () | 
 | 6238 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6239 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6240 |   ; | 
 | 6241 |   return 0; | 
 | 6242 | } | 
 | 6243 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6244 | for ac_lib in '' dir; do | 
 | 6245 |   if test -z "$ac_lib"; then | 
 | 6246 |     ac_res="none required" | 
 | 6247 |   else | 
 | 6248 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6249 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6250 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6251 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6252 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6253 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6254 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6255 |     conftest$ac_exeext | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6256 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6257 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6258 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6259 | done | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6260 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6261 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6262 | else | 
 | 6263 |   ac_cv_search_opendir=no | 
 | 6264 | fi | 
 | 6265 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6266 | LIBS=$ac_func_search_save_LIBS | 
 | 6267 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6269 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6270 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6271 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6272 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6273 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6274 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6275 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6276 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6277 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6278 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6279 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6280 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6281 | else | 
 | 6282 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6284 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6285 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6286 | /* Override any GCC internal prototype to avoid an error. | 
 | 6287 |    Use char because int might match the return type of a GCC | 
 | 6288 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6289 | #ifdef __cplusplus | 
 | 6290 | extern "C" | 
 | 6291 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6292 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6293 | int | 
 | 6294 | main () | 
 | 6295 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6296 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6297 |   ; | 
 | 6298 |   return 0; | 
 | 6299 | } | 
 | 6300 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6301 | for ac_lib in '' x; do | 
 | 6302 |   if test -z "$ac_lib"; then | 
 | 6303 |     ac_res="none required" | 
 | 6304 |   else | 
 | 6305 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6306 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6307 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6308 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6309 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6310 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6311 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6312 |     conftest$ac_exeext | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6313 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6314 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6315 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6316 | done | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6317 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6318 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6319 | else | 
 | 6320 |   ac_cv_search_opendir=no | 
 | 6321 | fi | 
 | 6322 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6323 | LIBS=$ac_func_search_save_LIBS | 
 | 6324 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6326 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6327 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6328 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6329 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6330 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6331 | fi | 
 | 6332 |  | 
 | 6333 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6334 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 6336 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6337 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6338 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6339 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6340 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6341 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6342 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6343 | int | 
 | 6344 | main () | 
 | 6345 | { | 
 | 6346 | return makedev(0, 0); | 
 | 6347 |   ; | 
 | 6348 |   return 0; | 
 | 6349 | } | 
 | 6350 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6351 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6352 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 6353 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6354 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6355 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6356 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6357 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6358 |  | 
 | 6359 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 6361 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6362 |  | 
 | 6363 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6364 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6365 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6366 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6367 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6368 |  | 
 | 6369 | fi | 
 | 6370 |  | 
 | 6371 |  | 
 | 6372 |  | 
 | 6373 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6374 |     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6375 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6376 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6377 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6378 |  | 
 | 6379 | fi | 
 | 6380 |  | 
 | 6381 |  | 
 | 6382 |   fi | 
 | 6383 | fi | 
 | 6384 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6385 |  | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6386 | # On Solaris, term.h requires curses.h | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6387 | for ac_header in term.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6388 | do : | 
 | 6389 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
| Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6390 | #ifdef HAVE_CURSES_H | 
 | 6391 | #include <curses.h> | 
 | 6392 | #endif | 
 | 6393 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6394 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6395 | if test "x$ac_cv_header_term_h" = xyes; then : | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6396 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6397 | #define HAVE_TERM_H 1 | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6398 | _ACEOF | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6399 |  | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6400 | fi | 
 | 6401 |  | 
 | 6402 | done | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6403 |  | 
 | 6404 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6405 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6406 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6407 | do : | 
 | 6408 |   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] | 6409 | #ifdef HAVE_ASM_TYPES_H | 
 | 6410 | #include <asm/types.h> | 
 | 6411 | #endif | 
 | 6412 | #ifdef HAVE_SYS_SOCKET_H | 
 | 6413 | #include <sys/socket.h> | 
 | 6414 | #endif | 
 | 6415 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6416 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6417 | 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] | 6418 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6419 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6420 | _ACEOF | 
 | 6421 |  | 
 | 6422 | fi | 
 | 6423 |  | 
 | 6424 | done | 
 | 6425 |  | 
 | 6426 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6427 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6428 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 6430 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 6431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6432 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6433 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6434 |  | 
 | 6435 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6437 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6438 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6439 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6440 |  | 
 | 6441 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6442 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6443 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6444 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6445 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6446 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6447 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 6449 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6450 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6451 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 6453 | $as_echo_n "checking for makedev... " >&6; } | 
 | 6454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6455 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6456 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6457 | #if defined(MAJOR_IN_MKDEV) | 
 | 6458 | #include <sys/mkdev.h> | 
 | 6459 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 6460 | #include <sys/sysmacros.h> | 
 | 6461 | #else | 
 | 6462 | #include <sys/types.h> | 
 | 6463 | #endif | 
 | 6464 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6465 | int | 
 | 6466 | main () | 
 | 6467 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6468 |  | 
 | 6469 |   makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6470 |   ; | 
 | 6471 |   return 0; | 
 | 6472 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6473 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6474 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6475 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6476 |   ac_cv_has_makedev=yes | 
 | 6477 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6478 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6479 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6480 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6481 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6482 | if test "$ac_cv_has_makedev" = "no"; then | 
 | 6483 |     # we didn't link, try if _OSF_SOURCE will allow us to link | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6484 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6485 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6486 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6487 | #define _OSF_SOURCE 1 | 
 | 6488 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6489 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6490 | int | 
 | 6491 | main () | 
 | 6492 | { | 
 | 6493 |  makedev(0, 0) | 
 | 6494 |   ; | 
 | 6495 |   return 0; | 
 | 6496 | } | 
 | 6497 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6498 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6499 |   ac_cv_has_makedev=yes | 
 | 6500 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6501 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6502 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6503 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6504 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6505 |     if test "$ac_cv_has_makedev" = "yes"; then | 
 | 6506 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6507 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6508 |  | 
 | 6509 |     fi | 
 | 6510 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 6512 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6513 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 6514 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6515 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6516 |  | 
 | 6517 | fi | 
 | 6518 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6519 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 6520 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 6521 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 6522 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 6523 | # structures (such as rlimit64) without declaring them. As a | 
 | 6524 | # work-around, disable LFS on such configurations | 
 | 6525 |  | 
 | 6526 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 6528 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 6529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6530 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6531 |  | 
 | 6532 | #define _LARGEFILE_SOURCE 1 | 
 | 6533 | #define _FILE_OFFSET_BITS 64 | 
 | 6534 | #include <sys/resource.h> | 
 | 6535 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6536 | int | 
 | 6537 | main () | 
 | 6538 | { | 
 | 6539 | struct rlimit foo; | 
 | 6540 |   ; | 
 | 6541 |   return 0; | 
 | 6542 | } | 
 | 6543 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6544 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6545 |   sol_lfs_bug=no | 
 | 6546 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6547 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6548 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 6551 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6552 | if test "$sol_lfs_bug" = "yes"; then | 
 | 6553 |   use_lfs=no | 
 | 6554 | fi | 
 | 6555 |  | 
 | 6556 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6557 | # Two defines needed to enable largefile support on various platforms | 
 | 6558 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 6559 | case $ac_sys_system/$ac_sys_release in | 
 | 6560 | AIX*) | 
 | 6561 |  | 
 | 6562 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 6563 |  | 
 | 6564 |     ;; | 
 | 6565 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6567 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6568 |  | 
 | 6569 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6570 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6571 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6572 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6573 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6574 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 6575 | cat >> confdefs.h <<\EOF | 
 | 6576 | #if defined(SCO_DS) | 
 | 6577 | #undef _OFF_T | 
 | 6578 | #endif | 
 | 6579 | EOF | 
 | 6580 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6581 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6582 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6583 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6584 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6585 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6586 |  | 
 | 6587 | cat >>confdefs.h <<_ACEOF | 
 | 6588 | #define mode_t int | 
 | 6589 | _ACEOF | 
 | 6590 |  | 
 | 6591 | fi | 
 | 6592 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6593 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6594 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6595 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6596 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6597 |  | 
 | 6598 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6599 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6600 | _ACEOF | 
 | 6601 |  | 
 | 6602 | fi | 
 | 6603 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6604 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6605 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6606 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6607 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6608 |  | 
 | 6609 | cat >>confdefs.h <<_ACEOF | 
 | 6610 | #define pid_t int | 
 | 6611 | _ACEOF | 
 | 6612 |  | 
 | 6613 | fi | 
 | 6614 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6615 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6616 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 6617 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6619 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6620 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6621 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6622 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6623 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6624 |  | 
 | 6625 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6626 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6627 | _ACEOF | 
 | 6628 |  | 
 | 6629 | fi | 
 | 6630 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 6632 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6633 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6634 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6635 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6636 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6637 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6638 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6639 |  | 
 | 6640 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6642 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6643 |   ac_cv_type_uid_t=yes | 
 | 6644 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6645 |   ac_cv_type_uid_t=no | 
 | 6646 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6647 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6648 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6649 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 6651 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6652 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6653 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6654 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6655 |  | 
 | 6656 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6657 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6658 |  | 
 | 6659 | fi | 
 | 6660 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6661 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 6662 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6663 |   no|yes) ;; #( | 
 | 6664 |   *) | 
 | 6665 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6666 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6667 |  | 
 | 6668 |  | 
 | 6669 | cat >>confdefs.h <<_ACEOF | 
 | 6670 | #define uint32_t $ac_cv_c_uint32_t | 
 | 6671 | _ACEOF | 
 | 6672 | ;; | 
 | 6673 |   esac | 
 | 6674 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6675 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 6676 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6677 |   no|yes) ;; #( | 
 | 6678 |   *) | 
 | 6679 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6680 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6681 |  | 
 | 6682 |  | 
 | 6683 | cat >>confdefs.h <<_ACEOF | 
 | 6684 | #define uint64_t $ac_cv_c_uint64_t | 
 | 6685 | _ACEOF | 
 | 6686 | ;; | 
 | 6687 |   esac | 
 | 6688 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6689 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 6690 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6691 |   no|yes) ;; #( | 
 | 6692 |   *) | 
 | 6693 |  | 
 | 6694 | cat >>confdefs.h <<_ACEOF | 
 | 6695 | #define int32_t $ac_cv_c_int32_t | 
 | 6696 | _ACEOF | 
 | 6697 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6698 | esac | 
 | 6699 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6700 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 6701 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6702 |   no|yes) ;; #( | 
 | 6703 |   *) | 
 | 6704 |  | 
 | 6705 | cat >>confdefs.h <<_ACEOF | 
 | 6706 | #define int64_t $ac_cv_c_int64_t | 
 | 6707 | _ACEOF | 
 | 6708 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 6709 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6710 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6711 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6712 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6713 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6714 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6715 |  | 
 | 6716 | fi | 
 | 6717 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6718 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6719 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6720 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6721 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6722 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6723 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6724 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 6726 | $as_echo_n "checking size of int... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6727 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6728 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6729 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6730 |   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] | 6731 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6732 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6733 |   if test "$ac_cv_type_int" = yes; then | 
 | 6734 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6735 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6736 | as_fn_error 77 "cannot compute sizeof (int) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6737 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6738 |    else | 
 | 6739 |      ac_cv_sizeof_int=0 | 
 | 6740 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6741 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6742 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6743 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 6745 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6746 |  | 
 | 6747 |  | 
 | 6748 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6750 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6751 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6752 |  | 
 | 6753 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6754 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6755 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6756 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6757 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 6759 | $as_echo_n "checking size of long... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6760 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6761 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6762 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6763 |   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] | 6764 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6765 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6766 |   if test "$ac_cv_type_long" = yes; then | 
 | 6767 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6768 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6769 | as_fn_error 77 "cannot compute sizeof (long) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6770 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6771 |    else | 
 | 6772 |      ac_cv_sizeof_long=0 | 
 | 6773 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6774 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6775 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6776 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 6778 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6779 |  | 
 | 6780 |  | 
 | 6781 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6783 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6785 |  | 
 | 6786 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6787 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6788 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6789 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6790 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 6792 | $as_echo_n "checking size of void *... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6793 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6794 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6795 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6796 |   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] | 6797 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6798 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6799 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 6800 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6801 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6802 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6803 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6804 |    else | 
 | 6805 |      ac_cv_sizeof_void_p=0 | 
 | 6806 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6807 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6808 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6809 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 6811 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6812 |  | 
 | 6813 |  | 
 | 6814 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6816 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6817 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6818 |  | 
 | 6819 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6820 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6821 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6822 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6823 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 6825 | $as_echo_n "checking size of short... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6826 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6827 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6829 |   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] | 6830 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6832 |   if test "$ac_cv_type_short" = yes; then | 
 | 6833 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6835 | as_fn_error 77 "cannot compute sizeof (short) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6836 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6837 |    else | 
 | 6838 |      ac_cv_sizeof_short=0 | 
 | 6839 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6840 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6841 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6842 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 6844 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6845 |  | 
 | 6846 |  | 
 | 6847 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6848 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6849 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6850 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6851 |  | 
 | 6852 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6853 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6854 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6855 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6856 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 6858 | $as_echo_n "checking size of float... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6859 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6860 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6861 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6862 |   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] | 6863 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6865 |   if test "$ac_cv_type_float" = yes; then | 
 | 6866 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6867 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6868 | as_fn_error 77 "cannot compute sizeof (float) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6869 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6870 |    else | 
 | 6871 |      ac_cv_sizeof_float=0 | 
 | 6872 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6873 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6874 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6875 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 6877 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6878 |  | 
 | 6879 |  | 
 | 6880 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6881 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6882 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6883 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6884 |  | 
 | 6885 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6886 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6887 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6888 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6889 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 6891 | $as_echo_n "checking size of double... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6892 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6893 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6894 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6895 |   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] | 6896 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6898 |   if test "$ac_cv_type_double" = yes; then | 
 | 6899 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6901 | as_fn_error 77 "cannot compute sizeof (double) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6902 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6903 |    else | 
 | 6904 |      ac_cv_sizeof_double=0 | 
 | 6905 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6906 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6907 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6908 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 6910 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6911 |  | 
 | 6912 |  | 
 | 6913 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6915 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6916 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6917 |  | 
 | 6918 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6919 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6920 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6921 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6922 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 6924 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6925 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6926 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6927 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6928 |   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] | 6929 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6930 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6931 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 6932 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6933 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6934 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6935 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6936 |    else | 
 | 6937 |      ac_cv_sizeof_fpos_t=0 | 
 | 6938 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6939 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6940 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6941 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 6943 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6944 |  | 
 | 6945 |  | 
 | 6946 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6947 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6948 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6949 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6950 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6951 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6952 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6953 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6954 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6955 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 6957 | $as_echo_n "checking size of size_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6958 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6959 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6960 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6961 |   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] | 6962 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6963 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6964 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 6965 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6966 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6967 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6968 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6969 |    else | 
 | 6970 |      ac_cv_sizeof_size_t=0 | 
 | 6971 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6972 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6973 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6974 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 6976 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6977 |  | 
 | 6978 |  | 
 | 6979 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6980 | cat >>confdefs.h <<_ACEOF | 
 | 6981 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 6982 | _ACEOF | 
 | 6983 |  | 
 | 6984 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6985 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6986 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6987 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6988 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 6990 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 6991 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6992 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6993 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6994 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6995 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6996 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6997 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 6998 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6999 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7000 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7001 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7002 |    else | 
 | 7003 |      ac_cv_sizeof_pid_t=0 | 
 | 7004 |    fi | 
 | 7005 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7006 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7007 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 7009 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7010 |  | 
 | 7011 |  | 
 | 7012 |  | 
 | 7013 | cat >>confdefs.h <<_ACEOF | 
 | 7014 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 7015 | _ACEOF | 
 | 7016 |  | 
 | 7017 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 7020 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7021 | have_long_long=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7023 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7024 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7025 | int | 
 | 7026 | main () | 
 | 7027 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7028 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7029 |   ; | 
 | 7030 |   return 0; | 
 | 7031 | } | 
 | 7032 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7033 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7034 |  | 
 | 7035 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7036 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7037 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7038 |   have_long_long=yes | 
 | 7039 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7040 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 7043 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7044 | if test "$have_long_long" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7045 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7046 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7047 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7048 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 7050 | $as_echo_n "checking size of long long... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7051 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7052 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7053 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7054 |   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] | 7055 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7057 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 7058 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7059 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7060 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7061 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7062 |    else | 
 | 7063 |      ac_cv_sizeof_long_long=0 | 
 | 7064 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7065 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7066 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7067 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 7069 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7070 |  | 
 | 7071 |  | 
 | 7072 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7073 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7074 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7075 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7076 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7077 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7078 | fi | 
 | 7079 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 7081 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7082 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7084 | /* end confdefs.h.  */ | 
 | 7085 |  | 
 | 7086 | int | 
 | 7087 | main () | 
 | 7088 | { | 
 | 7089 | long double x; x = (long double)0; | 
 | 7090 |   ; | 
 | 7091 |   return 0; | 
 | 7092 | } | 
 | 7093 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7094 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7095 |  | 
 | 7096 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7097 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7098 |  | 
 | 7099 |   have_long_double=yes | 
 | 7100 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7101 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 7104 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7105 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7106 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7107 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7108 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7109 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 7111 | $as_echo_n "checking size of long double... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7112 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7113 |   $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7114 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7115 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7116 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7117 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7118 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 7119 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7120 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7121 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7122 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7123 |    else | 
 | 7124 |      ac_cv_sizeof_long_double=0 | 
 | 7125 |    fi | 
 | 7126 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7127 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7128 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 7130 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7131 |  | 
 | 7132 |  | 
 | 7133 |  | 
 | 7134 | cat >>confdefs.h <<_ACEOF | 
 | 7135 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 7136 | _ACEOF | 
 | 7137 |  | 
 | 7138 |  | 
 | 7139 | fi | 
 | 7140 |  | 
 | 7141 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 7143 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7144 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7146 | /* end confdefs.h.  */ | 
 | 7147 |  | 
 | 7148 | int | 
 | 7149 | main () | 
 | 7150 | { | 
 | 7151 | _Bool x; x = (_Bool)0; | 
 | 7152 |   ; | 
 | 7153 |   return 0; | 
 | 7154 | } | 
 | 7155 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7156 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7157 |  | 
 | 7158 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7159 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7160 |  | 
 | 7161 |   have_c99_bool=yes | 
 | 7162 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7163 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 7166 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7167 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7168 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7169 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7170 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7171 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 7173 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7174 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7175 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7176 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7177 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7178 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7179 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7180 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 7181 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7182 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7183 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7184 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7185 |    else | 
 | 7186 |      ac_cv_sizeof__Bool=0 | 
 | 7187 |    fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7188 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7189 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7190 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 7192 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7193 |  | 
 | 7194 |  | 
 | 7195 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7196 | cat >>confdefs.h <<_ACEOF | 
 | 7197 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 7198 | _ACEOF | 
 | 7199 |  | 
 | 7200 |  | 
 | 7201 | fi | 
 | 7202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7203 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7204 |         #include <stdint.h> | 
 | 7205 |         #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 7206 |         #ifdef HAVE_INTTYPES_H | 
 | 7207 |         #include <inttypes.h> | 
 | 7208 |         #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7209 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7210 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7211 |  | 
 | 7212 | cat >>confdefs.h <<_ACEOF | 
 | 7213 | #define HAVE_UINTPTR_T 1 | 
 | 7214 | _ACEOF | 
 | 7215 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7216 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7217 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7218 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7219 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 7221 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7222 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7223 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7224 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7225 |   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] | 7226 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7227 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7228 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 7229 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7230 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7231 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7232 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7233 |    else | 
 | 7234 |      ac_cv_sizeof_uintptr_t=0 | 
 | 7235 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7236 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7237 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7238 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 7240 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7241 |  | 
 | 7242 |  | 
 | 7243 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7244 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7245 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7246 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7247 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7248 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7249 | fi | 
 | 7250 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7251 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7252 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7253 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7254 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7255 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 7257 | $as_echo_n "checking size of off_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7258 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7259 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7260 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7261 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7262 | #ifdef HAVE_SYS_TYPES_H | 
 | 7263 | #include <sys/types.h> | 
 | 7264 | #endif | 
 | 7265 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7266 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7267 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7268 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7269 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 7270 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7271 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7272 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7273 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7274 |    else | 
 | 7275 |      ac_cv_sizeof_off_t=0 | 
 | 7276 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7277 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7278 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7279 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 7281 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7282 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7283 |  | 
 | 7284 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7285 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7286 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7287 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7288 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7289 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7290 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 7292 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7293 | if test "$have_long_long" = yes | 
 | 7294 | then | 
 | 7295 | 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] | 7296 | 	"$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] | 7297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7298 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7299 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7300 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7301 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7302 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7303 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7304 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7305 | fi | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7306 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7307 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7308 | $as_echo "no" >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7309 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7310 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7311 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7312 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7313 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7314 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 7316 | $as_echo_n "checking size of time_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7317 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7318 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7319 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7320 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7321 | #ifdef HAVE_SYS_TYPES_H | 
 | 7322 | #include <sys/types.h> | 
 | 7323 | #endif | 
 | 7324 | #ifdef HAVE_TIME_H | 
 | 7325 | #include <time.h> | 
 | 7326 | #endif | 
 | 7327 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7328 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7329 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7330 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7331 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 7332 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7333 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7334 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7335 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7336 |    else | 
 | 7337 |      ac_cv_sizeof_time_t=0 | 
 | 7338 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7339 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7340 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7341 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 7343 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7345 |  | 
 | 7346 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7347 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7348 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7349 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7350 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7351 |  | 
 | 7352 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7353 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7354 | ac_save_cc="$CC" | 
 | 7355 | if test "$ac_cv_kpthread" = "yes" | 
 | 7356 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7357 | elif test "$ac_cv_kthread" = "yes" | 
 | 7358 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7359 | elif test "$ac_cv_pthread" = "yes" | 
 | 7360 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7361 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7362 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 7364 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7365 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7367 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7368 |  | 
 | 7369 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7370 | int | 
 | 7371 | main () | 
 | 7372 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7373 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7374 |   ; | 
 | 7375 |   return 0; | 
 | 7376 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7377 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7379 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7380 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7381 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 7384 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7385 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7386 |   # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7387 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7388 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7389 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 7391 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7392 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7393 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7394 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7395 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7396 | #ifdef HAVE_PTHREAD_H | 
 | 7397 | #include <pthread.h> | 
 | 7398 | #endif | 
 | 7399 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7400 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7401 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7403 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 7404 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7405 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7406 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7407 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7408 |    else | 
 | 7409 |      ac_cv_sizeof_pthread_t=0 | 
 | 7410 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7411 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7412 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7413 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 7415 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7416 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7417 |  | 
 | 7418 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7419 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7420 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7421 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7422 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7423 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7424 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7425 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7426 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7427 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7428 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7429 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7430 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 7431 |     ;; | 
 | 7432 |   Darwin/*) | 
 | 7433 |     OTHER_LIBTOOL_OPT="" | 
 | 7434 |     ;; | 
 | 7435 | esac | 
 | 7436 |  | 
 | 7437 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7438 | ARCH_RUN_32BIT="" | 
 | 7439 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7440 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7441 |   Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7442 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 7443 |     if test "${enable_universalsdk}"; then | 
 | 7444 | 	    : | 
 | 7445 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7446 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7447 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7448 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7449 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7450 |   Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 7451 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7452 |     if test ${gcc_version} '<' 4.0 | 
 | 7453 |         then | 
 | 7454 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 7455 |         else | 
 | 7456 |             LIBTOOL_CRUFT="" | 
 | 7457 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7458 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7459 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7460 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7461 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7462 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7463 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7464 |     #include <unistd.h> | 
 | 7465 |     int main(int argc, char*argv[]) | 
 | 7466 |     { | 
 | 7467 |       if (sizeof(long) == 4) { | 
 | 7468 |     	  return 0; | 
 | 7469 |       } else { | 
 | 7470 |       	  return 1; | 
 | 7471 |       } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7472 |     } | 
 | 7473 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7474 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7475 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7476 |   ac_osx_32bit=yes | 
 | 7477 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7478 |   ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7479 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7481 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7482 | fi | 
 | 7483 |  | 
 | 7484 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7485 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7486 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7487 |     	i386) | 
 | 7488 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 7489 |     		;; | 
 | 7490 |     	ppc) | 
 | 7491 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 7492 |     		;; | 
 | 7493 |     	*) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7494 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7495 |     		;; | 
 | 7496 |     	esac | 
 | 7497 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7498 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7499 |     	i386) | 
 | 7500 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 7501 |     		;; | 
 | 7502 |     	ppc) | 
 | 7503 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 7504 |     		;; | 
 | 7505 |     	*) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7506 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7507 |     		;; | 
 | 7508 |     	esac | 
 | 7509 |  | 
 | 7510 | 	#ARCH_RUN_32BIT="true" | 
 | 7511 |     fi | 
 | 7512 |  | 
 | 7513 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7514 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7515 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7516 | esac | 
 | 7517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 7519 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7520 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7521 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7522 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7523 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7524 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7525 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7526 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7527 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7528 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7529 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7530 | 	if test $enable_shared = "yes" | 
 | 7531 | 	then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7532 | 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7533 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7534 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7535 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7536 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7537 | fi | 
 | 7538 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 7540 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7541 | case $ac_sys_system/$ac_sys_release in | 
 | 7542 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7543 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7544 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7545 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7546 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 7547 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7548 |   	;; | 
 | 7549 |   *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7550 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7551 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7552 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7553 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7554 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7555 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7556 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7557 |  | 
 | 7558 |  | 
 | 7559 |  | 
 | 7560 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7561 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7562 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7563 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7564 | cat >>confdefs.h <<_ACEOF | 
 | 7565 | #define SHLIB_EXT "$SO" | 
 | 7566 | _ACEOF | 
 | 7567 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7568 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7569 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7570 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 7571 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 7573 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7574 | if test -z "$LDSHARED" | 
 | 7575 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7576 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7577 | 	AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 7578 | 		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] | 7579 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7580 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7581 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7582 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7583 | 	SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7584 | 		if test "$GCC" = "yes" ; then | 
 | 7585 | 			LDSHARED='$(CC) -shared' | 
 | 7586 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7587 | 		else | 
 | 7588 | 			LDSHARED='$(CC) -G' | 
 | 7589 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7590 | 		fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7591 | 	hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7592 | 		if test "$GCC" = "yes" ; then | 
 | 7593 | 			LDSHARED='$(CC) -shared' | 
 | 7594 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7595 | 		else | 
 | 7596 | 			LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7597 | 		fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7598 | 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7599 | 	Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7600 | 		LDSHARED='$(CC) -bundle' | 
 | 7601 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7602 | 		if test "$enable_framework" ; then | 
 | 7603 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7604 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7605 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7606 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7607 | 		else | 
 | 7608 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7609 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7610 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7611 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7612 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7613 | 		LDSHARED='$(CC) -bundle' | 
 | 7614 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7615 | 		if test "$enable_framework" ; then | 
 | 7616 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7617 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7618 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7619 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7620 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7621 | 			# No framework, use the Python app as bundle-loader | 
 | 7622 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7623 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7624 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7625 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7626 | 	Darwin/*) | 
 | 7627 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 7628 | 		# This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 7629 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7630 | 		if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7631 | 		then | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7632 | 			if test "${enable_universalsdk}"; then | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7633 | 				LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7634 | 			fi | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7635 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 7636 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7637 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7638 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7639 | 			LDSHARED='$(CC) -bundle' | 
 | 7640 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7641 | 			if test "$enable_framework" ; then | 
 | 7642 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7643 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7644 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7645 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7646 | 			else | 
 | 7647 | 				# No framework, use the Python app as bundle-loader | 
 | 7648 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 7649 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7650 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7651 | 			fi | 
 | 7652 | 		fi | 
 | 7653 | 		;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7654 | 	Linux*|GNU*|QNX*) | 
 | 7655 | 		LDSHARED='$(CC) -shared' | 
 | 7656 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 7657 | 	BSD/OS*/4*) | 
 | 7658 | 		LDSHARED="gcc -shared" | 
 | 7659 | 		LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7660 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7661 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7662 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7663 | 			LDSHARED='$(CC) -shared' | 
 | 7664 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7665 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7666 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7667 | 		fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7668 | 	OpenBSD*) | 
 | 7669 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 7670 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7671 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 7672 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7673 | 		else | 
 | 7674 | 				case `uname -r` in | 
 | 7675 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 7676 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 7677 | 				   ;; | 
 | 7678 | 				*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7679 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 7680 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7681 | 				   ;; | 
 | 7682 | 				esac | 
 | 7683 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7684 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 7685 | 		LDSHARED='$(CC) -shared' | 
 | 7686 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7687 | 	OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7688 | 		if test "$GCC" = "yes" ; then | 
 | 7689 | 			LDSHARED='$(CC) -shared' | 
 | 7690 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7691 | 		else | 
 | 7692 | 			LDSHARED='$(CC) -G' | 
 | 7693 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7694 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7695 | 	SCO_SV*) | 
 | 7696 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 7697 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 7698 | 	CYGWIN*) | 
 | 7699 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 7700 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7701 | 	*)	LDSHARED="ld";; | 
 | 7702 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7703 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 7705 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7706 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7707 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7708 | # 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] | 7709 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 7711 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7712 | if test -z "$CCSHARED" | 
 | 7713 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7714 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7715 | 	SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7716 | 		then CCSHARED="-fPIC"; | 
 | 7717 | 		elif test `uname -p` = sparc; | 
 | 7718 | 		then CCSHARED="-xcode=pic32"; | 
 | 7719 | 		else CCSHARED="-Kpic"; | 
 | 7720 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7721 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7722 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7723 | 		 else CCSHARED="+z"; | 
 | 7724 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7725 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7726 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7727 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7728 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7729 | 		if test "$GCC" = "yes" | 
 | 7730 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7731 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7732 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7733 | 	SCO_SV*) | 
 | 7734 | 		if test "$GCC" = "yes" | 
 | 7735 | 		then CCSHARED="-fPIC" | 
 | 7736 | 		else CCSHARED="-Kpic -belf" | 
 | 7737 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7738 | 	IRIX*/6*)  case $CC in | 
 | 7739 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7740 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7741 | 		   esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7742 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7743 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 7745 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7746 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7747 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 7749 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7750 | if test -z "$LINKFORSHARED" | 
 | 7751 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7752 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7753 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7754 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7755 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 7756 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7757 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7758 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7759 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7760 | 	Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 7761 | 		LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7762 | 		if test "$enable_framework" | 
 | 7763 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7764 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7765 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7766 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7767 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7768 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7769 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7770 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7771 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 7772 | 		then | 
 | 7773 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 7774 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7775 | 	SunOS/5*) case $CC in | 
 | 7776 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7777 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7778 | 		    then | 
 | 7779 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7780 | 		    fi;; | 
 | 7781 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7782 | 	CYGWIN*) | 
 | 7783 | 		if test $enable_shared = "no" | 
 | 7784 | 		then | 
 | 7785 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 7786 | 		fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7787 | 	QNX*) | 
 | 7788 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 7789 | 		# symbol table so that they can be found when a module | 
 | 7790 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 7791 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 7792 | 		# when running test_compile.py. | 
 | 7793 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7794 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7795 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 7797 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7798 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7799 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7800 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 7802 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7803 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 7804 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7805 | 	case $ac_sys_system in | 
 | 7806 | 	CYGWIN*) | 
 | 7807 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 7808 | 		# but not when building the interpreter DLL. | 
 | 7809 | 		CFLAGSFORSHARED='';; | 
 | 7810 | 	*) | 
 | 7811 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 7812 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7813 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 7815 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7816 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7817 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 7818 | # library (with --enable-shared). | 
 | 7819 | # 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] | 7820 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 7821 | # if it is not required, since it creates a dependency of the shared library | 
 | 7822 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 7823 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 7824 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7825 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 7827 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7828 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7829 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7830 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7831 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 7833 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7834 |  | 
 | 7835 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7836 | # checks for libraries | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 7838 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7839 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7840 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7841 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7843 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7845 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7846 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7847 | /* Override any GCC internal prototype to avoid an error. | 
 | 7848 |    Use char because int might match the return type of a GCC | 
 | 7849 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7850 | #ifdef __cplusplus | 
 | 7851 | extern "C" | 
 | 7852 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7853 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7854 | int | 
 | 7855 | main () | 
 | 7856 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7857 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7858 |   ; | 
 | 7859 |   return 0; | 
 | 7860 | } | 
 | 7861 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7862 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7864 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7865 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7866 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7867 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7868 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7869 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7870 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 7872 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7873 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 |   cat >>confdefs.h <<_ACEOF | 
 | 7875 | #define HAVE_LIBDL 1 | 
 | 7876 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7877 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7878 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7879 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7880 | fi | 
 | 7881 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 7883 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7884 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7885 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7886 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7888 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7890 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7892 | /* Override any GCC internal prototype to avoid an error. | 
 | 7893 |    Use char because int might match the return type of a GCC | 
 | 7894 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7895 | #ifdef __cplusplus | 
 | 7896 | extern "C" | 
 | 7897 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7899 | int | 
 | 7900 | main () | 
 | 7901 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7902 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7903 |   ; | 
 | 7904 |   return 0; | 
 | 7905 | } | 
 | 7906 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7907 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7908 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7909 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7910 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7911 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7912 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7913 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7914 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7915 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 7917 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7918 | 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] | 7919 |   cat >>confdefs.h <<_ACEOF | 
 | 7920 | #define HAVE_LIBDLD 1 | 
 | 7921 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7922 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7923 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7924 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7925 | fi | 
 | 7926 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7927 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7928 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7929 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7930 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 7931 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7932 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7933 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7934 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7935 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7937 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7939 | /* Override any GCC internal prototype to avoid an error. | 
 | 7940 |    Use char because int might match the return type of a GCC | 
 | 7941 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 | #ifdef __cplusplus | 
 | 7943 | extern "C" | 
 | 7944 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7945 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | int | 
 | 7947 | main () | 
 | 7948 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7949 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 |   ; | 
 | 7951 |   return 0; | 
 | 7952 | } | 
 | 7953 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7954 | for ac_lib in '' pthread rt posix4; do | 
 | 7955 |   if test -z "$ac_lib"; then | 
 | 7956 |     ac_res="none required" | 
 | 7957 |   else | 
 | 7958 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7959 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7960 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7961 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7962 |   ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7963 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7964 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7965 |     conftest$ac_exeext | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7966 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7967 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7968 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7969 | done | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7970 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7971 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7972 | else | 
 | 7973 |   ac_cv_search_sem_init=no | 
 | 7974 | fi | 
 | 7975 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7976 | LIBS=$ac_func_search_save_LIBS | 
 | 7977 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 7979 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7980 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7981 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7982 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7983 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7984 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 7985 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7986 | 						# posix4 on Solaris 2.6 | 
 | 7987 | 						# pthread (first!) on Linux | 
 | 7988 | fi | 
 | 7989 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7990 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 7992 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 7993 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7994 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7995 | else | 
 | 7996 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7997 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7999 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8000 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8001 | /* Override any GCC internal prototype to avoid an error. | 
 | 8002 |    Use char because int might match the return type of a GCC | 
 | 8003 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8004 | #ifdef __cplusplus | 
 | 8005 | extern "C" | 
 | 8006 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8007 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8008 | int | 
 | 8009 | main () | 
 | 8010 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8011 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8012 |   ; | 
 | 8013 |   return 0; | 
 | 8014 | } | 
 | 8015 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8017 |   ac_cv_lib_intl_textdomain=yes | 
 | 8018 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8019 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8020 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8021 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8022 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8023 | LIBS=$ac_check_lib_save_LIBS | 
 | 8024 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 8026 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8027 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8028 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8029 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8030 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 8031 |         LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8032 | fi | 
 | 8033 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8034 |  | 
 | 8035 | # checks for system dependent C++ extensions support | 
 | 8036 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8037 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 8038 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 8039 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8040 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8041 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 8042 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8043 | int | 
 | 8044 | main () | 
 | 8045 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8046 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 |   ; | 
 | 8048 |   return 0; | 
 | 8049 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8050 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8051 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8052 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8053 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8054 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8055 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8056 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8057 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8058 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8059 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8060 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8061 |  | 
 | 8062 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8063 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8064 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8065 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8066 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8067 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8068 | 	*) ;; | 
 | 8069 | esac | 
 | 8070 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8071 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 8073 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8074 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8075 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8076 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8077 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8078 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8080 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8082 | /* Override any GCC internal prototype to avoid an error. | 
 | 8083 |    Use char because int might match the return type of a GCC | 
 | 8084 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8085 | #ifdef __cplusplus | 
 | 8086 | extern "C" | 
 | 8087 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8088 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8089 | int | 
 | 8090 | main () | 
 | 8091 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8092 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 |   ; | 
 | 8094 |   return 0; | 
 | 8095 | } | 
 | 8096 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8097 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8099 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8100 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8101 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8102 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8103 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8105 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 8107 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8108 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8109 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8110 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8111 |  # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 8113 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8114 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8115 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8116 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8117 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8118 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8120 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8121 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8122 | /* Override any GCC internal prototype to avoid an error. | 
 | 8123 |    Use char because int might match the return type of a GCC | 
 | 8124 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | #ifdef __cplusplus | 
 | 8126 | extern "C" | 
 | 8127 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8128 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | int | 
 | 8130 | main () | 
 | 8131 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8132 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8133 |   ; | 
 | 8134 |   return 0; | 
 | 8135 | } | 
 | 8136 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8137 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8139 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8140 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8141 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8142 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8143 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8145 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 8147 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8148 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8149 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8150 | fi | 
 | 8151 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8152 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 8154 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8155 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8156 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8157 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8158 |   withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8160 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8161 | LIBS="$withval $LIBS" | 
 | 8162 |  | 
 | 8163 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8164 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8165 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8166 | fi | 
 | 8167 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8168 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8169 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8170 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 8171 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8173 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8174 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8175 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8176 | else | 
 | 8177 |   case $PKG_CONFIG in | 
 | 8178 |   [\\/]* | ?:[\\/]*) | 
 | 8179 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 8180 |   ;; | 
 | 8181 |   *) | 
 | 8182 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8183 | for as_dir in $PATH | 
 | 8184 | do | 
 | 8185 |   IFS=$as_save_IFS | 
 | 8186 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8187 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8188 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8189 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8190 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8191 |     break 2 | 
 | 8192 |   fi | 
 | 8193 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8194 |   done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8195 | IFS=$as_save_IFS | 
 | 8196 |  | 
 | 8197 |   ;; | 
 | 8198 | esac | 
 | 8199 | fi | 
 | 8200 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 8201 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8202 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 8203 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8204 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8205 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8206 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8207 | fi | 
 | 8208 |  | 
 | 8209 |  | 
 | 8210 | fi | 
 | 8211 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 8212 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 8213 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 8214 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8216 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8217 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8218 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8219 | else | 
 | 8220 |   case $ac_pt_PKG_CONFIG in | 
 | 8221 |   [\\/]* | ?:[\\/]*) | 
 | 8222 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 8223 |   ;; | 
 | 8224 |   *) | 
 | 8225 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8226 | for as_dir in $PATH | 
 | 8227 | do | 
 | 8228 |   IFS=$as_save_IFS | 
 | 8229 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8230 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8231 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8232 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8233 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8234 |     break 2 | 
 | 8235 |   fi | 
 | 8236 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8237 |   done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8238 | IFS=$as_save_IFS | 
 | 8239 |  | 
 | 8240 |   ;; | 
 | 8241 | esac | 
 | 8242 | fi | 
 | 8243 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 8244 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8245 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 8246 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8247 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8248 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8249 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8250 | fi | 
 | 8251 |  | 
 | 8252 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 8253 |     PKG_CONFIG="" | 
 | 8254 |   else | 
 | 8255 |     case $cross_compiling:$ac_tool_warned in | 
 | 8256 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 8258 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8259 | ac_tool_warned=yes ;; | 
 | 8260 | esac | 
 | 8261 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 8262 |   fi | 
 | 8263 | else | 
 | 8264 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 8265 | fi | 
 | 8266 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8267 |  | 
 | 8268 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 8270 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8271 |  | 
 | 8272 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8273 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8274 |   withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8275 | else | 
 | 8276 |   with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8277 | fi | 
 | 8278 |  | 
 | 8279 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 8281 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8282 |  | 
 | 8283 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 8285 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8286 |  | 
 | 8287 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8288 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8289 |   withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8290 | else | 
 | 8291 |   with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8292 | fi | 
 | 8293 |  | 
 | 8294 |  | 
 | 8295 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8296 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 8297 | else | 
 | 8298 |     LIBFFI_INCLUDEDIR="" | 
 | 8299 | fi | 
 | 8300 |  | 
 | 8301 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 8303 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8304 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 8305 | # Check for support for loadable sqlite extensions | 
 | 8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
 | 8307 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
 | 8308 | # Check whether --enable-loadable-sqlite-extensions was given. | 
 | 8309 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
 | 8310 |   enableval=$enable_loadable_sqlite_extensions; | 
 | 8311 | else | 
 | 8312 |   enable_loadable_sqlite_extensions="no" | 
 | 8313 | fi | 
 | 8314 |  | 
 | 8315 |  | 
 | 8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
 | 8317 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
 | 8318 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8319 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 8321 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8322 |  | 
 | 8323 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8324 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8325 |   withval=$with_dbmliborder; | 
 | 8326 | if test x$with_dbmliborder = xyes | 
 | 8327 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 8328 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8329 | else | 
 | 8330 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 8331 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 8332 |     then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 8333 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8334 |     fi | 
 | 8335 |   done | 
 | 8336 | fi | 
 | 8337 | fi | 
 | 8338 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 8340 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8341 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8342 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8343 |  | 
 | 8344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 8346 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8348 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8349 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8350 |   withval=$with_signal_module; | 
 | 8351 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8352 |  | 
 | 8353 |  | 
 | 8354 | if test -z "$with_signal_module" | 
 | 8355 | then with_signal_module="yes" | 
 | 8356 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 8358 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8359 |  | 
 | 8360 | if test "${with_signal_module}" = "yes"; then | 
 | 8361 | 	USE_SIGNAL_MODULE="" | 
 | 8362 | 	SIGNAL_OBJS="" | 
 | 8363 | else | 
 | 8364 | 	USE_SIGNAL_MODULE="#" | 
 | 8365 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 8366 | fi | 
 | 8367 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8368 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8369 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8370 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8371 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
 | 8373 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8375 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8376 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8377 | if test "${with_dec_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8378 |   withval=$with_dec_threads; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8380 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8381 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8382 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8383 |    with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8384 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8385 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8386 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8387 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8388 | fi | 
 | 8389 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 |  | 
 | 8391 | # Templates for things AC_DEFINEd more than once. | 
 | 8392 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8393 |  | 
 | 8394 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 |  | 
 | 8396 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 8398 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8400 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8401 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8402 |   withval=$with_threads; | 
 | 8403 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8404 |  | 
 | 8405 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8406 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8408 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8409 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8410 |   withval=$with_thread; with_threads=$with_thread | 
 | 8411 | fi | 
 | 8412 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8413 |  | 
 | 8414 | if test -z "$with_threads" | 
 | 8415 | then with_threads="yes" | 
 | 8416 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 8418 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8419 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8420 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8421 | if test "$with_threads" = "no" | 
 | 8422 | then | 
 | 8423 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8424 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 8425 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8426 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8427 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8428 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8429 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8430 |  | 
 | 8431 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8433 | elif test "$ac_cv_kpthread" = "yes" | 
 | 8434 | then | 
 | 8435 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8436 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8437 |         CXX="$CXX -Kpthread" | 
 | 8438 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8439 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8440 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8441 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8442 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8443 | elif test "$ac_cv_kthread" = "yes" | 
 | 8444 | then | 
 | 8445 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8446 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8447 |         CXX="$CXX -Kthread" | 
 | 8448 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8449 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8450 |  | 
 | 8451 |     posix_threads=yes | 
 | 8452 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8453 | elif test "$ac_cv_pthread" = "yes" | 
 | 8454 | then | 
 | 8455 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8456 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8457 |         CXX="$CXX -pthread" | 
 | 8458 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8459 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8460 |  | 
 | 8461 |     posix_threads=yes | 
 | 8462 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8463 | else | 
 | 8464 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 8465 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 8466 |     fi | 
 | 8467 |     if test ! -z "$withval" -a -d "$withval" | 
 | 8468 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 8469 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8470 |  | 
 | 8471 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8472 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 8473 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8474 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 8475 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 8476 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8477 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8478 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8479 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8480 | #ifdef _POSIX_THREADS | 
 | 8481 | yes | 
 | 8482 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8483 |  | 
 | 8484 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8486 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8487 |   unistd_defines_pthreads=yes | 
 | 8488 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8489 |   unistd_defines_pthreads=no | 
 | 8490 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8491 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8492 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8493 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 8494 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8495 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8496 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8497 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8498 |     ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8499 | if test "x$ac_cv_header_cthreads_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8500 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8501 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8502 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8503 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8504 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8505 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8506 |  | 
 | 8507 |     LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8508 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8509 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8510 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8511 |     ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8512 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8513 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8514 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8515 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8516 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8518 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8519 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8520 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8521 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8522 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8523 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 8524 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 8525 |     # So we really have to include pthread.h, and then link. | 
 | 8526 |     _libs=$LIBS | 
 | 8527 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8528 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 8529 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 8530 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8531 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8532 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8533 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8534 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8535 | int | 
 | 8536 | main () | 
 | 8537 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8538 |  | 
 | 8539 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8540 |   ; | 
 | 8541 |   return 0; | 
 | 8542 | } | 
 | 8543 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8544 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8546 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8547 | $as_echo "yes" >&6; } | 
 | 8548 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8549 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8550 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8551 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8552 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8554 |     LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8555 |     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8556 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8557 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8558 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8559 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8560 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8561 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8562 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8563 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 8564 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8565 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8566 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8567 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8569 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8571 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8573 | /* Override any GCC internal prototype to avoid an error. | 
 | 8574 |    Use char because int might match the return type of a GCC | 
 | 8575 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | #ifdef __cplusplus | 
 | 8577 | extern "C" | 
 | 8578 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | int | 
 | 8581 | main () | 
 | 8582 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8583 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 |   ; | 
 | 8585 |   return 0; | 
 | 8586 | } | 
 | 8587 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8588 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8590 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8591 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8592 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8593 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8594 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8595 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8596 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 8598 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8599 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8600 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8601 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8602 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8603 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8604 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8605 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8606 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8607 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 8608 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8609 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8610 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8611 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8612 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8613 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8615 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8617 | /* Override any GCC internal prototype to avoid an error. | 
 | 8618 |    Use char because int might match the return type of a GCC | 
 | 8619 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | #ifdef __cplusplus | 
 | 8621 | extern "C" | 
 | 8622 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8623 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | int | 
 | 8625 | main () | 
 | 8626 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8627 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 |   ; | 
 | 8629 |   return 0; | 
 | 8630 | } | 
 | 8631 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8632 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8634 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8635 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8636 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8637 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8638 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8640 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 8642 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8643 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8644 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8645 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8646 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8647 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8648 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8649 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8650 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8651 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 8652 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8653 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8654 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8655 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8656 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8657 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8659 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8661 | /* Override any GCC internal prototype to avoid an error. | 
 | 8662 |    Use char because int might match the return type of a GCC | 
 | 8663 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8664 | #ifdef __cplusplus | 
 | 8665 | extern "C" | 
 | 8666 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8668 | int | 
 | 8669 | main () | 
 | 8670 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8671 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 |   ; | 
 | 8673 |   return 0; | 
 | 8674 | } | 
 | 8675 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8676 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8678 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8679 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8680 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8681 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8682 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8684 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 8686 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8687 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8688 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8689 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8690 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8691 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8692 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8693 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8694 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8695 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 8696 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8697 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8698 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8699 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8701 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8703 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8704 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8705 | /* Override any GCC internal prototype to avoid an error. | 
 | 8706 |    Use char because int might match the return type of a GCC | 
 | 8707 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | #ifdef __cplusplus | 
 | 8709 | extern "C" | 
 | 8710 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8711 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | int | 
 | 8713 | main () | 
 | 8714 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8715 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 |   ; | 
 | 8717 |   return 0; | 
 | 8718 | } | 
 | 8719 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8720 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8722 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8723 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8724 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8725 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8726 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8727 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8728 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 8730 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8731 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8732 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8733 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8734 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8735 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8736 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8737 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8738 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8739 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8740 | fi | 
 | 8741 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8742 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8743 | fi | 
 | 8744 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8745 | fi | 
 | 8746 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8747 | fi | 
 | 8748 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8749 | fi | 
 | 8750 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8751 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8752 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8753 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8754 | fi | 
 | 8755 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 |  | 
 | 8757 | fi | 
 | 8758 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8759 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8761 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 8762 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8763 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8764 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8765 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8767 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8769 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8771 | /* Override any GCC internal prototype to avoid an error. | 
 | 8772 |    Use char because int might match the return type of a GCC | 
 | 8773 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | #ifdef __cplusplus | 
 | 8775 | extern "C" | 
 | 8776 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | int | 
 | 8779 | main () | 
 | 8780 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8781 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 |   ; | 
 | 8783 |   return 0; | 
 | 8784 | } | 
 | 8785 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8786 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8788 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8789 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8790 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8791 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8792 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8794 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 8796 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8797 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8798 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8799 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8800 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8801 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8802 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8803 | fi | 
 | 8804 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8805 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8806 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8807 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 8808 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8809 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8810 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8811 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8813 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8815 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8817 | /* Override any GCC internal prototype to avoid an error. | 
 | 8818 |    Use char because int might match the return type of a GCC | 
 | 8819 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8820 | #ifdef __cplusplus | 
 | 8821 | extern "C" | 
 | 8822 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | int | 
 | 8825 | main () | 
 | 8826 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8827 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 |   ; | 
 | 8829 |   return 0; | 
 | 8830 | } | 
 | 8831 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8832 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8833 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8834 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8835 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8836 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8837 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8838 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8839 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8840 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 8842 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8843 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8844 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8845 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8846 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8847 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8848 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8849 | fi | 
 | 8850 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8851 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8852 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8853 |     if test "$USE_THREAD_MODULE" != "#" | 
 | 8854 |     then | 
 | 8855 |         # If the above checks didn't disable threads, (at least) OSF1 | 
 | 8856 |         # needs this '-threads' argument during linking. | 
 | 8857 |         case $ac_sys_system in | 
 | 8858 |         OSF1) LDLAST=-threads;; | 
 | 8859 |         esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 8860 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8861 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8862 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8863 | if test "$posix_threads" = "yes"; then | 
 | 8864 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8865 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8866 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8867 |  | 
 | 8868 |       fi | 
 | 8869 |  | 
 | 8870 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 8871 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 8872 |       SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8873 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8874 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8875 | 		       ;; | 
 | 8876 |       SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8877 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8878 |  | 
 | 8879 | 		       ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 8880 |       AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8881 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8882 |  | 
 | 8883 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8884 |       esac | 
 | 8885 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8886 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 8887 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8888 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8889 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8890 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8891 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8892 |   ac_cv_pthread_system_supported=no | 
 | 8893 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8894 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8895 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8896 | #include <pthread.h> | 
 | 8897 |       void *foo(void *parm) { | 
 | 8898 |         return NULL; | 
 | 8899 |       } | 
 | 8900 |       main() { | 
 | 8901 |         pthread_attr_t attr; | 
 | 8902 |         pthread_t id; | 
 | 8903 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 8904 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 8905 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 8906 |         exit(0); | 
 | 8907 |       } | 
 | 8908 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8909 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8910 |   ac_cv_pthread_system_supported=yes | 
 | 8911 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8912 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8913 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8914 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 8915 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8916 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8917 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8918 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8919 | fi | 
 | 8920 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8921 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 8922 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8923 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 8924 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8925 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8926 |  | 
 | 8927 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8928 |       for ac_func in pthread_sigmask | 
 | 8929 | do : | 
 | 8930 |   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 8931 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8932 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8933 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8934 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8935 |  case $ac_sys_system in | 
 | 8936 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8937 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8938 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8939 |  | 
 | 8940 |             ;; | 
 | 8941 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8942 | fi | 
 | 8943 | done | 
 | 8944 |  | 
 | 8945 | fi | 
 | 8946 |  | 
 | 8947 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8948 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8949 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 8951 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8952 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8953 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8954 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8955 |   no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8956 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8957 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8958 |        ipv6=no | 
 | 8959 |        ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8960 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8961 | $as_echo "yes" >&6; } | 
 | 8962 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8963 |  | 
 | 8964 |        ipv6=yes | 
 | 8965 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8966 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8967 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8969 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8970 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8971 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8972 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8973 |   ipv6=no | 
 | 8974 |  | 
 | 8975 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8976 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8977 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8978 |  /* AF_INET6 available check */ | 
 | 8979 | #include <sys/types.h> | 
 | 8980 | #include <sys/socket.h> | 
 | 8981 | main() | 
 | 8982 | { | 
 | 8983 |  if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
 | 8984 |    exit(1); | 
 | 8985 |  else | 
 | 8986 |    exit(0); | 
 | 8987 | } | 
 | 8988 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8990 | if ac_fn_c_try_run "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8991 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8992 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8993 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8994 |   ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8995 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8996 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8997 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8998 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8999 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9000 |   ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9001 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9002 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9003 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9004 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9005 | fi | 
 | 9006 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9007 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9008 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9009 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 9010 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 9011 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9012 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9013 |  | 
 | 9014 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9015 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9016 | int | 
 | 9017 | main () | 
 | 9018 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9019 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9020 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9021 |   ; | 
 | 9022 |   return 0; | 
 | 9023 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9024 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9026 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9027 |  | 
 | 9028 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9029 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9030 | 	  ipv6=yes | 
 | 9031 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9032 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9033 |  | 
 | 9034 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9035 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9036 | 	  ipv6=no | 
 | 9037 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9038 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9039 | 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] | 9040 | fi | 
 | 9041 |  | 
 | 9042 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9043 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9044 |  | 
 | 9045 | fi | 
 | 9046 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9047 | fi | 
 | 9048 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9049 |  | 
 | 9050 | ipv6type=unknown | 
 | 9051 | ipv6lib=none | 
 | 9052 | ipv6trylibc=no | 
 | 9053 |  | 
 | 9054 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9055 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 9056 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9057 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 9058 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9059 | 		case $i in | 
 | 9060 | 		inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9061 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9062 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9063 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9064 | #include <netinet/in.h> | 
 | 9065 | #ifdef IPV6_INRIA_VERSION | 
 | 9066 | yes | 
 | 9067 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9069 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9070 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9071 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9072 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9073 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9074 |  | 
 | 9075 | 			;; | 
 | 9076 | 		kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9077 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9078 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9079 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9080 | #include <netinet/in.h> | 
 | 9081 | #ifdef __KAME__ | 
 | 9082 | yes | 
 | 9083 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9084 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9086 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9087 |   ipv6type=$i; | 
 | 9088 | 				ipv6lib=inet6 | 
 | 9089 | 				ipv6libdir=/usr/local/v6/lib | 
 | 9090 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9091 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9092 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9093 |  | 
 | 9094 | 			;; | 
 | 9095 | 		linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9096 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9097 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9098 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9099 | #include <features.h> | 
 | 9100 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 9101 | yes | 
 | 9102 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9104 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9105 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9106 |   ipv6type=$i; | 
 | 9107 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9108 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9109 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9110 |  | 
 | 9111 | 			;; | 
 | 9112 | 		linux-inet6) | 
 | 9113 | 						if test -d /usr/inet6; then | 
 | 9114 | 				ipv6type=$i | 
 | 9115 | 				ipv6lib=inet6 | 
 | 9116 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9117 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9118 | 			fi | 
 | 9119 | 			;; | 
 | 9120 | 		solaris) | 
 | 9121 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 9122 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9123 | 				ipv6type=$i | 
 | 9124 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9125 |                           fi | 
 | 9126 |                         fi | 
 | 9127 | 			;; | 
 | 9128 | 		toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9129 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9130 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9131 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9132 | #include <sys/param.h> | 
 | 9133 | #ifdef _TOSHIBA_INET6 | 
 | 9134 | yes | 
 | 9135 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9136 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9138 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9139 |   ipv6type=$i; | 
 | 9140 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9141 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9142 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9143 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9144 |  | 
 | 9145 | 			;; | 
 | 9146 | 		v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9147 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9148 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9149 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9150 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 9151 | #ifdef __V6D__ | 
 | 9152 | yes | 
 | 9153 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9154 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9156 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9157 |   ipv6type=$i; | 
 | 9158 | 				ipv6lib=v6; | 
 | 9159 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9160 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9161 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9162 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9163 |  | 
 | 9164 | 			;; | 
 | 9165 | 		zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9166 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9167 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9168 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9169 | #include <sys/param.h> | 
 | 9170 | #ifdef _ZETA_MINAMI_INET6 | 
 | 9171 | yes | 
 | 9172 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9174 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9175 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9176 |   ipv6type=$i; | 
 | 9177 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9178 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9179 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9180 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9181 |  | 
 | 9182 | 			;; | 
 | 9183 | 		esac | 
 | 9184 | 		if test "$ipv6type" != "unknown"; then | 
 | 9185 | 			break | 
 | 9186 | 		fi | 
 | 9187 | 	done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9188 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 9189 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9190 | fi | 
 | 9191 |  | 
 | 9192 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 9193 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 9194 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 9195 | 		echo "using lib$ipv6lib" | 
 | 9196 | 	else | 
 | 9197 | 		if test $ipv6trylibc = "yes"; then | 
 | 9198 | 			echo "using libc" | 
 | 9199 | 		else | 
 | 9200 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 9201 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 9202 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 9203 | 			exit 1 | 
 | 9204 | 		fi | 
 | 9205 | 	fi | 
 | 9206 | fi | 
 | 9207 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 9209 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 9210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9211 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9212 |  | 
 | 9213 |   #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9214 | int | 
 | 9215 | main () | 
 | 9216 | { | 
 | 9217 | FSIORefNum fRef = 0 | 
 | 9218 |   ; | 
 | 9219 |   return 0; | 
 | 9220 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9221 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9222 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9223 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9224 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9225 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9226 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9227 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9228 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9229 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9230 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9231 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9232 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9233 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9234 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9235 |  | 
 | 9236 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9238 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9239 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 9241 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9242 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9243 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9244 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9245 |   withval=$with_doc_strings; | 
 | 9246 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9247 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9248 |  | 
 | 9249 | if test -z "$with_doc_strings" | 
 | 9250 | then with_doc_strings="yes" | 
 | 9251 | fi | 
 | 9252 | if test "$with_doc_strings" != "no" | 
 | 9253 | then | 
 | 9254 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9255 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9256 |  | 
 | 9257 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 9259 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9260 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 9261 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 9263 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9264 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9265 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9266 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9267 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9268 | if test "$withval" != no | 
 | 9269 | then | 
 | 9270 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9271 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9272 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9273 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9274 | $as_echo "yes" >&6; } | 
 | 9275 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9276 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9277 | fi | 
 | 9278 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9279 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9280 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9281 | fi | 
 | 9282 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9283 |  | 
 | 9284 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 9286 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9287 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9288 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9289 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9290 |   withval=$with_pymalloc; | 
 | 9291 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9292 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9293 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9294 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 9295 | then | 
 | 9296 |     with_pymalloc="yes" | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 9297 |     ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9298 | fi | 
 | 9299 | if test "$with_pymalloc" != "no" | 
 | 9300 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9301 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9302 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9303 |  | 
 | 9304 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 9306 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9307 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9308 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 9310 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9311 |  | 
 | 9312 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9313 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9314 |   withval=$with_valgrind; | 
 | 9315 | else | 
 | 9316 |   with_valgrind=no | 
 | 9317 | fi | 
 | 9318 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 9320 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9321 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9322 |     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9323 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9324 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9325 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9326 |  | 
 | 9327 | else | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 9328 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9329 |  | 
 | 9330 | fi | 
 | 9331 |  | 
 | 9332 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 9333 |     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9334 | fi | 
 | 9335 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9336 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9337 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9338 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9339 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9340 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 9341 | # 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] | 9342 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9343 | do : | 
 | 9344 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9345 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9347 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9348 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9349 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9350 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9351 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9352 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9353 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9354 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 9355 | # loading of modules. | 
 | 9356 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 9358 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9359 | if test -z "$DYNLOADFILE" | 
 | 9360 | then | 
 | 9361 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9362 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 9363 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 9364 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 9365 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 9366 | 	fi | 
 | 9367 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9368 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9369 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 9370 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9371 | 	*) | 
 | 9372 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 9373 | 	# out any dynamic loading | 
 | 9374 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 9375 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 9376 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 9377 | 	fi | 
 | 9378 | 	;; | 
 | 9379 | 	esac | 
 | 9380 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 9382 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9383 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 9384 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9385 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9386 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9387 |  | 
 | 9388 | fi | 
 | 9389 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9390 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 9391 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9392 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 9394 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9395 | if test -z "$MACHDEP_OBJS" | 
 | 9396 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9397 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 9398 | else | 
 | 9399 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9400 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
 | 9402 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9403 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9404 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 9405 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 9406 |  clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9407 |  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9408 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Antoine Pitrou | b7572f0 | 2009-12-02 20:46:48 +0000 | [diff] [blame] | 9409 |  initgroups kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9410 |  mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9411 |  putenv readlink realpath \ | 
| Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 9412 |  select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
 | 9413 |  setgid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9414 |  setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setuid setvbuf \ | 
| Jean-Paul Calderone | 6ed7ac4 | 2010-06-19 19:58:37 +0000 | [diff] [blame] | 9415 |  sigaction siginterrupt sigrelse snprintf strftime strlcpy \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9416 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 9417 |  truncate uname unsetenv utimes waitpid wait3 wait4 \ | 
 | 9418 |  wcscoll wcsftime wcsxfrm _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9419 | do : | 
 | 9420 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9421 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 9422 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9423 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9424 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9426 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9427 | fi | 
 | 9428 | done | 
 | 9429 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9430 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9431 | # For some functions, having a definition is not sufficient, since | 
 | 9432 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 9434 | $as_echo_n "checking for chroot... " >&6; } | 
 | 9435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9436 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9437 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9438 | int | 
 | 9439 | main () | 
 | 9440 | { | 
 | 9441 | void *x=chroot | 
 | 9442 |   ; | 
 | 9443 |   return 0; | 
 | 9444 | } | 
 | 9445 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9446 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9447 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9448 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9449 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9450 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9451 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9452 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9453 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9454 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9455 |  | 
 | 9456 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 9459 | $as_echo_n "checking for link... " >&6; } | 
 | 9460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9461 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9462 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9463 | int | 
 | 9464 | main () | 
 | 9465 | { | 
 | 9466 | void *x=link | 
 | 9467 |   ; | 
 | 9468 |   return 0; | 
 | 9469 | } | 
 | 9470 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9471 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9472 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9473 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9474 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9475 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9476 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9477 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9478 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9479 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9480 |  | 
 | 9481 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 9484 | $as_echo_n "checking for symlink... " >&6; } | 
 | 9485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9486 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9487 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9488 | int | 
 | 9489 | main () | 
 | 9490 | { | 
 | 9491 | void *x=symlink | 
 | 9492 |   ; | 
 | 9493 |   return 0; | 
 | 9494 | } | 
 | 9495 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9496 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9497 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9498 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9499 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9500 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9501 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9502 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9503 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9504 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9505 |  | 
 | 9506 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 9509 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 9510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9511 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9512 | #include <unistd.h> | 
 | 9513 | int | 
 | 9514 | main () | 
 | 9515 | { | 
 | 9516 | void *x=fchdir | 
 | 9517 |   ; | 
 | 9518 |   return 0; | 
 | 9519 | } | 
 | 9520 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9521 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9522 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9523 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9524 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9525 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9526 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9527 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9528 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9529 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9530 |  | 
 | 9531 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 9534 | $as_echo_n "checking for fsync... " >&6; } | 
 | 9535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9536 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9537 | #include <unistd.h> | 
 | 9538 | int | 
 | 9539 | main () | 
 | 9540 | { | 
 | 9541 | void *x=fsync | 
 | 9542 |   ; | 
 | 9543 |   return 0; | 
 | 9544 | } | 
 | 9545 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9546 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9548 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9549 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9550 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9551 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9552 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9553 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9554 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9555 |  | 
 | 9556 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 9559 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 9560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9561 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9562 | #include <unistd.h> | 
 | 9563 | int | 
 | 9564 | main () | 
 | 9565 | { | 
 | 9566 | void *x=fdatasync | 
 | 9567 |   ; | 
 | 9568 |   return 0; | 
 | 9569 | } | 
 | 9570 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9571 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9572 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9573 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9574 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9575 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9576 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9577 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9578 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9579 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9580 |  | 
 | 9581 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 9584 | $as_echo_n "checking for epoll... " >&6; } | 
 | 9585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9586 | /* end confdefs.h.  */ | 
 | 9587 | #include <sys/epoll.h> | 
 | 9588 | int | 
 | 9589 | main () | 
 | 9590 | { | 
 | 9591 | void *x=epoll_create | 
 | 9592 |   ; | 
 | 9593 |   return 0; | 
 | 9594 | } | 
 | 9595 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9596 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9597 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9598 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9599 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9600 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9601 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9602 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9603 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9604 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9605 |  | 
 | 9606 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 9609 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 9610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9611 | /* end confdefs.h.  */ | 
 | 9612 |  | 
 | 9613 | #include <sys/types.h> | 
 | 9614 | #include <sys/event.h> | 
 | 9615 |  | 
 | 9616 | int | 
 | 9617 | main () | 
 | 9618 | { | 
 | 9619 | int x=kqueue() | 
 | 9620 |   ; | 
 | 9621 |   return 0; | 
 | 9622 | } | 
 | 9623 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9624 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9625 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9626 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9627 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9628 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9629 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9630 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9631 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9632 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9633 |  | 
 | 9634 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9635 | 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] | 9636 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 9637 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 9638 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 9639 | # address to avoid compiler warnings and potential miscompilations | 
 | 9640 | # because of the missing prototypes. | 
 | 9641 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 9643 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 9644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9645 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9646 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9647 | #include <stdio.h> | 
 | 9648 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9649 | int | 
 | 9650 | main () | 
 | 9651 | { | 
 | 9652 | void* p = ctermid_r | 
 | 9653 |   ; | 
 | 9654 |   return 0; | 
 | 9655 | } | 
 | 9656 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9657 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9658 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9659 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9660 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9661 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9662 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9663 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9664 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9665 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9666 |  | 
 | 9667 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9669 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 9671 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9672 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9673 |   $as_echo_n "(cached) " >&6 | 
 | 9674 | else | 
 | 9675 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9676 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9677 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9678 | int | 
 | 9679 | main () | 
 | 9680 | { | 
 | 9681 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9682 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9683 |   ; | 
 | 9684 |   return 0; | 
 | 9685 | } | 
 | 9686 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9687 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9688 |   ac_cv_flock_decl=yes | 
 | 9689 | else | 
 | 9690 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9691 |  | 
 | 9692 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9694 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9695 | fi | 
 | 9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 9697 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 9698 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 9699 |   for ac_func in flock | 
 | 9700 | do : | 
 | 9701 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9702 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9703 |   cat >>confdefs.h <<_ACEOF | 
 | 9704 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9705 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9706 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9707 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9708 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9709 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9710 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9711 |   $as_echo_n "(cached) " >&6 | 
 | 9712 | else | 
 | 9713 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9714 | LIBS="-lbsd  $LIBS" | 
 | 9715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9716 | /* end confdefs.h.  */ | 
 | 9717 |  | 
 | 9718 | /* Override any GCC internal prototype to avoid an error. | 
 | 9719 |    Use char because int might match the return type of a GCC | 
 | 9720 |    builtin and then its argument prototype would still apply.  */ | 
 | 9721 | #ifdef __cplusplus | 
 | 9722 | extern "C" | 
 | 9723 | #endif | 
 | 9724 | char flock (); | 
 | 9725 | int | 
 | 9726 | main () | 
 | 9727 | { | 
 | 9728 | return flock (); | 
 | 9729 |   ; | 
 | 9730 |   return 0; | 
 | 9731 | } | 
 | 9732 | _ACEOF | 
 | 9733 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9734 |   ac_cv_lib_bsd_flock=yes | 
 | 9735 | else | 
 | 9736 |   ac_cv_lib_bsd_flock=no | 
 | 9737 | fi | 
 | 9738 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9739 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9740 | LIBS=$ac_check_lib_save_LIBS | 
 | 9741 | fi | 
 | 9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 9743 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9744 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9745 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9746 |  | 
 | 9747 |  | 
 | 9748 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 9749 |  | 
 | 9750 |  | 
 | 9751 | fi | 
 | 9752 |  | 
 | 9753 |  | 
 | 9754 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9755 | done | 
 | 9756 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9757 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 9760 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 9761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9762 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9763 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9764 | #include <unistd.h> | 
 | 9765 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9766 | int | 
 | 9767 | main () | 
 | 9768 | { | 
 | 9769 | void* p = getpagesize | 
 | 9770 |   ; | 
 | 9771 |   return 0; | 
 | 9772 | } | 
 | 9773 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9774 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9775 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9776 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9777 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9778 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9779 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9780 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9781 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9782 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9783 |  | 
 | 9784 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9785 | 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] | 9786 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9787 | for ac_prog in true | 
 | 9788 | do | 
 | 9789 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 9790 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9792 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9793 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9794 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9795 | else | 
 | 9796 |   if test -n "$TRUE"; then | 
 | 9797 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 9798 | else | 
 | 9799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9800 | for as_dir in $PATH | 
 | 9801 | do | 
 | 9802 |   IFS=$as_save_IFS | 
 | 9803 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9804 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9805 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9806 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9807 |     $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] | 9808 |     break 2 | 
 | 9809 |   fi | 
 | 9810 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9811 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9812 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9813 |  | 
 | 9814 | fi | 
 | 9815 | fi | 
 | 9816 | TRUE=$ac_cv_prog_TRUE | 
 | 9817 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9818 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 9819 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9820 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9821 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9822 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9823 | fi | 
 | 9824 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9825 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9826 |   test -n "$TRUE" && break | 
 | 9827 | done | 
 | 9828 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 9829 |  | 
 | 9830 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 9832 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9833 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9834 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9835 | else | 
 | 9836 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9837 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9839 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9840 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9841 | /* Override any GCC internal prototype to avoid an error. | 
 | 9842 |    Use char because int might match the return type of a GCC | 
 | 9843 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9844 | #ifdef __cplusplus | 
 | 9845 | extern "C" | 
 | 9846 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9847 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9848 | int | 
 | 9849 | main () | 
 | 9850 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9851 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9852 |   ; | 
 | 9853 |   return 0; | 
 | 9854 | } | 
 | 9855 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9856 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9857 |   ac_cv_lib_c_inet_aton=yes | 
 | 9858 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9859 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9860 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9861 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9862 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9863 | LIBS=$ac_check_lib_save_LIBS | 
 | 9864 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 9866 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9867 | 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] | 9868 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9869 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9870 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 9871 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9872 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9873 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9874 | else | 
 | 9875 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9876 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9878 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9879 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9880 | /* Override any GCC internal prototype to avoid an error. | 
 | 9881 |    Use char because int might match the return type of a GCC | 
 | 9882 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9883 | #ifdef __cplusplus | 
 | 9884 | extern "C" | 
 | 9885 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9886 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9887 | int | 
 | 9888 | main () | 
 | 9889 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9890 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9891 |   ; | 
 | 9892 |   return 0; | 
 | 9893 | } | 
 | 9894 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9895 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9896 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 9897 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9898 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9899 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9900 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9901 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9902 | LIBS=$ac_check_lib_save_LIBS | 
 | 9903 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 9905 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9906 | 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] | 9907 |   cat >>confdefs.h <<_ACEOF | 
 | 9908 | #define HAVE_LIBRESOLV 1 | 
 | 9909 | _ACEOF | 
 | 9910 |  | 
 | 9911 |   LIBS="-lresolv $LIBS" | 
 | 9912 |  | 
 | 9913 | fi | 
 | 9914 |  | 
 | 9915 |  | 
 | 9916 | fi | 
 | 9917 |  | 
 | 9918 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9919 | # On Tru64, chflags seems to be present, but calling it will | 
 | 9920 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 9922 | $as_echo_n "checking for chflags... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9923 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9924 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9925 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9926 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9927 |   ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9928 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9929 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9930 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 9931 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9932 | #include <sys/stat.h> | 
 | 9933 | #include <unistd.h> | 
 | 9934 | int main(int argc, char*argv[]) | 
 | 9935 | { | 
 | 9936 |   if(chflags(argv[0], 0) != 0) | 
 | 9937 |     return 1; | 
 | 9938 |   return 0; | 
 | 9939 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 9940 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9941 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9942 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9943 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9944 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9945 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9946 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9947 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9948 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 9949 | fi | 
 | 9950 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9951 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9952 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 9954 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9955 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9956 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9957 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9958 |   ac_cv_have_chflags="yes" | 
 | 9959 | else | 
 | 9960 |   ac_cv_have_chflags="no" | 
 | 9961 | fi | 
 | 9962 |  | 
 | 9963 | fi | 
 | 9964 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9965 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9966 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9967 |  | 
 | 9968 | fi | 
 | 9969 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 9971 | $as_echo_n "checking for lchflags... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 9972 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9973 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9974 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9975 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9976 |   ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9977 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9978 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9979 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 9980 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9981 | #include <sys/stat.h> | 
 | 9982 | #include <unistd.h> | 
 | 9983 | int main(int argc, char*argv[]) | 
 | 9984 | { | 
 | 9985 |   if(lchflags(argv[0], 0) != 0) | 
 | 9986 |     return 1; | 
 | 9987 |   return 0; | 
 | 9988 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 9989 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9990 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9991 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9992 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9993 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9994 |   ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9995 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9996 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9997 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9998 | fi | 
 | 9999 |  | 
 | 10000 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10001 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 10003 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10004 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10005 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10006 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10007 |   ac_cv_have_lchflags="yes" | 
 | 10008 | else | 
 | 10009 |   ac_cv_have_lchflags="no" | 
 | 10010 | fi | 
 | 10011 |  | 
 | 10012 | fi | 
 | 10013 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10014 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10015 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10016 |  | 
 | 10017 | fi | 
 | 10018 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10019 | case $ac_sys_system/$ac_sys_release in | 
 | 10020 | Darwin/*) | 
 | 10021 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 10022 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 10023 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 10024 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 10025 | 	;; | 
 | 10026 | esac | 
 | 10027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 10029 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10030 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10031 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10032 | else | 
 | 10033 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10034 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10036 | /* end confdefs.h.  */ | 
 | 10037 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10038 | /* Override any GCC internal prototype to avoid an error. | 
 | 10039 |    Use char because int might match the return type of a GCC | 
 | 10040 |    builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10041 | #ifdef __cplusplus | 
 | 10042 | extern "C" | 
 | 10043 | #endif | 
 | 10044 | char inflateCopy (); | 
 | 10045 | int | 
 | 10046 | main () | 
 | 10047 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10048 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10049 |   ; | 
 | 10050 |   return 0; | 
 | 10051 | } | 
 | 10052 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10053 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10054 |   ac_cv_lib_z_inflateCopy=yes | 
 | 10055 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10056 |   ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10057 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10058 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10059 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10060 | LIBS=$ac_check_lib_save_LIBS | 
 | 10061 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 10063 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10064 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10065 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10066 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10067 |  | 
 | 10068 | fi | 
 | 10069 |  | 
 | 10070 |  | 
 | 10071 | case $ac_sys_system/$ac_sys_release in | 
 | 10072 | Darwin/*) | 
 | 10073 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 10074 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 10075 | 	;; | 
 | 10076 | esac | 
 | 10077 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 10079 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 10080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10081 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10082 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10083 | #include <netdb.h> | 
 | 10084 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10085 | int | 
 | 10086 | main () | 
 | 10087 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10088 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10089 |   ; | 
 | 10090 |   return 0; | 
 | 10091 | } | 
 | 10092 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10093 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10094 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10095 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10096 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10097 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10098 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10099 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10100 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10101 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10102 |  | 
 | 10103 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10104 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10105 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10106 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 10108 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 10109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10110 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10111 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10112 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10113 | #include <sys/socket.h> | 
 | 10114 | #include <netinet/in.h> | 
 | 10115 | #include <arpa/inet.h> | 
 | 10116 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10117 | int | 
 | 10118 | main () | 
 | 10119 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10120 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10121 |   ; | 
 | 10122 |   return 0; | 
 | 10123 | } | 
 | 10124 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10125 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10126 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10127 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10128 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10129 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10130 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10131 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10132 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10133 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10134 |  | 
 | 10135 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10136 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10137 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10138 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 10140 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 10141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10142 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10143 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10144 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10145 | #include <sys/socket.h> | 
 | 10146 | #include <netinet/in.h> | 
 | 10147 | #include <arpa/inet.h> | 
 | 10148 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10149 | int | 
 | 10150 | main () | 
 | 10151 | { | 
 | 10152 | void* p = inet_pton | 
 | 10153 |   ; | 
 | 10154 |   return 0; | 
 | 10155 | } | 
 | 10156 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10157 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10158 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10159 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10160 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10161 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10162 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10163 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10164 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10165 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10166 |  | 
 | 10167 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10168 | 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] | 10169 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10170 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 10172 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 10173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10174 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10175 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10176 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10177 | #ifdef HAVE_GRP_H | 
 | 10178 | #include <grp.h> | 
 | 10179 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10180 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10181 | int | 
 | 10182 | main () | 
 | 10183 | { | 
 | 10184 | void* p = setgroups | 
 | 10185 |   ; | 
 | 10186 |   return 0; | 
 | 10187 | } | 
 | 10188 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10189 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10190 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10191 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10192 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10193 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10194 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10195 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10196 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10197 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10198 |  | 
 | 10199 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10200 | 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] | 10201 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10202 | # check for openpty and forkpty | 
 | 10203 |  | 
 | 10204 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10205 | do : | 
 | 10206 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10207 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10209 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10210 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10211 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10212 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10213 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 10214 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10215 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10216 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10217 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10218 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10219 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10221 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10223 | /* Override any GCC internal prototype to avoid an error. | 
 | 10224 |    Use char because int might match the return type of a GCC | 
 | 10225 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | #ifdef __cplusplus | 
 | 10227 | extern "C" | 
 | 10228 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | int | 
 | 10231 | main () | 
 | 10232 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10233 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 |   ; | 
 | 10235 |   return 0; | 
 | 10236 | } | 
 | 10237 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10238 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10240 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10241 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10242 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10243 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10244 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10246 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 10248 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10249 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10250 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10251 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10252 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10253 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 10254 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10255 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10256 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10257 | else | 
 | 10258 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10259 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10261 | /* end confdefs.h.  */ | 
 | 10262 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10263 | /* Override any GCC internal prototype to avoid an error. | 
 | 10264 |    Use char because int might match the return type of a GCC | 
 | 10265 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10266 | #ifdef __cplusplus | 
 | 10267 | extern "C" | 
 | 10268 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10269 | char openpty (); | 
 | 10270 | int | 
 | 10271 | main () | 
 | 10272 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10273 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10274 |   ; | 
 | 10275 |   return 0; | 
 | 10276 | } | 
 | 10277 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10278 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10279 |   ac_cv_lib_bsd_openpty=yes | 
 | 10280 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10281 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10282 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10283 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10284 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10285 | LIBS=$ac_check_lib_save_LIBS | 
 | 10286 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 10288 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10289 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10290 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10291 |  LIBS="$LIBS -lbsd" | 
 | 10292 | fi | 
 | 10293 |  | 
 | 10294 |  | 
 | 10295 | fi | 
 | 10296 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10297 |  | 
 | 10298 | fi | 
 | 10299 | done | 
 | 10300 |  | 
 | 10301 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10302 | do : | 
 | 10303 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10304 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10306 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10308 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10309 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10310 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 10311 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10312 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10313 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10314 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10316 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10318 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10320 | /* Override any GCC internal prototype to avoid an error. | 
 | 10321 |    Use char because int might match the return type of a GCC | 
 | 10322 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10323 | #ifdef __cplusplus | 
 | 10324 | extern "C" | 
 | 10325 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | int | 
 | 10328 | main () | 
 | 10329 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10330 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 |   ; | 
 | 10332 |   return 0; | 
 | 10333 | } | 
 | 10334 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10335 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10337 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10338 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10339 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10340 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10341 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10343 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 10345 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10346 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10347 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10348 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10349 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10350 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 10351 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10352 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10353 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10354 | else | 
 | 10355 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10356 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10358 | /* end confdefs.h.  */ | 
 | 10359 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10360 | /* Override any GCC internal prototype to avoid an error. | 
 | 10361 |    Use char because int might match the return type of a GCC | 
 | 10362 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10363 | #ifdef __cplusplus | 
 | 10364 | extern "C" | 
 | 10365 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10366 | char forkpty (); | 
 | 10367 | int | 
 | 10368 | main () | 
 | 10369 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10370 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10371 |   ; | 
 | 10372 |   return 0; | 
 | 10373 | } | 
 | 10374 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10375 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10376 |   ac_cv_lib_bsd_forkpty=yes | 
 | 10377 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10378 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10379 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10380 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10381 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10382 | LIBS=$ac_check_lib_save_LIBS | 
 | 10383 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 10385 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10386 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10387 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10388 |  LIBS="$LIBS -lbsd" | 
 | 10389 | fi | 
 | 10390 |  | 
 | 10391 |  | 
 | 10392 | fi | 
 | 10393 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10394 |  | 
 | 10395 | fi | 
 | 10396 | done | 
 | 10397 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10398 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10399 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10400 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10401 | do : | 
 | 10402 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10403 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10404 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10405 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10406 | _ACEOF | 
 | 10407 |  | 
 | 10408 | fi | 
 | 10409 | done | 
 | 10410 |  | 
 | 10411 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10412 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10413 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10414 | do : | 
 | 10415 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 10416 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10417 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10419 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10420 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10421 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10422 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10423 | done | 
 | 10424 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10425 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10426 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10427 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10428 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10429 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10430 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10431 |   case " $LIBOBJS " in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10432 |   *" dup2.$ac_objext "* ) ;; | 
 | 10433 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10434 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10435 | esac | 
 | 10436 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10437 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10438 |  | 
 | 10439 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10440 | if test "x$ac_cv_func_getcwd" = xyes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10441 |   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h | 
 | 10442 |  | 
 | 10443 | else | 
 | 10444 |   case " $LIBOBJS " in | 
 | 10445 |   *" getcwd.$ac_objext "* ) ;; | 
 | 10446 |   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" | 
 | 10447 |  ;; | 
 | 10448 | esac | 
 | 10449 |  | 
 | 10450 | fi | 
 | 10451 |  | 
 | 10452 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10453 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10454 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 10455 |  | 
 | 10456 | else | 
 | 10457 |   case " $LIBOBJS " in | 
 | 10458 |   *" strdup.$ac_objext "* ) ;; | 
 | 10459 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 10460 |  ;; | 
 | 10461 | esac | 
 | 10462 |  | 
 | 10463 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10464 |  | 
 | 10465 |  | 
 | 10466 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10467 | do : | 
 | 10468 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10469 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10471 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10473 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10474 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10475 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10476 | int | 
 | 10477 | main () | 
 | 10478 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10479 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10480 |   ; | 
 | 10481 |   return 0; | 
 | 10482 | } | 
 | 10483 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10484 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10485 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10486 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10487 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10488 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10489 | 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] | 10490 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10491 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10492 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10493 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10494 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10495 | do : | 
 | 10496 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10497 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10498 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10499 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10500 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10501 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10502 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10503 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10504 | int | 
 | 10505 | main () | 
 | 10506 | { | 
 | 10507 | setpgrp(0,0); | 
 | 10508 |   ; | 
 | 10509 |   return 0; | 
 | 10510 | } | 
 | 10511 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10512 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10513 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10514 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10515 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10516 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10518 |  | 
 | 10519 | fi | 
 | 10520 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10521 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10522 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10523 | do : | 
 | 10524 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10525 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10526 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10527 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10528 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10529 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10530 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10531 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | int | 
 | 10533 | main () | 
 | 10534 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10535 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 |   ; | 
 | 10537 |   return 0; | 
 | 10538 | } | 
 | 10539 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10540 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10541 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10542 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10543 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10544 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10545 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10546 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10547 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10548 | 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] | 10549 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10550 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10551 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10552 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10553 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 10555 | $as_echo_n "checking for major... " >&6; } | 
 | 10556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10557 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10558 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10559 | #if defined(MAJOR_IN_MKDEV) | 
 | 10560 | #include <sys/mkdev.h> | 
 | 10561 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 10562 | #include <sys/sysmacros.h> | 
 | 10563 | #else | 
 | 10564 | #include <sys/types.h> | 
 | 10565 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10566 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10567 | int | 
 | 10568 | main () | 
 | 10569 | { | 
 | 10570 |  | 
 | 10571 |   makedev(major(0),minor(0)); | 
 | 10572 |  | 
 | 10573 |   ; | 
 | 10574 |   return 0; | 
 | 10575 | } | 
 | 10576 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10577 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10578 |  | 
 | 10579 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10580 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10581 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10582 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10583 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10584 |  | 
 | 10585 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10586 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10588 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10589 |  | 
 | 10590 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10591 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10592 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10593 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10594 | # 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] | 10595 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 10597 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 10598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10599 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10600 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10601 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10602 | #include <sys/socket.h> | 
 | 10603 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10604 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10605 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | int | 
 | 10607 | main () | 
 | 10608 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10609 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10610 |   ; | 
 | 10611 |   return 0; | 
 | 10612 | } | 
 | 10613 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10614 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10615 |   have_getaddrinfo=yes | 
 | 10616 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10617 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10618 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10619 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10620 |     conftest$ac_exeext conftest.$ac_ext | 
 | 10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 10622 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10623 | if test $have_getaddrinfo = yes | 
 | 10624 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10625 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 10626 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10627 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10628 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10629 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10630 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10631 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10632 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10633 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10634 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10635 |  | 
 | 10636 | #include <sys/types.h> | 
 | 10637 | #include <netdb.h> | 
 | 10638 | #include <string.h> | 
 | 10639 | #include <sys/socket.h> | 
 | 10640 | #include <netinet/in.h> | 
 | 10641 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10642 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10643 | { | 
 | 10644 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 10645 |   struct addrinfo hints, *ai, *aitop; | 
 | 10646 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 10647 |  | 
 | 10648 |   for (passive = 0; passive <= 1; passive++) { | 
 | 10649 |     memset(&hints, 0, sizeof(hints)); | 
 | 10650 |     hints.ai_family = AF_UNSPEC; | 
 | 10651 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 10652 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10653 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10654 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 10655 |       (void)gai_strerror(gaierr); | 
 | 10656 |       goto bad; | 
 | 10657 |     } | 
 | 10658 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 10659 |       if (ai->ai_addr == NULL || | 
 | 10660 |           ai->ai_addrlen == 0 || | 
 | 10661 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 10662 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 10663 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 10664 |         goto bad; | 
 | 10665 |       } | 
 | 10666 |       switch (ai->ai_family) { | 
 | 10667 |       case AF_INET: | 
 | 10668 |         if (strcmp(strport, "54321") != 0) { | 
 | 10669 |           goto bad; | 
 | 10670 |         } | 
 | 10671 |         if (passive) { | 
 | 10672 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 10673 |             goto bad; | 
 | 10674 |           } | 
 | 10675 |         } else { | 
 | 10676 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 10677 |             goto bad; | 
 | 10678 |           } | 
 | 10679 |         } | 
 | 10680 |         inet4++; | 
 | 10681 |         break; | 
 | 10682 |       case AF_INET6: | 
 | 10683 |         if (strcmp(strport, "54321") != 0) { | 
 | 10684 |           goto bad; | 
 | 10685 |         } | 
 | 10686 |         if (passive) { | 
 | 10687 |           if (strcmp(straddr, "::") != 0) { | 
 | 10688 |             goto bad; | 
 | 10689 |           } | 
 | 10690 |         } else { | 
 | 10691 |           if (strcmp(straddr, "::1") != 0) { | 
 | 10692 |             goto bad; | 
 | 10693 |           } | 
 | 10694 |         } | 
 | 10695 |         inet6++; | 
 | 10696 |         break; | 
 | 10697 |       case AF_UNSPEC: | 
 | 10698 |         goto bad; | 
 | 10699 |         break; | 
 | 10700 |       default: | 
 | 10701 |         /* another family support? */ | 
 | 10702 |         break; | 
 | 10703 |       } | 
 | 10704 |     } | 
 | 10705 |   } | 
 | 10706 |  | 
 | 10707 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 10708 |     goto bad; | 
 | 10709 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 10710 |     goto bad; | 
 | 10711 |  | 
 | 10712 |   if (aitop) | 
 | 10713 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10714 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10715 |  | 
 | 10716 |  bad: | 
 | 10717 |   if (aitop) | 
 | 10718 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10719 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10720 | } | 
 | 10721 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10722 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10723 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10724 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10725 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10726 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10727 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10728 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10729 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10730 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10731 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10732 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10733 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10734 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10735 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 10737 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 10738 |  | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 10739 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10740 | then | 
 | 10741 | 	if test $ipv6 = yes | 
 | 10742 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10743 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 10744 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 10745 | 		exit 1 | 
 | 10746 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10747 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10749 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10750 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10751 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10752 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10753 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10754 | do : | 
 | 10755 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10756 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10758 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10759 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10760 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10761 | fi | 
 | 10762 | done | 
 | 10763 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10764 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10765 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 10767 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10768 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10769 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10770 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10771 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10772 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10773 | #include <sys/types.h> | 
 | 10774 | #include <sys/time.h> | 
 | 10775 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10776 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | int | 
 | 10778 | main () | 
 | 10779 | { | 
 | 10780 | if ((struct tm *) 0) | 
 | 10781 | return 0; | 
 | 10782 |   ; | 
 | 10783 |   return 0; | 
 | 10784 | } | 
 | 10785 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10786 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10787 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10788 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10789 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10790 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10792 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 10794 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10795 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10796 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10797 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10798 |  | 
 | 10799 | fi | 
 | 10800 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 10802 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10803 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10804 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10805 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10806 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10807 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10808 | #include <sys/types.h> | 
 | 10809 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10810 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10811 | int | 
 | 10812 | main () | 
 | 10813 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10814 | struct tm tm; | 
 | 10815 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10816 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10817 |   ; | 
 | 10818 |   return 0; | 
 | 10819 | } | 
 | 10820 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10821 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10822 |   ac_cv_struct_tm=time.h | 
 | 10823 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10824 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10825 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10827 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 10829 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10830 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10831 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10832 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10833 |  | 
 | 10834 | fi | 
 | 10835 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10836 | 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] | 10837 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10838 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10839 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10840 | 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] | 10841 |  | 
 | 10842 | cat >>confdefs.h <<_ACEOF | 
 | 10843 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 10844 | _ACEOF | 
 | 10845 |  | 
 | 10846 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10847 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10848 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10849 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 10850 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10851 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10852 |  | 
 | 10853 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10854 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 10855 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10856 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10857 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10858 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10859 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10860 | fi | 
 | 10861 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10862 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10863 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10864 | _ACEOF | 
 | 10865 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10866 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 10867 | $as_echo_n "checking for tzname... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10868 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10869 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10870 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10871 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10872 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10873 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10874 | #if !HAVE_DECL_TZNAME | 
 | 10875 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10876 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10877 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | int | 
 | 10879 | main () | 
 | 10880 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10881 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10882 |   ; | 
 | 10883 |   return 0; | 
 | 10884 | } | 
 | 10885 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10886 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10887 |   ac_cv_var_tzname=yes | 
 | 10888 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10889 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10890 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10891 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10892 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10893 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 10895 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10896 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10897 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10898 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10899 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10900 |   fi | 
 | 10901 | fi | 
 | 10902 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10903 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10904 | 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] | 10905 |  | 
 | 10906 | cat >>confdefs.h <<_ACEOF | 
 | 10907 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 10908 | _ACEOF | 
 | 10909 |  | 
 | 10910 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10911 | fi | 
 | 10912 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10913 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10914 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10915 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10916 | cat >>confdefs.h <<_ACEOF | 
 | 10917 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 10918 | _ACEOF | 
 | 10919 |  | 
 | 10920 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10921 | fi | 
 | 10922 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10923 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10924 | 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] | 10925 |  | 
 | 10926 | cat >>confdefs.h <<_ACEOF | 
 | 10927 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 10928 | _ACEOF | 
 | 10929 |  | 
 | 10930 |  | 
 | 10931 | fi | 
 | 10932 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10933 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10934 | 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] | 10935 |  | 
 | 10936 | cat >>confdefs.h <<_ACEOF | 
 | 10937 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 10938 | _ACEOF | 
 | 10939 |  | 
 | 10940 |  | 
 | 10941 | fi | 
 | 10942 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10943 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10944 | 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] | 10945 |  | 
 | 10946 | cat >>confdefs.h <<_ACEOF | 
 | 10947 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 10948 | _ACEOF | 
 | 10949 |  | 
 | 10950 |  | 
 | 10951 | fi | 
 | 10952 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10953 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10954 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10955 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10956 | cat >>confdefs.h <<_ACEOF | 
 | 10957 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 10958 | _ACEOF | 
 | 10959 |  | 
 | 10960 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10961 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10962 |  | 
 | 10963 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10964 |   case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10965 |   *" fileblocks.$ac_objext "* ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10966 |   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
 | 10967 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10968 | esac | 
 | 10969 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10970 | fi | 
 | 10971 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10972 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 10975 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 10976 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10977 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10978 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10979 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10980 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10981 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10982 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | int | 
 | 10984 | main () | 
 | 10985 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10986 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10987 |   ; | 
 | 10988 |   return 0; | 
 | 10989 | } | 
 | 10990 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10991 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10992 |   ac_cv_header_time_altzone=yes | 
 | 10993 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10994 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10995 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10997 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10998 | fi | 
 | 10999 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 11001 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11002 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11003 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11004 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11005 |  | 
 | 11006 | fi | 
 | 11007 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11008 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 11010 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 11011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11012 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11013 |  | 
 | 11014 | #include <sys/types.h> | 
 | 11015 | #include <sys/select.h> | 
 | 11016 | #include <sys/time.h> | 
 | 11017 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11018 | int | 
 | 11019 | main () | 
 | 11020 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11021 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11022 |   ; | 
 | 11023 |   return 0; | 
 | 11024 | } | 
 | 11025 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11026 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11027 |  | 
 | 11028 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11029 | $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] | 11030 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11031 |   was_it_defined=yes | 
 | 11032 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11033 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 11036 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 11039 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11040 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11041 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11042 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11043 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11044 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11045 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11046 | int | 
 | 11047 | main () | 
 | 11048 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11049 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11050 |   ; | 
 | 11051 |   return 0; | 
 | 11052 | } | 
 | 11053 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11054 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11055 |   ac_cv_struct_addrinfo=yes | 
 | 11056 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11057 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11058 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11060 | fi | 
 | 11061 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 11063 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11064 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11065 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11066 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11067 |  | 
 | 11068 | fi | 
 | 11069 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 11071 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11072 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11073 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11074 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11075 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11076 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11077 |  | 
 | 11078 | #		include <sys/types.h> | 
 | 11079 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11080 | int | 
 | 11081 | main () | 
 | 11082 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11083 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 |   ; | 
 | 11085 |   return 0; | 
 | 11086 | } | 
 | 11087 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11088 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11089 |   ac_cv_struct_sockaddr_storage=yes | 
 | 11090 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11091 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11092 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11094 | fi | 
 | 11095 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 11097 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11098 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11100 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11101 |  | 
 | 11102 | fi | 
 | 11103 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11104 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11105 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 11107 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11108 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11109 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11110 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11111 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11112 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11113 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | int | 
 | 11115 | main () | 
 | 11116 | { | 
 | 11117 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
 | 11118 | test_array [0] = 0 | 
 | 11119 |  | 
 | 11120 |   ; | 
 | 11121 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11122 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11124 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11125 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11127 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11128 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11130 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 11132 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11133 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11134 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11135 |  | 
 | 11136 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11137 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 11139 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11140 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11141 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11143 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11144 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11145 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | int | 
 | 11147 | main () | 
 | 11148 | { | 
 | 11149 | /* FIXME: Include the comments suggested by Paul. */ | 
 | 11150 | #ifndef __cplusplus | 
 | 11151 |   /* Ultrix mips cc rejects this.  */ | 
 | 11152 |   typedef int charset[2]; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11153 |   const charset cs; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11154 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11155 |   char const *const *pcpcc; | 
 | 11156 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11157 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 11158 |   struct point {int x, y;}; | 
 | 11159 |   static struct point const zero = {0,0}; | 
 | 11160 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 11161 |      It does not let you subtract one const X* pointer from another in | 
 | 11162 |      an arm of an if-expression whose if-part is not a constant | 
 | 11163 |      expression */ | 
 | 11164 |   const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11165 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 |   /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11167 |   ++pcpcc; | 
 | 11168 |   ppc = (char**) pcpcc; | 
 | 11169 |   pcpcc = (char const *const *) ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 |   { /* SCO 3.2v4 cc rejects this.  */ | 
 | 11171 |     char *t; | 
 | 11172 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11173 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11174 |     *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11175 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11176 |   } | 
 | 11177 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 11178 |     int x[] = {25, 17}; | 
 | 11179 |     const int *foo = &x[0]; | 
 | 11180 |     ++foo; | 
 | 11181 |   } | 
 | 11182 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 11183 |     typedef const int *iptr; | 
 | 11184 |     iptr p = 0; | 
 | 11185 |     ++p; | 
 | 11186 |   } | 
 | 11187 |   { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 11188 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 11189 |     struct s { int j; const int *ap[3]; }; | 
 | 11190 |     struct s *b; b->j = 5; | 
 | 11191 |   } | 
 | 11192 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 11193 |     const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11194 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11195 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11196 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11198 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 |   ; | 
 | 11200 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11201 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11203 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11204 |   ac_cv_c_const=yes | 
 | 11205 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11206 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11207 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11209 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 11211 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11212 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11213 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11214 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11215 |  | 
 | 11216 | fi | 
 | 11217 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11218 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11219 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 11221 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 11222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11223 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11224 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | int | 
 | 11226 | main () | 
 | 11227 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11228 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 |   ; | 
 | 11230 |   return 0; | 
 | 11231 | } | 
 | 11232 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11233 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11234 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11235 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11236 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11237 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11238 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11239 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11240 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11243 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11244 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11245 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 11247 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 11248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11249 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11250 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | int | 
 | 11252 | main () | 
 | 11253 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11254 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 |   ; | 
 | 11256 |   return 0; | 
 | 11257 | } | 
 | 11258 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11259 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11260 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11261 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11262 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11263 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11264 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11265 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11266 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11269 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11270 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11271 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 11273 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 11274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11275 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11276 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11277 | int | 
 | 11278 | main () | 
 | 11279 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11280 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 |   ; | 
 | 11282 |   return 0; | 
 | 11283 | } | 
 | 11284 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11285 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11287 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11289 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11290 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 11293 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11294 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11295 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 11297 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 11298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11299 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11300 |  | 
 | 11301 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11302 | int foo(int x, ...) { | 
 | 11303 | 	va_list va; | 
 | 11304 | 	va_start(va, x); | 
 | 11305 | 	va_arg(va, int); | 
 | 11306 | 	va_arg(va, char *); | 
 | 11307 | 	va_arg(va, double); | 
 | 11308 | 	return 0; | 
 | 11309 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11310 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | int | 
 | 11312 | main () | 
 | 11313 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11314 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 |   ; | 
 | 11316 |   return 0; | 
 | 11317 | } | 
 | 11318 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11319 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 |  | 
 | 11321 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11322 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11324 |   works=yes | 
 | 11325 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11326 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11329 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11330 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11331 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 11333 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 11334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11335 | /* end confdefs.h.  */ | 
 | 11336 |  | 
 | 11337 | #include <sys/types.h> | 
 | 11338 | #include <sys/socket.h> | 
 | 11339 |  | 
 | 11340 | int | 
 | 11341 | main () | 
 | 11342 | { | 
 | 11343 | void *x=socketpair | 
 | 11344 |   ; | 
 | 11345 |   return 0; | 
 | 11346 | } | 
 | 11347 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11348 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11349 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11350 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11351 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11352 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11353 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11354 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11355 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11356 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11357 |  | 
 | 11358 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11359 | 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] | 11360 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11361 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 11363 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 11364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11365 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11366 | #include <sys/types.h> | 
 | 11367 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11368 | int | 
 | 11369 | main () | 
 | 11370 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11371 | struct sockaddr x; | 
 | 11372 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 |   ; | 
 | 11374 |   return 0; | 
 | 11375 | } | 
 | 11376 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11377 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11378 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11379 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11380 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11381 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11382 |  | 
 | 11383 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11384 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11385 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11386 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11387 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11388 | 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] | 11389 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11390 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 11392 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 11393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11394 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11395 |  | 
 | 11396 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 11397 | #include <stdarg.h> | 
 | 11398 | #else | 
 | 11399 | #include <varargs.h> | 
 | 11400 | #endif | 
 | 11401 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | int | 
 | 11403 | main () | 
 | 11404 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11405 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 |   ; | 
 | 11407 |   return 0; | 
 | 11408 | } | 
 | 11409 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11410 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11411 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11412 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11413 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11414 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11415 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11416 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11417 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11418 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11419 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 11422 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11423 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11424 | # 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] | 11425 |  | 
 | 11426 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11427 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11428 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11429 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11430 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11431 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11432 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 11433 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11434 |   OLD_CFLAGS=$CFLAGS | 
 | 11435 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11436 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11437 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11438 |  | 
 | 11439 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11441 | int | 
 | 11442 | main () | 
 | 11443 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11444 |  | 
 | 11445 |     char *name; | 
 | 11446 |     struct hostent *he, *res; | 
 | 11447 |     char buffer[2048]; | 
 | 11448 |     int buflen = 2048; | 
 | 11449 |     int h_errnop; | 
 | 11450 |  | 
 | 11451 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11452 |  | 
 | 11453 |   ; | 
 | 11454 |   return 0; | 
 | 11455 | } | 
 | 11456 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11457 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11459 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11460 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11462 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11463 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11464 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11465 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11466 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11467 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11468 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11469 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11470 | $as_echo "no" >&6; } | 
 | 11471 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 11472 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 11473 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11474 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11475 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11476 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11477 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11478 | int | 
 | 11479 | main () | 
 | 11480 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11481 |  | 
 | 11482 |         char *name; | 
 | 11483 |         struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11484 |         char buffer[2048]; | 
 | 11485 |         int buflen = 2048; | 
 | 11486 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11487 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11488 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11489 |  | 
 | 11490 |   ; | 
 | 11491 |   return 0; | 
 | 11492 | } | 
 | 11493 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11494 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11496 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11497 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11499 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11500 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11501 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11502 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11503 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11504 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11505 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11506 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11507 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11508 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 11509 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 11510 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11511 | /* end confdefs.h.  */ | 
 | 11512 |  | 
 | 11513 | #           include <netdb.h> | 
 | 11514 |  | 
 | 11515 | int | 
 | 11516 | main () | 
 | 11517 | { | 
 | 11518 |  | 
 | 11519 |             char *name; | 
 | 11520 |             struct hostent *he; | 
 | 11521 |             struct hostent_data data; | 
 | 11522 |  | 
 | 11523 |             (void) gethostbyname_r(name, he, &data); | 
 | 11524 |  | 
 | 11525 |   ; | 
 | 11526 |   return 0; | 
 | 11527 | } | 
 | 11528 | _ACEOF | 
 | 11529 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11530 |  | 
 | 11531 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 11532 |  | 
 | 11533 |  | 
 | 11534 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 11535 |  | 
 | 11536 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11537 | $as_echo "yes" >&6; } | 
 | 11538 |  | 
 | 11539 | else | 
 | 11540 |  | 
 | 11541 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11542 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11543 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11544 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11545 | 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] | 11546 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11547 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11548 | 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] | 11549 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11550 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11552 |   CFLAGS=$OLD_CFLAGS | 
 | 11553 |  | 
 | 11554 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11556 |   for ac_func in gethostbyname | 
 | 11557 | do : | 
 | 11558 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11559 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11560 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11561 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11563 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11564 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11565 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11566 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11567 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11568 | fi | 
 | 11569 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11570 |  | 
 | 11571 |  | 
 | 11572 |  | 
 | 11573 |  | 
 | 11574 |  | 
 | 11575 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11576 | # checks for system services | 
 | 11577 | # (none yet) | 
 | 11578 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11579 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11580 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11581 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11582 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11583 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11584 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 11585 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11586 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11587 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11588 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11590 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11592 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11593 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11594 | /* Override any GCC internal prototype to avoid an error. | 
 | 11595 |    Use char because int might match the return type of a GCC | 
 | 11596 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11597 | #ifdef __cplusplus | 
 | 11598 | extern "C" | 
 | 11599 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11600 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11601 | int | 
 | 11602 | main () | 
 | 11603 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11604 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11605 |   ; | 
 | 11606 |   return 0; | 
 | 11607 | } | 
 | 11608 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11609 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11611 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11612 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11613 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11614 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11615 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11616 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11617 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 11619 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11620 | 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] | 11621 |   cat >>confdefs.h <<_ACEOF | 
 | 11622 | #define HAVE_LIBIEEE 1 | 
 | 11623 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11624 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11625 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11626 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11627 | fi | 
 | 11628 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11629 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11630 | fi | 
 | 11631 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11632 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11633 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 11635 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11637 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11638 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11639 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11640 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11641 | then | 
 | 11642 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11643 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11644 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11645 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11646 | $as_echo "yes" >&6; } | 
 | 11647 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11648 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11649 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11650 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11651 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11652 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11653 | fi | 
 | 11654 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11655 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11656 | # check for --with-libm=... | 
 | 11657 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11658 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11659 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11660 | *) LIBM=-lm | 
 | 11661 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 11663 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11665 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11666 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11667 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11668 | if test "$withval" = no | 
 | 11669 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11670 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 11671 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11672 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11673 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11674 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 11675 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11676 | 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] | 11677 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11678 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11679 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 11680 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11681 | fi | 
 | 11682 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11683 |  | 
 | 11684 | # check for --with-libc=... | 
 | 11685 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 11687 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11689 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11690 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11691 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11692 | if test "$withval" = no | 
 | 11693 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11694 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 11695 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11696 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11697 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11698 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 11699 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11700 | 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] | 11701 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11702 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11703 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 11704 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11705 | fi | 
 | 11706 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11707 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11708 | # ************************************************** | 
 | 11709 | # * Check for various properties of floating point * | 
 | 11710 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11711 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 11713 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11714 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11715 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11716 | else | 
 | 11717 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11718 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11719 |   ac_cv_little_endian_double=no | 
 | 11720 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11721 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11722 | /* end confdefs.h.  */ | 
 | 11723 |  | 
 | 11724 | #include <string.h> | 
 | 11725 | int main() { | 
 | 11726 |     double x = 9006104071832581.0; | 
 | 11727 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 11728 |         return 0; | 
 | 11729 |     else | 
 | 11730 |         return 1; | 
 | 11731 | } | 
 | 11732 |  | 
 | 11733 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11734 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11735 |   ac_cv_little_endian_double=yes | 
 | 11736 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11737 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11738 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11739 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11740 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11741 | fi | 
 | 11742 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11743 | fi | 
 | 11744 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 11746 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11747 | if test "$ac_cv_little_endian_double" = yes | 
 | 11748 | then | 
 | 11749 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11750 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11751 |  | 
 | 11752 | fi | 
 | 11753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 11755 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11756 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11757 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11758 | else | 
 | 11759 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11760 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11761 |   ac_cv_big_endian_double=no | 
 | 11762 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11763 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11764 | /* end confdefs.h.  */ | 
 | 11765 |  | 
 | 11766 | #include <string.h> | 
 | 11767 | int main() { | 
 | 11768 |     double x = 9006104071832581.0; | 
 | 11769 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 11770 |         return 0; | 
 | 11771 |     else | 
 | 11772 |         return 1; | 
 | 11773 | } | 
 | 11774 |  | 
 | 11775 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11776 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11777 |   ac_cv_big_endian_double=yes | 
 | 11778 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11779 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11780 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11781 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11782 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11783 | fi | 
 | 11784 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11785 | fi | 
 | 11786 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 11788 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11789 | if test "$ac_cv_big_endian_double" = yes | 
 | 11790 | then | 
 | 11791 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11792 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11793 |  | 
 | 11794 | fi | 
 | 11795 |  | 
 | 11796 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 11797 | # While Python doesn't currently have full support for these platforms | 
 | 11798 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 11799 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 11801 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11802 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11803 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11804 | else | 
 | 11805 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11806 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11807 |   ac_cv_mixed_endian_double=no | 
 | 11808 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11809 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11810 | /* end confdefs.h.  */ | 
 | 11811 |  | 
 | 11812 | #include <string.h> | 
 | 11813 | int main() { | 
 | 11814 |     double x = 9006104071832581.0; | 
 | 11815 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 11816 |         return 0; | 
 | 11817 |     else | 
 | 11818 |         return 1; | 
 | 11819 | } | 
 | 11820 |  | 
 | 11821 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11822 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11823 |   ac_cv_mixed_endian_double=yes | 
 | 11824 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11825 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11826 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11827 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11828 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11829 | fi | 
 | 11830 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11831 | fi | 
 | 11832 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 11834 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11835 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 11836 | then | 
 | 11837 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11838 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11839 |  | 
 | 11840 | fi | 
 | 11841 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11842 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11843 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11844 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11845 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11846 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11847 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11848 |  | 
 | 11849 | # This inline assembler syntax may also work for suncc and icc, | 
 | 11850 | # so we try it on all platforms. | 
 | 11851 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 11853 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 11854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11855 | /* end confdefs.h.  */ | 
 | 11856 |  | 
 | 11857 | int | 
 | 11858 | main () | 
 | 11859 | { | 
 | 11860 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11861 |   unsigned short cw; | 
 | 11862 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 11863 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11864 |  | 
 | 11865 |   ; | 
 | 11866 |   return 0; | 
 | 11867 | } | 
 | 11868 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11869 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11870 |   have_gcc_asm_for_x87=yes | 
 | 11871 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11872 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11873 | fi | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 11876 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11877 | if test "$have_gcc_asm_for_x87" = yes | 
 | 11878 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11879 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11880 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11881 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11882 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11884 | # Detect whether system arithmetic is subject to x87-style double | 
 | 11885 | # rounding issues.  The result of this test has little meaning on non | 
 | 11886 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 11887 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 11888 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 11890 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11891 | # $BASECFLAGS may affect the result | 
 | 11892 | ac_save_cc="$CC" | 
 | 11893 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11894 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11895 |   ac_cv_x87_double_rounding=no | 
 | 11896 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11897 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11898 | /* end confdefs.h.  */ | 
 | 11899 |  | 
 | 11900 | #include <stdlib.h> | 
 | 11901 | #include <math.h> | 
 | 11902 | int main() { | 
 | 11903 |     volatile double x, y, z; | 
 | 11904 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 11905 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 11906 |     y = 1./x; | 
 | 11907 |     if (y != 1.) | 
 | 11908 |         exit(0); | 
 | 11909 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 11910 |     x = 1e16; | 
 | 11911 |     y = 2.99999; | 
 | 11912 |     z = x + y; | 
 | 11913 |     if (z != 1e16+4.) | 
 | 11914 |         exit(0); | 
 | 11915 |     /* both tests show evidence of double rounding */ | 
 | 11916 |     exit(1); | 
 | 11917 | } | 
 | 11918 |  | 
 | 11919 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11920 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11921 |   ac_cv_x87_double_rounding=no | 
 | 11922 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11923 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11924 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11925 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11926 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11927 | fi | 
 | 11928 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11929 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 11931 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11932 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 11933 | then | 
 | 11934 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11935 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11936 |  | 
 | 11937 | fi | 
 | 11938 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11939 | # ************************************ | 
 | 11940 | # * Check for mathematical functions * | 
 | 11941 | # ************************************ | 
 | 11942 |  | 
 | 11943 | LIBS_SAVE=$LIBS | 
 | 11944 | LIBS="$LIBS $LIBM" | 
 | 11945 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11946 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
 | 11947 | do : | 
 | 11948 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11949 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11950 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11951 |   cat >>confdefs.h <<_ACEOF | 
 | 11952 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 11953 | _ACEOF | 
 | 11954 |  | 
 | 11955 | fi | 
 | 11956 | done | 
 | 11957 |  | 
 | 11958 | for ac_func in hypot lgamma log1p round tgamma | 
 | 11959 | do : | 
 | 11960 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11961 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11962 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11963 |   cat >>confdefs.h <<_ACEOF | 
 | 11964 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 11965 | _ACEOF | 
 | 11966 |  | 
 | 11967 | fi | 
 | 11968 | done | 
 | 11969 |  | 
 | 11970 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 11971 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11972 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11973 |   ac_have_decl=1 | 
 | 11974 | else | 
 | 11975 |   ac_have_decl=0 | 
 | 11976 | fi | 
 | 11977 |  | 
 | 11978 | cat >>confdefs.h <<_ACEOF | 
 | 11979 | #define HAVE_DECL_ISINF $ac_have_decl | 
 | 11980 | _ACEOF | 
 | 11981 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 11982 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11983 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11984 |   ac_have_decl=1 | 
 | 11985 | else | 
 | 11986 |   ac_have_decl=0 | 
 | 11987 | fi | 
 | 11988 |  | 
 | 11989 | cat >>confdefs.h <<_ACEOF | 
 | 11990 | #define HAVE_DECL_ISNAN $ac_have_decl | 
 | 11991 | _ACEOF | 
 | 11992 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 11993 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 11994 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11995 |   ac_have_decl=1 | 
 | 11996 | else | 
 | 11997 |   ac_have_decl=0 | 
 | 11998 | fi | 
 | 11999 |  | 
 | 12000 | cat >>confdefs.h <<_ACEOF | 
 | 12001 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
 | 12002 | _ACEOF | 
 | 12003 |  | 
 | 12004 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12005 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 12006 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 12008 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12009 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12010 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12011 | else | 
 | 12012 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12013 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12014 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 12015 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12016 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12017 | /* end confdefs.h.  */ | 
 | 12018 |  | 
 | 12019 | #include <math.h> | 
 | 12020 | #include <stdlib.h> | 
 | 12021 | int main() { | 
 | 12022 |     /* return 0 if either negative zeros don't exist | 
 | 12023 |        on this platform or if negative zeros exist | 
 | 12024 |        and tanh(-0.) == -0. */ | 
 | 12025 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 12026 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 12027 |   else exit(1); | 
 | 12028 | } | 
 | 12029 |  | 
 | 12030 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12031 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12032 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 12033 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12034 |   ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12035 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12036 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12037 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12038 | fi | 
 | 12039 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12040 | fi | 
 | 12041 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 12043 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12044 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 12045 | then | 
 | 12046 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12047 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12048 |  | 
 | 12049 | fi | 
 | 12050 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12051 | if test "$ac_cv_func_log1p" = yes | 
 | 12052 | then | 
 | 12053 |     # On some versions of AIX, log1p(-0.) returns 0. instead of | 
 | 12054 |     # -0.  See issue #9920. | 
 | 12055 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
 | 12056 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12057 |     if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12058 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12059 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12060 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12061 |     if test "$cross_compiling" = yes; then : | 
 | 12062 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12063 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12064 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12065 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12066 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12067 |     #include <math.h> | 
 | 12068 |     #include <stdlib.h> | 
 | 12069 |     int main() { | 
 | 12070 |         /* Fail if the signs of log1p(-0.) and -0. can be | 
 | 12071 | 	   distinguished. */ | 
 | 12072 |         if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
 | 12073 |             return 0; | 
 | 12074 |         else | 
 | 12075 |             return 1; | 
 | 12076 |     } | 
 | 12077 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12078 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12079 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 12080 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12081 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12082 |   ac_cv_log1p_drops_zero_sign=yes | 
 | 12083 | fi | 
 | 12084 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12085 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12086 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12087 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12088 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12089 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12090 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
 | 12091 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
 | 12092 | fi | 
 | 12093 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
 | 12094 | then | 
 | 12095 |  | 
 | 12096 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
 | 12097 |  | 
 | 12098 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12099 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12100 | LIBS=$LIBS_SAVE | 
 | 12101 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12102 | # For multiprocessing module, check that sem_open | 
 | 12103 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 12104 | # the kernel module that provides POSIX semaphores | 
 | 12105 | # isn't loaded by default, so an attempt to call | 
 | 12106 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 12108 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12109 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12110 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12111 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12112 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12113 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12114 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12115 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12116 | /* end confdefs.h.  */ | 
 | 12117 |  | 
 | 12118 | #include <unistd.h> | 
 | 12119 | #include <fcntl.h> | 
 | 12120 | #include <stdio.h> | 
 | 12121 | #include <semaphore.h> | 
 | 12122 | #include <sys/stat.h> | 
 | 12123 |  | 
 | 12124 | int main(void) { | 
 | 12125 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 12126 |   if (a == SEM_FAILED) { | 
 | 12127 |     perror("sem_open"); | 
 | 12128 |     return 1; | 
 | 12129 |   } | 
 | 12130 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12131 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12132 |   return 0; | 
 | 12133 | } | 
 | 12134 |  | 
 | 12135 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12136 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12137 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12138 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12139 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12140 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12141 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12142 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12143 | fi | 
 | 12144 |  | 
 | 12145 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12146 | fi | 
 | 12147 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 12149 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12150 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 12151 | then | 
 | 12152 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12153 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12154 |  | 
 | 12155 | fi | 
 | 12156 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12157 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 12159 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12160 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12161 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12162 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12163 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12164 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12165 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12166 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12167 | /* end confdefs.h.  */ | 
 | 12168 |  | 
 | 12169 | #include <unistd.h> | 
 | 12170 | #include <fcntl.h> | 
 | 12171 | #include <stdio.h> | 
 | 12172 | #include <semaphore.h> | 
 | 12173 | #include <sys/stat.h> | 
 | 12174 |  | 
 | 12175 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12176 |   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12177 |   int count; | 
 | 12178 |   int res; | 
 | 12179 |   if(a==SEM_FAILED){ | 
 | 12180 |     perror("sem_open"); | 
 | 12181 |     return 1; | 
 | 12182 |  | 
 | 12183 |   } | 
 | 12184 |   res = sem_getvalue(a, &count); | 
 | 12185 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12186 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12187 |   return res==-1 ? 1 : 0; | 
 | 12188 | } | 
 | 12189 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12190 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12191 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12192 |   ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12193 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12194 |   ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12195 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12196 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12197 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12198 | fi | 
 | 12199 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12200 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12201 | fi | 
 | 12202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 12204 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12205 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 12206 | then | 
 | 12207 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12208 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12209 |  | 
 | 12210 | fi | 
 | 12211 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12212 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 12214 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12215 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12216 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12217 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 12218 | yes) | 
 | 12219 |   enable_big_digits=30 ;; | 
 | 12220 | no) | 
 | 12221 |   enable_big_digits=15 ;; | 
 | 12222 | 15|30) | 
 | 12223 |   ;; | 
 | 12224 | *) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12225 |   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12226 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 12228 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12229 |  | 
 | 12230 | cat >>confdefs.h <<_ACEOF | 
 | 12231 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 12232 | _ACEOF | 
 | 12233 |  | 
 | 12234 |  | 
 | 12235 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12236 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 12237 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12238 | fi | 
 | 12239 |  | 
 | 12240 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12241 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12242 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12243 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 |  | 
 | 12245 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12246 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12248 |   wchar_h="yes" | 
 | 12249 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12250 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12252 |  | 
 | 12253 | fi | 
 | 12254 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12255 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12257 | # determine wchar_t size | 
 | 12258 | if test "$wchar_h" = yes | 
 | 12259 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12260 |   # The cast to long int works around a bug in the HP C Compiler | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12261 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 12262 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 12263 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 12265 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12266 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12267 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12268 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12269 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 12270 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12271 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12273 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 12274 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 12275 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12276 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12277 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12278 |    else | 
 | 12279 |      ac_cv_sizeof_wchar_t=0 | 
 | 12280 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12281 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12282 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12283 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 12285 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12286 |  | 
 | 12287 |  | 
 | 12288 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12289 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12290 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12291 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12292 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12293 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12294 | fi | 
 | 12295 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 12297 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12298 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12300 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12301 |  | 
 | 12302 | #include <tcl.h> | 
 | 12303 | #if TCL_UTF_MAX != 6 | 
 | 12304 | # error "NOT UCS4_TCL" | 
 | 12305 | #endif | 
 | 12306 | int | 
 | 12307 | main () | 
 | 12308 | { | 
 | 12309 |  | 
 | 12310 |   ; | 
 | 12311 |   return 0; | 
 | 12312 | } | 
 | 12313 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12314 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12315 |  | 
 | 12316 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12317 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12318 |  | 
 | 12319 |   have_ucs4_tcl=yes | 
 | 12320 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12321 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 12324 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12325 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12326 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12327 | if test "$wchar_h" = yes | 
 | 12328 | then | 
 | 12329 |   # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12330 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 12331 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12332 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12333 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12334 | else | 
 | 12335 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12336 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12337 |   ac_cv_wchar_t_signed=yes | 
 | 12338 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12339 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12340 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12341 |  | 
 | 12342 |   #include <wchar.h> | 
 | 12343 |   int main() | 
 | 12344 |   { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12345 | 	/* Success: exit code 0 */ | 
 | 12346 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12347 |   } | 
 | 12348 |  | 
 | 12349 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12350 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12351 |   ac_cv_wchar_t_signed=yes | 
 | 12352 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12353 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12354 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12356 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12357 | fi | 
 | 12358 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12359 | fi | 
 | 12360 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12361 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 12362 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12363 | fi | 
 | 12364 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5 | 
 | 12366 | $as_echo_n "checking what type to use for str... " >&6; } | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12367 |  | 
 | 12368 | # Check whether --with-wide-unicode was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12369 | if test "${with_wide_unicode+set}" = set; then : | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12370 |   withval=$with_wide_unicode; | 
 | 12371 | if test "$withval" != no | 
 | 12372 | then unicode_size="4" | 
 | 12373 | else unicode_size="2" | 
 | 12374 | fi | 
 | 12375 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12376 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12377 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12378 | case "$have_ucs4_tcl" in | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12379 |   yes) unicode_size="4";; | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12380 |   *)   unicode_size="2" ;; | 
 | 12381 | esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12382 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12383 | fi | 
 | 12384 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12385 |  | 
 | 12386 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12387 | case "$unicode_size" in | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12388 |   4) | 
 | 12389 |      $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
 | 12390 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12391 |      ABIFLAGS="${ABIFLAGS}u" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12392 |      ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12393 |   *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12394 |  ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12395 | esac | 
 | 12396 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12397 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12398 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12399 | # wchar_t is only usable if it maps to an unsigned type | 
 | 12400 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12401 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12402 | then | 
 | 12403 |   PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12404 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12405 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12406 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12407 |   $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12408 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12409 | elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
 | 12410 | then | 
 | 12411 |      PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12412 |      $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12413 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12414 | elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
 | 12415 | then | 
 | 12416 |      PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12417 |      $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12418 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12419 | else | 
 | 12420 |      PY_UNICODE_TYPE="no type found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12421 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
 | 12423 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12424 |  | 
 | 12425 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12426 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 12427 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12428 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12429 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12430 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12431 |   ac_cv_c_bigendian=unknown | 
 | 12432 |     # See if we're dealing with a universal compiler. | 
 | 12433 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12434 | /* end confdefs.h.  */ | 
 | 12435 | #ifndef __APPLE_CC__ | 
 | 12436 | 	       not a universal capable compiler | 
 | 12437 | 	     #endif | 
 | 12438 | 	     typedef int dummy; | 
 | 12439 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12440 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12441 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12442 |  | 
 | 12443 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 12444 | 	# there are at least two -arch flags with different values. | 
 | 12445 | 	ac_arch= | 
 | 12446 | 	ac_prev= | 
 | 12447 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 12448 | 	 if test -n "$ac_prev"; then | 
 | 12449 | 	   case $ac_word in | 
 | 12450 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 12451 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 12452 | 		 ac_arch=$ac_word | 
 | 12453 | 	       else | 
 | 12454 | 		 ac_cv_c_bigendian=universal | 
 | 12455 | 		 break | 
 | 12456 | 	       fi | 
 | 12457 | 	       ;; | 
 | 12458 | 	   esac | 
 | 12459 | 	   ac_prev= | 
 | 12460 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 12461 | 	   ac_prev=arch | 
 | 12462 | 	 fi | 
 | 12463 |        done | 
 | 12464 | fi | 
 | 12465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12466 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12467 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 12468 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12469 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12470 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12471 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12472 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12473 | int | 
 | 12474 | main () | 
 | 12475 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12476 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 12477 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 12478 | 		     && LITTLE_ENDIAN) | 
 | 12479 | 	      bogus endian macros | 
 | 12480 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12481 |  | 
 | 12482 |   ; | 
 | 12483 |   return 0; | 
 | 12484 | } | 
 | 12485 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12486 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12487 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12488 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12489 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12490 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12491 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12492 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12493 | int | 
 | 12494 | main () | 
 | 12495 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12496 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12497 | 		 not big endian | 
 | 12498 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12499 |  | 
 | 12500 |   ; | 
 | 12501 |   return 0; | 
 | 12502 | } | 
 | 12503 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12504 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12505 |   ac_cv_c_bigendian=yes | 
 | 12506 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12507 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12508 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12510 | fi | 
 | 12511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12512 |     fi | 
 | 12513 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12514 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 12515 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12516 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12517 | #include <limits.h> | 
 | 12518 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12519 | int | 
 | 12520 | main () | 
 | 12521 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12522 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 12523 | 	      bogus endian macros | 
 | 12524 | 	     #endif | 
 | 12525 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 |   ; | 
 | 12527 |   return 0; | 
 | 12528 | } | 
 | 12529 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12530 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12531 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 12532 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12533 | /* end confdefs.h.  */ | 
 | 12534 | #include <limits.h> | 
 | 12535 |  | 
 | 12536 | int | 
 | 12537 | main () | 
 | 12538 | { | 
 | 12539 | #ifndef _BIG_ENDIAN | 
 | 12540 | 		 not big endian | 
 | 12541 | 		#endif | 
 | 12542 |  | 
 | 12543 |   ; | 
 | 12544 |   return 0; | 
 | 12545 | } | 
 | 12546 | _ACEOF | 
 | 12547 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12548 |   ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12549 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12550 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12553 | fi | 
 | 12554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12555 |     fi | 
 | 12556 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12557 |       # Compile a test program. | 
 | 12558 |       if test "$cross_compiling" = yes; then : | 
 | 12559 |   # Try to guess by grepping values from an object file. | 
 | 12560 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12561 | /* end confdefs.h.  */ | 
 | 12562 | short int ascii_mm[] = | 
 | 12563 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 12564 | 		short int ascii_ii[] = | 
 | 12565 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 12566 | 		int use_ascii (int i) { | 
 | 12567 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 12568 | 		} | 
 | 12569 | 		short int ebcdic_ii[] = | 
 | 12570 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 12571 | 		short int ebcdic_mm[] = | 
 | 12572 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 12573 | 		int use_ebcdic (int i) { | 
 | 12574 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 12575 | 		} | 
 | 12576 | 		extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12578 | int | 
 | 12579 | main () | 
 | 12580 | { | 
 | 12581 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 12582 |   ; | 
 | 12583 |   return 0; | 
 | 12584 | } | 
 | 12585 | _ACEOF | 
 | 12586 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12587 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 12588 | 	      ac_cv_c_bigendian=yes | 
 | 12589 | 	    fi | 
 | 12590 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 12591 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 12592 | 		ac_cv_c_bigendian=no | 
 | 12593 | 	      else | 
 | 12594 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 12595 | 		ac_cv_c_bigendian=unknown | 
 | 12596 | 	      fi | 
 | 12597 | 	    fi | 
 | 12598 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12599 | 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] | 12600 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12601 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12602 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12603 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12604 | int | 
 | 12605 | main () | 
 | 12606 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12607 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12608 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 12609 | 	     union | 
 | 12610 | 	     { | 
 | 12611 | 	       long int l; | 
 | 12612 | 	       char c[sizeof (long int)]; | 
 | 12613 | 	     } u; | 
 | 12614 | 	     u.l = 1; | 
 | 12615 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12616 |  | 
 | 12617 |   ; | 
 | 12618 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12619 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12620 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12621 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12622 |   ac_cv_c_bigendian=no | 
 | 12623 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12624 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12625 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12626 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12627 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12628 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12629 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12630 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12631 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 12633 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 12634 |  case $ac_cv_c_bigendian in #( | 
 | 12635 |    yes) | 
 | 12636 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 12637 | ;; #( | 
 | 12638 |    no) | 
 | 12639 |       ;; #( | 
 | 12640 |    universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 12641 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12642 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12644 |      ;; #( | 
 | 12645 |    *) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12646 |      as_fn_error $? "unknown endianness | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12647 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12648 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12649 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12650 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12651 | # ABI version string for Python extension modules.  This appears between the | 
 | 12652 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
 | 12653 | # from the following attributes which affect the ABI of this Python build (in | 
 | 12654 | # this order): | 
 | 12655 | # | 
 | 12656 | # * The Python implementation (always 'cpython-' for us) | 
 | 12657 | # * The major and minor version numbers | 
 | 12658 | # * --with-pydebug (adds a 'd') | 
 | 12659 | # * --with-pymalloc (adds a 'm') | 
 | 12660 | # * --with-wide-unicode (adds a 'u') | 
 | 12661 | # | 
 | 12662 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12663 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
 | 12664 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12665 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
 | 12667 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
 | 12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
 | 12669 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
 | 12671 | $as_echo_n "checking SOABI... " >&6; } | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12672 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
 | 12674 | $as_echo "$SOABI" >&6; } | 
 | 12675 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
 | 12677 | $as_echo_n "checking LDVERSION... " >&6; } | 
 | 12678 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
 | 12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
 | 12680 | $as_echo "$LDVERSION" >&6; } | 
 | 12681 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12682 | # SO is the extension of shared libraries `(including the dot!) | 
 | 12683 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
 | 12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
 | 12685 | $as_echo_n "checking SO... " >&6; } | 
 | 12686 | if test -z "$SO" | 
 | 12687 | then | 
 | 12688 | 	case $ac_sys_system in | 
 | 12689 | 	hp*|HP*) | 
 | 12690 | 		case `uname -m` in | 
 | 12691 | 			ia64) SO=.so;; | 
 | 12692 | 	  		*)    SO=.sl;; | 
 | 12693 | 		esac | 
 | 12694 | 		;; | 
 | 12695 | 	CYGWIN*)   SO=.dll;; | 
| Barry Warsaw | 278266f | 2010-10-14 17:38:46 +0000 | [diff] [blame] | 12696 | 	Linux*|GNU*) | 
 | 12697 | 		   SO=.${SOABI}.so;; | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12698 | 	*)	   SO=.so;; | 
 | 12699 | 	esac | 
 | 12700 | else | 
 | 12701 | 	# this might also be a termcap variable, see #610332 | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12702 | 	echo | 
 | 12703 | 	echo '=====================================================================' | 
 | 12704 | 	echo '+                                                                   +' | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12705 | 	echo '+ WARNING: You have set SO in your environment.                     +' | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12706 | 	echo '+ Do you really mean to change the extension for shared libraries?  +' | 
 | 12707 | 	echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
 | 12708 | 	echo '+                                                                   +' | 
 | 12709 | 	echo '=====================================================================' | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12710 | 	sleep 10 | 
 | 12711 | fi | 
 | 12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
 | 12713 | $as_echo "$SO" >&6; } | 
 | 12714 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12715 | # Check whether right shifting a negative integer extends the sign bit | 
 | 12716 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 12718 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12719 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12720 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12721 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12722 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12723 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12724 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12725 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12726 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12727 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12728 |  | 
 | 12729 | int main() | 
 | 12730 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12731 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12732 | } | 
 | 12733 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12734 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12735 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12736 |   ac_cv_rshift_extends_sign=yes | 
 | 12737 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12738 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12739 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12740 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12741 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12742 | fi | 
 | 12743 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12744 | fi | 
 | 12745 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 12747 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12748 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12749 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12750 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12751 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12752 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12753 | fi | 
 | 12754 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12755 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 12757 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12758 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12759 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12760 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12761 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12763 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12764 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12765 | int | 
 | 12766 | main () | 
 | 12767 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12768 |  | 
 | 12769 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 12770 | 	flockfile(f); | 
 | 12771 | 	getc_unlocked(f); | 
 | 12772 | 	funlockfile(f); | 
 | 12773 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 |   ; | 
 | 12775 |   return 0; | 
 | 12776 | } | 
 | 12777 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12778 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12779 |   ac_cv_have_getc_unlocked=yes | 
 | 12780 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12781 |   ac_cv_have_getc_unlocked=no | 
 | 12782 | fi | 
 | 12783 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12784 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12785 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12786 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 12788 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12789 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 12790 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12792 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12793 |  | 
 | 12794 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12795 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12796 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12797 | # save the value of LIBS so we don't actually link Python with readline | 
 | 12798 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12799 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12800 | # On some systems we need to link readline to a termcap compatible | 
 | 12801 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 12802 | # with setup.py. | 
 | 12803 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 12805 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12806 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
 | 12807 |   if test -z "$py_libtermcap"; then | 
 | 12808 |     READLINE_LIBS="-lreadline" | 
 | 12809 |   else | 
 | 12810 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 12811 |   fi | 
 | 12812 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12813 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12814 | /* end confdefs.h.  */ | 
 | 12815 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12816 | /* Override any GCC internal prototype to avoid an error. | 
 | 12817 |    Use char because int might match the return type of a GCC | 
 | 12818 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12819 | #ifdef __cplusplus | 
 | 12820 | extern "C" | 
 | 12821 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12822 | char readline (); | 
 | 12823 | int | 
 | 12824 | main () | 
 | 12825 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12826 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12827 |   ; | 
 | 12828 |   return 0; | 
 | 12829 | } | 
 | 12830 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12831 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12832 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12833 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12835 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12836 |   if test $py_cv_lib_readline = yes; then | 
 | 12837 |     break | 
 | 12838 |   fi | 
 | 12839 | done | 
 | 12840 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 12841 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 12842 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12843 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 12844 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12845 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12846 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 12847 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12848 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12849 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12850 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12851 | fi | 
 | 12852 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12853 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 12855 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12856 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12857 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12858 | else | 
 | 12859 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12860 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12862 | /* end confdefs.h.  */ | 
 | 12863 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12864 | /* Override any GCC internal prototype to avoid an error. | 
 | 12865 |    Use char because int might match the return type of a GCC | 
 | 12866 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12867 | #ifdef __cplusplus | 
 | 12868 | extern "C" | 
 | 12869 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12870 | char rl_callback_handler_install (); | 
 | 12871 | int | 
 | 12872 | main () | 
 | 12873 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12874 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12875 |   ; | 
 | 12876 |   return 0; | 
 | 12877 | } | 
 | 12878 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12879 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12880 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 12881 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12882 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12883 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12884 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12885 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12886 | LIBS=$ac_check_lib_save_LIBS | 
 | 12887 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 12889 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12890 | 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] | 12891 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12892 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12893 |  | 
 | 12894 | fi | 
 | 12895 |  | 
 | 12896 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12897 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12899 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12900 | #include <readline/readline.h> | 
 | 12901 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12902 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12903 |   have_readline=yes | 
 | 12904 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12905 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12906 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12907 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12908 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12909 | if test $have_readline = yes | 
 | 12910 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12911 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12912 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12913 | #include <readline/readline.h> | 
 | 12914 |  | 
 | 12915 | _ACEOF | 
 | 12916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12917 |   $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] | 12918 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12919 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12920 |  | 
 | 12921 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 12922 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12923 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12924 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12925 | /* end confdefs.h.  */ | 
 | 12926 | #include <readline/readline.h> | 
 | 12927 |  | 
 | 12928 | _ACEOF | 
 | 12929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12930 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12931 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12932 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12933 |  | 
 | 12934 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 12935 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12936 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12937 | fi | 
 | 12938 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12939 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 12941 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12942 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12943 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12944 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12946 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12948 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12950 | /* Override any GCC internal prototype to avoid an error. | 
 | 12951 |    Use char because int might match the return type of a GCC | 
 | 12952 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | #ifdef __cplusplus | 
 | 12954 | extern "C" | 
 | 12955 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12956 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | int | 
 | 12958 | main () | 
 | 12959 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12960 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 |   ; | 
 | 12962 |   return 0; | 
 | 12963 | } | 
 | 12964 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12965 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12967 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12968 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12969 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12970 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12971 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | LIBS=$ac_check_lib_save_LIBS | 
 | 12973 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 12975 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12976 | 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] | 12977 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12978 | $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] | 12979 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12980 | fi | 
 | 12981 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12982 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12983 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 12985 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 12986 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12987 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12988 | else | 
 | 12989 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12990 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12992 | /* end confdefs.h.  */ | 
 | 12993 |  | 
 | 12994 | /* Override any GCC internal prototype to avoid an error. | 
 | 12995 |    Use char because int might match the return type of a GCC | 
 | 12996 |    builtin and then its argument prototype would still apply.  */ | 
 | 12997 | #ifdef __cplusplus | 
 | 12998 | extern "C" | 
 | 12999 | #endif | 
 | 13000 | char rl_completion_display_matches_hook (); | 
 | 13001 | int | 
 | 13002 | main () | 
 | 13003 | { | 
 | 13004 | return rl_completion_display_matches_hook (); | 
 | 13005 |   ; | 
 | 13006 |   return 0; | 
 | 13007 | } | 
 | 13008 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13009 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13010 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 13011 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13012 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13013 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13014 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13015 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13016 | LIBS=$ac_check_lib_save_LIBS | 
 | 13017 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 13019 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13020 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13021 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13022 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13023 |  | 
 | 13024 | fi | 
 | 13025 |  | 
 | 13026 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13027 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 13029 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13030 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13031 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13032 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13034 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13036 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13038 | /* Override any GCC internal prototype to avoid an error. | 
 | 13039 |    Use char because int might match the return type of a GCC | 
 | 13040 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | #ifdef __cplusplus | 
 | 13042 | extern "C" | 
 | 13043 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13044 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | int | 
 | 13046 | main () | 
 | 13047 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13048 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13049 |   ; | 
 | 13050 |   return 0; | 
 | 13051 | } | 
 | 13052 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13053 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13055 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13056 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13057 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13058 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13059 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13060 | LIBS=$ac_check_lib_save_LIBS | 
 | 13061 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 13063 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13064 | 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] | 13065 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13066 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13067 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13068 | fi | 
 | 13069 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13070 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13071 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13073 | /* end confdefs.h.  */ | 
 | 13074 | #include <readline/readline.h> | 
 | 13075 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13076 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13077 |   have_readline=yes | 
 | 13078 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13079 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13080 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13081 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 13082 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13083 | if test $have_readline = yes | 
 | 13084 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13085 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13086 | /* end confdefs.h.  */ | 
 | 13087 | #include <readline/readline.h> | 
 | 13088 |  | 
 | 13089 | _ACEOF | 
 | 13090 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13091 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13093 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13094 |  | 
 | 13095 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13096 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13097 |  | 
 | 13098 | fi | 
 | 13099 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13100 | # End of readline checks: restore LIBS | 
 | 13101 | LIBS=$LIBS_no_readline | 
 | 13102 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 13104 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13105 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13106 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13107 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13108 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13109 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13110 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13111 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13112 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13113 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13114 |  | 
 | 13115 | int main() | 
 | 13116 | { | 
 | 13117 | 	int val1 = nice(1); | 
 | 13118 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 13119 | 		exit(0); | 
 | 13120 | 	exit(1); | 
 | 13121 | } | 
 | 13122 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13123 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13124 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13125 |   ac_cv_broken_nice=yes | 
 | 13126 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13127 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13128 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13129 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13130 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13131 | fi | 
 | 13132 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13133 | fi | 
 | 13134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 13136 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13137 | if test "$ac_cv_broken_nice" = yes | 
 | 13138 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13140 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13141 |  | 
 | 13142 | fi | 
 | 13143 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 13145 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13146 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13147 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13148 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13149 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13150 |   ac_cv_broken_poll=no | 
 | 13151 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13152 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13153 | /* end confdefs.h.  */ | 
 | 13154 |  | 
 | 13155 | #include <poll.h> | 
 | 13156 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13157 | int main() | 
 | 13158 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13159 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13160 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13161 |  | 
 | 13162 |     close (42); | 
 | 13163 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13164 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13165 |     if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13166 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13167 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13168 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13169 |     else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13170 |         return 1; | 
 | 13171 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13172 |  | 
 | 13173 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13174 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13175 |   ac_cv_broken_poll=yes | 
 | 13176 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13177 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13178 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13179 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13180 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13181 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13182 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13183 | fi | 
 | 13184 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 13186 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13187 | if test "$ac_cv_broken_poll" = yes | 
 | 13188 | then | 
 | 13189 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13190 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13191 |  | 
 | 13192 | fi | 
 | 13193 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13194 | # 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] | 13195 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 13196 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13197 | 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] | 13198 | #include <$ac_cv_struct_tm> | 
 | 13199 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13200 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13201 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13202 |  | 
 | 13203 | cat >>confdefs.h <<_ACEOF | 
 | 13204 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 13205 | _ACEOF | 
 | 13206 |  | 
 | 13207 |  | 
 | 13208 | fi | 
 | 13209 |  | 
 | 13210 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 13211 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13212 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13213 |  | 
 | 13214 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13215 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 13216 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13217 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13218 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13219 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13220 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13221 | fi | 
 | 13222 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13223 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13224 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13225 | _ACEOF | 
 | 13226 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13227 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 13228 | $as_echo_n "checking for tzname... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13229 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13230 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13231 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13232 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13233 | /* end confdefs.h.  */ | 
 | 13234 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13235 | #if !HAVE_DECL_TZNAME | 
 | 13236 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13237 | #endif | 
 | 13238 |  | 
 | 13239 | int | 
 | 13240 | main () | 
 | 13241 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13242 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13243 |   ; | 
 | 13244 |   return 0; | 
 | 13245 | } | 
 | 13246 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13247 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13248 |   ac_cv_var_tzname=yes | 
 | 13249 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13250 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13251 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13252 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13253 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13254 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 13256 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13257 |   if test $ac_cv_var_tzname = yes; then | 
 | 13258 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13259 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13260 |  | 
 | 13261 |   fi | 
 | 13262 | fi | 
 | 13263 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13264 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13265 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 13267 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13268 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13269 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13270 | else | 
 | 13271 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13272 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13273 |   ac_cv_working_tzset=no | 
 | 13274 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13275 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13276 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13277 |  | 
 | 13278 | #include <stdlib.h> | 
 | 13279 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13280 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13281 |  | 
 | 13282 | #if HAVE_TZNAME | 
 | 13283 | extern char *tzname[]; | 
 | 13284 | #endif | 
 | 13285 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13286 | int main() | 
 | 13287 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13288 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 13289 | 	   do 'something' with localtime, but it works as documented | 
 | 13290 | 	   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] | 13291 | 	   This includes making sure that tzname is set properly if | 
 | 13292 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 13293 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13294 |  | 
 | 13295 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13296 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13297 | 	*/ | 
 | 13298 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13299 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13300 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 13301 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13302 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13303 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13304 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 13305 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13306 | #if HAVE_TZNAME | 
 | 13307 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 13308 | 	if (strcmp(tzname[0], "UTC") || | 
 | 13309 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 13310 | 	    exit(1); | 
 | 13311 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13312 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13313 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13314 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13315 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13316 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13317 | #if HAVE_TZNAME | 
 | 13318 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 13319 | 	    exit(1); | 
 | 13320 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13321 |  | 
 | 13322 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 13323 | 	tzset(); | 
 | 13324 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 13325 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13326 | #if HAVE_TZNAME | 
 | 13327 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 13328 | 	    exit(1); | 
 | 13329 | #endif | 
 | 13330 |  | 
 | 13331 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13332 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 13333 | 	    exit(1); | 
 | 13334 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 13335 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13336 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13337 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13338 | 	exit(0); | 
 | 13339 | } | 
 | 13340 |  | 
 | 13341 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13342 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13343 |   ac_cv_working_tzset=yes | 
 | 13344 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13345 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13346 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13347 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13348 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13349 | fi | 
 | 13350 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13351 | fi | 
 | 13352 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 13354 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13355 | if test "$ac_cv_working_tzset" = yes | 
 | 13356 | then | 
 | 13357 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13358 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13359 |  | 
 | 13360 | fi | 
 | 13361 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13362 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 13364 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13365 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13366 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13367 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13368 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13369 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13370 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13371 | int | 
 | 13372 | main () | 
 | 13373 | { | 
 | 13374 |  | 
 | 13375 | struct stat st; | 
 | 13376 | st.st_mtim.tv_nsec = 1; | 
 | 13377 |  | 
 | 13378 |   ; | 
 | 13379 |   return 0; | 
 | 13380 | } | 
 | 13381 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13382 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13383 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13384 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13385 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13386 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13388 | fi | 
 | 13389 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 13391 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13392 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 13393 | then | 
 | 13394 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13395 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13396 |  | 
 | 13397 | fi | 
 | 13398 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13399 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 13401 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13402 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13403 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13404 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13405 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13406 | /* end confdefs.h.  */ | 
 | 13407 | #include <sys/stat.h> | 
 | 13408 | int | 
 | 13409 | main () | 
 | 13410 | { | 
 | 13411 |  | 
 | 13412 | struct stat st; | 
 | 13413 | st.st_mtimespec.tv_nsec = 1; | 
 | 13414 |  | 
 | 13415 |   ; | 
 | 13416 |   return 0; | 
 | 13417 | } | 
 | 13418 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13419 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13420 |   ac_cv_stat_tv_nsec2=yes | 
 | 13421 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13422 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13423 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13425 | fi | 
 | 13426 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 13428 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13429 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 13430 | then | 
 | 13431 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13432 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13433 |  | 
 | 13434 | fi | 
 | 13435 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13436 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 13438 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13439 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13440 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13441 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13442 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13443 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13444 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13445 | int | 
 | 13446 | main () | 
 | 13447 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13448 |  | 
 | 13449 |   int rtn; | 
 | 13450 |   rtn = mvwdelch(0,0,0); | 
 | 13451 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 |   ; | 
 | 13453 |   return 0; | 
 | 13454 | } | 
 | 13455 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13456 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13457 |   ac_cv_mvwdelch_is_expression=yes | 
 | 13458 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13459 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13460 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13462 | fi | 
 | 13463 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 13465 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13466 |  | 
 | 13467 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 13468 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13470 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13471 |  | 
 | 13472 | fi | 
 | 13473 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 13475 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13476 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13477 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13478 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13479 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13480 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13481 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | int | 
 | 13483 | main () | 
 | 13484 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13485 |  | 
 | 13486 |   WINDOW *w; | 
 | 13487 |   w->_flags = 0; | 
 | 13488 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 |   ; | 
 | 13490 |   return 0; | 
 | 13491 | } | 
 | 13492 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13493 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13494 |   ac_cv_window_has_flags=yes | 
 | 13495 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13496 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13497 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13499 | fi | 
 | 13500 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 13502 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13503 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13504 |  | 
 | 13505 | if test "$ac_cv_window_has_flags" = yes | 
 | 13506 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13508 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13509 |  | 
 | 13510 | fi | 
 | 13511 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 13513 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 13514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13515 | /* end confdefs.h.  */ | 
 | 13516 | #include <curses.h> | 
 | 13517 | int | 
 | 13518 | main () | 
 | 13519 | { | 
 | 13520 | void *x=is_term_resized | 
 | 13521 |   ; | 
 | 13522 |   return 0; | 
 | 13523 | } | 
 | 13524 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13525 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13526 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13527 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13528 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13529 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13530 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13531 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13532 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13533 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13534 |  | 
 | 13535 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13537 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 13539 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 13540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13541 | /* end confdefs.h.  */ | 
 | 13542 | #include <curses.h> | 
 | 13543 | int | 
 | 13544 | main () | 
 | 13545 | { | 
 | 13546 | void *x=resize_term | 
 | 13547 |   ; | 
 | 13548 |   return 0; | 
 | 13549 | } | 
 | 13550 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13551 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13552 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13553 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13554 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13555 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13556 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13557 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13558 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13559 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13560 |  | 
 | 13561 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13563 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 13565 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 13566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13567 | /* end confdefs.h.  */ | 
 | 13568 | #include <curses.h> | 
 | 13569 | int | 
 | 13570 | main () | 
 | 13571 | { | 
 | 13572 | void *x=resizeterm | 
 | 13573 |   ; | 
 | 13574 |   return 0; | 
 | 13575 | } | 
 | 13576 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13577 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13578 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13579 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13580 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13581 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13582 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13583 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13584 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13585 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13586 |  | 
 | 13587 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13589 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 13591 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13592 |  | 
 | 13593 | if test -r /dev/ptmx | 
 | 13594 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13595 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13596 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13597 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13598 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13599 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13600 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13601 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13602 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13603 | fi | 
 | 13604 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 13606 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13607 |  | 
 | 13608 | if test -r /dev/ptc | 
 | 13609 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13610 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13611 | $as_echo "yes" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13612 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13613 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13614 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13615 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13616 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13617 | $as_echo "no" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13618 | fi | 
 | 13619 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13620 | if test "$have_long_long" = yes | 
 | 13621 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13622 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 13623 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13624 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13625 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13626 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13627 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13628 |   ac_cv_have_long_long_format=no | 
 | 13629 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13630 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13631 | /* end confdefs.h.  */ | 
 | 13632 |  | 
 | 13633 |   #include <stdio.h> | 
 | 13634 |   #include <stddef.h> | 
 | 13635 |   #include <string.h> | 
 | 13636 |  | 
 | 13637 |   #ifdef HAVE_SYS_TYPES_H | 
 | 13638 |   #include <sys/types.h> | 
 | 13639 |   #endif | 
 | 13640 |  | 
 | 13641 |   int main() | 
 | 13642 |   { | 
 | 13643 |       char buffer[256]; | 
 | 13644 |  | 
 | 13645 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 13646 |           return 1; | 
 | 13647 |       if (strcmp(buffer, "123")) | 
 | 13648 |           return 1; | 
 | 13649 |  | 
 | 13650 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 13651 |           return 1; | 
 | 13652 |       if (strcmp(buffer, "-123")) | 
 | 13653 |           return 1; | 
 | 13654 |  | 
 | 13655 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 13656 |           return 1; | 
 | 13657 |       if (strcmp(buffer, "123")) | 
 | 13658 |           return 1; | 
 | 13659 |  | 
 | 13660 |       return 0; | 
 | 13661 |   } | 
 | 13662 |  | 
 | 13663 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13664 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13665 |   ac_cv_have_long_long_format=yes | 
 | 13666 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13667 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13668 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13669 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13670 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13671 | fi | 
 | 13672 |  | 
 | 13673 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13674 | fi | 
 | 13675 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13676 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 13677 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13678 | fi | 
 | 13679 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 13680 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13681 | then | 
 | 13682 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13683 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13684 |  | 
 | 13685 | fi | 
 | 13686 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 13687 | if test $ac_sys_system = Darwin | 
 | 13688 | then | 
 | 13689 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 13690 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13691 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 13693 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13694 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13695 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13696 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13697 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13698 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 13699 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13700 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13701 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13702 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13703 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13704 | #include <stdio.h> | 
 | 13705 | #include <stddef.h> | 
 | 13706 | #include <string.h> | 
 | 13707 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13708 | #ifdef HAVE_SYS_TYPES_H | 
 | 13709 | #include <sys/types.h> | 
 | 13710 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13711 |  | 
 | 13712 | #ifdef HAVE_SSIZE_T | 
 | 13713 | typedef ssize_t Py_ssize_t; | 
 | 13714 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 13715 | typedef long Py_ssize_t; | 
 | 13716 | #else | 
 | 13717 | typedef int Py_ssize_t; | 
 | 13718 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13719 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13720 | int main() | 
 | 13721 | { | 
 | 13722 |     char buffer[256]; | 
 | 13723 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13724 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 13725 |        	return 1; | 
 | 13726 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13727 |     if (strcmp(buffer, "123")) | 
 | 13728 | 	return 1; | 
 | 13729 |  | 
 | 13730 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 13731 |        	return 1; | 
 | 13732 |  | 
 | 13733 |     if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13734 | 	return 1; | 
 | 13735 |  | 
 | 13736 |     return 0; | 
 | 13737 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13738 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13739 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13740 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13741 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13742 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13743 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13744 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13746 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 13747 | fi | 
 | 13748 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13749 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 13751 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13752 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13754 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13755 |  | 
 | 13756 | fi | 
 | 13757 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13758 | 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] | 13759 | #ifdef HAVE_SYS_TYPES_H | 
 | 13760 | #include <sys/types.h> | 
 | 13761 | #endif | 
 | 13762 | #ifdef HAVE_SYS_SOCKET_H | 
 | 13763 | #include <sys/socket.h> | 
 | 13764 | #endif | 
 | 13765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13766 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13767 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13768 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13769 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13770 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13771 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13772 |  | 
 | 13773 | fi | 
 | 13774 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13775 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
 | 13777 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13778 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13779 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13780 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13781 |   if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13782 |   ac_cv_broken_mbstowcs=no | 
 | 13783 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13784 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13785 | /* end confdefs.h.  */ | 
 | 13786 |  | 
 | 13787 | #include<stdlib.h> | 
 | 13788 | int main() { | 
 | 13789 |     size_t len = -1; | 
 | 13790 |     const char *str = "text"; | 
 | 13791 |     len = mbstowcs(NULL, str, 0); | 
 | 13792 |     return (len != 4); | 
 | 13793 | } | 
 | 13794 |  | 
 | 13795 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13796 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13797 |   ac_cv_broken_mbstowcs=no | 
 | 13798 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13799 |   ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13800 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13802 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13803 | fi | 
 | 13804 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13805 | fi | 
 | 13806 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
 | 13808 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13809 | if test "$ac_cv_broken_mbstowcs" = yes | 
 | 13810 | then | 
 | 13811 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13812 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13813 |  | 
 | 13814 | fi | 
 | 13815 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
 | 13817 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13818 | if ${ac_cv_computed_gotos+:} false; then : | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13819 |   $as_echo_n "(cached) " >&6 | 
 | 13820 | else | 
 | 13821 |   if test "$cross_compiling" = yes; then : | 
 | 13822 |   ac_cv_computed_gotos=no | 
 | 13823 | else | 
 | 13824 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13825 | /* end confdefs.h.  */ | 
 | 13826 |  | 
 | 13827 | int main(int argc, char **argv) | 
 | 13828 | { | 
 | 13829 |     static void *targets[1] = { &&LABEL1 }; | 
 | 13830 |     goto LABEL2; | 
 | 13831 | LABEL1: | 
 | 13832 |     return 0; | 
 | 13833 | LABEL2: | 
 | 13834 |     goto *targets[0]; | 
 | 13835 |     return 1; | 
 | 13836 | } | 
 | 13837 |  | 
 | 13838 | _ACEOF | 
 | 13839 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 13840 |   ac_cv_computed_gotos=yes | 
 | 13841 | else | 
 | 13842 |   ac_cv_computed_gotos=no | 
 | 13843 | fi | 
 | 13844 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13845 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 13846 | fi | 
 | 13847 |  | 
 | 13848 | fi | 
 | 13849 |  | 
 | 13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
 | 13851 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
 | 13852 | if test "$ac_cv_computed_gotos" = yes | 
 | 13853 | then | 
 | 13854 |  | 
 | 13855 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 13856 |  | 
 | 13857 | fi | 
 | 13858 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13859 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
 | 13861 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13862 |  | 
 | 13863 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13864 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13865 |   withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13866 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13867 | then | 
 | 13868 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13869 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13870 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13871 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13872 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13873 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13874 | if test "$withval" = no | 
 | 13875 | then | 
 | 13876 |  | 
 | 13877 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
 | 13878 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13879 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13880 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13881 | fi | 
 | 13882 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13883 | else | 
 | 13884 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 13885 | $as_echo "no value specified" >&6; } | 
 | 13886 | fi | 
 | 13887 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13888 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 13889 | case $ac_sys_system in | 
 | 13890 | AIX*) | 
 | 13891 |  | 
 | 13892 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 13893 |  ;; | 
 | 13894 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13895 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13896 |  | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13897 | case $ac_sys_system in | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13898 |   OSF*) as_fn_error $? "OSF* systems are deprecated unless somebody volunteers. Check http://bugs.python.org/issue8606" "$LINENO" 5 ;; | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13899 | esac | 
 | 13900 |  | 
| Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 13901 | ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13902 | if test "x$ac_cv_func_pipe2" = xyes; then : | 
| Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 13903 |  | 
 | 13904 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h | 
 | 13905 |  | 
 | 13906 | fi | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13907 |  | 
 | 13908 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 13909 |  | 
 | 13910 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13911 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 13912 | do | 
 | 13913 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 13914 | done | 
 | 13915 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13916 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13917 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 13919 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13920 | for dir in $SRCDIRS; do | 
 | 13921 |     if test ! -d $dir; then | 
 | 13922 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13923 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13924 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 13926 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13927 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13928 | # generate output files | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13929 | 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] | 13930 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 13931 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 13932 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13933 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13934 | # This file is a shell script that caches the results of configure | 
 | 13935 | # 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] | 13936 | # scripts and configure runs, see configure's option --config-cache. | 
 | 13937 | # It is not useful on other systems.  If it contains results you don't | 
 | 13938 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13939 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13940 | # config.status only pays attention to the cache file if you give it | 
 | 13941 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13942 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13943 | # `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] | 13944 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 13945 | # following values. | 
 | 13946 |  | 
 | 13947 | _ACEOF | 
 | 13948 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13949 | # The following way of writing the cache mishandles newlines in values, | 
 | 13950 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13951 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13952 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 13953 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13954 | ( | 
 | 13955 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 13956 |     eval ac_val=\$$ac_var | 
 | 13957 |     case $ac_val in #( | 
 | 13958 |     *${as_nl}*) | 
 | 13959 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13960 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 13961 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13962 |       esac | 
 | 13963 |       case $ac_var in #( | 
 | 13964 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13965 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 13966 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13967 |       esac ;; | 
 | 13968 |     esac | 
 | 13969 |   done | 
 | 13970 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13971 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13972 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 13973 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13974 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 13975 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13976 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13977 | 	"s/'/'\\\\''/g; | 
 | 13978 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13979 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 |     *) | 
 | 13981 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13982 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13983 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13984 |     esac | | 
 | 13985 |     sort | 
 | 13986 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13987 |   sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13988 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13989 |      t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13990 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13991 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 13992 |      t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13993 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 13994 |      :end' >>confcache | 
 | 13995 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 13996 |   if test -w "$cache_file"; then | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 13997 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13998 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 13999 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14000 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 14001 | 	cat confcache >"$cache_file" | 
 | 14002 |       else | 
 | 14003 |         case $cache_file in #( | 
 | 14004 |         */* | ?:*) | 
 | 14005 | 	  mv -f confcache "$cache_file"$$ && | 
 | 14006 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 14007 |         *) | 
 | 14008 | 	  mv -f confcache "$cache_file" ;; | 
 | 14009 | 	esac | 
 | 14010 |       fi | 
 | 14011 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14012 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14013 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 14014 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14015 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14016 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14017 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14018 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14019 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 14020 | # Let make expand exec_prefix. | 
 | 14021 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14022 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14023 | DEFS=-DHAVE_CONFIG_H | 
 | 14024 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14025 | ac_libobjs= | 
 | 14026 | ac_ltlibobjs= | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14027 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14028 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 14029 |   # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14030 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14031 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14032 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 14033 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14034 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 14035 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14036 | done | 
 | 14037 | LIBOBJS=$ac_libobjs | 
 | 14038 |  | 
 | 14039 | LTLIBOBJS=$ac_ltlibobjs | 
 | 14040 |  | 
 | 14041 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14042 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14043 |  | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14044 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14045 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14046 | ac_clean_files_save=$ac_clean_files | 
 | 14047 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 14049 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 14050 | as_write_fail=0 | 
 | 14051 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14052 | #! $SHELL | 
 | 14053 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14054 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14055 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14056 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14057 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14059 | ac_cs_recheck=false | 
 | 14060 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14061 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14062 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 14063 | export SHELL | 
 | 14064 | _ASEOF | 
 | 14065 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 14066 | ## -------------------- ## | 
 | 14067 | ## M4sh Initialization. ## | 
 | 14068 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14069 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14070 | # Be more Bourne compatible | 
 | 14071 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14072 | 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] | 14073 |   emulate sh | 
 | 14074 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14075 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14076 |   # is contrary to our usage.  Disable this feature. | 
 | 14077 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14078 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14079 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14080 |   case `(set -o) 2>/dev/null` in #( | 
 | 14081 |   *posix*) : | 
 | 14082 |     set -o posix ;; #( | 
 | 14083 |   *) : | 
 | 14084 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14085 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14086 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14087 |  | 
 | 14088 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14089 | as_nl=' | 
 | 14090 | ' | 
 | 14091 | export as_nl | 
 | 14092 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 14093 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 14094 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14095 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14096 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 14097 | # but without wasting forks for bash or zsh. | 
 | 14098 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 14099 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14100 |   as_echo='print -r --' | 
 | 14101 |   as_echo_n='print -rn --' | 
 | 14102 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14103 |   as_echo='printf %s\n' | 
 | 14104 |   as_echo_n='printf %s' | 
 | 14105 | else | 
 | 14106 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 14107 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 14108 |     as_echo_n='/usr/ucb/echo -n' | 
 | 14109 |   else | 
 | 14110 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 14111 |     as_echo_n_body='eval | 
 | 14112 |       arg=$1; | 
 | 14113 |       case $arg in #( | 
 | 14114 |       *"$as_nl"*) | 
 | 14115 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 14116 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 14117 |       esac; | 
 | 14118 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 14119 |     ' | 
 | 14120 |     export as_echo_n_body | 
 | 14121 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 14122 |   fi | 
 | 14123 |   export as_echo_body | 
 | 14124 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 14125 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14126 |  | 
 | 14127 | # The user is always right. | 
 | 14128 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14129 |   PATH_SEPARATOR=: | 
 | 14130 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 14131 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 14132 |       PATH_SEPARATOR=';' | 
 | 14133 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14134 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14135 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14136 |  | 
 | 14137 | # IFS | 
 | 14138 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 14139 | # there to prevent editors from complaining about space-tab. | 
 | 14140 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 14141 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14142 | IFS=" ""	$as_nl" | 
 | 14143 |  | 
 | 14144 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14145 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14146 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14147 |   *[\\/]* ) as_myself=$0 ;; | 
 | 14148 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | for as_dir in $PATH | 
 | 14150 | do | 
 | 14151 |   IFS=$as_save_IFS | 
 | 14152 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14153 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 14154 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14155 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14157 |      ;; | 
 | 14158 | esac | 
 | 14159 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 14160 | # in which case we are not to be found in the path. | 
 | 14161 | if test "x$as_myself" = x; then | 
 | 14162 |   as_myself=$0 | 
 | 14163 | fi | 
 | 14164 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14165 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 14166 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14167 | fi | 
 | 14168 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14169 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 14170 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 14171 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 14172 | # trigger a bug in pdksh 5.2.14. | 
 | 14173 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 14174 | do eval test x\${$as_var+set} = xset \ | 
 | 14175 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14176 | done | 
 | 14177 | PS1='$ ' | 
 | 14178 | PS2='> ' | 
 | 14179 | PS4='+ ' | 
 | 14180 |  | 
 | 14181 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14182 | LC_ALL=C | 
 | 14183 | export LC_ALL | 
 | 14184 | LANGUAGE=C | 
 | 14185 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14186 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14187 | # CDPATH. | 
 | 14188 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 14189 |  | 
 | 14190 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14191 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 14192 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14193 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 14194 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14195 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14196 | as_fn_error () | 
 | 14197 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14198 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 14199 |   if test "$4"; then | 
 | 14200 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 14201 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14202 |   fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14203 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14204 |   as_fn_exit $as_status | 
 | 14205 | } # as_fn_error | 
 | 14206 |  | 
 | 14207 |  | 
 | 14208 | # as_fn_set_status STATUS | 
 | 14209 | # ----------------------- | 
 | 14210 | # Set $? to STATUS, without forking. | 
 | 14211 | as_fn_set_status () | 
 | 14212 | { | 
 | 14213 |   return $1 | 
 | 14214 | } # as_fn_set_status | 
 | 14215 |  | 
 | 14216 | # as_fn_exit STATUS | 
 | 14217 | # ----------------- | 
 | 14218 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 14219 | as_fn_exit () | 
 | 14220 | { | 
 | 14221 |   set +e | 
 | 14222 |   as_fn_set_status $1 | 
 | 14223 |   exit $1 | 
 | 14224 | } # as_fn_exit | 
 | 14225 |  | 
 | 14226 | # as_fn_unset VAR | 
 | 14227 | # --------------- | 
 | 14228 | # Portably unset VAR. | 
 | 14229 | as_fn_unset () | 
 | 14230 | { | 
 | 14231 |   { eval $1=; unset $1;} | 
 | 14232 | } | 
 | 14233 | as_unset=as_fn_unset | 
 | 14234 | # as_fn_append VAR VALUE | 
 | 14235 | # ---------------------- | 
 | 14236 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 14237 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 14238 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 14239 | # implementations. | 
 | 14240 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 14241 |   eval 'as_fn_append () | 
 | 14242 |   { | 
 | 14243 |     eval $1+=\$2 | 
 | 14244 |   }' | 
 | 14245 | else | 
 | 14246 |   as_fn_append () | 
 | 14247 |   { | 
 | 14248 |     eval $1=\$$1\$2 | 
 | 14249 |   } | 
 | 14250 | fi # as_fn_append | 
 | 14251 |  | 
 | 14252 | # as_fn_arith ARG... | 
 | 14253 | # ------------------ | 
 | 14254 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 14255 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 14256 | # must be portable across $(()) and expr. | 
 | 14257 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 14258 |   eval 'as_fn_arith () | 
 | 14259 |   { | 
 | 14260 |     as_val=$(( $* )) | 
 | 14261 |   }' | 
 | 14262 | else | 
 | 14263 |   as_fn_arith () | 
 | 14264 |   { | 
 | 14265 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 14266 |   } | 
 | 14267 | fi # as_fn_arith | 
 | 14268 |  | 
 | 14269 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14270 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 14271 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 14272 |   as_expr=expr | 
 | 14273 | else | 
 | 14274 |   as_expr=false | 
 | 14275 | fi | 
 | 14276 |  | 
 | 14277 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 14278 |   as_basename=basename | 
 | 14279 | else | 
 | 14280 |   as_basename=false | 
 | 14281 | fi | 
 | 14282 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14283 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 14284 |   as_dirname=dirname | 
 | 14285 | else | 
 | 14286 |   as_dirname=false | 
 | 14287 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14288 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14289 | as_me=`$as_basename -- "$0" || | 
 | 14290 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 14291 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 14292 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14293 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14294 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 14295 | 	    s//\1/ | 
 | 14296 | 	    q | 
 | 14297 | 	  } | 
 | 14298 | 	  /^X\/\(\/\/\)$/{ | 
 | 14299 | 	    s//\1/ | 
 | 14300 | 	    q | 
 | 14301 | 	  } | 
 | 14302 | 	  /^X\/\(\/\).*/{ | 
 | 14303 | 	    s//\1/ | 
 | 14304 | 	    q | 
 | 14305 | 	  } | 
 | 14306 | 	  s/.*/./; q'` | 
 | 14307 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14308 | # Avoid depending upon Character Ranges. | 
 | 14309 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 14310 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 14311 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 14312 | as_cr_digits='0123456789' | 
 | 14313 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14314 |  | 
 | 14315 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14316 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14317 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14318 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14319 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14320 |   xy)  ECHO_C='\c';; | 
 | 14321 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 14322 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14323 |   esac;; | 
 | 14324 | *) | 
 | 14325 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14327 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14328 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14329 | if test -d conf$$.dir; then | 
 | 14330 |   rm -f conf$$.dir/conf$$.file | 
 | 14331 | else | 
 | 14332 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14333 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14334 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14335 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 14336 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 14337 |     as_ln_s='ln -s' | 
 | 14338 |     # ... but there are two gotchas: | 
 | 14339 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 14340 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 14341 |     # In both cases, we have to default to `cp -p'. | 
 | 14342 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
 | 14343 |       as_ln_s='cp -p' | 
 | 14344 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 14345 |     as_ln_s=ln | 
 | 14346 |   else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14347 |     as_ln_s='cp -p' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14348 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14349 | else | 
 | 14350 |   as_ln_s='cp -p' | 
 | 14351 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14352 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 14353 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14354 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14355 |  | 
 | 14356 | # as_fn_mkdir_p | 
 | 14357 | # ------------- | 
 | 14358 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 14359 | as_fn_mkdir_p () | 
 | 14360 | { | 
 | 14361 |  | 
 | 14362 |   case $as_dir in #( | 
 | 14363 |   -*) as_dir=./$as_dir;; | 
 | 14364 |   esac | 
 | 14365 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 14366 |     as_dirs= | 
 | 14367 |     while :; do | 
 | 14368 |       case $as_dir in #( | 
 | 14369 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 14370 |       *) as_qdir=$as_dir;; | 
 | 14371 |       esac | 
 | 14372 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 14373 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 14374 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 14375 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 14376 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 14377 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 14378 | $as_echo X"$as_dir" | | 
 | 14379 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 14380 | 	    s//\1/ | 
 | 14381 | 	    q | 
 | 14382 | 	  } | 
 | 14383 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 14384 | 	    s//\1/ | 
 | 14385 | 	    q | 
 | 14386 | 	  } | 
 | 14387 | 	  /^X\(\/\/\)$/{ | 
 | 14388 | 	    s//\1/ | 
 | 14389 | 	    q | 
 | 14390 | 	  } | 
 | 14391 | 	  /^X\(\/\).*/{ | 
 | 14392 | 	    s//\1/ | 
 | 14393 | 	    q | 
 | 14394 | 	  } | 
 | 14395 | 	  s/.*/./; q'` | 
 | 14396 |       test -d "$as_dir" && break | 
 | 14397 |     done | 
 | 14398 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14399 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14400 |  | 
 | 14401 |  | 
 | 14402 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14403 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14404 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14405 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14406 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14407 |   as_mkdir_p=false | 
 | 14408 | fi | 
 | 14409 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14410 | if test -x / >/dev/null 2>&1; then | 
 | 14411 |   as_test_x='test -x' | 
 | 14412 | else | 
 | 14413 |   if ls -dL / >/dev/null 2>&1; then | 
 | 14414 |     as_ls_L_option=L | 
 | 14415 |   else | 
 | 14416 |     as_ls_L_option= | 
 | 14417 |   fi | 
 | 14418 |   as_test_x=' | 
 | 14419 |     eval sh -c '\'' | 
 | 14420 |       if test -d "$1"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14421 | 	test -d "$1/."; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14422 |       else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14423 | 	case $1 in #( | 
 | 14424 | 	-*)set "./$1";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14425 | 	esac; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14426 | 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14427 | 	???[sx]*):;;*)false;;esac;fi | 
 | 14428 |     '\'' sh | 
 | 14429 |   ' | 
 | 14430 | fi | 
 | 14431 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14432 |  | 
 | 14433 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14434 | 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] | 14435 |  | 
 | 14436 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14437 | 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] | 14438 |  | 
 | 14439 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14441 | ## ----------------------------------- ## | 
 | 14442 | ## Main body of $CONFIG_STATUS script. ## | 
 | 14443 | ## ----------------------------------- ## | 
 | 14444 | _ASEOF | 
 | 14445 | 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] | 14446 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14447 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14448 | # 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] | 14449 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14450 | # values after options handling. | 
 | 14451 | ac_log=" | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 14452 | This file was extended by python $as_me 3.2, which was | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14453 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14454 |  | 
 | 14455 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 14456 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 14457 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 14458 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 14459 |   $ $0 $@ | 
 | 14460 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14461 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 14462 | " | 
 | 14463 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14464 | _ACEOF | 
 | 14465 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14466 | case $ac_config_files in *" | 
 | 14467 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 14468 | esac | 
 | 14469 |  | 
 | 14470 | case $ac_config_headers in *" | 
 | 14471 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 14472 | esac | 
 | 14473 |  | 
 | 14474 |  | 
 | 14475 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | # Files that config.status was made for. | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14477 | config_files="`echo $ac_config_files`" | 
 | 14478 | config_headers="`echo $ac_config_headers`" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14480 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14481 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14482 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14484 | \`$as_me' instantiates files and other configuration actions | 
 | 14485 | from templates according to the current configuration.  Unless the files | 
 | 14486 | 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] | 14487 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14488 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14489 |  | 
 | 14490 |   -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14491 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14492 |       --config     print configuration, then exit | 
 | 14493 |   -q, --quiet, --silent | 
 | 14494 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 |   -d, --debug      don't remove temporary files | 
 | 14496 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14497 |       --file=FILE[:TEMPLATE] | 
 | 14498 |                    instantiate the configuration file FILE | 
 | 14499 |       --header=FILE[:TEMPLATE] | 
 | 14500 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14501 |  | 
 | 14502 | Configuration files: | 
 | 14503 | $config_files | 
 | 14504 |  | 
 | 14505 | Configuration headers: | 
 | 14506 | $config_headers | 
 | 14507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14508 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14509 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14510 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14511 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 14512 | 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] | 14513 | ac_cs_version="\\ | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 14514 | python config.status 3.2 | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14515 | configured by $0, generated by GNU Autoconf 2.68, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14516 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14518 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | This config.status script is free software; the Free Software Foundation | 
 | 14520 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14521 |  | 
 | 14522 | ac_pwd='$ac_pwd' | 
 | 14523 | srcdir='$srcdir' | 
 | 14524 | INSTALL='$INSTALL' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14525 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14526 | _ACEOF | 
 | 14527 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14528 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14529 | # 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] | 14530 | ac_need_defaults=: | 
 | 14531 | while test $# != 0 | 
 | 14532 | do | 
 | 14533 |   case $1 in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14534 |   --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14535 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 14536 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14537 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14538 |     ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14539 |   --*=) | 
 | 14540 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 14541 |     ac_optarg= | 
 | 14542 |     ac_shift=: | 
 | 14543 |     ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14544 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14545 |     ac_option=$1 | 
 | 14546 |     ac_optarg=$2 | 
 | 14547 |     ac_shift=shift | 
 | 14548 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 |   esac | 
 | 14550 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14551 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14552 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14553 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 14554 |     ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14555 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14556 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 14557 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 14558 |     $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14559 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14560 |     debug=: ;; | 
 | 14561 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14562 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14563 |     case $ac_optarg in | 
 | 14564 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14565 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14566 |     esac | 
 | 14567 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 |     ac_need_defaults=false;; | 
 | 14569 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14570 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14571 |     case $ac_optarg in | 
 | 14572 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 14573 |     esac | 
 | 14574 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14575 |     ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14576 |   --he | --h) | 
 | 14577 |     # Conflict between --help and --header | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14578 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14579 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14580 |   --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14581 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14582 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 14583 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 14584 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14585 |  | 
 | 14586 |   # This is an error. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14587 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14588 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14589 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14590 |   *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14591 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 |  | 
 | 14593 |   esac | 
 | 14594 |   shift | 
 | 14595 | done | 
 | 14596 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14597 | ac_configure_extra_args= | 
 | 14598 |  | 
 | 14599 | if $ac_cs_silent; then | 
 | 14600 |   exec 6>/dev/null | 
 | 14601 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 14602 | fi | 
 | 14603 |  | 
 | 14604 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14605 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14606 | if \$ac_cs_recheck; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14607 |   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 14608 |   shift | 
 | 14609 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 14610 |   CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14611 |   export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14612 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14613 | fi | 
 | 14614 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14615 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14616 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14617 | exec 5>>config.log | 
 | 14618 | { | 
 | 14619 |   echo | 
 | 14620 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 14621 | ## Running $as_me. ## | 
 | 14622 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14623 |   $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14624 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14625 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14626 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14627 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14628 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14630 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14631 |  | 
 | 14632 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14633 | for ac_config_target in $ac_config_targets | 
 | 14634 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14635 |   case $ac_config_target in | 
 | 14636 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 14637 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 14638 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14639 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 14640 |     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14641 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 14642 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14643 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 14644 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14645 |  | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14646 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14647 |   esac | 
 | 14648 | done | 
 | 14649 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14650 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14651 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 14652 | # then the envvar interface is used.  Set only those that are not. | 
 | 14653 | # We use the long form for the default assignment because of an extremely | 
 | 14654 | # bizarre bug on SunOS 4.1.3. | 
 | 14655 | if $ac_need_defaults; then | 
 | 14656 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 14657 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 14658 | fi | 
 | 14659 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14660 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14661 | # 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] | 14662 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14663 | # Hook for its removal unless debugging. | 
 | 14664 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 14665 | # 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] | 14666 | $debug || | 
 | 14667 | { | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14668 |   tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14669 |   trap 'exit_status=$? | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14670 |   : "${ac_tmp:=$tmp}" | 
 | 14671 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14672 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14673 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14674 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14675 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14676 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14677 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14678 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14679 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14680 | }  || | 
 | 14681 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14682 |   tmp=./conf$$-$RANDOM | 
 | 14683 |   (umask 077 && mkdir "$tmp") | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14684 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14685 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14687 | # Set up the scripts for CONFIG_FILES section. | 
 | 14688 | # No need to generate them if there are no CONFIG_FILES. | 
 | 14689 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14690 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14691 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14692 |  | 
 | 14693 | ac_cr=`echo X | tr X '\015'` | 
 | 14694 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 14695 | # But we know of no other shell where ac_cr would be empty at this | 
 | 14696 | # point, so we can use a bashism as a fallback. | 
 | 14697 | if test "x$ac_cr" = x; then | 
 | 14698 |   eval ac_cr=\$\'\\r\' | 
 | 14699 | fi | 
 | 14700 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 14701 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14702 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14703 | else | 
 | 14704 |   ac_cs_awk_cr=$ac_cr | 
 | 14705 | fi | 
 | 14706 |  | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14707 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | _ACEOF | 
 | 14709 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14710 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14711 | { | 
 | 14712 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 14713 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 14714 |   echo "_ACEOF" | 
 | 14715 | } >conf$$subs.sh || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14716 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 14717 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14718 | ac_delim='%!_!# ' | 
 | 14719 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14720 |   . ./conf$$subs.sh || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14721 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14722 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14723 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 14724 |   if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14725 |     break | 
 | 14726 |   elif $ac_last_try; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14727 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14728 |   else | 
 | 14729 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14730 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14731 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14732 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14733 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14735 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14736 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14737 | sed -n ' | 
 | 14738 | h | 
 | 14739 | s/^/S["/; s/!.*/"]=/ | 
 | 14740 | p | 
 | 14741 | g | 
 | 14742 | s/^[^!]*!// | 
 | 14743 | :repl | 
 | 14744 | t repl | 
 | 14745 | s/'"$ac_delim"'$// | 
 | 14746 | t delim | 
 | 14747 | :nl | 
 | 14748 | h | 
 | 14749 | s/\(.\{148\}\)..*/\1/ | 
 | 14750 | t more1 | 
 | 14751 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 14752 | p | 
 | 14753 | n | 
 | 14754 | b repl | 
 | 14755 | :more1 | 
 | 14756 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 14757 | p | 
 | 14758 | g | 
 | 14759 | s/.\{148\}// | 
 | 14760 | t nl | 
 | 14761 | :delim | 
 | 14762 | h | 
 | 14763 | s/\(.\{148\}\)..*/\1/ | 
 | 14764 | t more2 | 
 | 14765 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 14766 | p | 
 | 14767 | b | 
 | 14768 | :more2 | 
 | 14769 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 14770 | p | 
 | 14771 | g | 
 | 14772 | s/.\{148\}// | 
 | 14773 | t delim | 
 | 14774 | ' <conf$$subs.awk | sed ' | 
 | 14775 | /^[^""]/{ | 
 | 14776 |   N | 
 | 14777 |   s/\n// | 
 | 14778 | } | 
 | 14779 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 14780 | rm -f conf$$subs.awk | 
 | 14781 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 14782 | _ACAWK | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14783 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14784 |   for (key in S) S_is_set[key] = 1 | 
 | 14785 |   FS = "" | 
 | 14786 |  | 
 | 14787 | } | 
 | 14788 | { | 
 | 14789 |   line = $ 0 | 
 | 14790 |   nfields = split(line, field, "@") | 
 | 14791 |   substed = 0 | 
 | 14792 |   len = length(field[1]) | 
 | 14793 |   for (i = 2; i < nfields; i++) { | 
 | 14794 |     key = field[i] | 
 | 14795 |     keylen = length(key) | 
 | 14796 |     if (S_is_set[key]) { | 
 | 14797 |       value = S[key] | 
 | 14798 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 14799 |       len += length(value) + length(field[++i]) | 
 | 14800 |       substed = 1 | 
 | 14801 |     } else | 
 | 14802 |       len += 1 + keylen | 
 | 14803 |   } | 
 | 14804 |  | 
 | 14805 |   print line | 
 | 14806 | } | 
 | 14807 |  | 
 | 14808 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14809 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14810 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14811 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 14812 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 14813 | else | 
 | 14814 |   cat | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14815 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14816 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14817 | _ACEOF | 
 | 14818 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14819 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 14820 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14821 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 14822 | # (actually we leave an empty line to preserve line numbers). | 
 | 14823 | if test "x$srcdir" = x.; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14824 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 14825 | h | 
 | 14826 | s/// | 
 | 14827 | s/^/:/ | 
 | 14828 | s/[	 ]*$/:/ | 
 | 14829 | s/:\$(srcdir):/:/g | 
 | 14830 | s/:\${srcdir}:/:/g | 
 | 14831 | s/:@srcdir@:/:/g | 
 | 14832 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14833 | s/:*$// | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14834 | x | 
 | 14835 | s/\(=[	 ]*\).*/\1/ | 
 | 14836 | G | 
 | 14837 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14838 | s/^[^=]*=[	 ]*$// | 
 | 14839 | }' | 
 | 14840 | fi | 
 | 14841 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14843 | fi # test -n "$CONFIG_FILES" | 
 | 14844 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14845 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 14846 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 14847 | # This happens for instance with `./config.status Makefile'. | 
 | 14848 | if test -n "$CONFIG_HEADERS"; then | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14849 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14850 | BEGIN { | 
 | 14851 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14852 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14853 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 14854 | # here-document in config.status, that substitutes the proper values into | 
 | 14855 | # config.h.in to produce config.h. | 
 | 14856 |  | 
 | 14857 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 14858 | # handling of long lines. | 
 | 14859 | ac_delim='%!_!# ' | 
 | 14860 | for ac_last_try in false false :; do | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14861 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 14862 |   if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14863 |     break | 
 | 14864 |   elif $ac_last_try; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14865 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14866 |   else | 
 | 14867 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 14868 |   fi | 
 | 14869 | done | 
 | 14870 |  | 
 | 14871 | # For the awk script, D is an array of macro values keyed by name, | 
 | 14872 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 14873 | # newline sequences. | 
 | 14874 |  | 
 | 14875 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 14876 | sed -n ' | 
 | 14877 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 14878 | t rset | 
 | 14879 | :rset | 
 | 14880 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 14881 | t def | 
 | 14882 | d | 
 | 14883 | :def | 
 | 14884 | s/\\$// | 
 | 14885 | t bsnl | 
 | 14886 | s/["\\]/\\&/g | 
 | 14887 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 14888 | D["\1"]=" \3"/p | 
 | 14889 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 14890 | d | 
 | 14891 | :bsnl | 
 | 14892 | s/["\\]/\\&/g | 
 | 14893 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 14894 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 14895 | t cont | 
 | 14896 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 14897 | t cont | 
 | 14898 | d | 
 | 14899 | :cont | 
 | 14900 | n | 
 | 14901 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 14902 | t clear | 
 | 14903 | :clear | 
 | 14904 | s/\\$// | 
 | 14905 | t bsnlc | 
 | 14906 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 14907 | d | 
 | 14908 | :bsnlc | 
 | 14909 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 14910 | b cont | 
 | 14911 | ' <confdefs.h | sed ' | 
 | 14912 | s/'"$ac_delim"'/"\\\ | 
 | 14913 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 14914 |  | 
 | 14915 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 14916 |   for (key in D) D_is_set[key] = 1 | 
 | 14917 |   FS = "" | 
 | 14918 | } | 
 | 14919 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 14920 |   line = \$ 0 | 
 | 14921 |   split(line, arg, " ") | 
 | 14922 |   if (arg[1] == "#") { | 
 | 14923 |     defundef = arg[2] | 
 | 14924 |     mac1 = arg[3] | 
 | 14925 |   } else { | 
 | 14926 |     defundef = substr(arg[1], 2) | 
 | 14927 |     mac1 = arg[2] | 
 | 14928 |   } | 
 | 14929 |   split(mac1, mac2, "(") #) | 
 | 14930 |   macro = mac2[1] | 
 | 14931 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 14932 |   if (D_is_set[macro]) { | 
 | 14933 |     # Preserve the white space surrounding the "#". | 
 | 14934 |     print prefix "define", macro P[macro] D[macro] | 
 | 14935 |     next | 
 | 14936 |   } else { | 
 | 14937 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 14938 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 14939 |     # on some systems where configure will not decide to define it. | 
 | 14940 |     if (defundef == "undef") { | 
 | 14941 |       print "/*", prefix defundef, macro, "*/" | 
 | 14942 |       next | 
 | 14943 |     } | 
 | 14944 |   } | 
 | 14945 | } | 
 | 14946 | { print } | 
 | 14947 | _ACAWK | 
 | 14948 | _ACEOF | 
 | 14949 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14950 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14951 | fi # test -n "$CONFIG_HEADERS" | 
 | 14952 |  | 
 | 14953 |  | 
 | 14954 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 14955 | shift | 
 | 14956 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14957 | do | 
 | 14958 |   case $ac_tag in | 
 | 14959 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 14960 |   esac | 
 | 14961 |   case $ac_mode$ac_tag in | 
 | 14962 |   :[FHL]*:*);; | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14963 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14964 |   :[FH]-) ac_tag=-:-;; | 
 | 14965 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 14966 |   esac | 
 | 14967 |   ac_save_IFS=$IFS | 
 | 14968 |   IFS=: | 
 | 14969 |   set x $ac_tag | 
 | 14970 |   IFS=$ac_save_IFS | 
 | 14971 |   shift | 
 | 14972 |   ac_file=$1 | 
 | 14973 |   shift | 
 | 14974 |  | 
 | 14975 |   case $ac_mode in | 
 | 14976 |   :L) ac_source=$1;; | 
 | 14977 |   :[FH]) | 
 | 14978 |     ac_file_inputs= | 
 | 14979 |     for ac_f | 
 | 14980 |     do | 
 | 14981 |       case $ac_f in | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14982 |       -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14983 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 14984 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 14985 | 	 # because $ac_f cannot contain `:'. | 
 | 14986 | 	 test -f "$ac_f" || | 
 | 14987 | 	   case $ac_f in | 
 | 14988 | 	   [\\/$]*) false;; | 
 | 14989 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 14990 | 	   esac || | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 14991 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14992 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14993 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 14994 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14995 |     done | 
 | 14996 |  | 
 | 14997 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 14998 |     # use $as_me), people would be surprised to read: | 
 | 14999 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15000 |     configure_input='Generated from '` | 
 | 15001 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 15002 | 	`' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15003 |     if test x"$ac_file" != x-; then | 
 | 15004 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15005 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 15006 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15007 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15008 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 15009 |     case $configure_input in #( | 
 | 15010 |     *\&* | *\|* | *\\* ) | 
 | 15011 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 15012 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 15013 |     *) ac_sed_conf_input=$configure_input;; | 
 | 15014 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15015 |  | 
 | 15016 |     case $ac_tag in | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15017 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 15018 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15019 |     esac | 
 | 15020 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 |   esac | 
 | 15022 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15023 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15025 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 15026 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15027 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15028 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15029 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15030 | 	    s//\1/ | 
 | 15031 | 	    q | 
 | 15032 | 	  } | 
 | 15033 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15034 | 	    s//\1/ | 
 | 15035 | 	    q | 
 | 15036 | 	  } | 
 | 15037 | 	  /^X\(\/\/\)$/{ | 
 | 15038 | 	    s//\1/ | 
 | 15039 | 	    q | 
 | 15040 | 	  } | 
 | 15041 | 	  /^X\(\/\).*/{ | 
 | 15042 | 	    s//\1/ | 
 | 15043 | 	    q | 
 | 15044 | 	  } | 
 | 15045 | 	  s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15046 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15047 |   ac_builddir=. | 
 | 15048 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15049 | case "$ac_dir" in | 
 | 15050 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15051 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15052 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15053 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15054 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15055 |   case $ac_top_builddir_sub in | 
 | 15056 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15057 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 15058 |   esac ;; | 
 | 15059 | esac | 
 | 15060 | ac_abs_top_builddir=$ac_pwd | 
 | 15061 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 15062 | # for backward compatibility: | 
 | 15063 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15064 |  | 
 | 15065 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15066 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15068 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 15069 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 15070 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15071 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15072 |     ac_top_srcdir=$srcdir | 
 | 15073 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 15074 |   *) # Relative name. | 
 | 15075 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 15076 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 15077 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15079 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15080 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15081 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15082 |   case $ac_mode in | 
 | 15083 |   :F) | 
 | 15084 |   # | 
 | 15085 |   # CONFIG_FILE | 
 | 15086 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15087 |  | 
 | 15088 |   case $INSTALL in | 
 | 15089 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15090 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 |   esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15092 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15094 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15095 | # If the template does not know about datarootdir, expand it. | 
 | 15096 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 15097 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15098 | ac_sed_dataroot=' | 
 | 15099 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15100 |   p | 
 | 15101 |   q | 
 | 15102 | } | 
 | 15103 | /@datadir@/p | 
 | 15104 | /@docdir@/p | 
 | 15105 | /@infodir@/p | 
 | 15106 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15107 | /@mandir@/p' | 
 | 15108 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15109 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 15110 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15111 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 15112 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15113 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15114 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15115 |   ac_datarootdir_hack=' | 
 | 15116 |   s&@datadir@&$datadir&g | 
 | 15117 |   s&@docdir@&$docdir&g | 
 | 15118 |   s&@infodir@&$infodir&g | 
 | 15119 |   s&@localedir@&$localedir&g | 
 | 15120 |   s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15121 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15122 | esac | 
 | 15123 | _ACEOF | 
 | 15124 |  | 
 | 15125 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 15126 | # Shell code in configure.ac might set extrasub. | 
 | 15127 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15129 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 | $extrasub | 
 | 15131 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15132 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | :t | 
 | 15134 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15135 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15136 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15137 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15138 | s&@srcdir@&$ac_srcdir&;t t | 
 | 15139 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 15140 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 15141 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 15142 | s&@builddir@&$ac_builddir&;t t | 
 | 15143 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 15144 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 15145 | s&@INSTALL@&$ac_INSTALL&;t t | 
 | 15146 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15147 | " | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15148 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 15149 |   >$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] | 15150 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15151 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15152 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 15153 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 15154 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15155 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15156 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15157 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15158 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15159 |  | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15160 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15161 |   case $ac_file in | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15162 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 15163 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15164 |   esac \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15165 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15166 |  ;; | 
 | 15167 |   :H) | 
 | 15168 |   # | 
 | 15169 |   # CONFIG_HEADER | 
 | 15170 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15171 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15172 |     { | 
 | 15173 |       $as_echo "/* $configure_input  */" \ | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15174 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 15175 |     } >"$ac_tmp/config.h" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15176 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15177 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15178 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 15179 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15181 |       rm -f "$ac_file" | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15182 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15183 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 |     fi | 
 | 15185 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15186 |     $as_echo "/* $configure_input  */" \ | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 15187 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15188 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15189 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15190 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15191 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15192 |  | 
 | 15193 |   esac | 
 | 15194 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 15195 |  | 
 | 15196 |   case $ac_file$ac_mode in | 
 | 15197 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 15198 |  | 
 | 15199 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15200 | done # for ac_tag | 
 | 15201 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15203 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | ac_clean_files=$ac_clean_files_save | 
 | 15206 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15207 | test $ac_write_fail = 0 || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15208 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15209 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15210 |  | 
 | 15211 | # configure is writing to config.log, and then calls config.status. | 
 | 15212 | # config.status does its own redirection, appending to config.log. | 
 | 15213 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 15214 | # by configure, so config.status won't be able to write to it; its | 
 | 15215 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 15216 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 15217 | # appended to by config.status.  When coming back to configure, we | 
 | 15218 | # need to make the FD available again. | 
 | 15219 | if test "$no_create" != yes; then | 
 | 15220 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15221 |   ac_config_status_args= | 
 | 15222 |   test "$silent" = yes && | 
 | 15223 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15225 |   $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] | 15226 |   exec 5>>config.log | 
 | 15227 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 15228 |   # would make configure fail if this is the last instruction. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15229 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15230 | fi | 
 | 15231 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 15232 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 15233 | $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] | 15234 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15235 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15236 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15237 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15238 | if test ! -f Modules/Setup | 
 | 15239 | then | 
 | 15240 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 15241 | fi | 
 | 15242 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15243 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15244 | if test ! -f Modules/Setup.local | 
 | 15245 | then | 
 | 15246 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 15247 | fi | 
 | 15248 |  | 
 | 15249 | echo "creating Makefile" | 
 | 15250 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 15251 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15252 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15253 | mv config.c Modules |