| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2 | # From configure.ac Revision. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.68 for python 2.7. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8 | # | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | 
 | 11 | # Foundation, Inc. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16 | ## -------------------- ## | 
 | 17 | ## M4sh Initialization. ## | 
 | 18 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible | 
 | 21 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | a0bea5d | 2010-05-08 10:00:28 +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+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 30 |   case `(set -o) 2>/dev/null` in #( | 
 | 31 |   *posix*) : | 
 | 32 |     set -o posix ;; #( | 
 | 33 |   *) : | 
 | 34 |      ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi | 
 | 37 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 38 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | a0bea5d | 2010-05-08 10:00:28 +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 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 84 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 85 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 92 | IFS=" ""	$as_nl" | 
 | 93 |  | 
 | 94 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 95 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 96 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 103 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 104 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 105 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 106 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 115 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 116 |   exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | fi | 
 | 118 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 126 | done | 
 | 127 | PS1='$ ' | 
 | 128 | PS2='> ' | 
 | 129 | PS4='+ ' | 
 | 130 |  | 
 | 131 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 132 | LC_ALL=C | 
 | 133 | export LC_ALL | 
 | 134 | LANGUAGE=C | 
 | 135 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 136 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 221 | 	# Preserve -v and -x to the replacement shell. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [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 | a0bea5d | 2010-05-08 10:00:28 +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" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 331 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 372 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 375 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 376 | as_fn_error () | 
 | 377 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 382 |   fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 383 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 384 |   as_fn_exit $as_status | 
 | 385 | } # as_fn_error | 
 | 386 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 405 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 410 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 431 |  | 
 | 432 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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.  :-) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 |       s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 |     ' >$as_me.lineno && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 453 |   chmod +x "$as_me.lineno" || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 464 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 465 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 466 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 467 |   case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 468 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 469 |   xy)  ECHO_C='\c';; | 
 | 470 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 471 |        ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 482 |   mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 483 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +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 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 522 | 	test -d "$1/."; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 523 |       else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 524 | 	case $1 in #( | 
 | 525 | 	-*)set "./$1";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 526 | 	esac; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 527 | 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +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. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 553 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 554 | ac_config_libobj_dir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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' | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.7' | 
 | 565 | PACKAGE_STRING='python 2.7' | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 598 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 606 | ac_subst_vars='LTLIBOBJS | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 607 | SRCDIRS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 608 | THREADHEADERS | 
 | 609 | UNICODE_OBJS | 
 | 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 | 
 | 642 | LN | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 643 | MKDIR_P | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 644 | INSTALL_DATA | 
 | 645 | INSTALL_SCRIPT | 
 | 646 | INSTALL_PROGRAM | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 647 | HAS_HG | 
 | 648 | HGBRANCH | 
 | 649 | HGTAG | 
 | 650 | HGVERSION | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 651 | BASECPPFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 652 | SVNVERSION | 
 | 653 | ARFLAGS | 
 | 654 | AR | 
 | 655 | RANLIB | 
 | 656 | GNULD | 
 | 657 | LINKCC | 
 | 658 | RUNSHARED | 
 | 659 | INSTSONAME | 
 | 660 | LDLIBRARYDIR | 
 | 661 | BLDLIBRARY | 
 | 662 | DLLLIBRARY | 
 | 663 | LDLIBRARY | 
 | 664 | LIBRARY | 
 | 665 | BUILDEXEEXT | 
 | 666 | EGREP | 
 | 667 | GREP | 
 | 668 | CPP | 
 | 669 | MAINCC | 
 | 670 | CXX | 
 | 671 | OBJEXT | 
 | 672 | EXEEXT | 
 | 673 | ac_ct_CC | 
 | 674 | CPPFLAGS | 
 | 675 | LDFLAGS | 
 | 676 | CFLAGS | 
 | 677 | CC | 
 | 678 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 679 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 680 | EXTRAMACHDEPPATH | 
 | 681 | EXTRAPLATDIR | 
 | 682 | SGI_ABI | 
 | 683 | MACHDEP | 
 | 684 | FRAMEWORKINSTALLAPPSPREFIX | 
 | 685 | FRAMEWORKUNIXTOOLSPREFIX | 
 | 686 | FRAMEWORKALTINSTALLLAST | 
 | 687 | FRAMEWORKALTINSTALLFIRST | 
 | 688 | FRAMEWORKINSTALLLAST | 
 | 689 | FRAMEWORKINSTALLFIRST | 
 | 690 | PYTHONFRAMEWORKINSTALLDIR | 
 | 691 | PYTHONFRAMEWORKPREFIX | 
 | 692 | PYTHONFRAMEWORKDIR | 
 | 693 | PYTHONFRAMEWORKIDENTIFIER | 
 | 694 | PYTHONFRAMEWORK | 
 | 695 | LIPO_32BIT_FLAGS | 
 | 696 | ARCH_RUN_32BIT | 
 | 697 | UNIVERSALSDK | 
 | 698 | CONFIG_ARGS | 
 | 699 | SOVERSION | 
 | 700 | VERSION | 
 | 701 | target_alias | 
 | 702 | host_alias | 
 | 703 | build_alias | 
 | 704 | LIBS | 
 | 705 | ECHO_T | 
 | 706 | ECHO_N | 
 | 707 | ECHO_C | 
 | 708 | DEFS | 
 | 709 | mandir | 
 | 710 | localedir | 
 | 711 | libdir | 
 | 712 | psdir | 
 | 713 | pdfdir | 
 | 714 | dvidir | 
 | 715 | htmldir | 
 | 716 | infodir | 
 | 717 | docdir | 
 | 718 | oldincludedir | 
 | 719 | includedir | 
 | 720 | localstatedir | 
 | 721 | sharedstatedir | 
 | 722 | sysconfdir | 
 | 723 | datadir | 
 | 724 | datarootdir | 
 | 725 | libexecdir | 
 | 726 | sbindir | 
 | 727 | bindir | 
 | 728 | program_transform_name | 
 | 729 | prefix | 
 | 730 | exec_prefix | 
 | 731 | PACKAGE_URL | 
 | 732 | PACKAGE_BUGREPORT | 
 | 733 | PACKAGE_STRING | 
 | 734 | PACKAGE_VERSION | 
 | 735 | PACKAGE_TARNAME | 
 | 736 | PACKAGE_NAME | 
 | 737 | PATH_SEPARATOR | 
 | 738 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 739 | ac_subst_files='' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 740 | ac_user_opts=' | 
 | 741 | enable_option_checking | 
 | 742 | enable_universalsdk | 
 | 743 | with_universal_archs | 
 | 744 | with_framework_name | 
 | 745 | enable_framework | 
 | 746 | with_gcc | 
 | 747 | with_cxx_main | 
 | 748 | with_suffix | 
 | 749 | enable_shared | 
 | 750 | enable_profiling | 
 | 751 | with_pydebug | 
 | 752 | enable_toolbox_glue | 
 | 753 | with_libs | 
 | 754 | with_system_expat | 
 | 755 | with_system_ffi | 
 | 756 | with_dbmliborder | 
 | 757 | with_signal_module | 
 | 758 | with_dec_threads | 
 | 759 | with_threads | 
 | 760 | with_thread | 
 | 761 | with_pth | 
 | 762 | enable_ipv6 | 
 | 763 | with_doc_strings | 
 | 764 | with_tsc | 
 | 765 | with_pymalloc | 
 | 766 | with_valgrind | 
 | 767 | with_wctype_functions | 
 | 768 | with_fpectl | 
 | 769 | with_libm | 
 | 770 | with_libc | 
 | 771 | enable_big_digits | 
 | 772 | enable_unicode | 
 | 773 | ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 774 |       ac_precious_vars='build_alias | 
 | 775 | host_alias | 
 | 776 | target_alias | 
 | 777 | CC | 
 | 778 | CFLAGS | 
 | 779 | LDFLAGS | 
 | 780 | LIBS | 
 | 781 | CPPFLAGS | 
 | 782 | CPP' | 
 | 783 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 784 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 785 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 786 | ac_init_help= | 
 | 787 | ac_init_version=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 788 | ac_unrecognized_opts= | 
 | 789 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 790 | # The variables have the same names as the options, with | 
 | 791 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 792 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 793 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 794 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 795 | no_recursion= | 
 | 796 | prefix=NONE | 
 | 797 | program_prefix=NONE | 
 | 798 | program_suffix=NONE | 
 | 799 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 801 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 802 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 804 | x_includes=NONE | 
 | 805 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 806 |  | 
 | 807 | # Installation directory options. | 
 | 808 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 809 | # and all the variables that are supposed to be based on exec_prefix | 
 | 810 | # by default will actually change. | 
 | 811 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 812 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 813 | bindir='${exec_prefix}/bin' | 
 | 814 | sbindir='${exec_prefix}/sbin' | 
 | 815 | libexecdir='${exec_prefix}/libexec' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 816 | datarootdir='${prefix}/share' | 
 | 817 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 818 | sysconfdir='${prefix}/etc' | 
 | 819 | sharedstatedir='${prefix}/com' | 
 | 820 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 821 | includedir='${prefix}/include' | 
 | 822 | oldincludedir='/usr/include' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 823 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 824 | infodir='${datarootdir}/info' | 
 | 825 | htmldir='${docdir}' | 
 | 826 | dvidir='${docdir}' | 
 | 827 | pdfdir='${docdir}' | 
 | 828 | psdir='${docdir}' | 
 | 829 | libdir='${exec_prefix}/lib' | 
 | 830 | localedir='${datarootdir}/locale' | 
 | 831 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 832 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 833 | ac_prev= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 834 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 835 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 836 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 837 |   # If the previous option needs an argument, assign it. | 
 | 838 |   if test -n "$ac_prev"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 839 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 840 |     ac_prev= | 
 | 841 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 842 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 843 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 844 |   case $ac_option in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 845 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 846 |   *=)   ac_optarg= ;; | 
 | 847 |   *)    ac_optarg=yes ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 848 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 849 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 850 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 851 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 852 |   case $ac_dashdash$ac_option in | 
 | 853 |   --) | 
 | 854 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 856 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 857 |     ac_prev=bindir ;; | 
 | 858 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 859 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 860 |  | 
 | 861 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 863 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 864 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 866 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 867 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 868 |     ac_prev=cache_file ;; | 
 | 869 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 870 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 871 |     cache_file=$ac_optarg ;; | 
 | 872 |  | 
 | 873 |   --config-cache | -C) | 
 | 874 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 875 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 876 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 877 |     ac_prev=datadir ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 878 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 880 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 881 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 882 |   | --dataroo | --dataro | --datar) | 
 | 883 |     ac_prev=datarootdir ;; | 
 | 884 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 885 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 886 |     datarootdir=$ac_optarg ;; | 
 | 887 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 888 |   -disable-* | --disable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 889 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 890 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 891 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 892 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 893 |     ac_useropt_orig=$ac_useropt | 
 | 894 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 895 |     case $ac_user_opts in | 
 | 896 |       *" | 
 | 897 | "enable_$ac_useropt" | 
 | 898 | "*) ;; | 
 | 899 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 900 | 	 ac_unrecognized_sep=', ';; | 
 | 901 |     esac | 
 | 902 |     eval enable_$ac_useropt=no ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 903 |  | 
 | 904 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 905 |     ac_prev=docdir ;; | 
 | 906 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 907 |     docdir=$ac_optarg ;; | 
 | 908 |  | 
 | 909 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 910 |     ac_prev=dvidir ;; | 
 | 911 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 912 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 |  | 
 | 914 |   -enable-* | --enable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 915 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 916 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 917 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 918 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 919 |     ac_useropt_orig=$ac_useropt | 
 | 920 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 921 |     case $ac_user_opts in | 
 | 922 |       *" | 
 | 923 | "enable_$ac_useropt" | 
 | 924 | "*) ;; | 
 | 925 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 926 | 	 ac_unrecognized_sep=', ';; | 
 | 927 |     esac | 
 | 928 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 929 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 930 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 931 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 932 |   | --exec | --exe | --ex) | 
 | 933 |     ac_prev=exec_prefix ;; | 
 | 934 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 935 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 936 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 937 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 938 |  | 
 | 939 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 940 |     # Obsolete; use --with-gas. | 
 | 941 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 942 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 943 |   -help | --help | --hel | --he | -h) | 
 | 944 |     ac_init_help=long ;; | 
 | 945 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 946 |     ac_init_help=recursive ;; | 
 | 947 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 948 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 949 |  | 
 | 950 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 951 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 954 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 955 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 956 |     ac_prev=htmldir ;; | 
 | 957 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 958 |   | --ht=*) | 
 | 959 |     htmldir=$ac_optarg ;; | 
 | 960 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 961 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 962 |   | --includ | --inclu | --incl | --inc) | 
 | 963 |     ac_prev=includedir ;; | 
 | 964 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 965 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 |  | 
 | 968 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 969 |     ac_prev=infodir ;; | 
 | 970 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 972 |  | 
 | 973 |   -libdir | --libdir | --libdi | --libd) | 
 | 974 |     ac_prev=libdir ;; | 
 | 975 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 977 |  | 
 | 978 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 979 |   | --libexe | --libex | --libe) | 
 | 980 |     ac_prev=libexecdir ;; | 
 | 981 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 982 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 984 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 985 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 986 |     ac_prev=localedir ;; | 
 | 987 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 988 |     localedir=$ac_optarg ;; | 
 | 989 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 990 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 991 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 992 |     ac_prev=localstatedir ;; | 
 | 993 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 994 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 995 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 996 |  | 
 | 997 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 998 |     ac_prev=mandir ;; | 
 | 999 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1000 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1001 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1002 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1003 |     # Obsolete; use --without-fp. | 
 | 1004 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1005 |  | 
 | 1006 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 |     no_create=yes ;; | 
 | 1009 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1010 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1011 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1012 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1013 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1014 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1015 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1016 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1017 |     ac_prev=oldincludedir ;; | 
 | 1018 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1019 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1020 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1021 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1022 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1023 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1024 |     ac_prev=prefix ;; | 
 | 1025 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1026 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 |  | 
 | 1028 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1029 |   | --program-pre | --program-pr | --program-p) | 
 | 1030 |     ac_prev=program_prefix ;; | 
 | 1031 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1032 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1033 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1034 |  | 
 | 1035 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1036 |   | --program-suf | --program-su | --program-s) | 
 | 1037 |     ac_prev=program_suffix ;; | 
 | 1038 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1039 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1040 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1041 |  | 
 | 1042 |   -program-transform-name | --program-transform-name \ | 
 | 1043 |   | --program-transform-nam | --program-transform-na \ | 
 | 1044 |   | --program-transform-n | --program-transform- \ | 
 | 1045 |   | --program-transform | --program-transfor \ | 
 | 1046 |   | --program-transfo | --program-transf \ | 
 | 1047 |   | --program-trans | --program-tran \ | 
 | 1048 |   | --progr-tra | --program-tr | --program-t) | 
 | 1049 |     ac_prev=program_transform_name ;; | 
 | 1050 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1051 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1052 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1053 |   | --program-transform=* | --program-transfor=* \ | 
 | 1054 |   | --program-transfo=* | --program-transf=* \ | 
 | 1055 |   | --program-trans=* | --program-tran=* \ | 
 | 1056 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1057 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1058 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1059 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1060 |     ac_prev=pdfdir ;; | 
 | 1061 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1062 |     pdfdir=$ac_optarg ;; | 
 | 1063 |  | 
 | 1064 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1065 |     ac_prev=psdir ;; | 
 | 1066 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1067 |     psdir=$ac_optarg ;; | 
 | 1068 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1069 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1070 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1071 |     silent=yes ;; | 
 | 1072 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1073 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1074 |     ac_prev=sbindir ;; | 
 | 1075 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1076 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1077 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1078 |  | 
 | 1079 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1080 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1081 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1082 |   | --sha | --sh) | 
 | 1083 |     ac_prev=sharedstatedir ;; | 
 | 1084 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1085 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1086 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1087 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1088 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1089 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1090 |   -site | --site | --sit) | 
 | 1091 |     ac_prev=site ;; | 
 | 1092 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1093 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1094 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1095 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1096 |     ac_prev=srcdir ;; | 
 | 1097 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1100 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1101 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1102 |     ac_prev=sysconfdir ;; | 
 | 1103 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1104 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1106 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1108 |     ac_prev=target_alias ;; | 
| 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 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1111 |  | 
 | 1112 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1113 |     verbose=yes ;; | 
 | 1114 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1116 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1117 |  | 
 | 1118 |   -with-* | --with-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1119 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1120 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1121 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1122 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1123 |     ac_useropt_orig=$ac_useropt | 
 | 1124 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1125 |     case $ac_user_opts in | 
 | 1126 |       *" | 
 | 1127 | "with_$ac_useropt" | 
 | 1128 | "*) ;; | 
 | 1129 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1130 | 	 ac_unrecognized_sep=', ';; | 
 | 1131 |     esac | 
 | 1132 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 |  | 
 | 1134 |   -without-* | --without-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1135 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1136 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1137 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1138 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1139 |     ac_useropt_orig=$ac_useropt | 
 | 1140 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1141 |     case $ac_user_opts in | 
 | 1142 |       *" | 
 | 1143 | "with_$ac_useropt" | 
 | 1144 | "*) ;; | 
 | 1145 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1146 | 	 ac_unrecognized_sep=', ';; | 
 | 1147 |     esac | 
 | 1148 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1149 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1150 |   --x) | 
 | 1151 |     # Obsolete; use --with-x. | 
 | 1152 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1153 |  | 
 | 1154 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1155 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1156 |     ac_prev=x_includes ;; | 
 | 1157 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1158 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1159 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1160 |  | 
 | 1161 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1162 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1163 |     ac_prev=x_libraries ;; | 
 | 1164 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1165 |   | --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] | 1166 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1167 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1168 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1169 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 |     ;; | 
 | 1171 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1172 |   *=*) | 
 | 1173 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1174 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1175 |     case $ac_envvar in #( | 
 | 1176 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1177 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1178 |     esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1179 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1180 |     export $ac_envvar ;; | 
 | 1181 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1182 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1183 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1184 |     $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] | 1185 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1186 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1187 |     : "${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] | 1188 |     ;; | 
 | 1189 |  | 
 | 1190 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1191 | done | 
 | 1192 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1193 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1194 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1195 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1196 | fi | 
 | 1197 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1198 | if test -n "$ac_unrecognized_opts"; then | 
 | 1199 |   case $enable_option_checking in | 
 | 1200 |     no) ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1201 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1202 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1203 |   esac | 
 | 1204 | fi | 
 | 1205 |  | 
 | 1206 | # Check all directory arguments for consistency. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1207 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1208 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1209 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1210 | 		libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1211 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1212 |   eval ac_val=\$$ac_var | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1213 |   # Remove trailing slashes. | 
 | 1214 |   case $ac_val in | 
 | 1215 |     */ ) | 
 | 1216 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1217 |       eval $ac_var=\$ac_val;; | 
 | 1218 |   esac | 
 | 1219 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1220 |   case $ac_val in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1221 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1222 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1223 |   esac | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1224 |   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] | 1225 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1226 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1227 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1228 | # used to hold the argument of --host etc. | 
 | 1229 | # FIXME: To remove some day. | 
 | 1230 | build=$build_alias | 
 | 1231 | host=$host_alias | 
 | 1232 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1233 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1234 | # FIXME: To remove some day. | 
 | 1235 | if test "x$host_alias" != x; then | 
 | 1236 |   if test "x$build_alias" = x; then | 
 | 1237 |     cross_compiling=maybe | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1238 |     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | 
 | 1239 |     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] | 1240 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1241 |     cross_compiling=yes | 
 | 1242 |   fi | 
 | 1243 | fi | 
 | 1244 |  | 
 | 1245 | ac_tool_prefix= | 
 | 1246 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1247 |  | 
 | 1248 | test "$silent" = yes && exec 6>/dev/null | 
 | 1249 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1250 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1251 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1252 | ac_ls_di=`ls -di .` && | 
 | 1253 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1254 |   as_fn_error $? "working directory cannot be determined" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1255 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1256 |   as_fn_error $? "pwd does not report name of working directory" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1257 |  | 
 | 1258 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1259 | # Find the source files, if location was not specified. | 
 | 1260 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1261 |   ac_srcdir_defaulted=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1262 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1263 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1264 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1265 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1266 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1267 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1268 | $as_echo X"$as_myself" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1269 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1270 | 	    s//\1/ | 
 | 1271 | 	    q | 
 | 1272 | 	  } | 
 | 1273 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1274 | 	    s//\1/ | 
 | 1275 | 	    q | 
 | 1276 | 	  } | 
 | 1277 | 	  /^X\(\/\/\)$/{ | 
 | 1278 | 	    s//\1/ | 
 | 1279 | 	    q | 
 | 1280 | 	  } | 
 | 1281 | 	  /^X\(\/\).*/{ | 
 | 1282 | 	    s//\1/ | 
 | 1283 | 	    q | 
 | 1284 | 	  } | 
 | 1285 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1286 |   srcdir=$ac_confdir | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1287 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1288 |     srcdir=.. | 
 | 1289 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1290 | else | 
 | 1291 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1292 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1293 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1294 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1295 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1296 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1297 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1298 | ac_abs_confdir=`( | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1299 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1300 | 	pwd)` | 
 | 1301 | # When building in place, set srcdir=. | 
 | 1302 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1303 |   srcdir=. | 
 | 1304 | fi | 
 | 1305 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1306 | # Double slashes in file names in object file debugging info | 
 | 1307 | # mess up M-x gdb in Emacs. | 
 | 1308 | case $srcdir in | 
 | 1309 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1310 | esac | 
 | 1311 | for ac_var in $ac_precious_vars; do | 
 | 1312 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1313 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1314 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1315 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1316 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1317 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1318 | # | 
 | 1319 | # Report the --help message. | 
 | 1320 | # | 
 | 1321 | if test "$ac_init_help" = "long"; then | 
 | 1322 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1323 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1324 |   cat <<_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1325 | \`configure' configures python 2.7 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1326 |  | 
 | 1327 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1328 |  | 
 | 1329 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1330 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1331 |  | 
 | 1332 | Defaults for the options are specified in brackets. | 
 | 1333 |  | 
 | 1334 | Configuration: | 
 | 1335 |   -h, --help              display this help and exit | 
 | 1336 |       --help=short        display options specific to this package | 
 | 1337 |       --help=recursive    display the short help of all the included packages | 
 | 1338 |   -V, --version           display version information and exit | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1339 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1340 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1341 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1342 |   -n, --no-create         do not create output files | 
 | 1343 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1344 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1345 | Installation directories: | 
 | 1346 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1347 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1348 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1349 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1350 |  | 
 | 1351 | By default, \`make install' will install all the files in | 
 | 1352 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1353 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1354 | for instance \`--prefix=\$HOME'. | 
 | 1355 |  | 
 | 1356 | For better control, use the options below. | 
 | 1357 |  | 
 | 1358 | Fine tuning of the installation directories: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1359 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1360 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1361 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1362 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1363 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1364 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1365 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1366 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1367 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1368 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1369 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1370 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1371 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1372 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1373 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1374 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1375 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1376 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1377 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | _ACEOF | 
 | 1379 |  | 
 | 1380 |   cat <<\_ACEOF | 
 | 1381 | _ACEOF | 
 | 1382 | fi | 
 | 1383 |  | 
 | 1384 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1385 |   case $ac_init_help in | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1386 |      short | recursive ) echo "Configuration of python 2.7:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1387 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1388 |   cat <<\_ACEOF | 
 | 1389 |  | 
 | 1390 | Optional Features: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1391 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1393 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1394 |   --enable-universalsdk[=SDKDIR] | 
| Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1395 |                           Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1396 |   --enable-framework[=INSTALLDIR] | 
 | 1397 |                           Build (MacOSX|Darwin) framework | 
 | 1398 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1399 |   --enable-profiling      enable C-level code profiling | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1400 |   --enable-toolbox-glue   disable/enable MacOSX glue code for extensions | 
 | 1401 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1402 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1403 |   --enable-big-digits[=BITS] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1404 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1405 |   --enable-unicode[=ucs[24]] | 
| Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1406 |                           Enable Unicode strings (default is ucs2) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1407 |  | 
 | 1408 | Optional Packages: | 
 | 1409 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1410 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1411 |   --with-universal-archs=ARCH | 
 | 1412 |                           select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1413 |                           "64-bit", "3-way", "intel" or "all") | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1414 |   --with-framework-name=FRAMEWORK | 
 | 1415 |                           specify an alternate name of the framework built | 
 | 1416 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1417 |   --without-gcc           never use gcc | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1418 |   --with-cxx-main=<compiler> | 
 | 1419 |                           compile main() and link python executable with C++ | 
 | 1420 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1421 |   --with-suffix=.exe      set executable suffix | 
 | 1422 |   --with-pydebug          build with Py_DEBUG defined | 
 | 1423 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1424 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1425 |                           library | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1426 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1427 |   --with-dbmliborder=db1:db2:... | 
 | 1428 |                           order to check db backends for dbm. Valid value is a | 
 | 1429 |                           colon separated string with the backend names | 
 | 1430 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1431 |   --with-signal-module    disable/enable signal module | 
 | 1432 |   --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
 | 1433 |   --with(out)-threads[=DIRECTORY] | 
 | 1434 |                           disable/enable thread support | 
 | 1435 |   --with(out)-thread[=DIRECTORY] | 
 | 1436 |                           deprecated; use --with(out)-threads | 
 | 1437 |   --with-pth              use GNU pth threading libraries | 
| 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 | 91c12eb | 2009-12-03 02:52:39 +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-wctype-functions use wctype.h functions | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1443 |   --with-fpectl           enable SIGFPE catching | 
 | 1444 |   --with-libm=STRING      math library | 
 | 1445 |   --with-libc=STRING      C library | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 |  | 
 | 1447 | Some influential environment variables: | 
 | 1448 |   CC          C compiler command | 
 | 1449 |   CFLAGS      C compiler flags | 
 | 1450 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1451 |               nonstandard directory <lib dir> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1452 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1453 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1454 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 |   CPP         C preprocessor | 
 | 1456 |  | 
 | 1457 | Use these variables to override the choices made by `configure' or to help | 
 | 1458 | it to find libraries and programs with nonstandard names/locations. | 
 | 1459 |  | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1460 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1462 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1463 | fi | 
 | 1464 |  | 
 | 1465 | if test "$ac_init_help" = "recursive"; then | 
 | 1466 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1467 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1468 |     test -d "$ac_dir" || | 
 | 1469 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1470 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 |     ac_builddir=. | 
 | 1472 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1473 | case "$ac_dir" in | 
 | 1474 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1475 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1476 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1477 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1478 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1479 |   case $ac_top_builddir_sub in | 
 | 1480 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1481 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1482 |   esac ;; | 
 | 1483 | esac | 
 | 1484 | ac_abs_top_builddir=$ac_pwd | 
 | 1485 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1486 | # for backward compatibility: | 
 | 1487 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1488 |  | 
 | 1489 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1490 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1491 |     ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1492 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1493 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1494 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1495 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1496 |     ac_top_srcdir=$srcdir | 
 | 1497 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1498 |   *) # Relative name. | 
 | 1499 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1500 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1501 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1502 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1503 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1504 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1505 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1506 |     # Check for guested configure. | 
 | 1507 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1508 |       echo && | 
 | 1509 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1510 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1511 |       echo && | 
 | 1512 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1513 |     else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1514 |       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1515 |     fi || ac_status=$? | 
 | 1516 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1517 |   done | 
 | 1518 | fi | 
 | 1519 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1520 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | if $ac_init_version; then | 
 | 1522 |   cat <<\_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1523 | python configure 2.7 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1524 | generated by GNU Autoconf 2.68 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1525 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1526 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1527 | This configure script is free software; the Free Software Foundation | 
 | 1528 | gives unlimited permission to copy, distribute and modify it. | 
 | 1529 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1530 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1531 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1532 |  | 
 | 1533 | ## ------------------------ ## | 
 | 1534 | ## Autoconf initialization. ## | 
 | 1535 | ## ------------------------ ## | 
 | 1536 |  | 
 | 1537 | # ac_fn_c_try_compile LINENO | 
 | 1538 | # -------------------------- | 
 | 1539 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1540 | ac_fn_c_try_compile () | 
 | 1541 | { | 
 | 1542 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1543 |   rm -f conftest.$ac_objext | 
 | 1544 |   if { { ac_try="$ac_compile" | 
 | 1545 | case "(($ac_try" in | 
 | 1546 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1547 |   *) ac_try_echo=$ac_try;; | 
 | 1548 | esac | 
 | 1549 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1550 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1551 |   (eval "$ac_compile") 2>conftest.err | 
 | 1552 |   ac_status=$? | 
 | 1553 |   if test -s conftest.err; then | 
 | 1554 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1555 |     cat conftest.er1 >&5 | 
 | 1556 |     mv -f conftest.er1 conftest.err | 
 | 1557 |   fi | 
 | 1558 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1559 |   test $ac_status = 0; } && { | 
 | 1560 | 	 test -z "$ac_c_werror_flag" || | 
 | 1561 | 	 test ! -s conftest.err | 
 | 1562 |        } && test -s conftest.$ac_objext; then : | 
 | 1563 |   ac_retval=0 | 
 | 1564 | else | 
 | 1565 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1566 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1567 |  | 
 | 1568 | 	ac_retval=1 | 
 | 1569 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1570 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1571 |   as_fn_set_status $ac_retval | 
 | 1572 |  | 
 | 1573 | } # ac_fn_c_try_compile | 
 | 1574 |  | 
 | 1575 | # ac_fn_c_try_cpp LINENO | 
 | 1576 | # ---------------------- | 
 | 1577 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1578 | ac_fn_c_try_cpp () | 
 | 1579 | { | 
 | 1580 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1581 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1582 | case "(($ac_try" in | 
 | 1583 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1584 |   *) ac_try_echo=$ac_try;; | 
 | 1585 | esac | 
 | 1586 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1587 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1588 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1589 |   ac_status=$? | 
 | 1590 |   if test -s conftest.err; then | 
 | 1591 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1592 |     cat conftest.er1 >&5 | 
 | 1593 |     mv -f conftest.er1 conftest.err | 
 | 1594 |   fi | 
 | 1595 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1596 |   test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1597 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1598 | 	 test ! -s conftest.err | 
 | 1599 |        }; then : | 
 | 1600 |   ac_retval=0 | 
 | 1601 | else | 
 | 1602 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1603 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1604 |  | 
 | 1605 |     ac_retval=1 | 
 | 1606 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1607 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1608 |   as_fn_set_status $ac_retval | 
 | 1609 |  | 
 | 1610 | } # ac_fn_c_try_cpp | 
 | 1611 |  | 
 | 1612 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1613 | # ------------------------------------------------------- | 
 | 1614 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1615 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1616 | # accordingly. | 
 | 1617 | ac_fn_c_check_header_mongrel () | 
 | 1618 | { | 
 | 1619 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1620 |   if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1621 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1622 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1623 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1624 |   $as_echo_n "(cached) " >&6 | 
 | 1625 | fi | 
 | 1626 | eval ac_res=\$$3 | 
 | 1627 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1628 | $as_echo "$ac_res" >&6; } | 
 | 1629 | else | 
 | 1630 |   # Is the header compilable? | 
 | 1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1632 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1634 | /* end confdefs.h.  */ | 
 | 1635 | $4 | 
 | 1636 | #include <$2> | 
 | 1637 | _ACEOF | 
 | 1638 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1639 |   ac_header_compiler=yes | 
 | 1640 | else | 
 | 1641 |   ac_header_compiler=no | 
 | 1642 | fi | 
 | 1643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1645 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1646 |  | 
 | 1647 | # Is the header present? | 
 | 1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1649 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1651 | /* end confdefs.h.  */ | 
 | 1652 | #include <$2> | 
 | 1653 | _ACEOF | 
 | 1654 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1655 |   ac_header_preproc=yes | 
 | 1656 | else | 
 | 1657 |   ac_header_preproc=no | 
 | 1658 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1659 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1661 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1662 |  | 
 | 1663 | # So?  What about this header? | 
 | 1664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1665 |   yes:no: ) | 
 | 1666 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1667 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1668 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1669 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1670 |     ;; | 
 | 1671 |   no:yes:* ) | 
 | 1672 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1673 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1674 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1675 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1676 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1677 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1678 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1679 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1680 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1681 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1682 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1683 | ## Report this to http://bugs.python.org/ ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1684 | ## -------------------------------------- ##" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1685 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1686 |     ;; | 
 | 1687 | esac | 
 | 1688 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1689 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1690 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1691 |   $as_echo_n "(cached) " >&6 | 
 | 1692 | else | 
 | 1693 |   eval "$3=\$ac_header_compiler" | 
 | 1694 | fi | 
 | 1695 | eval ac_res=\$$3 | 
 | 1696 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1697 | $as_echo "$ac_res" >&6; } | 
 | 1698 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1699 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1700 |  | 
 | 1701 | } # ac_fn_c_check_header_mongrel | 
 | 1702 |  | 
 | 1703 | # ac_fn_c_try_run LINENO | 
 | 1704 | # ---------------------- | 
 | 1705 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1706 | # that executables *can* be run. | 
 | 1707 | ac_fn_c_try_run () | 
 | 1708 | { | 
 | 1709 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1710 |   if { { ac_try="$ac_link" | 
 | 1711 | case "(($ac_try" in | 
 | 1712 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1713 |   *) ac_try_echo=$ac_try;; | 
 | 1714 | esac | 
 | 1715 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1716 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1717 |   (eval "$ac_link") 2>&5 | 
 | 1718 |   ac_status=$? | 
 | 1719 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1720 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1721 |   { { case "(($ac_try" in | 
 | 1722 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1723 |   *) ac_try_echo=$ac_try;; | 
 | 1724 | esac | 
 | 1725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1726 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1727 |   (eval "$ac_try") 2>&5 | 
 | 1728 |   ac_status=$? | 
 | 1729 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1730 |   test $ac_status = 0; }; }; then : | 
 | 1731 |   ac_retval=0 | 
 | 1732 | else | 
 | 1733 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1734 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1735 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1736 |  | 
 | 1737 |        ac_retval=$ac_status | 
 | 1738 | fi | 
 | 1739 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1740 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1741 |   as_fn_set_status $ac_retval | 
 | 1742 |  | 
 | 1743 | } # ac_fn_c_try_run | 
 | 1744 |  | 
 | 1745 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1746 | # ------------------------------------------------------- | 
 | 1747 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1748 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1749 | ac_fn_c_check_header_compile () | 
 | 1750 | { | 
 | 1751 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1752 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1753 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1754 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1755 |   $as_echo_n "(cached) " >&6 | 
 | 1756 | else | 
 | 1757 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1758 | /* end confdefs.h.  */ | 
 | 1759 | $4 | 
 | 1760 | #include <$2> | 
 | 1761 | _ACEOF | 
 | 1762 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1763 |   eval "$3=yes" | 
 | 1764 | else | 
 | 1765 |   eval "$3=no" | 
 | 1766 | fi | 
 | 1767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1768 | fi | 
 | 1769 | eval ac_res=\$$3 | 
 | 1770 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1771 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1772 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1773 |  | 
 | 1774 | } # ac_fn_c_check_header_compile | 
 | 1775 |  | 
 | 1776 | # ac_fn_c_try_link LINENO | 
 | 1777 | # ----------------------- | 
 | 1778 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1779 | ac_fn_c_try_link () | 
 | 1780 | { | 
 | 1781 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1782 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1783 |   if { { ac_try="$ac_link" | 
 | 1784 | case "(($ac_try" in | 
 | 1785 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1786 |   *) ac_try_echo=$ac_try;; | 
 | 1787 | esac | 
 | 1788 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1789 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1790 |   (eval "$ac_link") 2>conftest.err | 
 | 1791 |   ac_status=$? | 
 | 1792 |   if test -s conftest.err; then | 
 | 1793 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1794 |     cat conftest.er1 >&5 | 
 | 1795 |     mv -f conftest.er1 conftest.err | 
 | 1796 |   fi | 
 | 1797 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1798 |   test $ac_status = 0; } && { | 
 | 1799 | 	 test -z "$ac_c_werror_flag" || | 
 | 1800 | 	 test ! -s conftest.err | 
 | 1801 |        } && test -s conftest$ac_exeext && { | 
 | 1802 | 	 test "$cross_compiling" = yes || | 
 | 1803 | 	 $as_test_x conftest$ac_exeext | 
 | 1804 |        }; then : | 
 | 1805 |   ac_retval=0 | 
 | 1806 | else | 
 | 1807 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1808 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1809 |  | 
 | 1810 | 	ac_retval=1 | 
 | 1811 | fi | 
 | 1812 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1813 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1814 |   # interfere with the next link command; also delete a directory that is | 
 | 1815 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1816 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1817 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1818 |   as_fn_set_status $ac_retval | 
 | 1819 |  | 
 | 1820 | } # ac_fn_c_try_link | 
 | 1821 |  | 
 | 1822 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1823 | # ------------------------------------------- | 
 | 1824 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1825 | # variable VAR accordingly. | 
 | 1826 | ac_fn_c_check_type () | 
 | 1827 | { | 
 | 1828 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1829 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1830 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1831 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1832 |   $as_echo_n "(cached) " >&6 | 
 | 1833 | else | 
 | 1834 |   eval "$3=no" | 
 | 1835 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1836 | /* end confdefs.h.  */ | 
 | 1837 | $4 | 
 | 1838 | int | 
 | 1839 | main () | 
 | 1840 | { | 
 | 1841 | if (sizeof ($2)) | 
 | 1842 | 	 return 0; | 
 | 1843 |   ; | 
 | 1844 |   return 0; | 
 | 1845 | } | 
 | 1846 | _ACEOF | 
 | 1847 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1848 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1849 | /* end confdefs.h.  */ | 
 | 1850 | $4 | 
 | 1851 | int | 
 | 1852 | main () | 
 | 1853 | { | 
 | 1854 | if (sizeof (($2))) | 
 | 1855 | 	    return 0; | 
 | 1856 |   ; | 
 | 1857 |   return 0; | 
 | 1858 | } | 
 | 1859 | _ACEOF | 
 | 1860 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1861 |  | 
 | 1862 | else | 
 | 1863 |   eval "$3=yes" | 
 | 1864 | fi | 
 | 1865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1866 | fi | 
 | 1867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1868 | fi | 
 | 1869 | eval ac_res=\$$3 | 
 | 1870 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1871 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1872 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1873 |  | 
 | 1874 | } # ac_fn_c_check_type | 
 | 1875 |  | 
 | 1876 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1877 | # ------------------------------------ | 
 | 1878 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1879 | # accordingly. | 
 | 1880 | ac_fn_c_find_uintX_t () | 
 | 1881 | { | 
 | 1882 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1883 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1884 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1885 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1886 |   $as_echo_n "(cached) " >&6 | 
 | 1887 | else | 
 | 1888 |   eval "$3=no" | 
 | 1889 |      # Order is important - never check a type that is potentially smaller | 
 | 1890 |      # than half of the expected target width. | 
 | 1891 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 1892 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 1893 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1894 | /* end confdefs.h.  */ | 
 | 1895 | $ac_includes_default | 
 | 1896 | int | 
 | 1897 | main () | 
 | 1898 | { | 
 | 1899 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
 | 1900 | test_array [0] = 0 | 
 | 1901 |  | 
 | 1902 |   ; | 
 | 1903 |   return 0; | 
 | 1904 | } | 
 | 1905 | _ACEOF | 
 | 1906 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1907 |   case $ac_type in #( | 
 | 1908 |   uint$2_t) : | 
 | 1909 |     eval "$3=yes" ;; #( | 
 | 1910 |   *) : | 
 | 1911 |     eval "$3=\$ac_type" ;; | 
 | 1912 | esac | 
 | 1913 | fi | 
 | 1914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1915 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1916 |  | 
 | 1917 | else | 
 | 1918 |   break | 
 | 1919 | fi | 
 | 1920 |      done | 
 | 1921 | fi | 
 | 1922 | eval ac_res=\$$3 | 
 | 1923 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1924 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1925 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1926 |  | 
 | 1927 | } # ac_fn_c_find_uintX_t | 
 | 1928 |  | 
 | 1929 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 1930 | # ----------------------------------- | 
 | 1931 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 1932 | # accordingly. | 
 | 1933 | ac_fn_c_find_intX_t () | 
 | 1934 | { | 
 | 1935 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1936 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 1937 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1938 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1939 |   $as_echo_n "(cached) " >&6 | 
 | 1940 | else | 
 | 1941 |   eval "$3=no" | 
 | 1942 |      # Order is important - never check a type that is potentially smaller | 
 | 1943 |      # than half of the expected target width. | 
 | 1944 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 1945 | 	 'long long int' 'short int' 'signed char'; do | 
 | 1946 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1947 | /* end confdefs.h.  */ | 
 | 1948 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1949 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1950 | int | 
 | 1951 | main () | 
 | 1952 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1953 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1954 | test_array [0] = 0 | 
 | 1955 |  | 
 | 1956 |   ; | 
 | 1957 |   return 0; | 
 | 1958 | } | 
 | 1959 | _ACEOF | 
 | 1960 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1961 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1962 | /* end confdefs.h.  */ | 
 | 1963 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1964 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1965 | int | 
 | 1966 | main () | 
 | 1967 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1968 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1969 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
 | 1970 | test_array [0] = 0 | 
 | 1971 |  | 
 | 1972 |   ; | 
 | 1973 |   return 0; | 
 | 1974 | } | 
 | 1975 | _ACEOF | 
 | 1976 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1977 |  | 
 | 1978 | else | 
 | 1979 |   case $ac_type in #( | 
 | 1980 |   int$2_t) : | 
 | 1981 |     eval "$3=yes" ;; #( | 
 | 1982 |   *) : | 
 | 1983 |     eval "$3=\$ac_type" ;; | 
 | 1984 | esac | 
 | 1985 | fi | 
 | 1986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1987 | fi | 
 | 1988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1989 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1990 |  | 
 | 1991 | else | 
 | 1992 |   break | 
 | 1993 | fi | 
 | 1994 |      done | 
 | 1995 | fi | 
 | 1996 | eval ac_res=\$$3 | 
 | 1997 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1998 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1999 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2000 |  | 
 | 2001 | } # ac_fn_c_find_intX_t | 
 | 2002 |  | 
 | 2003 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2004 | # -------------------------------------------- | 
 | 2005 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2006 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2007 | # computed | 
 | 2008 | ac_fn_c_compute_int () | 
 | 2009 | { | 
 | 2010 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2011 |   if test "$cross_compiling" = yes; then | 
 | 2012 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2014 | /* end confdefs.h.  */ | 
 | 2015 | $4 | 
 | 2016 | int | 
 | 2017 | main () | 
 | 2018 | { | 
 | 2019 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
 | 2020 | test_array [0] = 0 | 
 | 2021 |  | 
 | 2022 |   ; | 
 | 2023 |   return 0; | 
 | 2024 | } | 
 | 2025 | _ACEOF | 
 | 2026 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2027 |   ac_lo=0 ac_mid=0 | 
 | 2028 |   while :; do | 
 | 2029 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2030 | /* end confdefs.h.  */ | 
 | 2031 | $4 | 
 | 2032 | int | 
 | 2033 | main () | 
 | 2034 | { | 
 | 2035 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
 | 2036 | test_array [0] = 0 | 
 | 2037 |  | 
 | 2038 |   ; | 
 | 2039 |   return 0; | 
 | 2040 | } | 
 | 2041 | _ACEOF | 
 | 2042 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2043 |   ac_hi=$ac_mid; break | 
 | 2044 | else | 
 | 2045 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2046 | 			if test $ac_lo -le $ac_mid; then | 
 | 2047 | 			  ac_lo= ac_hi= | 
 | 2048 | 			  break | 
 | 2049 | 			fi | 
 | 2050 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2051 | fi | 
 | 2052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2053 |   done | 
 | 2054 | else | 
 | 2055 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2056 | /* end confdefs.h.  */ | 
 | 2057 | $4 | 
 | 2058 | int | 
 | 2059 | main () | 
 | 2060 | { | 
 | 2061 | static int test_array [1 - 2 * !(($2) < 0)]; | 
 | 2062 | test_array [0] = 0 | 
 | 2063 |  | 
 | 2064 |   ; | 
 | 2065 |   return 0; | 
 | 2066 | } | 
 | 2067 | _ACEOF | 
 | 2068 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2069 |   ac_hi=-1 ac_mid=-1 | 
 | 2070 |   while :; do | 
 | 2071 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2072 | /* end confdefs.h.  */ | 
 | 2073 | $4 | 
 | 2074 | int | 
 | 2075 | main () | 
 | 2076 | { | 
 | 2077 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
 | 2078 | test_array [0] = 0 | 
 | 2079 |  | 
 | 2080 |   ; | 
 | 2081 |   return 0; | 
 | 2082 | } | 
 | 2083 | _ACEOF | 
 | 2084 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2085 |   ac_lo=$ac_mid; break | 
 | 2086 | else | 
 | 2087 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2088 | 			if test $ac_mid -le $ac_hi; then | 
 | 2089 | 			  ac_lo= ac_hi= | 
 | 2090 | 			  break | 
 | 2091 | 			fi | 
 | 2092 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2093 | fi | 
 | 2094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2095 |   done | 
 | 2096 | else | 
 | 2097 |   ac_lo= ac_hi= | 
 | 2098 | fi | 
 | 2099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2100 | fi | 
 | 2101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2102 | # Binary search between lo and hi bounds. | 
 | 2103 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2104 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2105 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2106 | /* end confdefs.h.  */ | 
 | 2107 | $4 | 
 | 2108 | int | 
 | 2109 | main () | 
 | 2110 | { | 
 | 2111 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
 | 2112 | test_array [0] = 0 | 
 | 2113 |  | 
 | 2114 |   ; | 
 | 2115 |   return 0; | 
 | 2116 | } | 
 | 2117 | _ACEOF | 
 | 2118 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2119 |   ac_hi=$ac_mid | 
 | 2120 | else | 
 | 2121 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2122 | fi | 
 | 2123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2124 | done | 
 | 2125 | case $ac_lo in #(( | 
 | 2126 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2127 | '') ac_retval=1 ;; | 
 | 2128 | esac | 
 | 2129 |   else | 
 | 2130 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2131 | /* end confdefs.h.  */ | 
 | 2132 | $4 | 
 | 2133 | static long int longval () { return $2; } | 
 | 2134 | static unsigned long int ulongval () { return $2; } | 
 | 2135 | #include <stdio.h> | 
 | 2136 | #include <stdlib.h> | 
 | 2137 | int | 
 | 2138 | main () | 
 | 2139 | { | 
 | 2140 |  | 
 | 2141 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2142 |   if (! f) | 
 | 2143 |     return 1; | 
 | 2144 |   if (($2) < 0) | 
 | 2145 |     { | 
 | 2146 |       long int i = longval (); | 
 | 2147 |       if (i != ($2)) | 
 | 2148 | 	return 1; | 
 | 2149 |       fprintf (f, "%ld", i); | 
 | 2150 |     } | 
 | 2151 |   else | 
 | 2152 |     { | 
 | 2153 |       unsigned long int i = ulongval (); | 
 | 2154 |       if (i != ($2)) | 
 | 2155 | 	return 1; | 
 | 2156 |       fprintf (f, "%lu", i); | 
 | 2157 |     } | 
 | 2158 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2159 |      on some platforms.  */ | 
 | 2160 |   return ferror (f) || fclose (f) != 0; | 
 | 2161 |  | 
 | 2162 |   ; | 
 | 2163 |   return 0; | 
 | 2164 | } | 
 | 2165 | _ACEOF | 
 | 2166 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2167 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2168 | else | 
 | 2169 |   ac_retval=1 | 
 | 2170 | fi | 
 | 2171 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2172 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2173 | rm -f conftest.val | 
 | 2174 |  | 
 | 2175 |   fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2176 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2177 |   as_fn_set_status $ac_retval | 
 | 2178 |  | 
 | 2179 | } # ac_fn_c_compute_int | 
 | 2180 |  | 
 | 2181 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2182 | # ---------------------------------- | 
 | 2183 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2184 | ac_fn_c_check_func () | 
 | 2185 | { | 
 | 2186 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2187 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2188 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2189 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2190 |   $as_echo_n "(cached) " >&6 | 
 | 2191 | else | 
 | 2192 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2193 | /* end confdefs.h.  */ | 
 | 2194 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2195 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2196 | #define $2 innocuous_$2 | 
 | 2197 |  | 
 | 2198 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2199 |     which can conflict with char $2 (); below. | 
 | 2200 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2201 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2202 |  | 
 | 2203 | #ifdef __STDC__ | 
 | 2204 | # include <limits.h> | 
 | 2205 | #else | 
 | 2206 | # include <assert.h> | 
 | 2207 | #endif | 
 | 2208 |  | 
 | 2209 | #undef $2 | 
 | 2210 |  | 
 | 2211 | /* Override any GCC internal prototype to avoid an error. | 
 | 2212 |    Use char because int might match the return type of a GCC | 
 | 2213 |    builtin and then its argument prototype would still apply.  */ | 
 | 2214 | #ifdef __cplusplus | 
 | 2215 | extern "C" | 
 | 2216 | #endif | 
 | 2217 | char $2 (); | 
 | 2218 | /* The GNU C library defines this for functions which it implements | 
 | 2219 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2220 |     something starting with __ and the normal name is an alias.  */ | 
 | 2221 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2222 | choke me | 
 | 2223 | #endif | 
 | 2224 |  | 
 | 2225 | int | 
 | 2226 | main () | 
 | 2227 | { | 
 | 2228 | return $2 (); | 
 | 2229 |   ; | 
 | 2230 |   return 0; | 
 | 2231 | } | 
 | 2232 | _ACEOF | 
 | 2233 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2234 |   eval "$3=yes" | 
 | 2235 | else | 
 | 2236 |   eval "$3=no" | 
 | 2237 | fi | 
 | 2238 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2239 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2240 | fi | 
 | 2241 | eval ac_res=\$$3 | 
 | 2242 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2243 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2244 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2245 |  | 
 | 2246 | } # ac_fn_c_check_func | 
 | 2247 |  | 
 | 2248 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2249 | # ---------------------------------------------------- | 
 | 2250 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2251 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2252 | ac_fn_c_check_member () | 
 | 2253 | { | 
 | 2254 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2255 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2256 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2257 | if eval \${$4+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2258 |   $as_echo_n "(cached) " >&6 | 
 | 2259 | else | 
 | 2260 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2261 | /* end confdefs.h.  */ | 
 | 2262 | $5 | 
 | 2263 | int | 
 | 2264 | main () | 
 | 2265 | { | 
 | 2266 | static $2 ac_aggr; | 
 | 2267 | if (ac_aggr.$3) | 
 | 2268 | return 0; | 
 | 2269 |   ; | 
 | 2270 |   return 0; | 
 | 2271 | } | 
 | 2272 | _ACEOF | 
 | 2273 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2274 |   eval "$4=yes" | 
 | 2275 | else | 
 | 2276 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2277 | /* end confdefs.h.  */ | 
 | 2278 | $5 | 
 | 2279 | int | 
 | 2280 | main () | 
 | 2281 | { | 
 | 2282 | static $2 ac_aggr; | 
 | 2283 | if (sizeof ac_aggr.$3) | 
 | 2284 | return 0; | 
 | 2285 |   ; | 
 | 2286 |   return 0; | 
 | 2287 | } | 
 | 2288 | _ACEOF | 
 | 2289 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2290 |   eval "$4=yes" | 
 | 2291 | else | 
 | 2292 |   eval "$4=no" | 
 | 2293 | fi | 
 | 2294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2295 | fi | 
 | 2296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2297 | fi | 
 | 2298 | eval ac_res=\$$4 | 
 | 2299 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2300 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2301 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2302 |  | 
 | 2303 | } # ac_fn_c_check_member | 
 | 2304 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2305 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2306 | # --------------------------------------------- | 
 | 2307 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2308 | # accordingly. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2309 | ac_fn_c_check_decl () | 
 | 2310 | { | 
 | 2311 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2312 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2313 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2314 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2315 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2316 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2317 |   $as_echo_n "(cached) " >&6 | 
 | 2318 | else | 
 | 2319 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2320 | /* end confdefs.h.  */ | 
 | 2321 | $4 | 
 | 2322 | int | 
 | 2323 | main () | 
 | 2324 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2325 | #ifndef $as_decl_name | 
 | 2326 | #ifdef __cplusplus | 
 | 2327 |   (void) $as_decl_use; | 
 | 2328 | #else | 
 | 2329 |   (void) $as_decl_name; | 
 | 2330 | #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2331 | #endif | 
 | 2332 |  | 
 | 2333 |   ; | 
 | 2334 |   return 0; | 
 | 2335 | } | 
 | 2336 | _ACEOF | 
 | 2337 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2338 |   eval "$3=yes" | 
 | 2339 | else | 
 | 2340 |   eval "$3=no" | 
 | 2341 | fi | 
 | 2342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2343 | fi | 
 | 2344 | eval ac_res=\$$3 | 
 | 2345 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2346 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2347 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2348 |  | 
 | 2349 | } # ac_fn_c_check_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2350 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2351 | This file contains any messages produced by compilers while | 
 | 2352 | running configure, to aid debugging if configure makes a mistake. | 
 | 2353 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2354 | It was created by python $as_me 2.7, which was | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2355 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 |  | 
 | 2357 |   $ $0 $@ | 
 | 2358 |  | 
 | 2359 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2360 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2361 | { | 
 | 2362 | cat <<_ASUNAME | 
 | 2363 | ## --------- ## | 
 | 2364 | ## Platform. ## | 
 | 2365 | ## --------- ## | 
 | 2366 |  | 
 | 2367 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2368 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2369 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2370 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2371 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2372 |  | 
 | 2373 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2374 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2375 |  | 
 | 2376 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2377 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2378 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2379 | /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] | 2380 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2381 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2382 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2383 |  | 
 | 2384 | _ASUNAME | 
 | 2385 |  | 
 | 2386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2387 | for as_dir in $PATH | 
 | 2388 | do | 
 | 2389 |   IFS=$as_save_IFS | 
 | 2390 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2391 |     $as_echo "PATH: $as_dir" | 
 | 2392 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2393 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 |  | 
 | 2395 | } >&5 | 
 | 2396 |  | 
 | 2397 | cat >&5 <<_ACEOF | 
 | 2398 |  | 
 | 2399 |  | 
 | 2400 | ## ----------- ## | 
 | 2401 | ## Core tests. ## | 
 | 2402 | ## ----------- ## | 
 | 2403 |  | 
 | 2404 | _ACEOF | 
 | 2405 |  | 
 | 2406 |  | 
 | 2407 | # Keep a trace of the command line. | 
 | 2408 | # 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] | 2409 | # 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] | 2410 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2411 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2412 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | ac_configure_args0= | 
 | 2414 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2415 | ac_must_keep_next=false | 
 | 2416 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2417 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2418 |   for ac_arg | 
 | 2419 |   do | 
 | 2420 |     case $ac_arg in | 
 | 2421 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2422 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2423 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2424 |       continue ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2425 |     *\'*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2426 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2427 |     esac | 
 | 2428 |     case $ac_pass in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2429 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2430 |     2) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2431 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2432 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2433 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2434 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2435 | 	case $ac_arg in | 
 | 2436 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2437 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2438 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2439 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2440 | 	    case "$ac_configure_args0 " in | 
 | 2441 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2442 | 	    esac | 
 | 2443 | 	    ;; | 
 | 2444 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2445 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2446 |       fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2447 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2448 |       ;; | 
 | 2449 |     esac | 
 | 2450 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2452 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2453 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 |  | 
 | 2455 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2456 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2457 | # would cause problems or look ugly. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2458 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2459 | # 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] | 2460 | trap 'exit_status=$? | 
 | 2461 |   # Save into config.log some information that might help in debugging. | 
 | 2462 |   { | 
 | 2463 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2464 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2465 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | ## Cache variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2467 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 |     echo | 
 | 2469 |     # The following way of writing the cache mishandles newlines in values, | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2470 | ( | 
 | 2471 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2472 |     eval ac_val=\$$ac_var | 
 | 2473 |     case $ac_val in #( | 
 | 2474 |     *${as_nl}*) | 
 | 2475 |       case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2476 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2477 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2478 |       esac | 
 | 2479 |       case $ac_var in #( | 
 | 2480 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2481 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2482 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2483 |       esac ;; | 
 | 2484 |     esac | 
 | 2485 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 |   (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2487 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2488 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 |       sed -n \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2490 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2491 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2492 |       ;; #( | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2493 |     *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2494 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2495 |       ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2496 |     esac | | 
 | 2497 |     sort | 
 | 2498 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2499 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2500 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2501 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2502 | ## Output variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2503 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 |     echo | 
 | 2505 |     for ac_var in $ac_subst_vars | 
 | 2506 |     do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2507 |       eval ac_val=\$$ac_var | 
 | 2508 |       case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2509 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2510 |       esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2511 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2512 |     done | sort | 
 | 2513 |     echo | 
 | 2514 |  | 
 | 2515 |     if test -n "$ac_subst_files"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2516 |       $as_echo "## ------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2517 | ## File substitutions. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2518 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2519 |       echo | 
 | 2520 |       for ac_var in $ac_subst_files | 
 | 2521 |       do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2522 | 	eval ac_val=\$$ac_var | 
 | 2523 | 	case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2524 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2525 | 	esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2526 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2527 |       done | sort | 
 | 2528 |       echo | 
 | 2529 |     fi | 
 | 2530 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 |     if test -s confdefs.h; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2532 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 | ## confdefs.h. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2534 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 |       echo | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2536 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 |       echo | 
 | 2538 |     fi | 
 | 2539 |     test "$ac_signal" != 0 && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2540 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2541 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 |   } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2543 |   rm -f core *.core core.conftest.* && | 
 | 2544 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 |     exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2546 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2548 |   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] | 2549 | done | 
 | 2550 | ac_signal=0 | 
 | 2551 |  | 
 | 2552 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2553 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2555 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2556 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | # Predefined preprocessor variables. | 
 | 2558 |  | 
 | 2559 | cat >>confdefs.h <<_ACEOF | 
 | 2560 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2561 | _ACEOF | 
 | 2562 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 | cat >>confdefs.h <<_ACEOF | 
 | 2564 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2565 | _ACEOF | 
 | 2566 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | cat >>confdefs.h <<_ACEOF | 
 | 2568 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2569 | _ACEOF | 
 | 2570 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | cat >>confdefs.h <<_ACEOF | 
 | 2572 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2573 | _ACEOF | 
 | 2574 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2575 | cat >>confdefs.h <<_ACEOF | 
 | 2576 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2577 | _ACEOF | 
 | 2578 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2579 | cat >>confdefs.h <<_ACEOF | 
 | 2580 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2581 | _ACEOF | 
 | 2582 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2583 |  | 
 | 2584 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2585 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2586 | ac_site_file1=NONE | 
 | 2587 | ac_site_file2=NONE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2588 | if test -n "$CONFIG_SITE"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2589 |   # We do not want a PATH search for config.site. | 
 | 2590 |   case $CONFIG_SITE in #(( | 
 | 2591 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2592 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2593 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2594 |   esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2595 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2596 |   ac_site_file1=$prefix/share/config.site | 
 | 2597 |   ac_site_file2=$prefix/etc/config.site | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2598 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2599 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2600 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2601 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2602 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2603 | do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2604 |   test "x$ac_site_file" = xNONE && continue | 
 | 2605 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2606 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2607 | $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] | 2608 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2609 |     . "$ac_site_file" \ | 
 | 2610 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2611 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2612 | as_fn_error $? "failed to load site script $ac_site_file | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2613 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2614 |   fi | 
 | 2615 | done | 
 | 2616 |  | 
 | 2617 | if test -r "$cache_file"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2618 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2619 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2620 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2621 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2622 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2623 |     case $cache_file in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2624 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2625 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 |     esac | 
 | 2627 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2628 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2629 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2630 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2631 |   >$cache_file | 
 | 2632 | fi | 
 | 2633 |  | 
 | 2634 | # Check that the precious variables saved in the cache have kept the same | 
 | 2635 | # value. | 
 | 2636 | ac_cache_corrupted=false | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2637 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2638 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2639 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2640 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2641 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2642 |   case $ac_old_set,$ac_new_set in | 
 | 2643 |     set,) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2644 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2645 | $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] | 2646 |       ac_cache_corrupted=: ;; | 
 | 2647 |     ,set) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2648 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2649 | $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] | 2650 |       ac_cache_corrupted=: ;; | 
 | 2651 |     ,);; | 
 | 2652 |     *) | 
 | 2653 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2654 | 	# differences in whitespace do not lead to failure. | 
 | 2655 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2656 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2657 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2658 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2659 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2660 | 	  ac_cache_corrupted=: | 
 | 2661 | 	else | 
 | 2662 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2663 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2664 | 	  eval $ac_var=\$ac_old_val | 
 | 2665 | 	fi | 
 | 2666 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2667 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2668 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2669 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2670 |       fi;; | 
 | 2671 |   esac | 
 | 2672 |   # Pass precious variables to config.status. | 
 | 2673 |   if test "$ac_new_set" = set; then | 
 | 2674 |     case $ac_new_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2675 |     *\'*) 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] | 2676 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2677 |     esac | 
 | 2678 |     case " $ac_configure_args " in | 
 | 2679 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2680 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 |     esac | 
 | 2682 |   fi | 
 | 2683 | done | 
 | 2684 | if $ac_cache_corrupted; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2685 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2686 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2687 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2688 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2689 |   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] | 2690 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2691 | ## -------------------- ## | 
 | 2692 | ## Main body of script. ## | 
 | 2693 | ## -------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2694 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2695 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2696 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2700 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2701 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2702 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2703 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2704 |  | 
 | 2705 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2706 |  | 
| Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2707 | if test "$prefix" != "/"; then | 
 | 2708 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 2709 | fi | 
 | 2710 |  | 
 | 2711 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2712 |  | 
 | 2713 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2714 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 2715 | # with other autoconf-based packages that include Python.h | 
 | 2716 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 2717 | rm confdefs.h | 
 | 2718 | mv confdefs.h.new confdefs.h | 
 | 2719 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2720 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2721 | VERSION=2.7 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2722 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2723 |  | 
 | 2724 | SOVERSION=1.0 | 
 | 2725 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2726 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 2727 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 2728 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2729 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2730 |  | 
 | 2731 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2732 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2733 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 2734 | # them. | 
 | 2735 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2736 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2737 |  | 
 | 2738 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2739 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2740 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 2741 | # them. | 
 | 2742 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2743 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2744 |  | 
 | 2745 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2746 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2747 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 2748 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2749 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2750 |  | 
 | 2751 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2752 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2753 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 2754 | # them. | 
 | 2755 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2756 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2757 |  | 
 | 2758 |  | 
 | 2759 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2760 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2761 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2762 | # Arguments passed to configure. | 
 | 2763 |  | 
 | 2764 | CONFIG_ARGS="$ac_configure_args" | 
 | 2765 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 2767 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2768 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2769 | if test "${enable_universalsdk+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2770 |   enableval=$enable_universalsdk; | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2771 | 	case $enableval in | 
 | 2772 | 	yes) | 
 | 2773 | 		enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2774 | 		if test ! -d "${enableval}" | 
 | 2775 | 		then | 
 | 2776 | 			enableval=/ | 
 | 2777 | 		fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2778 | 		;; | 
 | 2779 | 	esac | 
 | 2780 | 	case $enableval in | 
 | 2781 | 	no) | 
 | 2782 | 		UNIVERSALSDK= | 
 | 2783 | 		enable_universalsdk= | 
 | 2784 | 		;; | 
 | 2785 | 	*) | 
 | 2786 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2787 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 2788 | 		then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2789 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2790 | 		fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2791 | 		;; | 
 | 2792 | 	esac | 
 | 2793 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2794 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2795 | else | 
 | 2796 |  | 
 | 2797 |    	UNIVERSALSDK= | 
 | 2798 | 	enable_universalsdk= | 
 | 2799 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2800 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2801 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2802 | if test -n "${UNIVERSALSDK}" | 
 | 2803 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2804 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 2805 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2806 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2807 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2808 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2809 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2810 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2811 |  | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2812 |  | 
 | 2813 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2814 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2815 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 2817 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2818 |  | 
 | 2819 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2820 | if test "${with_universal_archs+set}" = set; then : | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2821 |   withval=$with_universal_archs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2822 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 2823 | $as_echo "$withval" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2824 | 	UNIVERSAL_ARCHS="$withval" | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2825 |         if test "${enable_universalsdk}" ; then | 
 | 2826 | 		: | 
 | 2827 | 	else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2828 | 		as_fn_error $? "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2829 | 	fi | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2830 |  | 
 | 2831 | else | 
 | 2832 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2833 |  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
 | 2834 | $as_echo "32-bit" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2835 |  | 
 | 2836 | fi | 
 | 2837 |  | 
 | 2838 |  | 
 | 2839 |  | 
 | 2840 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2841 |  | 
 | 2842 | # Check whether --with-framework-name was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2843 | if test "${with_framework_name+set}" = set; then : | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2844 |   withval=$with_framework_name; | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2845 |     if test "${enable_framework}"; then | 
 | 2846 | 	    : | 
 | 2847 |     else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2848 | 	as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2849 |     fi | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2850 |     PYTHONFRAMEWORK=${withval} | 
 | 2851 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 2852 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 2853 |  | 
 | 2854 | else | 
 | 2855 |  | 
 | 2856 |     PYTHONFRAMEWORK=Python | 
 | 2857 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 2858 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 2859 |  | 
 | 2860 | fi | 
 | 2861 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2862 | # Check whether --enable-framework was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2863 | if test "${enable_framework+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2864 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2865 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2866 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2867 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2868 | 	esac | 
 | 2869 | 	case $enableval in | 
 | 2870 | 	no) | 
 | 2871 | 		PYTHONFRAMEWORK= | 
 | 2872 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 2873 | 		PYTHONFRAMEWORKPREFIX= | 
 | 2874 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2875 | 		FRAMEWORKINSTALLFIRST= | 
 | 2876 | 		FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2877 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 2878 | 		FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2879 | 		if test "x${prefix}" = "xNONE"; then | 
 | 2880 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 2881 | 		else | 
 | 2882 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2883 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2884 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2885 | 		;; | 
 | 2886 | 	*) | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2887 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2888 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2889 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2890 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2891 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 2892 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2893 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2894 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2895 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 2896 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2897 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2898 | 		else | 
 | 2899 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2900 | 		fi | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2901 |  | 
 | 2902 | 		case "${enableval}" in | 
 | 2903 | 		/System*) | 
 | 2904 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2905 | 			if test "${prefix}" = "NONE" ; then | 
 | 2906 | 				# See below | 
 | 2907 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 2908 | 			fi | 
 | 2909 | 			;; | 
 | 2910 |  | 
 | 2911 | 		/Library*) | 
 | 2912 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2913 | 			;; | 
 | 2914 |  | 
 | 2915 | 		*/Library/Frameworks) | 
 | 2916 | 			MDIR="`dirname "${enableval}"`" | 
 | 2917 | 			MDIR="`dirname "${MDIR}"`" | 
 | 2918 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 2919 |  | 
 | 2920 | 			if test "${prefix}" = "NONE"; then | 
 | 2921 | 				# User hasn't specified the | 
 | 2922 | 				# --prefix option, but wants to install | 
 | 2923 | 				# the framework in a non-default location, | 
 | 2924 | 				# ensure that the compatibility links get | 
 | 2925 | 				# installed relative to that prefix as well | 
 | 2926 | 				# instead of in /usr/local. | 
 | 2927 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 2928 | 			fi | 
 | 2929 | 			;; | 
 | 2930 |  | 
 | 2931 | 		*) | 
 | 2932 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2933 | 			;; | 
 | 2934 | 		esac | 
 | 2935 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2936 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2937 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2938 | 		# Add files for Mac specific code to the list of output | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2939 | 		# files: | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2940 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2941 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2942 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2943 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2944 | 		ac_config_files="$ac_config_files Mac/IDLE/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2945 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2946 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 2947 |  | 
 | 2948 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 2949 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2950 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2952 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2953 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2954 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2955 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2956 | 	PYTHONFRAMEWORKPREFIX= | 
 | 2957 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2958 | 	FRAMEWORKINSTALLFIRST= | 
 | 2959 | 	FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2960 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 2961 | 	FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2962 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 2963 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 2964 | 	else | 
 | 2965 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2966 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2967 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2968 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2969 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2970 | fi | 
 | 2971 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2972 |  | 
 | 2973 |  | 
 | 2974 |  | 
 | 2975 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2976 |  | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2977 |  | 
 | 2978 |  | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2979 |  | 
 | 2980 |  | 
 | 2981 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2982 |  | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2983 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2984 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 2985 | ##            AS_HELP_STRING([--with-dyld], | 
 | 2986 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2987 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2988 | # Set name for machine-dependent library files | 
 | 2989 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 2991 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2992 | if test -z "$MACHDEP" | 
 | 2993 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2994 | 	ac_sys_system=`uname -s` | 
| Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2995 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2996 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2997 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2998 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2999 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3000 | 	fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3001 | 	ac_md_system=`echo $ac_sys_system | | 
 | 3002 | 			   tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3003 | 	ac_md_release=`echo $ac_sys_release | | 
| Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 3004 | 			   tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3005 | 	MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3006 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3007 | 	case $MACHDEP in | 
| Victor Stinner | acacbaa | 2011-08-20 14:02:38 +0200 | [diff] [blame] | 3008 | 	linux*) MACHDEP="linux2";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3009 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3010 | 	darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3011 | 	atheos*) MACHDEP="atheos";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3012 |         irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3013 | 	'')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3014 | 	esac | 
 | 3015 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3016 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3017 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3018 | # disable features if it is defined, without any means to access these | 
 | 3019 | # features as extensions. For these systems, we skip the definition of | 
 | 3020 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3021 | # some feature, make sure there is no alternative way to access this | 
 | 3022 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3023 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3024 | # wildcard, and that the wildcard does not include future systems | 
 | 3025 | # (which may remove their limitations). | 
 | 3026 | case $ac_sys_system/$ac_sys_release in | 
 | 3027 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3028 |   # 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] | 3029 |   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3030 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3031 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3032 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3033 |     define_xopen_source=no | 
 | 3034 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3035 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3036 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3037 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3038 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3039 |  | 
 | 3040 |     ;; | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3041 |   OpenBSD/*) | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3042 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3043 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3044 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3045 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3046 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3047 |  | 
 | 3048 |     ;; | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3049 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3050 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3051 |   # Marc Recht | 
| Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3052 |   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3053 |     define_xopen_source=no;; | 
| Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame] | 3054 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3055 |   # request to enable features supported by the standard as a request | 
 | 3056 |   # to disable features not supported by the standard.  The best way | 
 | 3057 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3058 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3059 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3060 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3061 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3062 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3063 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3064 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3065 |     define_xopen_source=no;; | 
 | 3066 |   # 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] | 3067 |   # 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] | 3068 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3069 |     define_xopen_source=no;; | 
| Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3070 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3071 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3072 |   FreeBSD/4.*) | 
 | 3073 |     define_xopen_source=no;; | 
 | 3074 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3075 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3076 |   # identifies itself as Darwin/7.* | 
 | 3077 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3078 |   # disables platform specific features beyond repair. | 
 | 3079 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3080 |   # has no effect, don't bother defining them | 
 | 3081 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3082 |     define_xopen_source=no;; | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3083 |   Darwin/1[0-9].*) | 
 | 3084 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3085 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3086 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3087 |   # 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] | 3088 |   AIX/4) | 
 | 3089 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3090 |   AIX/5) | 
 | 3091 |     if test `uname -r` -eq 1; then | 
 | 3092 |       define_xopen_source=no | 
 | 3093 |     fi | 
 | 3094 |     ;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3095 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3096 |   # defining NI_NUMERICHOST. | 
 | 3097 |   QNX/6.3.2) | 
 | 3098 |     define_xopen_source=no | 
 | 3099 |     ;; | 
| Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3100 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3101 | esac | 
 | 3102 |  | 
 | 3103 | if test $define_xopen_source = yes | 
 | 3104 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3105 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3106 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3107 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3108 |  | 
 | 3109 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3110 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3111 |   # several APIs are not declared. Since this is also needed in some | 
 | 3112 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3113 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3114 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3115 |  | 
 | 3116 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3117 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3118 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3119 |  | 
 | 3120 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3121 | fi | 
 | 3122 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3123 | # | 
 | 3124 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3125 | # ISA on the command line.  Depending on the values of these switches, | 
 | 3126 | # different and often incompatable code will be generated. | 
 | 3127 | # | 
 | 3128 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3129 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3130 | # variable is also adjusted. | 
 | 3131 | # | 
 | 3132 |  | 
 | 3133 | if test ! -z "$SGI_ABI" | 
 | 3134 | then | 
 | 3135 |         CC="cc $SGI_ABI" | 
 | 3136 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3137 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3138 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3140 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3141 |  | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3142 | # And add extra plat-mac for darwin | 
 | 3143 |  | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3144 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 | 
 | 3146 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3147 | if test -z "$EXTRAPLATDIR" | 
 | 3148 | then | 
 | 3149 | 	case $MACHDEP in | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3150 | 	darwin) | 
 | 3151 | 		EXTRAPLATDIR="\$(PLATMACDIRS)" | 
 | 3152 | 		EXTRAMACHDEPPATH="\$(PLATMACPATH)" | 
 | 3153 | 		;; | 
 | 3154 | 	*) | 
 | 3155 | 		EXTRAPLATDIR="" | 
 | 3156 | 		EXTRAMACHDEPPATH="" | 
 | 3157 | 		;; | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3158 | 	esac | 
 | 3159 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 | 
 | 3161 | $as_echo "$EXTRAPLATDIR" >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3162 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3163 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3164 | # it may influence the way we can build extensions, so distutils | 
 | 3165 | # needs to check it | 
 | 3166 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3167 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3168 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3169 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3170 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 | 
 | 3172 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } | 
| Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 3173 | ac_sys_machine=`uname -m` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 | 
 | 3175 | $as_echo "$ac_sys_machine" >&6; } | 
| Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 3176 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3177 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3178 |  | 
 | 3179 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3180 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3181 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3182 | # when running configure or make.  The build should not break if they do. | 
 | 3183 | # BASECFLAGS should generally not be messed with, however. | 
 | 3184 |  | 
 | 3185 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3186 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3188 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3189 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3190 | # Check whether --with-gcc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3191 | if test "${with_gcc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3192 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3193 | 	case $withval in | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3194 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3195 | 		without_gcc=yes;; | 
 | 3196 | 	yes)	CC=gcc | 
 | 3197 | 		without_gcc=no;; | 
 | 3198 | 	*)	CC=$withval | 
 | 3199 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3200 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3201 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3202 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3203 | 	case $ac_sys_system in | 
| Antoine Pitrou | 285cd16 | 2010-09-21 15:23:17 +0000 | [diff] [blame] | 3204 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3205 | 		without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3206 | 	BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3207 | 		case $BE_HOST_CPU in | 
 | 3208 | 		ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3209 | 			CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3210 | 			without_gcc=yes | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3211 | 			BASECFLAGS="$BASECFLAGS -export pragma" | 
 | 3212 | 			OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3213 | 			LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3214 | 			;; | 
 | 3215 | 		x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3216 | 			CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3217 | 			without_gcc=no | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3218 | 			OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3219 | 			;; | 
 | 3220 | 		*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3221 | 			as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3222 | 			;; | 
 | 3223 | 		esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3224 | 		AR="\$(srcdir)/Modules/ar_beos" | 
 | 3225 | 		RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3226 | 		;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3227 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3228 | 	esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3229 | fi | 
 | 3230 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3232 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3233 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3234 | # If the user switches compilers, we can't believe the cache | 
 | 3235 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3236 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3237 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3238 | (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] | 3239 | fi | 
 | 3240 |  | 
| Trent Nelson | 15daa35 | 2012-12-13 06:46:39 +0000 | [diff] [blame^] | 3241 | if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then | 
 | 3242 |     # Normally, MIPSpro CC treats #error directives as warnings, which means | 
 | 3243 |     # a successful exit code is returned (0).  This is a problem because IRIX | 
 | 3244 |     # has a bunch of system headers with this guard at the top: | 
 | 3245 |     # | 
 | 3246 |     #  #ifndef __c99 | 
 | 3247 |     #  #error This header file is to be used only for c99 mode compilations | 
 | 3248 |     #  #else | 
 | 3249 |     # | 
 | 3250 |     # When autoconf tests for such a header, like stdint.h, this happens: | 
 | 3251 |     # | 
 | 3252 |     #  configure:4619: cc -c   conftest.c >&5 | 
 | 3253 |     #  cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 | 
 | 3254 |     #    #error directive:  This header file is to be used only for c99 mode | 
 | 3255 |     #            compilations | 
 | 3256 |     # | 
 | 3257 |     #    #error This header file is to be used only for c99 mode compilations | 
 | 3258 |     #     ^ | 
 | 3259 |     # | 
 | 3260 |     #  configure:4619: $? = 0 | 
 | 3261 |     #  configure:4619: result: yes | 
 | 3262 |     # | 
 | 3263 |     # Therefore, we use `-diag_error 1035` to have the compiler treat the | 
 | 3264 |     # warning as an error, which causes cc to return a non-zero result, | 
 | 3265 |     # which autoconf can interpret correctly. | 
 | 3266 |     CFLAGS="$CFLAGS -diag_error 1035" | 
 | 3267 |     # Whilst we're here, we might as well make sure CXX defaults to something | 
 | 3268 |     # sensible if we're not using gcc. | 
 | 3269 |     if test -z "$CXX"; then | 
 | 3270 |         CXX="CC" | 
 | 3271 |     fi | 
 | 3272 | fi | 
 | 3273 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3274 | # If the user set CFLAGS, use this instead of the automatically | 
 | 3275 | # determined setting | 
 | 3276 | preset_cflags="$CFLAGS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3277 | ac_ext=c | 
 | 3278 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3282 | if test -n "$ac_tool_prefix"; then | 
 | 3283 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3284 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3286 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3287 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3288 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3289 | else | 
 | 3290 |   if test -n "$CC"; then | 
 | 3291 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3292 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3294 | for as_dir in $PATH | 
 | 3295 | do | 
 | 3296 |   IFS=$as_save_IFS | 
 | 3297 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3298 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3299 |   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] | 3300 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3301 |     $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] | 3302 |     break 2 | 
 | 3303 |   fi | 
 | 3304 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3305 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3306 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3307 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3308 | fi | 
 | 3309 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3310 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3311 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3312 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3313 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3314 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3315 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3316 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3317 | fi | 
 | 3318 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3319 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 | fi | 
 | 3321 | if test -z "$ac_cv_prog_CC"; then | 
 | 3322 |   ac_ct_CC=$CC | 
 | 3323 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3324 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3326 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3327 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3328 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3329 | else | 
 | 3330 |   if test -n "$ac_ct_CC"; then | 
 | 3331 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3332 | else | 
 | 3333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3334 | for as_dir in $PATH | 
 | 3335 | do | 
 | 3336 |   IFS=$as_save_IFS | 
 | 3337 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3338 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3339 |   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] | 3340 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3341 |     $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] | 3342 |     break 2 | 
 | 3343 |   fi | 
 | 3344 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3345 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3346 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 |  | 
 | 3348 | fi | 
 | 3349 | fi | 
 | 3350 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3351 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3352 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3353 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3355 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3356 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3357 | fi | 
 | 3358 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3359 |   if test "x$ac_ct_CC" = x; then | 
 | 3360 |     CC="" | 
 | 3361 |   else | 
 | 3362 |     case $cross_compiling:$ac_tool_warned in | 
 | 3363 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3365 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3366 | ac_tool_warned=yes ;; | 
 | 3367 | esac | 
 | 3368 |     CC=$ac_ct_CC | 
 | 3369 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | else | 
 | 3371 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3372 | fi | 
 | 3373 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3374 | if test -z "$CC"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3375 |           if test -n "$ac_tool_prefix"; then | 
 | 3376 |     # 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] | 3377 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3379 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3380 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3381 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3382 | else | 
 | 3383 |   if test -n "$CC"; then | 
 | 3384 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3385 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3387 | for as_dir in $PATH | 
 | 3388 | do | 
 | 3389 |   IFS=$as_save_IFS | 
 | 3390 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3391 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3392 |   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] | 3393 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3394 |     $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] | 3395 |     break 2 | 
 | 3396 |   fi | 
 | 3397 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3398 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3399 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3400 |  | 
 | 3401 | fi | 
 | 3402 | fi | 
 | 3403 | CC=$ac_cv_prog_CC | 
 | 3404 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3405 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3406 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3407 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3408 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3409 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3410 | fi | 
 | 3411 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3412 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3413 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3414 | fi | 
 | 3415 | if test -z "$CC"; then | 
 | 3416 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3417 | set dummy cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3419 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3420 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3421 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3422 | else | 
 | 3423 |   if test -n "$CC"; then | 
 | 3424 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3425 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3426 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3428 | for as_dir in $PATH | 
 | 3429 | do | 
 | 3430 |   IFS=$as_save_IFS | 
 | 3431 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3432 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3433 |   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] | 3434 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3435 |        ac_prog_rejected=yes | 
 | 3436 |        continue | 
 | 3437 |      fi | 
 | 3438 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3439 |     $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] | 3440 |     break 2 | 
 | 3441 |   fi | 
 | 3442 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3443 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3444 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3445 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3446 | if test $ac_prog_rejected = yes; then | 
 | 3447 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3448 |   set dummy $ac_cv_prog_CC | 
 | 3449 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3450 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3451 |     # We chose a different compiler from the bogus one. | 
 | 3452 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3453 |     # first if we set CC to just the basename; use the full file name. | 
 | 3454 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3455 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3456 |   fi | 
 | 3457 | fi | 
 | 3458 | fi | 
 | 3459 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3460 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3461 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3462 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3463 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3464 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3465 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3466 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3467 | fi | 
 | 3468 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3469 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3470 | fi | 
 | 3471 | if test -z "$CC"; then | 
 | 3472 |   if test -n "$ac_tool_prefix"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3473 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 |   do | 
 | 3475 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3476 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3478 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3479 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3480 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3481 | else | 
 | 3482 |   if test -n "$CC"; then | 
 | 3483 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3484 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3486 | for as_dir in $PATH | 
 | 3487 | do | 
 | 3488 |   IFS=$as_save_IFS | 
 | 3489 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3490 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3491 |   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] | 3492 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3493 |     $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] | 3494 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3495 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3497 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3498 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3499 |  | 
 | 3500 | fi | 
 | 3501 | fi | 
 | 3502 | CC=$ac_cv_prog_CC | 
 | 3503 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3504 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3505 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3506 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3507 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3508 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3509 | fi | 
 | 3510 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3511 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 |     test -n "$CC" && break | 
 | 3513 |   done | 
 | 3514 | fi | 
 | 3515 | if test -z "$CC"; then | 
 | 3516 |   ac_ct_CC=$CC | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3517 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3518 | do | 
 | 3519 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3520 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3522 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3523 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3524 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | else | 
 | 3526 |   if test -n "$ac_ct_CC"; then | 
 | 3527 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3528 | else | 
 | 3529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3530 | for as_dir in $PATH | 
 | 3531 | do | 
 | 3532 |   IFS=$as_save_IFS | 
 | 3533 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3534 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3535 |   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] | 3536 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3537 |     $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] | 3538 |     break 2 | 
 | 3539 |   fi | 
 | 3540 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3541 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3542 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3543 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3544 | fi | 
 | 3545 | fi | 
 | 3546 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3547 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3548 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3549 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3550 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3551 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3552 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3553 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3554 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3555 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3556 |   test -n "$ac_ct_CC" && break | 
 | 3557 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3558 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3559 |   if test "x$ac_ct_CC" = x; then | 
 | 3560 |     CC="" | 
 | 3561 |   else | 
 | 3562 |     case $cross_compiling:$ac_tool_warned in | 
 | 3563 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3565 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3566 | ac_tool_warned=yes ;; | 
 | 3567 | esac | 
 | 3568 |     CC=$ac_ct_CC | 
 | 3569 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3570 | fi | 
 | 3571 |  | 
 | 3572 | fi | 
 | 3573 |  | 
 | 3574 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3575 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3577 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3578 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 |  | 
 | 3580 | # Provide some information about the compiler. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3581 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 3582 | set X $ac_compile | 
 | 3583 | ac_compiler=$2 | 
 | 3584 | for ac_option in --version -v -V -qversion; do | 
 | 3585 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3586 | case "(($ac_try" in | 
 | 3587 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3588 |   *) ac_try_echo=$ac_try;; | 
 | 3589 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3591 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3592 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3593 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3594 |   if test -s conftest.err; then | 
 | 3595 |     sed '10a\ | 
 | 3596 | ... rest of stderr output deleted ... | 
 | 3597 |          10q' conftest.err >conftest.er1 | 
 | 3598 |     cat conftest.er1 >&5 | 
 | 3599 |   fi | 
 | 3600 |   rm -f conftest.er1 conftest.err | 
 | 3601 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3602 |   test $ac_status = 0; } | 
 | 3603 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3604 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3606 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3607 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 | int | 
 | 3609 | main () | 
 | 3610 | { | 
 | 3611 |  | 
 | 3612 |   ; | 
 | 3613 |   return 0; | 
 | 3614 | } | 
 | 3615 | _ACEOF | 
 | 3616 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3617 | 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] | 3618 | # Try to create an executable without -o first, disregard a.out. | 
 | 3619 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 3620 | # of exeext. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 3622 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 3623 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 3624 |  | 
 | 3625 | # The possible output files: | 
 | 3626 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 3627 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3628 | ac_rmfiles= | 
 | 3629 | for ac_file in $ac_files | 
 | 3630 | do | 
 | 3631 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3632 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3633 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 3634 |   esac | 
 | 3635 | done | 
 | 3636 | rm -f $ac_rmfiles | 
 | 3637 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3638 | if { { ac_try="$ac_link_default" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3639 | case "(($ac_try" in | 
 | 3640 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3641 |   *) ac_try_echo=$ac_try;; | 
 | 3642 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3644 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3645 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3647 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3648 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3649 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 3650 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 3651 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 3652 | # so that the user can short-circuit this test for compilers unknown to | 
 | 3653 | # Autoconf. | 
 | 3654 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3655 | do | 
 | 3656 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3657 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3658 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3659 | 	;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3660 |     [ab].out ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3661 | 	# We found the default executable, but exeext='' is most | 
 | 3662 | 	# certainly right. | 
 | 3663 | 	break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3664 |     *.* ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3665 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3666 | 	then :; else | 
 | 3667 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3668 | 	fi | 
 | 3669 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 3670 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 3671 | 	# argument, so we may need to know it at that point already. | 
 | 3672 | 	# Even if this section looks crufty: it has the advantage of | 
 | 3673 | 	# actually working. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3674 | 	break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3675 |     * ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3676 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 |   esac | 
 | 3678 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3679 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 3680 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3681 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3682 |   ac_file='' | 
 | 3683 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3684 | if test -z "$ac_file"; then : | 
 | 3685 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3686 | $as_echo "no" >&6; } | 
 | 3687 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3688 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3689 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3690 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3692 | as_fn_error 77 "C compiler cannot create executables | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3693 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3694 | else | 
 | 3695 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 3696 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3697 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 3699 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 3701 | $as_echo "$ac_file" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | ac_exeext=$ac_cv_exeext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3703 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3704 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 3707 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 3708 | if { { ac_try="$ac_link" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3709 | case "(($ac_try" in | 
 | 3710 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3711 |   *) ac_try_echo=$ac_try;; | 
 | 3712 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3714 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3715 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3716 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3717 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3718 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 3720 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 3721 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 3722 | # `rm'. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3723 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 3724 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3725 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3726 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3728 | 	  break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 |     * ) break;; | 
 | 3730 |   esac | 
 | 3731 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3732 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3733 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3734 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3735 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3736 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3737 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3738 | rm -f conftest conftest$ac_cv_exeext | 
 | 3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 3740 | $as_echo "$ac_cv_exeext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3741 |  | 
 | 3742 | rm -f conftest.$ac_ext | 
 | 3743 | EXEEXT=$ac_cv_exeext | 
 | 3744 | ac_exeext=$EXEEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 3746 | /* end confdefs.h.  */ | 
 | 3747 | #include <stdio.h> | 
 | 3748 | int | 
 | 3749 | main () | 
 | 3750 | { | 
 | 3751 | FILE *f = fopen ("conftest.out", "w"); | 
 | 3752 |  return ferror (f) || fclose (f) != 0; | 
 | 3753 |  | 
 | 3754 |   ; | 
 | 3755 |   return 0; | 
 | 3756 | } | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3757 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3758 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 3759 | # Check that the compiler produces executables we can run.  If not, either | 
 | 3760 | # the compiler is broken, or we cross compile. | 
 | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 3762 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 3763 | if test "$cross_compiling" != yes; then | 
 | 3764 |   { { ac_try="$ac_link" | 
 | 3765 | case "(($ac_try" in | 
 | 3766 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3767 |   *) ac_try_echo=$ac_try;; | 
 | 3768 | esac | 
 | 3769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3770 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3771 |   (eval "$ac_link") 2>&5 | 
 | 3772 |   ac_status=$? | 
 | 3773 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3774 |   test $ac_status = 0; } | 
 | 3775 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 3776 |   { { case "(($ac_try" in | 
 | 3777 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3778 |   *) ac_try_echo=$ac_try;; | 
 | 3779 | esac | 
 | 3780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3781 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3782 |   (eval "$ac_try") 2>&5 | 
 | 3783 |   ac_status=$? | 
 | 3784 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3785 |   test $ac_status = 0; }; }; then | 
 | 3786 |     cross_compiling=no | 
 | 3787 |   else | 
 | 3788 |     if test "$cross_compiling" = maybe; then | 
 | 3789 | 	cross_compiling=yes | 
 | 3790 |     else | 
 | 3791 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3792 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3793 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3794 | If you meant to cross compile, use \`--host'. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3795 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3796 |     fi | 
 | 3797 |   fi | 
 | 3798 | fi | 
 | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 3800 | $as_echo "$cross_compiling" >&6; } | 
 | 3801 |  | 
 | 3802 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 3803 | ac_clean_files=$ac_clean_files_save | 
 | 3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 3805 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3806 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3807 |   $as_echo_n "(cached) " >&6 | 
 | 3808 | else | 
 | 3809 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3810 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3812 | int | 
 | 3813 | main () | 
 | 3814 | { | 
 | 3815 |  | 
 | 3816 |   ; | 
 | 3817 |   return 0; | 
 | 3818 | } | 
 | 3819 | _ACEOF | 
 | 3820 | rm -f conftest.o conftest.obj | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3821 | if { { ac_try="$ac_compile" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3822 | case "(($ac_try" in | 
 | 3823 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3824 |   *) ac_try_echo=$ac_try;; | 
 | 3825 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3826 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3827 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3828 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3830 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3831 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3832 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 3833 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3834 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3835 |     *.$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] | 3836 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 3837 |        break;; | 
 | 3838 |   esac | 
 | 3839 | done | 
 | 3840 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3841 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3842 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3843 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3844 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3845 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3846 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3847 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3848 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 3850 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 3852 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 | OBJEXT=$ac_cv_objext | 
 | 3854 | ac_objext=$OBJEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 3856 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3857 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3858 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3859 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3860 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3861 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | int | 
 | 3864 | main () | 
 | 3865 | { | 
 | 3866 | #ifndef __GNUC__ | 
 | 3867 |        choke me | 
 | 3868 | #endif | 
 | 3869 |  | 
 | 3870 |   ; | 
 | 3871 |   return 0; | 
 | 3872 | } | 
 | 3873 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3874 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 |   ac_compiler_gnu=yes | 
 | 3876 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3877 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3878 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3879 | 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] | 3880 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 3881 |  | 
 | 3882 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 3884 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 3885 | if test $ac_compiler_gnu = yes; then | 
 | 3886 |   GCC=yes | 
 | 3887 | else | 
 | 3888 |   GCC= | 
 | 3889 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3890 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 3891 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 3893 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3894 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3895 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3896 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3897 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 3898 |    ac_c_werror_flag=yes | 
 | 3899 |    ac_cv_prog_cc_g=no | 
 | 3900 |    CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3901 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3902 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | int | 
 | 3905 | main () | 
 | 3906 | { | 
 | 3907 |  | 
 | 3908 |   ; | 
 | 3909 |   return 0; | 
 | 3910 | } | 
 | 3911 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3912 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3913 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3914 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3915 |   CFLAGS="" | 
 | 3916 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3917 | /* end confdefs.h.  */ | 
 | 3918 |  | 
 | 3919 | int | 
 | 3920 | main () | 
 | 3921 | { | 
 | 3922 |  | 
 | 3923 |   ; | 
 | 3924 |   return 0; | 
 | 3925 | } | 
 | 3926 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3927 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3928 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3929 | else | 
 | 3930 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3931 | 	 CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3932 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3933 | /* end confdefs.h.  */ | 
 | 3934 |  | 
 | 3935 | int | 
 | 3936 | main () | 
 | 3937 | { | 
 | 3938 |  | 
 | 3939 |   ; | 
 | 3940 |   return 0; | 
 | 3941 | } | 
 | 3942 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3943 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3944 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3945 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3947 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3949 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3951 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 3952 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 3954 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3955 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3956 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3957 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 3958 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3959 |     CFLAGS="-g -O2" | 
 | 3960 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3961 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3962 |   fi | 
 | 3963 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3964 |   if test "$GCC" = yes; then | 
 | 3965 |     CFLAGS="-O2" | 
 | 3966 |   else | 
 | 3967 |     CFLAGS= | 
 | 3968 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3969 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 3971 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3972 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3973 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3974 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3975 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3976 | ac_save_CC=$CC | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3978 | /* end confdefs.h.  */ | 
 | 3979 | #include <stdarg.h> | 
 | 3980 | #include <stdio.h> | 
 | 3981 | #include <sys/types.h> | 
 | 3982 | #include <sys/stat.h> | 
 | 3983 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 3984 | struct buf { int x; }; | 
 | 3985 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 3986 | static char *e (p, i) | 
 | 3987 |      char **p; | 
 | 3988 |      int i; | 
 | 3989 | { | 
 | 3990 |   return p[i]; | 
 | 3991 | } | 
 | 3992 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 3993 | { | 
 | 3994 |   char *s; | 
 | 3995 |   va_list v; | 
 | 3996 |   va_start (v,p); | 
 | 3997 |   s = g (p, va_arg (v,int)); | 
 | 3998 |   va_end (v); | 
 | 3999 |   return s; | 
 | 4000 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4001 |  | 
 | 4002 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4003 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4004 |    These don't provoke an error unfortunately, instead are silently treated | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4005 |    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] | 4006 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4007 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4008 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4009 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4010 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4011 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4012 |    inside strings and character constants.  */ | 
 | 4013 | #define FOO(x) 'x' | 
 | 4014 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4015 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4016 | int test (int i, double x); | 
 | 4017 | struct s1 {int (*f) (int a);}; | 
 | 4018 | struct s2 {int (*f) (double a);}; | 
 | 4019 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4020 | int argc; | 
 | 4021 | char **argv; | 
 | 4022 | int | 
 | 4023 | main () | 
 | 4024 | { | 
 | 4025 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4026 |   ; | 
 | 4027 |   return 0; | 
 | 4028 | } | 
 | 4029 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4030 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4031 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4032 | do | 
 | 4033 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4034 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4035 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4036 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4037 | rm -f core conftest.err conftest.$ac_objext | 
 | 4038 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4039 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4040 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4041 | CC=$ac_save_CC | 
 | 4042 |  | 
 | 4043 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4044 | # AC_CACHE_VAL | 
 | 4045 | case "x$ac_cv_prog_cc_c89" in | 
 | 4046 |   x) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4047 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4048 | $as_echo "none needed" >&6; } ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4049 |   xno) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4050 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4051 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4052 |   *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4053 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4054 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4055 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4056 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4057 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4058 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4059 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4060 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | ac_ext=c | 
 | 4062 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4066 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4067 | if test ! -z "$preset_cflags" | 
 | 4068 | then | 
 | 4069 | 	CFLAGS=$preset_cflags | 
 | 4070 | fi | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4071 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4072 |  | 
 | 4073 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4075 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4076 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4077 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4078 | if test "${with_cxx_main+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4079 |   withval=$with_cxx_main; | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4080 |  | 
 | 4081 | 	case $withval in | 
 | 4082 | 	no)	with_cxx_main=no | 
 | 4083 | 		MAINCC='$(CC)';; | 
 | 4084 | 	yes)	with_cxx_main=yes | 
 | 4085 | 		MAINCC='$(CXX)';; | 
 | 4086 | 	*)	with_cxx_main=yes | 
 | 4087 | 		MAINCC=$withval | 
 | 4088 | 		if test -z "$CXX" | 
 | 4089 | 		then | 
 | 4090 | 			CXX=$withval | 
 | 4091 | 		fi;; | 
 | 4092 | 	esac | 
 | 4093 | else | 
 | 4094 |  | 
 | 4095 | 	with_cxx_main=no | 
 | 4096 | 	MAINCC='$(CC)' | 
 | 4097 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4098 | fi | 
 | 4099 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4101 | $as_echo "$with_cxx_main" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4102 |  | 
 | 4103 | preset_cxx="$CXX" | 
 | 4104 | if test -z "$CXX" | 
 | 4105 | then | 
 | 4106 |         case "$CC" in | 
 | 4107 |         gcc)    # Extract the first word of "g++", so it can be a program name with args. | 
 | 4108 | set dummy g++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4110 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4111 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4112 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4113 | else | 
 | 4114 |   case $CXX in | 
 | 4115 |   [\\/]* | ?:[\\/]*) | 
 | 4116 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4117 |   ;; | 
 | 4118 |   *) | 
 | 4119 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4120 | for as_dir in notfound | 
 | 4121 | do | 
 | 4122 |   IFS=$as_save_IFS | 
 | 4123 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4124 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4125 |   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 | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4126 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4127 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4128 |     break 2 | 
 | 4129 |   fi | 
 | 4130 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4131 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4132 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4133 |  | 
 | 4134 |   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" | 
 | 4135 |   ;; | 
 | 4136 | esac | 
 | 4137 | fi | 
 | 4138 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4139 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4140 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4141 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4142 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4143 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4144 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4145 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4146 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4147 |  ;; | 
 | 4148 |         cc)     # Extract the first word of "c++", so it can be a program name with args. | 
 | 4149 | set dummy c++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4151 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4152 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4153 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4154 | else | 
 | 4155 |   case $CXX in | 
 | 4156 |   [\\/]* | ?:[\\/]*) | 
 | 4157 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4158 |   ;; | 
 | 4159 |   *) | 
 | 4160 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4161 | for as_dir in notfound | 
 | 4162 | do | 
 | 4163 |   IFS=$as_save_IFS | 
 | 4164 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4165 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4166 |   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 | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4167 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4168 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4169 |     break 2 | 
 | 4170 |   fi | 
 | 4171 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4172 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4173 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4174 |  | 
 | 4175 |   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" | 
 | 4176 |   ;; | 
 | 4177 | esac | 
 | 4178 | fi | 
 | 4179 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4180 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4181 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4182 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4183 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4184 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4185 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4186 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4187 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4188 |  ;; | 
 | 4189 |         esac | 
 | 4190 | 	if test "$CXX" = "notfound" | 
 | 4191 | 	then | 
 | 4192 | 		CXX="" | 
 | 4193 | 	fi | 
 | 4194 | fi | 
 | 4195 | if test -z "$CXX" | 
 | 4196 | then | 
 | 4197 | 	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4198 | do | 
 | 4199 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4200 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4202 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4203 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4204 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4205 | else | 
 | 4206 |   if test -n "$CXX"; then | 
 | 4207 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 4208 | else | 
 | 4209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4210 | for as_dir in $PATH | 
 | 4211 | do | 
 | 4212 |   IFS=$as_save_IFS | 
 | 4213 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4214 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4215 |   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 | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4216 |     ac_cv_prog_CXX="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4217 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4218 |     break 2 | 
 | 4219 |   fi | 
 | 4220 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4221 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4222 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4223 |  | 
 | 4224 | fi | 
 | 4225 | fi | 
 | 4226 | CXX=$ac_cv_prog_CXX | 
 | 4227 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4228 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4229 | $as_echo "$CXX" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4230 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4231 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4232 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4233 | fi | 
 | 4234 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4235 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4236 |   test -n "$CXX" && break | 
 | 4237 | done | 
 | 4238 | test -n "$CXX" || CXX="notfound" | 
 | 4239 |  | 
 | 4240 | 	if test "$CXX" = "notfound" | 
 | 4241 | 	then | 
 | 4242 | 		CXX="" | 
 | 4243 | 	fi | 
 | 4244 | fi | 
 | 4245 | if test "$preset_cxx" != "$CXX" | 
 | 4246 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4247 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4248 |  | 
 | 4249 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4250 |   If this is not intended, then set CXX on the configure command line. | 
 | 4251 |   " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4252 | $as_echo "$as_me: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4253 |  | 
 | 4254 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4255 |   If this is not intended, then set CXX on the configure command line. | 
 | 4256 |   " >&2;} | 
 | 4257 | fi | 
 | 4258 |  | 
 | 4259 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4260 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4261 |  | 
 | 4262 | ac_ext=c | 
 | 4263 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4268 | $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] | 4269 | # On Suns, sometimes $CPP names a directory. | 
 | 4270 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4271 |   CPP= | 
 | 4272 | fi | 
 | 4273 | if test -z "$CPP"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4274 |   if ${ac_cv_prog_CPP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4275 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4276 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 |       # Double quotes because CPP needs to be expanded | 
 | 4278 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4279 |     do | 
 | 4280 |       ac_preproc_ok=false | 
 | 4281 | for ac_c_preproc_warn_flag in '' yes | 
 | 4282 | do | 
 | 4283 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4284 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4285 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4286 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4287 |   # 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] | 4288 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4289 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4290 | /* end confdefs.h.  */ | 
 | 4291 | #ifdef __STDC__ | 
 | 4292 | # include <limits.h> | 
 | 4293 | #else | 
 | 4294 | # include <assert.h> | 
 | 4295 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4296 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4297 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4298 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4299 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4300 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 |   # Broken: fails on valid input. | 
 | 4302 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4303 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4304 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4305 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4306 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4307 |   # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4308 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4309 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4310 | #include <ac_nonexistent.h> | 
 | 4311 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4312 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4313 |   # Broken: success on invalid input. | 
 | 4314 | continue | 
 | 4315 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4316 |   # Passes both tests. | 
 | 4317 | ac_preproc_ok=: | 
 | 4318 | break | 
 | 4319 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4320 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4321 |  | 
 | 4322 | done | 
 | 4323 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4324 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4325 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4326 |   break | 
 | 4327 | fi | 
 | 4328 |  | 
 | 4329 |     done | 
 | 4330 |     ac_cv_prog_CPP=$CPP | 
 | 4331 |  | 
 | 4332 | fi | 
 | 4333 |   CPP=$ac_cv_prog_CPP | 
 | 4334 | else | 
 | 4335 |   ac_cv_prog_CPP=$CPP | 
 | 4336 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4338 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4339 | ac_preproc_ok=false | 
 | 4340 | for ac_c_preproc_warn_flag in '' yes | 
 | 4341 | do | 
 | 4342 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4343 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4344 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4345 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4346 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4347 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4348 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4349 | /* end confdefs.h.  */ | 
 | 4350 | #ifdef __STDC__ | 
 | 4351 | # include <limits.h> | 
 | 4352 | #else | 
 | 4353 | # include <assert.h> | 
 | 4354 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4355 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4356 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4357 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4358 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4359 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4360 |   # Broken: fails on valid input. | 
 | 4361 | continue | 
 | 4362 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4363 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4364 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4365 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4366 |   # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4367 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4368 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4369 | #include <ac_nonexistent.h> | 
 | 4370 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4371 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4372 |   # Broken: success on invalid input. | 
 | 4373 | continue | 
 | 4374 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4375 |   # Passes both tests. | 
 | 4376 | ac_preproc_ok=: | 
 | 4377 | break | 
 | 4378 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4379 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4380 |  | 
 | 4381 | done | 
 | 4382 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4383 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4384 | if $ac_preproc_ok; then : | 
 | 4385 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4386 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4387 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4388 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4389 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4390 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4391 | fi | 
 | 4392 |  | 
 | 4393 | ac_ext=c | 
 | 4394 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4398 |  | 
 | 4399 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4401 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4402 | if ${ac_cv_path_GREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4403 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4404 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4405 |   if test -z "$GREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4406 |   ac_path_GREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4407 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4408 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4409 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4410 | do | 
 | 4411 |   IFS=$as_save_IFS | 
 | 4412 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4413 |     for ac_prog in grep ggrep; do | 
 | 4414 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4415 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4416 |       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
 | 4417 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4418 |   # Check for GNU $ac_path_GREP | 
 | 4419 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4420 | *GNU*) | 
 | 4421 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4422 | *) | 
 | 4423 |   ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4424 |   $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4425 |   while : | 
 | 4426 |   do | 
 | 4427 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4428 |     mv "conftest.tmp" "conftest.in" | 
 | 4429 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4430 |     $as_echo 'GREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4431 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4432 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4433 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4434 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4435 |       # Best one so far, save it but keep looking for a better one | 
 | 4436 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4437 |       ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4438 |     fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4439 |     # 10*(2^10) chars as input seems more than enough | 
 | 4440 |     test $ac_count -gt 10 && break | 
 | 4441 |   done | 
 | 4442 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4443 | esac | 
 | 4444 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4445 |       $ac_path_GREP_found && break 3 | 
 | 4446 |     done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4447 |   done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4448 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4449 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4450 |   if test -z "$ac_cv_path_GREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4451 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4452 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4453 | else | 
 | 4454 |   ac_cv_path_GREP=$GREP | 
 | 4455 | fi | 
 | 4456 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4457 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4459 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4460 |  GREP="$ac_cv_path_GREP" | 
 | 4461 |  | 
 | 4462 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 4464 | $as_echo_n "checking for egrep... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4465 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4466 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4467 | else | 
 | 4468 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 4469 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 4470 |    else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4471 |      if test -z "$EGREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4472 |   ac_path_EGREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4473 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4474 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4475 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4476 | do | 
 | 4477 |   IFS=$as_save_IFS | 
 | 4478 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4479 |     for ac_prog in egrep; do | 
 | 4480 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4481 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4482 |       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
 | 4483 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4484 |   # Check for GNU $ac_path_EGREP | 
 | 4485 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 4486 | *GNU*) | 
 | 4487 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 4488 | *) | 
 | 4489 |   ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4490 |   $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4491 |   while : | 
 | 4492 |   do | 
 | 4493 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4494 |     mv "conftest.tmp" "conftest.in" | 
 | 4495 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4496 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4497 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4498 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4499 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4500 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 4501 |       # Best one so far, save it but keep looking for a better one | 
 | 4502 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 4503 |       ac_path_EGREP_max=$ac_count | 
 | 4504 |     fi | 
 | 4505 |     # 10*(2^10) chars as input seems more than enough | 
 | 4506 |     test $ac_count -gt 10 && break | 
 | 4507 |   done | 
 | 4508 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4509 | esac | 
 | 4510 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4511 |       $ac_path_EGREP_found && break 3 | 
 | 4512 |     done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4513 |   done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4514 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4515 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4516 |   if test -z "$ac_cv_path_EGREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4517 |     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4518 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4519 | else | 
 | 4520 |   ac_cv_path_EGREP=$EGREP | 
 | 4521 | fi | 
 | 4522 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4523 |    fi | 
 | 4524 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 4526 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4527 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4528 |  | 
 | 4529 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 4531 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4532 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4533 |   $as_echo_n "(cached) " >&6 | 
 | 4534 | else | 
 | 4535 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4536 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4537 | #include <stdlib.h> | 
 | 4538 | #include <stdarg.h> | 
 | 4539 | #include <string.h> | 
 | 4540 | #include <float.h> | 
 | 4541 |  | 
 | 4542 | int | 
 | 4543 | main () | 
 | 4544 | { | 
 | 4545 |  | 
 | 4546 |   ; | 
 | 4547 |   return 0; | 
 | 4548 | } | 
 | 4549 | _ACEOF | 
 | 4550 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4551 |   ac_cv_header_stdc=yes | 
 | 4552 | else | 
 | 4553 |   ac_cv_header_stdc=no | 
 | 4554 | fi | 
 | 4555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4556 |  | 
 | 4557 | if test $ac_cv_header_stdc = yes; then | 
 | 4558 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4559 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4560 | /* end confdefs.h.  */ | 
 | 4561 | #include <string.h> | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4562 |  | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4563 | _ACEOF | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4564 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4565 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4566 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4567 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4568 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4569 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4570 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4571 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4572 | fi | 
 | 4573 |  | 
 | 4574 | if test $ac_cv_header_stdc = yes; then | 
 | 4575 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4576 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4577 | /* end confdefs.h.  */ | 
 | 4578 | #include <stdlib.h> | 
 | 4579 |  | 
 | 4580 | _ACEOF | 
 | 4581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4582 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 4583 |  | 
 | 4584 | else | 
 | 4585 |   ac_cv_header_stdc=no | 
 | 4586 | fi | 
 | 4587 | rm -f conftest* | 
 | 4588 |  | 
 | 4589 | fi | 
 | 4590 |  | 
 | 4591 | if test $ac_cv_header_stdc = yes; then | 
 | 4592 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4593 |   if test "$cross_compiling" = yes; then : | 
 | 4594 |   : | 
 | 4595 | else | 
 | 4596 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4597 | /* end confdefs.h.  */ | 
 | 4598 | #include <ctype.h> | 
 | 4599 | #include <stdlib.h> | 
 | 4600 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4601 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4602 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4603 | #else | 
 | 4604 | # define ISLOWER(c) \ | 
 | 4605 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 4606 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 4607 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 4608 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 4609 | #endif | 
 | 4610 |  | 
 | 4611 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 4612 | int | 
 | 4613 | main () | 
 | 4614 | { | 
 | 4615 |   int i; | 
 | 4616 |   for (i = 0; i < 256; i++) | 
 | 4617 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 4618 | 	|| toupper (i) != TOUPPER (i)) | 
 | 4619 |       return 2; | 
 | 4620 |   return 0; | 
 | 4621 | } | 
 | 4622 | _ACEOF | 
 | 4623 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 4624 |  | 
 | 4625 | else | 
 | 4626 |   ac_cv_header_stdc=no | 
 | 4627 | fi | 
 | 4628 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 4629 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 4630 | fi | 
 | 4631 |  | 
 | 4632 | fi | 
 | 4633 | fi | 
 | 4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 4635 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 4636 | if test $ac_cv_header_stdc = yes; then | 
 | 4637 |  | 
 | 4638 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 4639 |  | 
 | 4640 | fi | 
 | 4641 |  | 
 | 4642 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 4643 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 4644 | 		  inttypes.h stdint.h unistd.h | 
 | 4645 | do : | 
 | 4646 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 4647 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 4648 | " | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4649 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4650 |   cat >>confdefs.h <<_ACEOF | 
 | 4651 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4652 | _ACEOF | 
 | 4653 |  | 
 | 4654 | fi | 
 | 4655 |  | 
 | 4656 | done | 
 | 4657 |  | 
 | 4658 |  | 
 | 4659 |  | 
 | 4660 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4661 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4662 |   MINIX=yes | 
 | 4663 | else | 
 | 4664 |   MINIX= | 
 | 4665 | fi | 
 | 4666 |  | 
 | 4667 |  | 
 | 4668 |   if test "$MINIX" = yes; then | 
 | 4669 |  | 
 | 4670 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 4671 |  | 
 | 4672 |  | 
 | 4673 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 4674 |  | 
 | 4675 |  | 
 | 4676 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 4677 |  | 
 | 4678 |   fi | 
 | 4679 |  | 
 | 4680 |  | 
 | 4681 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 4682 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4683 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4684 |   $as_echo_n "(cached) " >&6 | 
 | 4685 | else | 
 | 4686 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4687 | /* end confdefs.h.  */ | 
 | 4688 |  | 
 | 4689 | #	  define __EXTENSIONS__ 1 | 
 | 4690 | 	  $ac_includes_default | 
 | 4691 | int | 
 | 4692 | main () | 
 | 4693 | { | 
 | 4694 |  | 
 | 4695 |   ; | 
 | 4696 |   return 0; | 
 | 4697 | } | 
 | 4698 | _ACEOF | 
 | 4699 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4700 |   ac_cv_safe_to_define___extensions__=yes | 
 | 4701 | else | 
 | 4702 |   ac_cv_safe_to_define___extensions__=no | 
 | 4703 | fi | 
 | 4704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4705 | fi | 
 | 4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 4707 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 4708 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 4709 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 4710 |  | 
 | 4711 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 4712 |  | 
 | 4713 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 4714 |  | 
 | 4715 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 4716 |  | 
 | 4717 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 4718 |  | 
 | 4719 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4720 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4721 | # Check for unsupported systems | 
 | 4722 | case $ac_sys_system/$ac_sys_release in | 
 | 4723 | atheos*|Linux*/1*) | 
 | 4724 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 4725 |    echo See README for details. | 
 | 4726 |    exit 1;; | 
 | 4727 | esac | 
 | 4728 |  | 
 | 4729 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 4731 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4732 |  | 
 | 4733 | # Check whether --with-suffix was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4734 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4735 |   withval=$with_suffix; | 
 | 4736 | 	case $withval in | 
 | 4737 | 	no)	EXEEXT=;; | 
 | 4738 | 	yes)	EXEEXT=.exe;; | 
 | 4739 | 	*)	EXEEXT=$withval;; | 
 | 4740 | 	esac | 
 | 4741 | fi | 
 | 4742 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 4744 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4745 |  | 
 | 4746 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 4747 | # case we give a warning if no ext is given | 
 | 4748 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 4750 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4751 | if test ! -d CaseSensitiveTestDir; then | 
 | 4752 | mkdir CaseSensitiveTestDir | 
 | 4753 | fi | 
 | 4754 |  | 
 | 4755 | if test -d casesensitivetestdir | 
 | 4756 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4757 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4758 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4759 |     BUILDEXEEXT=.exe | 
 | 4760 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4761 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4762 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4763 | 	BUILDEXEEXT=$EXEEXT | 
 | 4764 | fi | 
 | 4765 | rmdir CaseSensitiveTestDir | 
 | 4766 |  | 
 | 4767 | case $MACHDEP in | 
 | 4768 | bsdos*) | 
 | 4769 |     case $CC in | 
 | 4770 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 4771 |     esac;; | 
 | 4772 | esac | 
 | 4773 |  | 
 | 4774 | case $ac_sys_system in | 
 | 4775 | hp*|HP*) | 
 | 4776 |     case $CC in | 
 | 4777 |     cc|*/cc) CC="$CC -Ae";; | 
 | 4778 |     esac;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4779 | SunOS*) | 
 | 4780 |     # Some functions have a prototype only with that define, e.g. confstr | 
 | 4781 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4782 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4783 |  | 
 | 4784 |     ;; | 
 | 4785 | esac | 
 | 4786 |  | 
 | 4787 |  | 
 | 4788 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 4790 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4791 | if test -z "$LIBRARY" | 
 | 4792 | then | 
 | 4793 | 	LIBRARY='libpython$(VERSION).a' | 
 | 4794 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 4796 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4797 |  | 
 | 4798 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 4799 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 4800 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 4801 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 4802 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 4803 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 4804 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 4805 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 4806 | # | 
 | 4807 | # RUNSHARED is used to run shared python without installed libraries | 
 | 4808 | # | 
 | 4809 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 4810 | # on the system - some systems like version suffix, others don't | 
 | 4811 |  | 
 | 4812 |  | 
 | 4813 |  | 
 | 4814 |  | 
 | 4815 |  | 
 | 4816 |  | 
 | 4817 | LDLIBRARY="$LIBRARY" | 
 | 4818 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 4819 | INSTSONAME='$(LDLIBRARY)' | 
 | 4820 | DLLLIBRARY='' | 
 | 4821 | LDLIBRARYDIR='' | 
 | 4822 | RUNSHARED='' | 
 | 4823 |  | 
 | 4824 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 4825 | # If CXX is set, and if it is needed to link a main function that was | 
 | 4826 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 4827 | # python might then depend on the C++ runtime | 
 | 4828 | # This is altered for AIX in order to build the export list before | 
 | 4829 | # linking. | 
 | 4830 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 4832 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4833 | if test -z "$LINKCC" | 
 | 4834 | then | 
 | 4835 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 4836 | 	case $ac_sys_system in | 
 | 4837 | 	AIX*) | 
 | 4838 | 	   exp_extra="\"\"" | 
 | 4839 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 4840 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 4841 | 	       exp_extra="." | 
 | 4842 | 	   fi | 
 | 4843 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4844 | 	QNX*) | 
 | 4845 | 	   # qcc must be used because the other compilers do not | 
 | 4846 | 	   # support -N. | 
 | 4847 | 	   LINKCC=qcc;; | 
 | 4848 | 	esac | 
 | 4849 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 4851 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4852 |  | 
 | 4853 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 4854 | # make sure we default having it set to "no": this is used by | 
 | 4855 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 4856 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 4857 | # in the same bahaviour as before. | 
 | 4858 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 4860 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4861 | ac_prog=ld | 
 | 4862 | if test "$GCC" = yes; then | 
 | 4863 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 4864 | fi | 
 | 4865 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 4866 |       *GNU*) | 
 | 4867 |           GNULD=yes;; | 
 | 4868 |       *) | 
 | 4869 |           GNULD=no;; | 
 | 4870 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 4872 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4873 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 4875 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4876 | # Check whether --enable-shared was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4877 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4878 |   enableval=$enable_shared; | 
 | 4879 | fi | 
 | 4880 |  | 
 | 4881 |  | 
 | 4882 | if test -z "$enable_shared" | 
 | 4883 | then | 
 | 4884 |   case $ac_sys_system in | 
 | 4885 |   CYGWIN* | atheos*) | 
 | 4886 |     enable_shared="yes";; | 
 | 4887 |   *) | 
 | 4888 |     enable_shared="no";; | 
 | 4889 |   esac | 
 | 4890 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 4892 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4893 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 4895 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4896 | # Check whether --enable-profiling was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4897 | if test "${enable_profiling+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4898 |   enableval=$enable_profiling; ac_save_cc="$CC" | 
 | 4899 |  CC="$CC -pg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4900 |  if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4901 |   ac_enable_profiling="no" | 
 | 4902 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4903 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4904 | /* end confdefs.h.  */ | 
 | 4905 | int main() { return 0; } | 
 | 4906 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4907 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4908 |   ac_enable_profiling="yes" | 
 | 4909 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4910 |   ac_enable_profiling="no" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4911 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4912 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 4913 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4914 | fi | 
 | 4915 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4916 |  CC="$ac_save_cc" | 
 | 4917 | fi | 
 | 4918 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 | 
 | 4920 | $as_echo "$ac_enable_profiling" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4921 |  | 
 | 4922 | case "$ac_enable_profiling" in | 
 | 4923 |     "yes") | 
 | 4924 | 	BASECFLAGS="-pg $BASECFLAGS" | 
 | 4925 | 	LDFLAGS="-pg $LDFLAGS" | 
 | 4926 |     ;; | 
 | 4927 | esac | 
 | 4928 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 4930 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4931 |  | 
 | 4932 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 4933 | # library that we build, but we do not want to link against it (we | 
 | 4934 | # will find it with a -framework option). For this reason there is an | 
 | 4935 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 4936 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 4937 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 4938 | if test "$enable_framework" | 
 | 4939 | then | 
 | 4940 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 4941 |   RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" | 
 | 4942 |   BLDLIBRARY='' | 
 | 4943 | else | 
 | 4944 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 4945 | fi | 
 | 4946 |  | 
 | 4947 | # Other platforms follow | 
 | 4948 | if test $enable_shared = "yes"; then | 
 | 4949 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4950 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4951 |  | 
 | 4952 |   case $ac_sys_system in | 
 | 4953 |     BeOS*) | 
 | 4954 |           LDLIBRARY='libpython$(VERSION).so' | 
 | 4955 |           ;; | 
 | 4956 |     CYGWIN*) | 
 | 4957 |           LDLIBRARY='libpython$(VERSION).dll.a' | 
 | 4958 |           DLLLIBRARY='libpython$(VERSION).dll' | 
 | 4959 |           ;; | 
 | 4960 |     SunOS*) | 
 | 4961 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 4962 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' | 
 | 4963 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4964 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
 | 4965 |           ;; | 
| Charles-François Natali | 3de8c73 | 2011-07-24 22:33:35 +0200 | [diff] [blame] | 4966 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4967 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 4968 | 	  BLDLIBRARY='-L. -lpython$(VERSION)' | 
 | 4969 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4970 | 	  case $ac_sys_system in | 
 | 4971 | 	      FreeBSD*) | 
 | 4972 | 		SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
 | 4973 | 		;; | 
 | 4974 | 	  esac | 
 | 4975 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
 | 4976 | 	  ;; | 
 | 4977 |     hp*|HP*) | 
 | 4978 | 	  case `uname -m` in | 
 | 4979 | 		ia64) | 
 | 4980 | 			LDLIBRARY='libpython$(VERSION).so' | 
 | 4981 | 			;; | 
 | 4982 | 		*) | 
 | 4983 | 			LDLIBRARY='libpython$(VERSION).sl' | 
 | 4984 | 			;; | 
 | 4985 | 	  esac | 
 | 4986 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' | 
 | 4987 | 	  RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} | 
 | 4988 | 	  ;; | 
 | 4989 |     OSF*) | 
 | 4990 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 4991 | 	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' | 
 | 4992 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4993 | 	  ;; | 
 | 4994 |     atheos*) | 
 | 4995 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 4996 | 	  BLDLIBRARY='-L. -lpython$(VERSION)' | 
 | 4997 | 	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} | 
 | 4998 | 	  ;; | 
 | 4999 |     Darwin*) | 
 | 5000 |     	LDLIBRARY='libpython$(VERSION).dylib' | 
 | 5001 | 	BLDLIBRARY='-L. -lpython$(VERSION)' | 
 | 5002 | 	RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' | 
 | 5003 | 	;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5004 |     AIX*) | 
 | 5005 | 	LDLIBRARY='libpython$(VERSION).so' | 
 | 5006 | 	RUNSHARED=LIBPATH=`pwd`:${LIBPATH} | 
 | 5007 | 	;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5008 |  | 
 | 5009 |   esac | 
 | 5010 | else # shared is disabled | 
 | 5011 |   case $ac_sys_system in | 
 | 5012 |     CYGWIN*) | 
 | 5013 |           BLDLIBRARY='$(LIBRARY)' | 
 | 5014 |           LDLIBRARY='libpython$(VERSION).dll.a' | 
 | 5015 |           ;; | 
 | 5016 |   esac | 
 | 5017 | fi | 
 | 5018 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 5020 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5021 |  | 
 | 5022 | if test -n "$ac_tool_prefix"; then | 
 | 5023 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5024 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5026 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5027 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5028 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5029 | else | 
 | 5030 |   if test -n "$RANLIB"; then | 
 | 5031 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5032 | else | 
 | 5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5034 | for as_dir in $PATH | 
 | 5035 | do | 
 | 5036 |   IFS=$as_save_IFS | 
 | 5037 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5038 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5039 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5040 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5041 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5042 |     break 2 | 
 | 5043 |   fi | 
 | 5044 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5045 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5046 | IFS=$as_save_IFS | 
 | 5047 |  | 
 | 5048 | fi | 
 | 5049 | fi | 
 | 5050 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5051 | if test -n "$RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5052 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 5053 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5054 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5055 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5056 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5057 | fi | 
 | 5058 |  | 
 | 5059 |  | 
 | 5060 | fi | 
 | 5061 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5062 |   ac_ct_RANLIB=$RANLIB | 
 | 5063 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5064 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5066 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5067 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5068 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5069 | else | 
 | 5070 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5071 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5072 | else | 
 | 5073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5074 | for as_dir in $PATH | 
 | 5075 | do | 
 | 5076 |   IFS=$as_save_IFS | 
 | 5077 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5078 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5079 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5080 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5081 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5082 |     break 2 | 
 | 5083 |   fi | 
 | 5084 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5085 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5086 | IFS=$as_save_IFS | 
 | 5087 |  | 
 | 5088 | fi | 
 | 5089 | fi | 
 | 5090 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5091 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5092 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 5093 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5094 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5095 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5096 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5097 | fi | 
 | 5098 |  | 
 | 5099 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 5100 |     RANLIB=":" | 
 | 5101 |   else | 
 | 5102 |     case $cross_compiling:$ac_tool_warned in | 
 | 5103 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5105 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5106 | ac_tool_warned=yes ;; | 
 | 5107 | esac | 
 | 5108 |     RANLIB=$ac_ct_RANLIB | 
 | 5109 |   fi | 
 | 5110 | else | 
 | 5111 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5112 | fi | 
 | 5113 |  | 
 | 5114 |  | 
 | 5115 | for ac_prog in ar aal | 
 | 5116 | do | 
 | 5117 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5118 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5120 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5121 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5122 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5123 | else | 
 | 5124 |   if test -n "$AR"; then | 
 | 5125 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5126 | else | 
 | 5127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5128 | for as_dir in $PATH | 
 | 5129 | do | 
 | 5130 |   IFS=$as_save_IFS | 
 | 5131 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5132 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5133 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5134 |     ac_cv_prog_AR="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5135 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5136 |     break 2 | 
 | 5137 |   fi | 
 | 5138 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5139 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5140 | IFS=$as_save_IFS | 
 | 5141 |  | 
 | 5142 | fi | 
 | 5143 | fi | 
 | 5144 | AR=$ac_cv_prog_AR | 
 | 5145 | if test -n "$AR"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5146 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 5147 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5148 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5149 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5150 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5151 | fi | 
 | 5152 |  | 
 | 5153 |  | 
 | 5154 |   test -n "$AR" && break | 
 | 5155 | done | 
 | 5156 | test -n "$AR" || AR="ar" | 
 | 5157 |  | 
 | 5158 |  | 
 | 5159 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 5160 |  | 
 | 5161 | if test -z "$ARFLAGS" | 
 | 5162 | then | 
 | 5163 |         ARFLAGS="rc" | 
 | 5164 | fi | 
 | 5165 |  | 
 | 5166 |  | 
 | 5167 | # Extract the first word of "svnversion", so it can be a program name with args. | 
 | 5168 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5170 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5171 | if ${ac_cv_prog_SVNVERSION+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5172 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5173 | else | 
 | 5174 |   if test -n "$SVNVERSION"; then | 
 | 5175 |   ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
 | 5176 | else | 
 | 5177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5178 | for as_dir in $PATH | 
 | 5179 | do | 
 | 5180 |   IFS=$as_save_IFS | 
 | 5181 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5182 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5183 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5184 |     ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5185 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5186 |     break 2 | 
 | 5187 |   fi | 
 | 5188 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5189 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5190 | IFS=$as_save_IFS | 
 | 5191 |  | 
 | 5192 |   test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
 | 5193 | fi | 
 | 5194 | fi | 
 | 5195 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
 | 5196 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5197 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
 | 5198 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5199 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5200 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5201 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5202 | fi | 
 | 5203 |  | 
 | 5204 |  | 
 | 5205 | if test $SVNVERSION = found | 
 | 5206 | then | 
 | 5207 | 	SVNVERSION="svnversion \$(srcdir)" | 
 | 5208 | else | 
 | 5209 | 	SVNVERSION="echo Unversioned directory" | 
 | 5210 | fi | 
 | 5211 |  | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5212 |  | 
| Trent Nelson | abf2051 | 2012-10-17 04:32:49 -0400 | [diff] [blame] | 5213 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5214 |     # If we're building out-of-tree make sure Include (in the current dir) | 
 | 5215 |     # gets picked up before its $srcdir counterpart in order for Python-ast.h | 
 | 5216 |     # and graminit.h to get picked up from the correct directory. | 
 | 5217 |     # (A side effect of this is that these resources will automatically be | 
 | 5218 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 5219 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 5220 |     #  off.) | 
 | 5221 |     BASECPPFLAGS="-IInclude" | 
 | 5222 | else | 
 | 5223 |     BASECPPFLAGS="" | 
 | 5224 | fi | 
 | 5225 |  | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5226 |  | 
 | 5227 |  | 
 | 5228 |  | 
 | 5229 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 5230 | set dummy hg; ac_word=$2 | 
 | 5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5232 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5233 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5234 |   $as_echo_n "(cached) " >&6 | 
 | 5235 | else | 
 | 5236 |   if test -n "$HAS_HG"; then | 
 | 5237 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 5238 | else | 
 | 5239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5240 | for as_dir in $PATH | 
 | 5241 | do | 
 | 5242 |   IFS=$as_save_IFS | 
 | 5243 |   test -z "$as_dir" && as_dir=. | 
 | 5244 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5245 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5246 |     ac_cv_prog_HAS_HG="found" | 
 | 5247 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5248 |     break 2 | 
 | 5249 |   fi | 
 | 5250 | done | 
 | 5251 |   done | 
 | 5252 | IFS=$as_save_IFS | 
 | 5253 |  | 
 | 5254 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 5255 | fi | 
 | 5256 | fi | 
 | 5257 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 5258 | if test -n "$HAS_HG"; then | 
 | 5259 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 5260 | $as_echo "$HAS_HG" >&6; } | 
 | 5261 | else | 
 | 5262 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5263 | $as_echo "no" >&6; } | 
 | 5264 | fi | 
 | 5265 |  | 
 | 5266 |  | 
 | 5267 | if test $HAS_HG = found | 
 | 5268 | then | 
 | 5269 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 5270 |     HGTAG="hg id -t \$(srcdir)" | 
 | 5271 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 5272 | else | 
 | 5273 |     HGVERSION="" | 
 | 5274 |     HGTAG="" | 
 | 5275 |     HGBRANCH="" | 
 | 5276 | fi | 
 | 5277 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5278 | case $MACHDEP in | 
 | 5279 | bsdos*|hp*|HP*) | 
 | 5280 | 	# install -d does not work on BSDI or HP-UX | 
 | 5281 | 	if test -z "$INSTALL" | 
 | 5282 | 	then | 
 | 5283 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 5284 | 	fi | 
 | 5285 | esac | 
 | 5286 | ac_aux_dir= | 
 | 5287 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5288 |   if test -f "$ac_dir/install-sh"; then | 
 | 5289 |     ac_aux_dir=$ac_dir | 
 | 5290 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 5291 |     break | 
 | 5292 |   elif test -f "$ac_dir/install.sh"; then | 
 | 5293 |     ac_aux_dir=$ac_dir | 
 | 5294 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 5295 |     break | 
 | 5296 |   elif test -f "$ac_dir/shtool"; then | 
 | 5297 |     ac_aux_dir=$ac_dir | 
 | 5298 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 5299 |     break | 
 | 5300 |   fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5301 | done | 
 | 5302 | if test -z "$ac_aux_dir"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5303 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5304 | fi | 
 | 5305 |  | 
 | 5306 | # These three variables are undocumented and unsupported, | 
 | 5307 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 5308 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 5309 | # whose full name contains unusual characters. | 
 | 5310 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 5311 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 5312 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 5313 |  | 
 | 5314 |  | 
 | 5315 | # Find a good install program.  We prefer a C program (faster), | 
 | 5316 | # so one script is as good as another.  But avoid the broken or | 
 | 5317 | # incompatible versions: | 
 | 5318 | # SysV /etc/install, /usr/sbin/install | 
 | 5319 | # SunOS /usr/etc/install | 
 | 5320 | # IRIX /sbin/install | 
 | 5321 | # AIX /bin/install | 
 | 5322 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 5323 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 5324 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5325 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5326 | # OS/2's system install, which has a completely different semantic | 
 | 5327 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5328 | # Reject install programs that cannot install multiple files. | 
 | 5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 5330 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5331 | if test -z "$INSTALL"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5332 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5333 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5334 | else | 
 | 5335 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5336 | for as_dir in $PATH | 
 | 5337 | do | 
 | 5338 |   IFS=$as_save_IFS | 
 | 5339 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5340 |     # Account for people who put trailing slashes in PATH elements. | 
 | 5341 | case $as_dir/ in #(( | 
 | 5342 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5343 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5344 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5345 |   /usr/ucb/* ) ;; | 
 | 5346 |   *) | 
 | 5347 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 5348 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 5349 |     # by default. | 
 | 5350 |     for ac_prog in ginstall scoinst install; do | 
 | 5351 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5352 | 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
 | 5353 | 	  if test $ac_prog = install && | 
 | 5354 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5355 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 5356 | 	    : | 
 | 5357 | 	  elif test $ac_prog = install && | 
 | 5358 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5359 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 5360 | 	    : | 
 | 5361 | 	  else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5362 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 5363 | 	    echo one > conftest.one | 
 | 5364 | 	    echo two > conftest.two | 
 | 5365 | 	    mkdir conftest.dir | 
 | 5366 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 5367 | 	      test -s conftest.one && test -s conftest.two && | 
 | 5368 | 	      test -s conftest.dir/conftest.one && | 
 | 5369 | 	      test -s conftest.dir/conftest.two | 
 | 5370 | 	    then | 
 | 5371 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 5372 | 	      break 3 | 
 | 5373 | 	    fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5374 | 	  fi | 
 | 5375 | 	fi | 
 | 5376 |       done | 
 | 5377 |     done | 
 | 5378 |     ;; | 
 | 5379 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5380 |  | 
 | 5381 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5382 | IFS=$as_save_IFS | 
 | 5383 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5384 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5385 |  | 
 | 5386 | fi | 
 | 5387 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5388 |     INSTALL=$ac_cv_path_install | 
 | 5389 |   else | 
 | 5390 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5391 |     # value for INSTALL within a source directory, because that will | 
 | 5392 |     # break other packages using the cache if that directory is | 
 | 5393 |     # removed, or if the value is a relative name. | 
 | 5394 |     INSTALL=$ac_install_sh | 
 | 5395 |   fi | 
 | 5396 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 5398 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5399 |  | 
 | 5400 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5401 | # It thinks the first close brace ends the variable substitution. | 
 | 5402 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5403 |  | 
 | 5404 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 5405 |  | 
 | 5406 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5407 |  | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 5409 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 5410 | if test -z "$MKDIR_P"; then | 
 | 5411 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 5412 |   $as_echo_n "(cached) " >&6 | 
 | 5413 | else | 
 | 5414 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5415 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 5416 | do | 
 | 5417 |   IFS=$as_save_IFS | 
 | 5418 |   test -z "$as_dir" && as_dir=. | 
 | 5419 |     for ac_prog in mkdir gmkdir; do | 
 | 5420 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5421 | 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | 
 | 5422 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 5423 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 5424 | 	     'mkdir (coreutils) '* | \ | 
 | 5425 | 	     'mkdir (fileutils) '4.1*) | 
 | 5426 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 5427 | 	       break 3;; | 
 | 5428 | 	   esac | 
 | 5429 | 	 done | 
 | 5430 |        done | 
 | 5431 |   done | 
 | 5432 | IFS=$as_save_IFS | 
 | 5433 |  | 
 | 5434 | fi | 
 | 5435 |  | 
 | 5436 |   test -d ./--version && rmdir ./--version | 
 | 5437 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 5438 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 5439 |   else | 
 | 5440 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5441 |     # value for MKDIR_P within a source directory, because that will | 
 | 5442 |     # break other packages using the cache if that directory is | 
 | 5443 |     # removed, or if the value is a relative name. | 
 | 5444 |     MKDIR_P="$ac_install_sh -d" | 
 | 5445 |   fi | 
 | 5446 | fi | 
 | 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 5448 | $as_echo "$MKDIR_P" >&6; } | 
 | 5449 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5450 |  | 
 | 5451 | # Not every filesystem supports hard links | 
 | 5452 |  | 
 | 5453 | if test -z "$LN" ; then | 
 | 5454 | 	case $ac_sys_system in | 
 | 5455 | 		BeOS*) LN="ln -s";; | 
 | 5456 | 		CYGWIN*) LN="ln -s";; | 
 | 5457 | 		atheos*) LN="ln -s";; | 
 | 5458 | 		*) LN=ln;; | 
 | 5459 | 	esac | 
 | 5460 | fi | 
 | 5461 |  | 
 | 5462 | # Check for --with-pydebug | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 5464 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5465 |  | 
 | 5466 | # Check whether --with-pydebug was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5467 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5468 |   withval=$with_pydebug; | 
 | 5469 | if test "$withval" != no | 
 | 5470 | then | 
 | 5471 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5472 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5473 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5474 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5475 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5476 |   Py_DEBUG='true' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5477 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5478 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5479 | fi | 
 | 5480 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5481 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5482 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5483 | fi | 
 | 5484 |  | 
 | 5485 |  | 
 | 5486 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 5487 | # merged with this chunk of code? | 
 | 5488 |  | 
 | 5489 | # Optimizer/debugger flags | 
 | 5490 | # ------------------------ | 
 | 5491 | # (The following bit of code is complicated enough - please keep things | 
 | 5492 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 5493 |  | 
 | 5494 | # There are two parallel sets of case statements below, one that checks to | 
 | 5495 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 5496 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 5497 | # user set OPT. | 
 | 5498 |  | 
 | 5499 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 5500 | # it on the command line | 
 | 5501 |  | 
| Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5502 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5503 | then | 
 | 5504 |     case $GCC in | 
 | 5505 |     yes) | 
 | 5506 |         if test "$CC" != 'g++' ; then | 
 | 5507 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 5508 | 	fi | 
 | 5509 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 5510 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 5511 |            WRAP="-fwrapv" | 
 | 5512 |         fi | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5513 |  | 
 | 5514 |         # Clang also needs -fwrapv | 
| Stefan Krah | 2bc1e8f | 2011-12-08 22:26:06 +0100 | [diff] [blame] | 5515 |         case $CC in | 
 | 5516 |             *clang*) WRAP="-fwrapv" | 
 | 5517 |             ;; | 
 | 5518 |         esac | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5519 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5520 | 	case $ac_cv_prog_cc_g in | 
 | 5521 | 	yes) | 
 | 5522 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 5523 | 		# Optimization messes up debuggers, so turn it off for | 
 | 5524 | 		# debug builds. | 
| Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 5525 | 		OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5526 | 	    else | 
 | 5527 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 5528 | 	    fi | 
 | 5529 | 	    ;; | 
 | 5530 | 	*) | 
 | 5531 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 5532 | 	    ;; | 
 | 5533 | 	esac | 
 | 5534 | 	case $ac_sys_system in | 
 | 5535 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 5536 | 	    ;; | 
 | 5537 |         esac | 
 | 5538 | 	;; | 
 | 5539 |  | 
 | 5540 |     *) | 
 | 5541 | 	OPT="-O" | 
 | 5542 | 	;; | 
 | 5543 |     esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5544 | fi | 
 | 5545 |  | 
 | 5546 |  | 
 | 5547 |  | 
 | 5548 | # The -arch flags for universal builds on OSX | 
 | 5549 | UNIVERSAL_ARCH_FLAGS= | 
 | 5550 |  | 
 | 5551 |  | 
 | 5552 | # tweak BASECFLAGS based on compiler and platform | 
 | 5553 | case $GCC in | 
 | 5554 | yes) | 
 | 5555 |     # Python violates C99 rules, by casting between incompatible | 
 | 5556 |     # pointer types. GCC may generate bad code as a result of that, | 
 | 5557 |     # so use -fno-strict-aliasing if supported. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5558 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 | 
 | 5559 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5560 |      ac_save_cc="$CC" | 
 | 5561 |      CC="$CC -fno-strict-aliasing" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5562 |      if ${ac_cv_no_strict_aliasing_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5563 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5564 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5565 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5566 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5567 |  | 
 | 5568 | int | 
 | 5569 | main () | 
 | 5570 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5571 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5572 |   ; | 
 | 5573 |   return 0; | 
 | 5574 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5575 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5576 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5577 |   ac_cv_no_strict_aliasing_ok=yes | 
 | 5578 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5579 |   ac_cv_no_strict_aliasing_ok=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5580 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5582 | fi | 
 | 5583 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5584 |      CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5585 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 | 
 | 5586 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5587 |     if test $ac_cv_no_strict_aliasing_ok = yes | 
 | 5588 |     then | 
 | 5589 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 5590 |     fi | 
 | 5591 |  | 
 | 5592 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 5593 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 5594 |     # the standard. | 
 | 5595 |     case $ac_sys_machine in | 
 | 5596 |          alpha*) | 
 | 5597 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 5598 |                 ;; | 
 | 5599 |     esac | 
 | 5600 |  | 
 | 5601 |     case $ac_sys_system in | 
 | 5602 | 	SCO_SV*) | 
 | 5603 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 5604 | 	    ;; | 
 | 5605 | 	# is there any other compiler on Darwin besides gcc? | 
 | 5606 | 	Darwin*) | 
 | 5607 | 	    # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 5608 | 	    # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5609 | 	    if test "${CC}" = gcc | 
 | 5610 | 	    then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5611 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
 | 5612 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5613 | 		case "${UNIVERSALSDK}" in | 
 | 5614 | 		*/MacOSX10.4u.sdk) | 
 | 5615 | 			# Build using 10.4 SDK, force usage of gcc when the | 
 | 5616 | 			# compiler is gcc, otherwise the user will get very | 
 | 5617 | 			# confusing error messages when building on OSX 10.6 | 
 | 5618 | 			CC=gcc-4.0 | 
 | 5619 | 			CPP=cpp-4.0 | 
 | 5620 | 			;; | 
 | 5621 | 		esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5622 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 5623 | $as_echo "$CC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5624 | 	    fi | 
 | 5625 |  | 
 | 5626 | 	    # Calculate the right deployment target for this build. | 
 | 5627 | 	    # | 
 | 5628 | 	    cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` | 
 | 5629 | 	    if test ${cur_target} '>' 10.2; then | 
 | 5630 | 		    cur_target=10.3 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5631 | 		    if test ${enable_universalsdk}; then | 
 | 5632 | 			    if test "${UNIVERSAL_ARCHS}" = "all"; then | 
 | 5633 | 				    # Ensure that the default platform for a | 
 | 5634 | 				    # 4-way universal build is OSX 10.5, | 
 | 5635 | 				    # that's the first OS release where | 
 | 5636 | 				    # 4-way builds make sense. | 
 | 5637 | 				    cur_target='10.5' | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 5638 |  | 
 | 5639 | 			    elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
 | 5640 | 				    cur_target='10.5' | 
 | 5641 |  | 
 | 5642 | 			    elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
 | 5643 | 				    cur_target='10.5' | 
 | 5644 |  | 
 | 5645 | 			    elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
 | 5646 | 				    cur_target='10.5' | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5647 | 			    fi | 
 | 5648 | 		    else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 5649 | 			    if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5650 | 				    # On Intel macs default to a deployment | 
 | 5651 | 				    # target of 10.4, that's the first OSX | 
 | 5652 | 				    # release with Intel support. | 
 | 5653 | 				    cur_target="10.4" | 
 | 5654 | 			    fi | 
 | 5655 | 		    fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5656 | 	    fi | 
 | 5657 | 	    CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
 | 5658 |  | 
 | 5659 | 	    # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 5660 | 	    # environment with a value that is the same as what we'll use | 
 | 5661 | 	    # in the Makefile to ensure that we'll get the same compiler | 
 | 5662 | 	    # environment during configure and build time. | 
 | 5663 | 	    MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 5664 | 	    export MACOSX_DEPLOYMENT_TARGET | 
 | 5665 | 	    EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 5666 |  | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5667 | 	    if test "${enable_universalsdk}"; then | 
 | 5668 | 		UNIVERSAL_ARCH_FLAGS="" | 
 | 5669 | 	        if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
 | 5670 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 5671 | 		   ARCH_RUN_32BIT="" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 5672 | 		   LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5673 |  | 
 | 5674 | 	         elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
 | 5675 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 5676 | 		   LIPO_32BIT_FLAGS="" | 
 | 5677 | 		   ARCH_RUN_32BIT="true" | 
 | 5678 |  | 
 | 5679 | 	         elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
 | 5680 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 5681 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 5682 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5683 |  | 
 | 5684 | 	         elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
 | 5685 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 5686 | 		   LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 5687 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5688 |  | 
 | 5689 | 	         elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
 | 5690 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 5691 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 5692 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5693 |  | 
 | 5694 | 		 else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5695 | 	           as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5696 |  | 
 | 5697 | 		 fi | 
 | 5698 |  | 
 | 5699 |  | 
| Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 5700 | 		CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | 
 | 5701 | 		if test "${UNIVERSALSDK}" != "/" | 
 | 5702 | 		then | 
 | 5703 | 			CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 5704 | 			LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 5705 | 			CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5706 | 		fi | 
 | 5707 |  | 
 | 5708 | 	    fi | 
 | 5709 |  | 
 | 5710 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5711 | 	    ;; | 
 | 5712 | 	OSF*) | 
 | 5713 | 	    BASECFLAGS="$BASECFLAGS -mieee" | 
 | 5714 | 	    ;; | 
 | 5715 |     esac | 
 | 5716 |     ;; | 
 | 5717 |  | 
 | 5718 | *) | 
 | 5719 |     case $ac_sys_system in | 
 | 5720 |     OpenUNIX*|UnixWare*) | 
 | 5721 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 5722 | 	;; | 
 | 5723 |     OSF*) | 
 | 5724 | 	BASECFLAGS="$BASECFLAGS -ieee -std" | 
 | 5725 |     	;; | 
 | 5726 |     SCO_SV*) | 
 | 5727 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 5728 | 	;; | 
 | 5729 |     esac | 
 | 5730 |     ;; | 
 | 5731 | esac | 
 | 5732 |  | 
 | 5733 | if test "$Py_DEBUG" = 'true'; then | 
 | 5734 |   : | 
 | 5735 | else | 
 | 5736 |   OPT="-DNDEBUG $OPT" | 
 | 5737 | fi | 
 | 5738 |  | 
 | 5739 | if test "$ac_arch_flags" | 
 | 5740 | then | 
 | 5741 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 5742 | fi | 
 | 5743 |  | 
 | 5744 | # disable check for icc since it seems to pass, but generates a warning | 
 | 5745 | if test "$CC" = icc | 
 | 5746 | then | 
 | 5747 |   ac_cv_opt_olimit_ok=no | 
 | 5748 | fi | 
 | 5749 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
 | 5751 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5752 | if ${ac_cv_opt_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5753 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5754 | else | 
 | 5755 |   ac_save_cc="$CC" | 
 | 5756 | CC="$CC -OPT:Olimit=0" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5758 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5759 |  | 
 | 5760 | int | 
 | 5761 | main () | 
 | 5762 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5763 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5764 |   ; | 
 | 5765 |   return 0; | 
 | 5766 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5767 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5768 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5769 |   ac_cv_opt_olimit_ok=yes | 
 | 5770 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5771 |   ac_cv_opt_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5772 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5773 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5775 | CC="$ac_save_cc" | 
 | 5776 | fi | 
 | 5777 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 | 
 | 5779 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5780 | if test $ac_cv_opt_olimit_ok = yes; then | 
 | 5781 |     case $ac_sys_system in | 
 | 5782 | 	# XXX is this branch needed? On MacOSX 10.2.2 the result of the | 
 | 5783 | 	# olimit_ok test is "no".  Is it "yes" in some other Darwin-esque | 
 | 5784 | 	# environment? | 
 | 5785 |         Darwin*) | 
 | 5786 | 	    ;; | 
| Trent Nelson | 34562e1 | 2012-10-17 18:01:12 -0400 | [diff] [blame] | 5787 |         # XXX thankfully this useless troublemaker of a flag has been | 
 | 5788 |         # eradicated in the 3.x line.  For now, make sure it isn't picked | 
 | 5789 |         # up by any of our other platforms that use CC. | 
 | 5790 |         AIX*|SunOS*|HP-UX*|IRIX*) | 
 | 5791 |             ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5792 |         *) | 
 | 5793 | 	    BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" | 
 | 5794 | 	    ;; | 
 | 5795 |     esac | 
 | 5796 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5797 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 | 
 | 5798 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5799 |   if ${ac_cv_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5800 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5801 | else | 
 | 5802 |   ac_save_cc="$CC" | 
 | 5803 |   CC="$CC -Olimit 1500" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5804 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5805 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5806 |  | 
 | 5807 | int | 
 | 5808 | main () | 
 | 5809 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5810 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5811 |   ; | 
 | 5812 |   return 0; | 
 | 5813 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5814 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5815 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5816 |   ac_cv_olimit_ok=yes | 
 | 5817 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5818 |   ac_cv_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5819 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5820 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5822 |   CC="$ac_save_cc" | 
 | 5823 | fi | 
 | 5824 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5825 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 | 
 | 5826 | $as_echo "$ac_cv_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5827 |   if test $ac_cv_olimit_ok = yes; then | 
| Stefan Krah | 6747326 | 2012-11-29 00:17:05 +0100 | [diff] [blame] | 5828 |     case $ac_sys_system in | 
 | 5829 |         # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive. | 
 | 5830 |         HP-UX*) | 
 | 5831 |             ;; | 
 | 5832 |         *) | 
 | 5833 |             BASECFLAGS="$BASECFLAGS -Olimit 1500" | 
 | 5834 |             ;; | 
 | 5835 |     esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5836 |   fi | 
 | 5837 | fi | 
 | 5838 |  | 
 | 5839 | # Check whether GCC supports PyArg_ParseTuple format | 
 | 5840 | if test "$GCC" = "yes" | 
 | 5841 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5842 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
 | 5843 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5844 |   save_CFLAGS=$CFLAGS | 
 | 5845 |   CFLAGS="$CFLAGS -Werror" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5846 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5847 | /* end confdefs.h.  */ | 
 | 5848 |  | 
 | 5849 |     void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5850 | int | 
 | 5851 | main () | 
 | 5852 | { | 
 | 5853 |  | 
 | 5854 |   ; | 
 | 5855 |   return 0; | 
 | 5856 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5857 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5858 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5859 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5860 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5861 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5862 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5863 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5864 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5865 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5866 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5867 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5868 |  | 
 | 5869 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5870 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5871 |  | 
 | 5872 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5874 |   CFLAGS=$save_CFLAGS | 
 | 5875 | fi | 
 | 5876 |  | 
 | 5877 | # On some compilers, pthreads are available without further options | 
 | 5878 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 5879 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 5880 | # So we have to see first whether pthreads are available without | 
 | 5881 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 5883 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5884 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5885 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5886 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5887 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5888 |   ac_cv_pthread_is_default=no | 
 | 5889 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5890 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5891 | /* end confdefs.h.  */ | 
 | 5892 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 5893 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5894 | #include <pthread.h> | 
 | 5895 |  | 
 | 5896 | void* routine(void* p){return NULL;} | 
 | 5897 |  | 
 | 5898 | int main(){ | 
 | 5899 |   pthread_t p; | 
 | 5900 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5901 |     return 1; | 
 | 5902 |   (void)pthread_detach(p); | 
 | 5903 |   return 0; | 
 | 5904 | } | 
 | 5905 |  | 
 | 5906 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5907 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5908 |  | 
 | 5909 |   ac_cv_pthread_is_default=yes | 
 | 5910 |   ac_cv_kthread=no | 
 | 5911 |   ac_cv_pthread=no | 
 | 5912 |  | 
 | 5913 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5914 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5915 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5916 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5917 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5918 | fi | 
 | 5919 |  | 
 | 5920 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5921 | fi | 
 | 5922 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 5924 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5925 |  | 
 | 5926 |  | 
 | 5927 | if test $ac_cv_pthread_is_default = yes | 
 | 5928 | then | 
 | 5929 |   ac_cv_kpthread=no | 
 | 5930 | else | 
 | 5931 | # -Kpthread, if available, provides the right #defines | 
 | 5932 | # and linker options to make pthread_create available | 
 | 5933 | # Some compilers won't report that they do not support -Kpthread, | 
 | 5934 | # so we need to run a program to see whether it really made the | 
 | 5935 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 5937 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5938 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5939 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5940 | else | 
 | 5941 |   ac_save_cc="$CC" | 
 | 5942 | CC="$CC -Kpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5943 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5944 |   ac_cv_kpthread=no | 
 | 5945 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5946 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5947 | /* end confdefs.h.  */ | 
 | 5948 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 5949 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5950 | #include <pthread.h> | 
 | 5951 |  | 
 | 5952 | void* routine(void* p){return NULL;} | 
 | 5953 |  | 
 | 5954 | int main(){ | 
 | 5955 |   pthread_t p; | 
 | 5956 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5957 |     return 1; | 
 | 5958 |   (void)pthread_detach(p); | 
 | 5959 |   return 0; | 
 | 5960 | } | 
 | 5961 |  | 
 | 5962 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5963 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5964 |   ac_cv_kpthread=yes | 
 | 5965 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5966 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5967 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5968 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5969 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5970 | fi | 
 | 5971 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5972 | CC="$ac_save_cc" | 
 | 5973 | fi | 
 | 5974 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 5976 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5977 | fi | 
 | 5978 |  | 
 | 5979 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 5980 | then | 
 | 5981 | # -Kthread, if available, provides the right #defines | 
 | 5982 | # and linker options to make pthread_create available | 
 | 5983 | # Some compilers won't report that they do not support -Kthread, | 
 | 5984 | # so we need to run a program to see whether it really made the | 
 | 5985 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 5987 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5988 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5989 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5990 | else | 
 | 5991 |   ac_save_cc="$CC" | 
 | 5992 | CC="$CC -Kthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5993 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5994 |   ac_cv_kthread=no | 
 | 5995 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5996 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5997 | /* end confdefs.h.  */ | 
 | 5998 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 5999 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6000 | #include <pthread.h> | 
 | 6001 |  | 
 | 6002 | void* routine(void* p){return NULL;} | 
 | 6003 |  | 
 | 6004 | int main(){ | 
 | 6005 |   pthread_t p; | 
 | 6006 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6007 |     return 1; | 
 | 6008 |   (void)pthread_detach(p); | 
 | 6009 |   return 0; | 
 | 6010 | } | 
 | 6011 |  | 
 | 6012 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6013 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6014 |   ac_cv_kthread=yes | 
 | 6015 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6016 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6017 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6018 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6019 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6020 | fi | 
 | 6021 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6022 | CC="$ac_save_cc" | 
 | 6023 | fi | 
 | 6024 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 6026 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6027 | fi | 
 | 6028 |  | 
 | 6029 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 6030 | then | 
 | 6031 | # -pthread, if available, provides the right #defines | 
 | 6032 | # and linker options to make pthread_create available | 
 | 6033 | # Some compilers won't report that they do not support -pthread, | 
 | 6034 | # so we need to run a program to see whether it really made the | 
 | 6035 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 6037 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6038 | if ${ac_cv_thread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6039 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6040 | else | 
 | 6041 |   ac_save_cc="$CC" | 
 | 6042 | CC="$CC -pthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6043 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6044 |   ac_cv_pthread=no | 
 | 6045 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6046 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6047 | /* end confdefs.h.  */ | 
 | 6048 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6049 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6050 | #include <pthread.h> | 
 | 6051 |  | 
 | 6052 | void* routine(void* p){return NULL;} | 
 | 6053 |  | 
 | 6054 | int main(){ | 
 | 6055 |   pthread_t p; | 
 | 6056 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6057 |     return 1; | 
 | 6058 |   (void)pthread_detach(p); | 
 | 6059 |   return 0; | 
 | 6060 | } | 
 | 6061 |  | 
 | 6062 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6063 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6064 |   ac_cv_pthread=yes | 
 | 6065 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6066 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6067 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6068 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6069 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6070 | fi | 
 | 6071 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6072 | CC="$ac_save_cc" | 
 | 6073 | fi | 
 | 6074 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 6076 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6077 | fi | 
 | 6078 |  | 
 | 6079 | # If we have set a CC compiler flag for thread support then | 
 | 6080 | # check if it works for CXX, too. | 
 | 6081 | ac_cv_cxx_thread=no | 
 | 6082 | if test ! -z "$CXX" | 
 | 6083 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 6085 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6086 | ac_save_cxx="$CXX" | 
 | 6087 |  | 
 | 6088 | if test "$ac_cv_kpthread" = "yes" | 
 | 6089 | then | 
 | 6090 |   CXX="$CXX -Kpthread" | 
 | 6091 |   ac_cv_cxx_thread=yes | 
 | 6092 | elif test "$ac_cv_kthread" = "yes" | 
 | 6093 | then | 
 | 6094 |   CXX="$CXX -Kthread" | 
 | 6095 |   ac_cv_cxx_thread=yes | 
 | 6096 | elif test "$ac_cv_pthread" = "yes" | 
 | 6097 | then | 
 | 6098 |   CXX="$CXX -pthread" | 
 | 6099 |   ac_cv_cxx_thread=yes | 
 | 6100 | fi | 
 | 6101 |  | 
 | 6102 | if test $ac_cv_cxx_thread = yes | 
 | 6103 | then | 
 | 6104 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 6105 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 6106 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 6107 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 6108 |   then | 
 | 6109 |     ac_cv_cxx_thread=yes | 
 | 6110 |   else | 
 | 6111 |     ac_cv_cxx_thread=no | 
 | 6112 |   fi | 
 | 6113 |   rm -fr conftest* | 
 | 6114 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 6116 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6117 | fi | 
 | 6118 | CXX="$ac_save_cxx" | 
 | 6119 |  | 
 | 6120 |  | 
 | 6121 | # checks for header files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 6123 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6124 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6125 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6126 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6127 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6128 | /* end confdefs.h.  */ | 
 | 6129 | #include <stdlib.h> | 
 | 6130 | #include <stdarg.h> | 
 | 6131 | #include <string.h> | 
 | 6132 | #include <float.h> | 
 | 6133 |  | 
 | 6134 | int | 
 | 6135 | main () | 
 | 6136 | { | 
 | 6137 |  | 
 | 6138 |   ; | 
 | 6139 |   return 0; | 
 | 6140 | } | 
 | 6141 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6142 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6143 |   ac_cv_header_stdc=yes | 
 | 6144 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6145 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6146 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6148 |  | 
 | 6149 | if test $ac_cv_header_stdc = yes; then | 
 | 6150 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6151 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6152 | /* end confdefs.h.  */ | 
 | 6153 | #include <string.h> | 
 | 6154 |  | 
 | 6155 | _ACEOF | 
 | 6156 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6157 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 6158 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6159 | else | 
 | 6160 |   ac_cv_header_stdc=no | 
 | 6161 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6162 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6163 |  | 
 | 6164 | fi | 
 | 6165 |  | 
 | 6166 | if test $ac_cv_header_stdc = yes; then | 
 | 6167 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6168 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6169 | /* end confdefs.h.  */ | 
 | 6170 | #include <stdlib.h> | 
 | 6171 |  | 
 | 6172 | _ACEOF | 
 | 6173 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6174 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 6175 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6176 | else | 
 | 6177 |   ac_cv_header_stdc=no | 
 | 6178 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6179 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6180 |  | 
 | 6181 | fi | 
 | 6182 |  | 
 | 6183 | if test $ac_cv_header_stdc = yes; then | 
 | 6184 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6185 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6186 |   : | 
 | 6187 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6188 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6189 | /* end confdefs.h.  */ | 
 | 6190 | #include <ctype.h> | 
 | 6191 | #include <stdlib.h> | 
 | 6192 | #if ((' ' & 0x0FF) == 0x020) | 
 | 6193 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 6194 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 6195 | #else | 
 | 6196 | # define ISLOWER(c) \ | 
 | 6197 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6198 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6199 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 6200 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6201 | #endif | 
 | 6202 |  | 
 | 6203 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6204 | int | 
 | 6205 | main () | 
 | 6206 | { | 
 | 6207 |   int i; | 
 | 6208 |   for (i = 0; i < 256; i++) | 
 | 6209 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 6210 | 	|| toupper (i) != TOUPPER (i)) | 
 | 6211 |       return 2; | 
 | 6212 |   return 0; | 
 | 6213 | } | 
 | 6214 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6215 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 6216 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6217 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6218 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6219 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6220 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6221 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6222 | fi | 
 | 6223 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6224 | fi | 
 | 6225 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 6227 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6228 | if test $ac_cv_header_stdc = yes; then | 
 | 6229 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6230 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6231 |  | 
 | 6232 | fi | 
 | 6233 |  | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6234 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ | 
 | 6235 | fcntl.h grp.h \ | 
| Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 6236 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 6237 | 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] | 6238 | unistd.h utime.h \ | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6239 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
 | 6240 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6241 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 6242 | sys/termio.h sys/time.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6243 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ | 
| Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 6244 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6245 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6246 | do : | 
 | 6247 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6248 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6249 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6250 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6251 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6252 | _ACEOF | 
 | 6253 |  | 
 | 6254 | fi | 
 | 6255 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6256 | done | 
 | 6257 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6258 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6259 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6260 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 6262 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6263 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6264 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6265 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6266 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6267 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6268 | #include <sys/types.h> | 
 | 6269 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6270 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6271 | int | 
 | 6272 | main () | 
 | 6273 | { | 
 | 6274 | if ((DIR *) 0) | 
 | 6275 | return 0; | 
 | 6276 |   ; | 
 | 6277 |   return 0; | 
 | 6278 | } | 
 | 6279 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6280 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6281 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6282 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6283 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6284 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6286 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6287 | eval ac_res=\$$as_ac_Header | 
 | 6288 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 6289 | $as_echo "$ac_res" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6290 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6291 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6292 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6293 | _ACEOF | 
 | 6294 |  | 
 | 6295 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6296 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6297 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6298 | done | 
 | 6299 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 6300 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6301 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6302 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6303 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6304 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6305 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6306 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6308 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6309 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6310 | /* Override any GCC internal prototype to avoid an error. | 
 | 6311 |    Use char because int might match the return type of a GCC | 
 | 6312 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6313 | #ifdef __cplusplus | 
 | 6314 | extern "C" | 
 | 6315 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6316 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6317 | int | 
 | 6318 | main () | 
 | 6319 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6320 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6321 |   ; | 
 | 6322 |   return 0; | 
 | 6323 | } | 
 | 6324 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6325 | for ac_lib in '' dir; do | 
 | 6326 |   if test -z "$ac_lib"; then | 
 | 6327 |     ac_res="none required" | 
 | 6328 |   else | 
 | 6329 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6330 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6331 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6332 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6333 |   ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6334 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6335 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6336 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6337 |   if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6338 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6339 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6340 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6341 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6342 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6343 | else | 
 | 6344 |   ac_cv_search_opendir=no | 
 | 6345 | fi | 
 | 6346 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6347 | LIBS=$ac_func_search_save_LIBS | 
 | 6348 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6350 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6351 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6352 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6353 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6354 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6355 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6356 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6357 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6358 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6359 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6360 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6361 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6362 | else | 
 | 6363 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6365 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6366 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6367 | /* Override any GCC internal prototype to avoid an error. | 
 | 6368 |    Use char because int might match the return type of a GCC | 
 | 6369 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6370 | #ifdef __cplusplus | 
 | 6371 | extern "C" | 
 | 6372 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6373 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6374 | int | 
 | 6375 | main () | 
 | 6376 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6377 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6378 |   ; | 
 | 6379 |   return 0; | 
 | 6380 | } | 
 | 6381 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6382 | for ac_lib in '' x; do | 
 | 6383 |   if test -z "$ac_lib"; then | 
 | 6384 |     ac_res="none required" | 
 | 6385 |   else | 
 | 6386 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6387 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6388 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6389 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6390 |   ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6391 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6392 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6393 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6394 |   if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6395 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6396 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6397 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6398 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6399 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6400 | else | 
 | 6401 |   ac_cv_search_opendir=no | 
 | 6402 | fi | 
 | 6403 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6404 | LIBS=$ac_func_search_save_LIBS | 
 | 6405 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6407 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6408 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6409 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6410 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6411 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6412 | fi | 
 | 6413 |  | 
 | 6414 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6415 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 6417 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6418 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6419 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6420 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6421 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6422 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6423 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6424 | int | 
 | 6425 | main () | 
 | 6426 | { | 
 | 6427 | return makedev(0, 0); | 
 | 6428 |   ; | 
 | 6429 |   return 0; | 
 | 6430 | } | 
 | 6431 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6432 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6433 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 6434 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6435 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6436 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6437 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6438 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6439 |  | 
 | 6440 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 6442 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6443 |  | 
 | 6444 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6445 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6446 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6447 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6448 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6449 |  | 
 | 6450 | fi | 
 | 6451 |  | 
 | 6452 |  | 
 | 6453 |  | 
 | 6454 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6455 |     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6456 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6457 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6458 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6459 |  | 
 | 6460 | fi | 
 | 6461 |  | 
 | 6462 |  | 
 | 6463 |   fi | 
 | 6464 | fi | 
 | 6465 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6466 |  | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6467 | # On Solaris, term.h requires curses.h | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6468 | for ac_header in term.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6469 | do : | 
 | 6470 |   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] | 6471 | #ifdef HAVE_CURSES_H | 
 | 6472 | #include <curses.h> | 
 | 6473 | #endif | 
 | 6474 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6475 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6476 | if test "x$ac_cv_header_term_h" = xyes; then : | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6477 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6478 | #define HAVE_TERM_H 1 | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6479 | _ACEOF | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6480 |  | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6481 | fi | 
 | 6482 |  | 
 | 6483 | done | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6484 |  | 
 | 6485 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6486 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6487 | for ac_header in linux/netlink.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6488 | do : | 
 | 6489 |   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] | 6490 | #ifdef HAVE_ASM_TYPES_H | 
 | 6491 | #include <asm/types.h> | 
 | 6492 | #endif | 
 | 6493 | #ifdef HAVE_SYS_SOCKET_H | 
 | 6494 | #include <sys/socket.h> | 
 | 6495 | #endif | 
 | 6496 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6497 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6498 | 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] | 6499 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6500 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6501 | _ACEOF | 
 | 6502 |  | 
 | 6503 | fi | 
 | 6504 |  | 
 | 6505 | done | 
 | 6506 |  | 
 | 6507 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6508 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6509 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 6511 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 6512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6513 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6514 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6515 |  | 
 | 6516 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6517 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6518 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6519 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6520 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6521 |  | 
 | 6522 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6523 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6524 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6525 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6526 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6527 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6528 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 6530 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6531 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6532 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 6534 | $as_echo_n "checking for makedev... " >&6; } | 
 | 6535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6536 | /* end confdefs.h.  */ | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6537 |  | 
 | 6538 | #if defined(MAJOR_IN_MKDEV) | 
 | 6539 | #include <sys/mkdev.h> | 
 | 6540 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 6541 | #include <sys/sysmacros.h> | 
 | 6542 | #else | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6543 | #include <sys/types.h> | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6544 | #endif | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6545 | int | 
 | 6546 | main () | 
 | 6547 | { | 
 | 6548 |  makedev(0, 0) | 
 | 6549 |   ; | 
 | 6550 |   return 0; | 
 | 6551 | } | 
 | 6552 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6553 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6554 |   ac_cv_has_makedev=yes | 
 | 6555 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6556 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6557 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6558 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6559 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6560 | if test "$ac_cv_has_makedev" = "no"; then | 
 | 6561 |     # we didn't link, try if _OSF_SOURCE will allow us to link | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6562 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6563 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6564 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6565 | #define _OSF_SOURCE 1 | 
 | 6566 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6567 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6568 | int | 
 | 6569 | main () | 
 | 6570 | { | 
 | 6571 |  makedev(0, 0) | 
 | 6572 |   ; | 
 | 6573 |   return 0; | 
 | 6574 | } | 
 | 6575 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6576 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6577 |   ac_cv_has_makedev=yes | 
 | 6578 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6579 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6580 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6581 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6582 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6583 |     if test "$ac_cv_has_makedev" = "yes"; then | 
 | 6584 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6585 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6586 |  | 
 | 6587 |     fi | 
 | 6588 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 6590 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6591 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 6592 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6593 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6594 |  | 
 | 6595 | fi | 
 | 6596 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6597 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 6598 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 6599 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 6600 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 6601 | # structures (such as rlimit64) without declaring them. As a | 
 | 6602 | # work-around, disable LFS on such configurations | 
 | 6603 |  | 
 | 6604 | use_lfs=yes | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 6606 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 6607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6608 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6609 |  | 
 | 6610 | #define _LARGEFILE_SOURCE 1 | 
 | 6611 | #define _FILE_OFFSET_BITS 64 | 
 | 6612 | #include <sys/resource.h> | 
 | 6613 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6614 | int | 
 | 6615 | main () | 
 | 6616 | { | 
 | 6617 | struct rlimit foo; | 
 | 6618 |   ; | 
 | 6619 |   return 0; | 
 | 6620 | } | 
 | 6621 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6622 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6623 |   sol_lfs_bug=no | 
 | 6624 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6625 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6626 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 6629 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6630 | if test "$sol_lfs_bug" = "yes"; then | 
 | 6631 |   use_lfs=no | 
 | 6632 | fi | 
 | 6633 |  | 
 | 6634 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6635 | # Two defines needed to enable largefile support on various platforms | 
 | 6636 | # These may affect some typedefs | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 6637 | case $ac_sys_system/$ac_sys_release in | 
 | 6638 | AIX*) | 
 | 6639 |  | 
 | 6640 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 6641 |  | 
 | 6642 |     ;; | 
 | 6643 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6644 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6645 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6646 |  | 
 | 6647 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6648 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6649 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6650 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6651 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6652 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 6653 | cat >> confdefs.h <<\EOF | 
 | 6654 | #if defined(SCO_DS) | 
 | 6655 | #undef _OFF_T | 
 | 6656 | #endif | 
 | 6657 | EOF | 
 | 6658 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6659 | # Type availability checks | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6660 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6661 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6662 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6663 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6664 |  | 
 | 6665 | cat >>confdefs.h <<_ACEOF | 
 | 6666 | #define mode_t int | 
 | 6667 | _ACEOF | 
 | 6668 |  | 
 | 6669 | fi | 
 | 6670 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6671 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6672 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6673 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6674 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6675 |  | 
 | 6676 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6677 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6678 | _ACEOF | 
 | 6679 |  | 
 | 6680 | fi | 
 | 6681 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6682 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6683 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6684 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6685 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6686 |  | 
 | 6687 | cat >>confdefs.h <<_ACEOF | 
 | 6688 | #define pid_t int | 
 | 6689 | _ACEOF | 
 | 6690 |  | 
 | 6691 | fi | 
 | 6692 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6693 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6694 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 6695 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6696 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6697 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6698 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6699 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6700 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6701 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6702 |  | 
 | 6703 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6704 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6705 | _ACEOF | 
 | 6706 |  | 
 | 6707 | fi | 
 | 6708 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 6710 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6711 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6712 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6713 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6714 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6715 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6716 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 |  | 
 | 6718 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6719 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6720 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6721 |   ac_cv_type_uid_t=yes | 
 | 6722 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6723 |   ac_cv_type_uid_t=no | 
 | 6724 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6725 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6726 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6727 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 6729 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6730 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6731 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6732 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 |  | 
 | 6734 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6735 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6736 |  | 
 | 6737 | fi | 
 | 6738 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 6739 |  | 
 | 6740 | # There are two separate checks for each of the exact-width integer types we | 
 | 6741 | # need.  First we check whether the type is available using the usual | 
 | 6742 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
 | 6743 | # and <stdint.h> where available).  We then also use the special type checks of | 
 | 6744 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
 | 6745 | # directly, #define's uint32_t to be a suitable type. | 
 | 6746 |  | 
 | 6747 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
 | 6748 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
 | 6749 |  | 
 | 6750 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
 | 6751 |  | 
 | 6752 | fi | 
 | 6753 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6754 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 6755 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6756 |   no|yes) ;; #( | 
 | 6757 |   *) | 
 | 6758 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6759 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6760 |  | 
 | 6761 |  | 
 | 6762 | cat >>confdefs.h <<_ACEOF | 
 | 6763 | #define uint32_t $ac_cv_c_uint32_t | 
 | 6764 | _ACEOF | 
 | 6765 | ;; | 
 | 6766 |   esac | 
 | 6767 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 6768 |  | 
 | 6769 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
 | 6770 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
 | 6771 |  | 
 | 6772 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
 | 6773 |  | 
 | 6774 | fi | 
 | 6775 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6776 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 6777 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6778 |   no|yes) ;; #( | 
 | 6779 |   *) | 
 | 6780 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6781 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6782 |  | 
 | 6783 |  | 
 | 6784 | cat >>confdefs.h <<_ACEOF | 
 | 6785 | #define uint64_t $ac_cv_c_uint64_t | 
 | 6786 | _ACEOF | 
 | 6787 | ;; | 
 | 6788 |   esac | 
 | 6789 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 6790 |  | 
 | 6791 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
 | 6792 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
 | 6793 |  | 
 | 6794 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
 | 6795 |  | 
 | 6796 | fi | 
 | 6797 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6798 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 6799 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6800 |   no|yes) ;; #( | 
 | 6801 |   *) | 
 | 6802 |  | 
 | 6803 | cat >>confdefs.h <<_ACEOF | 
 | 6804 | #define int32_t $ac_cv_c_int32_t | 
 | 6805 | _ACEOF | 
 | 6806 | ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6807 | esac | 
 | 6808 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 6809 |  | 
 | 6810 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
 | 6811 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
 | 6812 |  | 
 | 6813 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
 | 6814 |  | 
 | 6815 | fi | 
 | 6816 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6817 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 6818 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6819 |   no|yes) ;; #( | 
 | 6820 |   *) | 
 | 6821 |  | 
 | 6822 | cat >>confdefs.h <<_ACEOF | 
 | 6823 | #define int64_t $ac_cv_c_int64_t | 
 | 6824 | _ACEOF | 
 | 6825 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6826 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6827 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 6828 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6829 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6830 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6831 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6832 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6833 |  | 
 | 6834 | fi | 
 | 6835 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6836 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6837 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6838 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6839 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6840 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6841 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6842 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 6844 | $as_echo_n "checking size of int... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6845 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6846 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6847 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6848 |   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] | 6849 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6850 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6851 |   if test "$ac_cv_type_int" = yes; then | 
 | 6852 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6853 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6854 | as_fn_error 77 "cannot compute sizeof (int) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6855 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6856 |    else | 
 | 6857 |      ac_cv_sizeof_int=0 | 
 | 6858 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6859 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6860 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6861 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 6863 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6864 |  | 
 | 6865 |  | 
 | 6866 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6867 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6868 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6869 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6870 |  | 
 | 6871 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6872 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6873 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6874 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6875 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 6877 | $as_echo_n "checking size of long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6878 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6879 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6880 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6881 |   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] | 6882 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6883 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6884 |   if test "$ac_cv_type_long" = yes; then | 
 | 6885 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6886 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6887 | as_fn_error 77 "cannot compute sizeof (long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6888 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6889 |    else | 
 | 6890 |      ac_cv_sizeof_long=0 | 
 | 6891 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6893 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6894 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 6896 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6897 |  | 
 | 6898 |  | 
 | 6899 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6900 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6901 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6902 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6903 |  | 
 | 6904 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6905 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6906 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6907 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6908 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 6910 | $as_echo_n "checking size of void *... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6911 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6912 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6913 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6914 |   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] | 6915 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6916 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6917 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 6918 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6919 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6920 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6921 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6922 |    else | 
 | 6923 |      ac_cv_sizeof_void_p=0 | 
 | 6924 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6925 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6926 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6927 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 6929 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6930 |  | 
 | 6931 |  | 
 | 6932 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6933 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6934 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6935 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6936 |  | 
 | 6937 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6938 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6939 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6940 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6941 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 6943 | $as_echo_n "checking size of short... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6944 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6945 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6946 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6947 |   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] | 6948 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6949 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6950 |   if test "$ac_cv_type_short" = yes; then | 
 | 6951 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6952 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6953 | as_fn_error 77 "cannot compute sizeof (short) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6954 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6955 |    else | 
 | 6956 |      ac_cv_sizeof_short=0 | 
 | 6957 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6958 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6959 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6960 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 6962 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6963 |  | 
 | 6964 |  | 
 | 6965 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6966 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6967 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6968 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6969 |  | 
 | 6970 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6971 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6972 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6973 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6974 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 6976 | $as_echo_n "checking size of float... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6977 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6978 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6979 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6980 |   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] | 6981 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6983 |   if test "$ac_cv_type_float" = yes; then | 
 | 6984 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6986 | as_fn_error 77 "cannot compute sizeof (float) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6987 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6988 |    else | 
 | 6989 |      ac_cv_sizeof_float=0 | 
 | 6990 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6991 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6992 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6993 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 6995 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6996 |  | 
 | 6997 |  | 
 | 6998 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6999 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7000 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7001 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7002 |  | 
 | 7003 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7004 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7005 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7006 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7007 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 7009 | $as_echo_n "checking size of double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7010 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7011 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7012 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7013 |   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] | 7014 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7015 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7016 |   if test "$ac_cv_type_double" = yes; then | 
 | 7017 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7019 | as_fn_error 77 "cannot compute sizeof (double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7020 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7021 |    else | 
 | 7022 |      ac_cv_sizeof_double=0 | 
 | 7023 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7024 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7025 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7026 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 7028 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7029 |  | 
 | 7030 |  | 
 | 7031 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7033 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7034 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7035 |  | 
 | 7036 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7037 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7038 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7039 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7040 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 7042 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7043 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7044 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7045 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7046 |   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] | 7047 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7048 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7049 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 7050 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7051 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7052 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7053 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7054 |    else | 
 | 7055 |      ac_cv_sizeof_fpos_t=0 | 
 | 7056 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7058 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7059 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 7061 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7062 |  | 
 | 7063 |  | 
 | 7064 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7065 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7066 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7067 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7068 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7069 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7070 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7071 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7072 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7073 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 7075 | $as_echo_n "checking size of size_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7076 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7077 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7078 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7079 |   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] | 7080 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7081 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7082 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 7083 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7084 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7085 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7086 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7087 |    else | 
 | 7088 |      ac_cv_sizeof_size_t=0 | 
 | 7089 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7090 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7091 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7092 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 7094 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7095 |  | 
 | 7096 |  | 
 | 7097 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7098 | cat >>confdefs.h <<_ACEOF | 
 | 7099 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 7100 | _ACEOF | 
 | 7101 |  | 
 | 7102 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7103 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7104 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7105 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7106 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 7108 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7109 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7110 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7111 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7112 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7113 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7114 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7115 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 7116 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7117 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7118 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7119 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7120 |    else | 
 | 7121 |      ac_cv_sizeof_pid_t=0 | 
 | 7122 |    fi | 
 | 7123 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7124 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7125 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 7127 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7128 |  | 
 | 7129 |  | 
 | 7130 |  | 
 | 7131 | cat >>confdefs.h <<_ACEOF | 
 | 7132 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 7133 | _ACEOF | 
 | 7134 |  | 
 | 7135 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7136 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 7138 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7139 | have_long_long=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7141 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7142 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7143 | int | 
 | 7144 | main () | 
 | 7145 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7146 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7147 |   ; | 
 | 7148 |   return 0; | 
 | 7149 | } | 
 | 7150 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7151 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7152 |  | 
 | 7153 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7154 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7155 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7156 |   have_long_long=yes | 
 | 7157 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7158 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 7161 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7162 | if test "$have_long_long" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7163 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7164 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7165 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7166 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 7168 | $as_echo_n "checking size of long long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7169 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7170 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7171 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7172 |   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] | 7173 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7174 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7175 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 7176 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7177 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7178 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7179 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7180 |    else | 
 | 7181 |      ac_cv_sizeof_long_long=0 | 
 | 7182 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7183 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7184 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7185 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 7187 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7188 |  | 
 | 7189 |  | 
 | 7190 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7191 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7192 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7193 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7194 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7195 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7196 | fi | 
 | 7197 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 7199 | $as_echo_n "checking for long double support... " >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7200 | have_long_double=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7202 | /* end confdefs.h.  */ | 
 | 7203 |  | 
 | 7204 | int | 
 | 7205 | main () | 
 | 7206 | { | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7207 | long double x; x = (long double)0; | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7208 |   ; | 
 | 7209 |   return 0; | 
 | 7210 | } | 
 | 7211 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7212 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7213 |  | 
 | 7214 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7215 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7216 |  | 
 | 7217 |   have_long_double=yes | 
 | 7218 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7219 | fi | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 7222 | $as_echo "$have_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7223 | if test "$have_long_double" = yes ; then | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7224 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7225 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7226 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7227 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 7229 | $as_echo_n "checking size of long double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7230 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7231 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7232 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7233 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7234 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7235 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7236 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 7237 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7239 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7240 | See \`config.log' for more details" "$LINENO" 5; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7241 |    else | 
 | 7242 |      ac_cv_sizeof_long_double=0 | 
 | 7243 |    fi | 
 | 7244 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7245 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7246 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 7248 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7249 |  | 
 | 7250 |  | 
 | 7251 |  | 
 | 7252 | cat >>confdefs.h <<_ACEOF | 
 | 7253 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 7254 | _ACEOF | 
 | 7255 |  | 
 | 7256 |  | 
 | 7257 | fi | 
 | 7258 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 7260 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7261 | have_c99_bool=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7263 | /* end confdefs.h.  */ | 
 | 7264 |  | 
 | 7265 | int | 
 | 7266 | main () | 
 | 7267 | { | 
 | 7268 | _Bool x; x = (_Bool)0; | 
 | 7269 |   ; | 
 | 7270 |   return 0; | 
 | 7271 | } | 
 | 7272 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7273 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7274 |  | 
 | 7275 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7276 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7277 |  | 
 | 7278 |   have_c99_bool=yes | 
 | 7279 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7280 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 7283 | $as_echo "$have_c99_bool" >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7284 | if test "$have_c99_bool" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7285 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7286 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7287 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7288 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 7290 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7291 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7292 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7293 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7294 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7295 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7296 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7297 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 7298 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7300 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7301 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7302 |    else | 
 | 7303 |      ac_cv_sizeof__Bool=0 | 
 | 7304 |    fi | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7305 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7306 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7307 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 7309 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7310 |  | 
 | 7311 |  | 
 | 7312 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7313 | cat >>confdefs.h <<_ACEOF | 
 | 7314 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 7315 | _ACEOF | 
 | 7316 |  | 
 | 7317 |  | 
 | 7318 | fi | 
 | 7319 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7320 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 7321 |         #include <stdint.h> | 
 | 7322 |         #endif | 
| Antoine Pitrou | 7be5a65 | 2010-10-10 08:14:41 +0000 | [diff] [blame] | 7323 |         #ifdef HAVE_INTTYPES_H | 
 | 7324 |         #include <inttypes.h> | 
 | 7325 |         #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7326 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7327 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7328 |  | 
 | 7329 | cat >>confdefs.h <<_ACEOF | 
 | 7330 | #define HAVE_UINTPTR_T 1 | 
 | 7331 | _ACEOF | 
 | 7332 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7333 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7334 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7335 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7336 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 7338 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7339 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7340 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7341 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7342 |   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] | 7343 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7345 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 7346 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7347 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7348 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7349 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7350 |    else | 
 | 7351 |      ac_cv_sizeof_uintptr_t=0 | 
 | 7352 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7353 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7354 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7355 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 7357 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7358 |  | 
 | 7359 |  | 
 | 7360 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7361 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7362 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7363 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7364 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7365 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7366 | fi | 
 | 7367 |  | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7368 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7369 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7370 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7371 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7372 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 7374 | $as_echo_n "checking size of off_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7375 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7376 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7377 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7378 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7379 | #ifdef HAVE_SYS_TYPES_H | 
 | 7380 | #include <sys/types.h> | 
 | 7381 | #endif | 
 | 7382 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7383 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7384 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7385 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7386 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 7387 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7388 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7389 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7390 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7391 |    else | 
 | 7392 |      ac_cv_sizeof_off_t=0 | 
 | 7393 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7394 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7395 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7396 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 7398 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7399 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7400 |  | 
 | 7401 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7402 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7403 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7404 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7405 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7406 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7407 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 7409 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7410 | if test "$have_long_long" = yes | 
 | 7411 | then | 
 | 7412 | 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] | 7413 | 	"$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] | 7414 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7415 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7416 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7417 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7418 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7419 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7420 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7421 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7422 | fi | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7423 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7424 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7425 | $as_echo "no" >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7426 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7427 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7428 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7431 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 7433 | $as_echo_n "checking size of time_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7434 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7435 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7436 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7437 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7438 | #ifdef HAVE_SYS_TYPES_H | 
 | 7439 | #include <sys/types.h> | 
 | 7440 | #endif | 
 | 7441 | #ifdef HAVE_TIME_H | 
 | 7442 | #include <time.h> | 
 | 7443 | #endif | 
 | 7444 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7445 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7446 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7447 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7448 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 7449 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7450 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7451 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7452 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7453 |    else | 
 | 7454 |      ac_cv_sizeof_time_t=0 | 
 | 7455 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7456 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7457 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7458 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 7460 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7461 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7462 |  | 
 | 7463 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7464 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7465 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7466 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7467 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7468 |  | 
 | 7469 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7470 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7471 | ac_save_cc="$CC" | 
 | 7472 | if test "$ac_cv_kpthread" = "yes" | 
 | 7473 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7474 | elif test "$ac_cv_kthread" = "yes" | 
 | 7475 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7476 | elif test "$ac_cv_pthread" = "yes" | 
 | 7477 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7478 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 7480 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7481 | have_pthread_t=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7483 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7484 |  | 
 | 7485 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7486 | int | 
 | 7487 | main () | 
 | 7488 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7489 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 |   ; | 
 | 7491 |   return 0; | 
 | 7492 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7493 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7494 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7495 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7496 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7497 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 7500 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7501 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7502 |   # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7503 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7504 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7505 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 7507 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7508 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7509 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7510 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7511 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7512 | #ifdef HAVE_PTHREAD_H | 
 | 7513 | #include <pthread.h> | 
 | 7514 | #endif | 
 | 7515 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7516 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7517 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7518 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7519 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 7520 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7521 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7522 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7523 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7524 |    else | 
 | 7525 |      ac_cv_sizeof_pthread_t=0 | 
 | 7526 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7527 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7528 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7529 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 7531 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7532 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7533 |  | 
 | 7534 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7535 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7536 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7537 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7538 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7539 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7540 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7541 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 | 
 | 7544 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7545 | # Check whether --enable-toolbox-glue was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7546 | if test "${enable_toolbox_glue+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7547 |   enableval=$enable_toolbox_glue; | 
 | 7548 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7549 |  | 
 | 7550 |  | 
 | 7551 | if test -z "$enable_toolbox_glue" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7552 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7553 | 	case $ac_sys_system/$ac_sys_release in | 
 | 7554 | 	Darwin/*) | 
 | 7555 | 		enable_toolbox_glue="yes";; | 
 | 7556 | 	*) | 
 | 7557 | 		enable_toolbox_glue="no";; | 
 | 7558 | 	esac | 
 | 7559 | fi | 
 | 7560 | case "$enable_toolbox_glue" in | 
 | 7561 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7562 | 	extra_machdep_objs="Python/mactoolboxglue.o" | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7563 | 	extra_undefs="-u _PyMac_Error" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7564 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7565 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7566 |  | 
 | 7567 | 	;; | 
 | 7568 | *) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7569 | 	extra_machdep_objs="" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 7570 | 	extra_undefs="" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7571 | 	;; | 
 | 7572 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 | 
 | 7574 | $as_echo "$enable_toolbox_glue" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7575 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7576 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7577 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7578 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7579 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7580 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 7581 |     ;; | 
 | 7582 |   Darwin/*) | 
 | 7583 |     OTHER_LIBTOOL_OPT="" | 
 | 7584 |     ;; | 
 | 7585 | esac | 
 | 7586 |  | 
 | 7587 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7588 | ARCH_RUN_32BIT="" | 
 | 7589 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7590 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7591 |   Darwin/[01567]\..*) | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7592 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 7593 |     if test "${enable_universalsdk}"; then | 
 | 7594 | 	    : | 
 | 7595 |     else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7596 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7597 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7598 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7599 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7600 |   Darwin/*) | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 7601 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7602 |     if test ${gcc_version} '<' 4.0 | 
 | 7603 |         then | 
 | 7604 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 7605 |         else | 
 | 7606 |             LIBTOOL_CRUFT="" | 
 | 7607 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7608 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7609 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7610 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7611 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7612 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7613 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7614 |     #include <unistd.h> | 
 | 7615 |     int main(int argc, char*argv[]) | 
 | 7616 |     { | 
 | 7617 |       if (sizeof(long) == 4) { | 
 | 7618 |     	  return 0; | 
 | 7619 |       } else { | 
 | 7620 |       	  return 1; | 
 | 7621 |       } | 
| Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 7622 |     } | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7623 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7624 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7625 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7626 |   ac_osx_32bit=yes | 
 | 7627 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7628 |   ac_osx_32bit=no | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7629 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7631 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7632 | fi | 
 | 7633 |  | 
 | 7634 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7635 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7636 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7637 |     	i386) | 
 | 7638 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 7639 |     		;; | 
 | 7640 |     	ppc) | 
 | 7641 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 7642 |     		;; | 
 | 7643 |     	*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7644 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7645 |     		;; | 
 | 7646 |     	esac | 
 | 7647 |     else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7648 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7649 |     	i386) | 
 | 7650 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 7651 |     		;; | 
 | 7652 |     	ppc) | 
 | 7653 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 7654 |     		;; | 
 | 7655 |     	*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7656 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7657 |     		;; | 
 | 7658 |     	esac | 
 | 7659 |  | 
 | 7660 | 	#ARCH_RUN_32BIT="true" | 
 | 7661 |     fi | 
 | 7662 |  | 
 | 7663 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7664 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7665 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7666 | esac | 
 | 7667 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 7669 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7670 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7671 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7672 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7673 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7674 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7675 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7676 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7678 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7679 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 7680 | 	if test $enable_shared = "yes" | 
 | 7681 | 	then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7682 | 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5 | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 7683 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7684 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7685 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7686 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7687 | fi | 
 | 7688 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 7690 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7691 | case $ac_sys_system/$ac_sys_release in | 
 | 7692 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7693 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7694 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7695 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7696 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 7697 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7698 |   	;; | 
 | 7699 |   *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7700 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7701 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7702 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7703 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7704 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7705 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7706 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7707 |  | 
 | 7708 |  | 
 | 7709 |  | 
 | 7710 |  | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7711 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7712 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7713 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
 | 7715 | $as_echo_n "checking SO... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7716 | if test -z "$SO" | 
 | 7717 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7718 | 	case $ac_sys_system in | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7719 | 	hp*|HP*) | 
 | 7720 | 		case `uname -m` in | 
 | 7721 | 			ia64) SO=.so;; | 
 | 7722 | 	  		*)    SO=.sl;; | 
 | 7723 | 		esac | 
 | 7724 | 		;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7725 | 	CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 7726 | 	*)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7727 | 	esac | 
| Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 7728 | else | 
 | 7729 | 	# this might also be a termcap variable, see #610332 | 
 | 7730 |         echo | 
 | 7731 |         echo '=====================================================================' | 
 | 7732 |         echo '+                                                                   +' | 
 | 7733 | 	echo '+ WARNING: You have set SO in your environment.                     +' | 
 | 7734 |         echo '+ Do you really mean to change the extension for shared libraries?  +' | 
 | 7735 |         echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
 | 7736 |         echo '+                                                                   +' | 
 | 7737 |         echo '=====================================================================' | 
 | 7738 | 	sleep 10 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7739 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
 | 7741 | $as_echo "$SO" >&6; } | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7742 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 7743 |  | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7744 | cat >>confdefs.h <<_ACEOF | 
 | 7745 | #define SHLIB_EXT "$SO" | 
 | 7746 | _ACEOF | 
 | 7747 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7748 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7749 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7750 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 7751 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 7753 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7754 | if test -z "$LDSHARED" | 
 | 7755 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7756 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7757 | 	AIX*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7758 | 		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] | 7759 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7760 | 		;; | 
 | 7761 | 	BeOS*) | 
 | 7762 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7763 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7764 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7765 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7766 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7767 | 	SunOS/5*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7768 | 		if test "$GCC" = "yes" ; then | 
 | 7769 | 			LDSHARED='$(CC) -shared' | 
 | 7770 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7771 | 		else | 
 | 7772 | 			LDSHARED='$(CC) -G' | 
 | 7773 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7774 | 		fi ;; | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 7775 | 	hp*|HP*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7776 | 		if test "$GCC" = "yes" ; then | 
 | 7777 | 			LDSHARED='$(CC) -shared' | 
 | 7778 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7779 | 		else | 
 | 7780 | 			LDSHARED='ld -b' | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 7781 | 		fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7782 | 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7783 | 	Darwin/1.3*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7784 | 		LDSHARED='$(CC) -bundle' | 
 | 7785 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7786 | 		if test "$enable_framework" ; then | 
 | 7787 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7788 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7789 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7790 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7791 | 		else | 
 | 7792 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7793 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7794 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7795 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7796 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7797 | 		LDSHARED='$(CC) -bundle' | 
 | 7798 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7799 | 		if test "$enable_framework" ; then | 
 | 7800 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7801 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7802 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7803 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7804 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7805 | 			# No framework, use the Python app as bundle-loader | 
 | 7806 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7807 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7808 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7809 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7810 | 	Darwin/*) | 
 | 7811 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 7812 | 		# This allows an extension to be used in any Python | 
| Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 7813 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 7814 | 		if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7815 | 		then | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7816 | 			if test "${enable_universalsdk}"; then | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 7817 | 				LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7818 | 			fi | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7819 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 7820 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7821 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7822 | 		else | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7823 | 			LDSHARED='$(CC) -bundle' | 
 | 7824 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7825 | 			if test "$enable_framework" ; then | 
 | 7826 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7827 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7828 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7829 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7830 | 			else | 
 | 7831 | 				# No framework, use the Python app as bundle-loader | 
 | 7832 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 7833 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7834 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7835 | 			fi | 
 | 7836 | 		fi | 
 | 7837 | 		;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7838 | 	Linux*|GNU*|QNX*) | 
 | 7839 | 		LDSHARED='$(CC) -shared' | 
 | 7840 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 7841 | 	BSD/OS*/4*) | 
 | 7842 | 		LDSHARED="gcc -shared" | 
 | 7843 | 		LDCXXSHARED="g++ -shared";; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7844 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7845 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7846 | 		then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7847 | 			LDSHARED='$(CC) -shared' | 
 | 7848 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7849 | 		else | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7850 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7851 | 		fi;; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7852 | 	OpenBSD*) | 
 | 7853 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 7854 | 		then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7855 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 7856 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7857 | 		else | 
 | 7858 | 				case `uname -r` in | 
 | 7859 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 7860 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 7861 | 				   ;; | 
 | 7862 | 				*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7863 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 7864 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7865 | 				   ;; | 
 | 7866 | 				esac | 
 | 7867 | 		fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7868 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | cb40277 | 2011-01-02 20:51:34 +0000 | [diff] [blame] | 7869 | 		LDSHARED='$(CC) -shared' | 
 | 7870 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7871 | 	OpenUNIX*|UnixWare*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7872 | 		if test "$GCC" = "yes" ; then | 
 | 7873 | 			LDSHARED='$(CC) -shared' | 
 | 7874 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7875 | 		else | 
 | 7876 | 			LDSHARED='$(CC) -G' | 
 | 7877 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7878 | 		fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7879 | 	SCO_SV*) | 
 | 7880 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 7881 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 7882 | 	CYGWIN*) | 
 | 7883 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 7884 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
 | 7885 | 	atheos*) | 
 | 7886 | 		LDSHARED="gcc -shared" | 
 | 7887 | 		LDCXXSHARED="g++ -shared";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7888 | 	*)	LDSHARED="ld";; | 
 | 7889 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7890 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 7892 | $as_echo "$LDSHARED" >&6; } | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7893 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7894 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7895 | # 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] | 7896 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 7898 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7899 | if test -z "$CCSHARED" | 
 | 7900 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7901 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7902 | 	SunOS*) if test "$GCC" = yes; | 
| Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 7903 | 		then CCSHARED="-fPIC"; | 
 | 7904 | 		elif test `uname -p` = sparc; | 
 | 7905 | 		then CCSHARED="-xcode=pic32"; | 
 | 7906 | 		else CCSHARED="-Kpic"; | 
 | 7907 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7908 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7909 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7910 | 		 else CCSHARED="+z"; | 
 | 7911 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7912 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7913 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7914 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7915 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7916 | 		if test "$GCC" = "yes" | 
 | 7917 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7918 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7919 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7920 | 	SCO_SV*) | 
 | 7921 | 		if test "$GCC" = "yes" | 
 | 7922 | 		then CCSHARED="-fPIC" | 
 | 7923 | 		else CCSHARED="-Kpic -belf" | 
 | 7924 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7925 | 	IRIX*/6*)  case $CC in | 
 | 7926 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7927 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7928 | 		   esac;; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7929 | 	atheos*) CCSHARED="-fPIC";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7930 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7931 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 7933 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7934 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7935 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 7937 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7938 | if test -z "$LINKFORSHARED" | 
 | 7939 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7940 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7941 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7942 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7943 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 7944 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7945 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7946 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7947 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | 	Darwin/*) | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7949 | 		# -u _PyMac_Error is needed to pull in the mac toolbox glue, | 
 | 7950 | 		# which is | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7951 | 		# not used by the core itself but which needs to be in the core so | 
 | 7952 | 		# that dynamically loaded extension modules have access to it. | 
| Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 7953 | 		# -prebind is no longer used, because it actually seems to give a | 
 | 7954 | 		# slowdown in stead of a speedup, maybe due to the large number of | 
 | 7955 | 		# dynamic loads Python does. | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7956 |  | 
 | 7957 | 		LINKFORSHARED="$extra_undefs" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7958 | 		if test "$enable_framework" | 
 | 7959 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7960 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7961 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7962 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7963 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7964 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7965 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7966 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7967 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 7968 | 		then | 
 | 7969 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 7970 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7971 | 	SunOS/5*) case $CC in | 
 | 7972 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7973 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7974 | 		    then | 
 | 7975 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7976 | 		    fi;; | 
 | 7977 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7978 | 	CYGWIN*) | 
 | 7979 | 		if test $enable_shared = "no" | 
 | 7980 | 		then | 
 | 7981 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 7982 | 		fi;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 7983 | 	QNX*) | 
 | 7984 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 7985 | 		# symbol table so that they can be found when a module | 
 | 7986 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 7987 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 7988 | 		# when running test_compile.py. | 
 | 7989 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7990 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7991 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 7993 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7994 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7995 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7996 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 7998 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7999 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 8000 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8001 | 	case $ac_sys_system in | 
 | 8002 | 	CYGWIN*) | 
 | 8003 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 8004 | 		# but not when building the interpreter DLL. | 
 | 8005 | 		CFLAGSFORSHARED='';; | 
 | 8006 | 	*) | 
 | 8007 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 8008 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8009 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 8011 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8012 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8013 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 8014 | # library (with --enable-shared). | 
 | 8015 | # 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] | 8016 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 8017 | # if it is not required, since it creates a dependency of the shared library | 
 | 8018 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 8019 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 8020 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8021 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 8023 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8024 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8025 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 8026 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8027 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 8029 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8030 |  | 
 | 8031 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8032 | # checks for libraries | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 8034 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8035 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8036 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8037 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8038 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8039 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8041 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8042 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8043 | /* Override any GCC internal prototype to avoid an error. | 
 | 8044 |    Use char because int might match the return type of a GCC | 
 | 8045 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 | #ifdef __cplusplus | 
 | 8047 | extern "C" | 
 | 8048 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8049 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8050 | int | 
 | 8051 | main () | 
 | 8052 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8053 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 |   ; | 
 | 8055 |   return 0; | 
 | 8056 | } | 
 | 8057 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8058 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8059 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8060 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8061 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8062 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8063 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8064 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8066 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8068 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8069 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8070 |   cat >>confdefs.h <<_ACEOF | 
 | 8071 | #define HAVE_LIBDL 1 | 
 | 8072 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8073 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8074 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8075 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8076 | fi | 
 | 8077 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 8079 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8080 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8081 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8082 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8084 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8086 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8088 | /* Override any GCC internal prototype to avoid an error. | 
 | 8089 |    Use char because int might match the return type of a GCC | 
 | 8090 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | #ifdef __cplusplus | 
 | 8092 | extern "C" | 
 | 8093 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8094 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | int | 
 | 8096 | main () | 
 | 8097 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8098 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8099 |   ; | 
 | 8100 |   return 0; | 
 | 8101 | } | 
 | 8102 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8103 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8105 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8106 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8107 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8108 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8109 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8111 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 8113 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8114 | 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] | 8115 |   cat >>confdefs.h <<_ACEOF | 
 | 8116 | #define HAVE_LIBDLD 1 | 
 | 8117 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8118 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8119 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8120 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8121 | fi | 
 | 8122 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8123 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8124 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8125 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8126 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 8127 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8128 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8129 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8130 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8131 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8133 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8135 | /* Override any GCC internal prototype to avoid an error. | 
 | 8136 |    Use char because int might match the return type of a GCC | 
 | 8137 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 | #ifdef __cplusplus | 
 | 8139 | extern "C" | 
 | 8140 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | int | 
 | 8143 | main () | 
 | 8144 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8145 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8146 |   ; | 
 | 8147 |   return 0; | 
 | 8148 | } | 
 | 8149 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8150 | for ac_lib in '' pthread rt posix4; do | 
 | 8151 |   if test -z "$ac_lib"; then | 
 | 8152 |     ac_res="none required" | 
 | 8153 |   else | 
 | 8154 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8155 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8156 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8157 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8158 |   ac_cv_search_sem_init=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8159 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8160 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8161 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8162 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8163 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8164 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8165 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8166 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8167 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8168 | else | 
 | 8169 |   ac_cv_search_sem_init=no | 
 | 8170 | fi | 
 | 8171 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8172 | LIBS=$ac_func_search_save_LIBS | 
 | 8173 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 8175 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8176 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8177 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8178 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8179 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8180 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8181 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8182 | 						# posix4 on Solaris 2.6 | 
 | 8183 | 						# pthread (first!) on Linux | 
 | 8184 | fi | 
 | 8185 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8186 | # check if we need libintl for locale functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 8188 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8189 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8190 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8191 | else | 
 | 8192 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8193 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8195 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8196 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8197 | /* Override any GCC internal prototype to avoid an error. | 
 | 8198 |    Use char because int might match the return type of a GCC | 
 | 8199 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8200 | #ifdef __cplusplus | 
 | 8201 | extern "C" | 
 | 8202 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8203 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8204 | int | 
 | 8205 | main () | 
 | 8206 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8207 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8208 |   ; | 
 | 8209 |   return 0; | 
 | 8210 | } | 
 | 8211 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8212 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8213 |   ac_cv_lib_intl_textdomain=yes | 
 | 8214 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8215 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8216 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8217 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8218 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8219 | LIBS=$ac_check_lib_save_LIBS | 
 | 8220 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 8222 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8223 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8224 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8225 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8226 |  | 
 | 8227 | fi | 
 | 8228 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8229 |  | 
 | 8230 | # checks for system dependent C++ extensions support | 
 | 8231 | case "$ac_sys_system" in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8232 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 8233 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 8234 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8235 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8236 |  | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 8237 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8238 | int | 
 | 8239 | main () | 
 | 8240 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8241 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8242 |   ; | 
 | 8243 |   return 0; | 
 | 8244 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8245 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8246 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8247 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8248 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8249 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8250 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8251 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8252 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8253 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8254 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8255 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8256 |  | 
 | 8257 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8258 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8259 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8260 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8261 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8262 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8263 | 	*) ;; | 
 | 8264 | esac | 
 | 8265 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8266 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8267 | # BeOS' sockets are stashed in libnet. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 8269 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8270 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8271 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8272 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8273 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8274 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8276 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8278 | /* Override any GCC internal prototype to avoid an error. | 
 | 8279 |    Use char because int might match the return type of a GCC | 
 | 8280 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | #ifdef __cplusplus | 
 | 8282 | extern "C" | 
 | 8283 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | int | 
 | 8286 | main () | 
 | 8287 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8288 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8289 |   ; | 
 | 8290 |   return 0; | 
 | 8291 | } | 
 | 8292 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8293 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8295 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8296 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8297 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8298 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8299 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8300 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8301 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 8303 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8304 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8305 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8306 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8307 |  # SVR4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 8309 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8310 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8311 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8312 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8314 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8316 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8317 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8318 | /* Override any GCC internal prototype to avoid an error. | 
 | 8319 |    Use char because int might match the return type of a GCC | 
 | 8320 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8321 | #ifdef __cplusplus | 
 | 8322 | extern "C" | 
 | 8323 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8325 | int | 
 | 8326 | main () | 
 | 8327 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8328 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8329 |   ; | 
 | 8330 |   return 0; | 
 | 8331 | } | 
 | 8332 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8333 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8335 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8336 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8337 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8338 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8339 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8340 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8341 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 8343 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8344 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8345 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8346 | fi | 
 | 8347 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8348 |  | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8349 | case "$ac_sys_system" in | 
 | 8350 | BeOS*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 | 
 | 8352 | $as_echo_n "checking for socket in -lnet... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8353 | if ${ac_cv_lib_net_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8354 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8355 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8357 | LIBS="-lnet $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8359 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8360 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8361 | /* Override any GCC internal prototype to avoid an error. | 
 | 8362 |    Use char because int might match the return type of a GCC | 
 | 8363 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | #ifdef __cplusplus | 
 | 8365 | extern "C" | 
 | 8366 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | int | 
 | 8369 | main () | 
 | 8370 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8371 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 |   ; | 
 | 8373 |   return 0; | 
 | 8374 | } | 
 | 8375 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8376 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8377 |   ac_cv_lib_net_socket=yes | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8378 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8379 |   ac_cv_lib_net_socket=no | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8380 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8381 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8382 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8383 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8384 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 | 
 | 8386 | $as_echo "$ac_cv_lib_net_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8387 | if test "x$ac_cv_lib_net_socket" = xyes; then : | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8388 |   LIBS="-lnet $LIBS" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8389 | fi | 
 | 8390 |  # BeOS | 
 | 8391 | ;; | 
 | 8392 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8393 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 8395 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8397 | # Check whether --with-libs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8398 | if test "${with_libs+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8399 |   withval=$with_libs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8401 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8402 | LIBS="$withval $LIBS" | 
 | 8403 |  | 
 | 8404 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8405 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8406 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8407 | fi | 
 | 8408 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8409 |  | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8410 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8411 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 8412 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8414 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8415 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8416 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8417 | else | 
 | 8418 |   case $PKG_CONFIG in | 
 | 8419 |   [\\/]* | ?:[\\/]*) | 
 | 8420 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 8421 |   ;; | 
 | 8422 |   *) | 
 | 8423 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8424 | for as_dir in $PATH | 
 | 8425 | do | 
 | 8426 |   IFS=$as_save_IFS | 
 | 8427 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8428 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8429 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8430 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8431 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8432 |     break 2 | 
 | 8433 |   fi | 
 | 8434 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8435 |   done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8436 | IFS=$as_save_IFS | 
 | 8437 |  | 
 | 8438 |   ;; | 
 | 8439 | esac | 
 | 8440 | fi | 
 | 8441 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 8442 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8443 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 8444 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8445 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8446 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8447 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8448 | fi | 
 | 8449 |  | 
 | 8450 |  | 
 | 8451 | fi | 
 | 8452 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 8453 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 8454 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 8455 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8457 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8458 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8459 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8460 | else | 
 | 8461 |   case $ac_pt_PKG_CONFIG in | 
 | 8462 |   [\\/]* | ?:[\\/]*) | 
 | 8463 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 8464 |   ;; | 
 | 8465 |   *) | 
 | 8466 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8467 | for as_dir in $PATH | 
 | 8468 | do | 
 | 8469 |   IFS=$as_save_IFS | 
 | 8470 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8471 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8472 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8473 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8474 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8475 |     break 2 | 
 | 8476 |   fi | 
 | 8477 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8478 |   done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8479 | IFS=$as_save_IFS | 
 | 8480 |  | 
 | 8481 |   ;; | 
 | 8482 | esac | 
 | 8483 | fi | 
 | 8484 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 8485 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8486 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 8487 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8488 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8489 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8490 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8491 | fi | 
 | 8492 |  | 
 | 8493 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 8494 |     PKG_CONFIG="" | 
 | 8495 |   else | 
 | 8496 |     case $cross_compiling:$ac_tool_warned in | 
 | 8497 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 8499 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8500 | ac_tool_warned=yes ;; | 
 | 8501 | esac | 
 | 8502 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 8503 |   fi | 
 | 8504 | else | 
 | 8505 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 8506 | fi | 
 | 8507 |  | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8508 |  | 
 | 8509 | # Check for use of the system expat library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 8511 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8512 |  | 
 | 8513 | # Check whether --with-system_expat was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8514 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8515 |   withval=$with_system_expat; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8516 | else | 
 | 8517 |   with_system_expat="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8518 | fi | 
 | 8519 |  | 
 | 8520 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 8522 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8523 |  | 
 | 8524 | # Check for use of the system libffi library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 8526 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8527 |  | 
 | 8528 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8529 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8530 |   withval=$with_system_ffi; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8531 | else | 
 | 8532 |   with_system_ffi="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8533 | fi | 
 | 8534 |  | 
 | 8535 |  | 
 | 8536 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8537 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 8538 | else | 
 | 8539 |     LIBFFI_INCLUDEDIR="" | 
 | 8540 | fi | 
 | 8541 |  | 
 | 8542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 8544 | $as_echo "$with_system_ffi" >&6; } | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 8545 |  | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8546 | # Check for --with-dbmliborder | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 8548 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8549 |  | 
 | 8550 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8551 | if test "${with_dbmliborder+set}" = set; then : | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8552 |   withval=$with_dbmliborder; | 
 | 8553 | if test x$with_dbmliborder = xyes | 
 | 8554 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8555 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8556 | else | 
 | 8557 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 8558 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 8559 |     then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8560 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8561 |     fi | 
 | 8562 |   done | 
 | 8563 | fi | 
 | 8564 | fi | 
 | 8565 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 8567 | $as_echo "$with_dbmliborder" >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8568 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8569 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8570 |  | 
 | 8571 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 8573 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8574 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8575 | # Check whether --with-signal-module was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8576 | if test "${with_signal_module+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8577 |   withval=$with_signal_module; | 
 | 8578 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8579 |  | 
 | 8580 |  | 
 | 8581 | if test -z "$with_signal_module" | 
 | 8582 | then with_signal_module="yes" | 
 | 8583 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 8585 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8586 |  | 
 | 8587 | if test "${with_signal_module}" = "yes"; then | 
 | 8588 | 	USE_SIGNAL_MODULE="" | 
 | 8589 | 	SIGNAL_OBJS="" | 
 | 8590 | else | 
 | 8591 | 	USE_SIGNAL_MODULE="#" | 
 | 8592 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 8593 | fi | 
 | 8594 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8595 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8596 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8597 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8598 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
 | 8600 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8602 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8603 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8604 | if test "${with_dec_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8605 |   withval=$with_dec_threads; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8607 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8608 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8609 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8610 |    with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8611 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8612 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8613 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8614 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8615 | fi | 
 | 8616 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8617 |  | 
 | 8618 | # Templates for things AC_DEFINEd more than once. | 
 | 8619 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8620 |  | 
 | 8621 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8622 |  | 
 | 8623 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 8625 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8627 | # Check whether --with-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8628 | if test "${with_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8629 |   withval=$with_threads; | 
 | 8630 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8631 |  | 
 | 8632 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8633 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8635 | # Check whether --with-thread was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8636 | if test "${with_thread+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8637 |   withval=$with_thread; with_threads=$with_thread | 
 | 8638 | fi | 
 | 8639 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8640 |  | 
 | 8641 | if test -z "$with_threads" | 
 | 8642 | then with_threads="yes" | 
 | 8643 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 8645 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8646 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8647 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8648 | if test "$with_threads" = "no" | 
 | 8649 | then | 
 | 8650 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8651 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 8652 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8653 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8654 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8655 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8656 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8657 |  | 
 | 8658 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8660 | elif test "$ac_cv_kpthread" = "yes" | 
 | 8661 | then | 
 | 8662 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8663 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8664 |         CXX="$CXX -Kpthread" | 
 | 8665 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8666 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8667 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8668 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8669 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8670 | elif test "$ac_cv_kthread" = "yes" | 
 | 8671 | then | 
 | 8672 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8673 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8674 |         CXX="$CXX -Kthread" | 
 | 8675 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8676 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8677 |  | 
 | 8678 |     posix_threads=yes | 
 | 8679 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8680 | elif test "$ac_cv_pthread" = "yes" | 
 | 8681 | then | 
 | 8682 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8683 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8684 |         CXX="$CXX -pthread" | 
 | 8685 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8686 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8687 |  | 
 | 8688 |     posix_threads=yes | 
 | 8689 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8690 | else | 
 | 8691 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 8692 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 8693 |     fi | 
 | 8694 |     if test ! -z "$withval" -a -d "$withval" | 
 | 8695 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 8696 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8697 |  | 
 | 8698 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8699 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 8700 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8701 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 8702 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 8703 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8704 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8705 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8706 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8707 | #ifdef _POSIX_THREADS | 
 | 8708 | yes | 
 | 8709 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 |  | 
 | 8711 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8712 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8713 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8714 |   unistd_defines_pthreads=yes | 
 | 8715 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8716 |   unistd_defines_pthreads=no | 
 | 8717 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 8718 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8719 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8720 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 8721 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8722 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8723 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8724 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8725 |     ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8726 | if test "x$ac_cv_header_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8727 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8728 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8729 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8730 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8731 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8732 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8733 |  | 
 | 8734 |     LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8735 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8736 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8737 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8738 |     ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8739 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8740 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8741 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8742 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8743 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8745 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8746 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8747 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8748 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8749 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8750 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 | 
 | 8751 | $as_echo_n "checking for --with-pth... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8753 | # Check whether --with-pth was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8754 | if test "${with_pth+set}" = set; then : | 
 | 8755 |   withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8756 | $as_echo "$withval" >&6; } | 
 | 8757 |                   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 |  | 
 | 8759 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8760 | $as_echo "#define HAVE_PTH 1" >>confdefs.h | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8761 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8762 |                   LIBS="-lpth $LIBS" | 
 | 8763 |                   THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8764 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8765 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8766 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8767 |  | 
 | 8768 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 8769 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 8770 |     # So we really have to include pthread.h, and then link. | 
 | 8771 |     _libs=$LIBS | 
 | 8772 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8773 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 8774 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 8775 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8776 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 8777 |  | 
 | 8778 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8779 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8780 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8781 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 | int | 
 | 8783 | main () | 
 | 8784 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8785 |  | 
 | 8786 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 |   ; | 
 | 8788 |   return 0; | 
 | 8789 | } | 
 | 8790 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8791 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8792 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8793 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8794 | $as_echo "yes" >&6; } | 
 | 8795 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8796 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8797 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8798 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8799 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8800 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8801 |     LIBS=$_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8802 |     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8803 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8804 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8805 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8806 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8807 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8808 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8809 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8810 |     ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8811 | if test "x$ac_cv_header_atheos_threads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8812 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8813 |  | 
 | 8814 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8815 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8816 |  | 
 | 8817 |     THREADOBJ="Python/thread.o" | 
 | 8818 | else | 
 | 8819 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8820 |     ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8821 | if test "x$ac_cv_header_kernel_OS_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8822 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 |  | 
 | 8824 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8825 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8826 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8827 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8828 | else | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8829 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8830 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 8831 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8832 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8833 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8834 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8835 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8836 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8838 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8839 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8840 | /* Override any GCC internal prototype to avoid an error. | 
 | 8841 |    Use char because int might match the return type of a GCC | 
 | 8842 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | #ifdef __cplusplus | 
 | 8844 | extern "C" | 
 | 8845 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8846 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8847 | int | 
 | 8848 | main () | 
 | 8849 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8850 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 |   ; | 
 | 8852 |   return 0; | 
 | 8853 | } | 
 | 8854 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8855 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8857 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8858 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8859 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8860 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8861 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8862 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8863 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 8865 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8866 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8867 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8868 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8869 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8870 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8871 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8872 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8873 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8874 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 8875 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8876 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8877 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8878 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8879 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8880 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8882 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8884 | /* Override any GCC internal prototype to avoid an error. | 
 | 8885 |    Use char because int might match the return type of a GCC | 
 | 8886 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8887 | #ifdef __cplusplus | 
 | 8888 | extern "C" | 
 | 8889 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8891 | int | 
 | 8892 | main () | 
 | 8893 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8894 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 |   ; | 
 | 8896 |   return 0; | 
 | 8897 | } | 
 | 8898 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8899 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8901 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8902 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8903 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8904 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8905 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8906 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8907 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 8909 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8910 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8911 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8912 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8913 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8914 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8915 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8916 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8917 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8918 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 8919 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8920 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8921 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8922 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8923 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8924 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8926 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8928 | /* Override any GCC internal prototype to avoid an error. | 
 | 8929 |    Use char because int might match the return type of a GCC | 
 | 8930 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8931 | #ifdef __cplusplus | 
 | 8932 | extern "C" | 
 | 8933 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8935 | int | 
 | 8936 | main () | 
 | 8937 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8938 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 |   ; | 
 | 8940 |   return 0; | 
 | 8941 | } | 
 | 8942 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8943 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8945 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8946 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8947 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8948 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8949 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8950 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8951 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 8953 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8954 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8955 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8956 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8957 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8958 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8959 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8960 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8961 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8962 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 8963 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8964 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8965 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8966 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8968 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8970 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8971 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8972 | /* Override any GCC internal prototype to avoid an error. | 
 | 8973 |    Use char because int might match the return type of a GCC | 
 | 8974 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | #ifdef __cplusplus | 
 | 8976 | extern "C" | 
 | 8977 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8979 | int | 
 | 8980 | main () | 
 | 8981 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8982 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 |   ; | 
 | 8984 |   return 0; | 
 | 8985 | } | 
 | 8986 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8987 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8988 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8989 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8990 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8991 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8992 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8993 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8994 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8995 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 8997 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8998 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8999 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9000 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9001 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9002 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9003 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9004 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 9005 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9006 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 9007 | fi | 
 | 9008 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9009 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9010 | fi | 
 | 9011 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 9012 | fi | 
 | 9013 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9014 | fi | 
 | 9015 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9016 | fi | 
 | 9017 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9018 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9019 | fi | 
 | 9020 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9021 |  | 
 | 9022 | fi | 
 | 9023 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9024 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9025 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9026 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9027 | fi | 
 | 9028 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | fi | 
 | 9030 |  | 
 | 9031 |  | 
 | 9032 | fi | 
 | 9033 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9034 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9035 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9036 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 9037 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9038 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9039 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9040 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9042 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9044 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9045 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9046 | /* Override any GCC internal prototype to avoid an error. | 
 | 9047 |    Use char because int might match the return type of a GCC | 
 | 9048 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9049 | #ifdef __cplusplus | 
 | 9050 | extern "C" | 
 | 9051 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9052 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9053 | int | 
 | 9054 | main () | 
 | 9055 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9056 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 |   ; | 
 | 9058 |   return 0; | 
 | 9059 | } | 
 | 9060 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9061 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9063 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9064 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9065 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9066 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9067 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9069 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 9071 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9072 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9073 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9074 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9075 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9076 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9077 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9078 | fi | 
 | 9079 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9080 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 9081 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9082 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 9083 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9084 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9085 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9086 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9087 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9088 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9090 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9091 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9092 | /* Override any GCC internal prototype to avoid an error. | 
 | 9093 |    Use char because int might match the return type of a GCC | 
 | 9094 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | #ifdef __cplusplus | 
 | 9096 | extern "C" | 
 | 9097 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | int | 
 | 9100 | main () | 
 | 9101 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9102 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 |   ; | 
 | 9104 |   return 0; | 
 | 9105 | } | 
 | 9106 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9107 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9108 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9109 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9110 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9111 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9112 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9113 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9115 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 9117 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9118 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9119 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9120 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9121 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9122 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9123 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9124 | fi | 
 | 9125 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9126 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9127 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9128 |     if test "$USE_THREAD_MODULE" != "#" | 
 | 9129 |     then | 
 | 9130 |         # If the above checks didn't disable threads, (at least) OSF1 | 
 | 9131 |         # needs this '-threads' argument during linking. | 
 | 9132 |         case $ac_sys_system in | 
 | 9133 |         OSF1) LDLAST=-threads;; | 
 | 9134 |         esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 9135 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9136 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9137 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9138 | if test "$posix_threads" = "yes"; then | 
 | 9139 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9140 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9141 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9142 |  | 
 | 9143 |       fi | 
 | 9144 |  | 
 | 9145 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 9146 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9147 |       SunOS/5.6) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9148 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9149 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9150 | 		       ;; | 
 | 9151 |       SunOS/5.8) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9152 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9153 |  | 
 | 9154 | 		       ;; | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9155 |       AIX/*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9156 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 9157 |  | 
 | 9158 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9159 |       esac | 
 | 9160 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9161 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 9162 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9163 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9164 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9165 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9166 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9167 |   ac_cv_pthread_system_supported=no | 
 | 9168 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9169 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9170 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9171 |  | 
 | 9172 |       #include <stdio.h> | 
 | 9173 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9174 |       void *foo(void *parm) { | 
 | 9175 |         return NULL; | 
 | 9176 |       } | 
 | 9177 |       main() { | 
 | 9178 |         pthread_attr_t attr; | 
 | 9179 |         pthread_t id; | 
 | 9180 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 9181 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 9182 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 9183 |         exit(0); | 
 | 9184 |       } | 
 | 9185 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9186 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9187 |   ac_cv_pthread_system_supported=yes | 
 | 9188 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9189 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9190 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9191 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9192 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9193 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9194 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9195 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9196 | fi | 
 | 9197 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9198 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 9199 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9200 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 9201 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9202 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9203 |  | 
 | 9204 |       fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9205 |       for ac_func in pthread_sigmask | 
 | 9206 | do : | 
 | 9207 |   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9208 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9209 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9210 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9211 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9212 |  case $ac_sys_system in | 
 | 9213 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9214 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9215 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9216 |  | 
 | 9217 |             ;; | 
 | 9218 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9219 | fi | 
 | 9220 | done | 
 | 9221 |  | 
 | 9222 | fi | 
 | 9223 |  | 
 | 9224 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9225 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9226 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 9228 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9229 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9230 | if test "${enable_ipv6+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9231 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9232 |   no) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9233 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9234 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9235 |        ipv6=no | 
 | 9236 |        ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9237 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9238 | $as_echo "yes" >&6; } | 
 | 9239 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9240 |  | 
 | 9241 |        ipv6=yes | 
 | 9242 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9244 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9246 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9247 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9248 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9249 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9250 |   ipv6=no | 
 | 9251 |  | 
 | 9252 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9253 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9254 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9255 |  /* AF_INET6 available check */ | 
 | 9256 | #include <sys/types.h> | 
 | 9257 | #include <sys/socket.h> | 
 | 9258 | main() | 
 | 9259 | { | 
 | 9260 |  if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
 | 9261 |    exit(1); | 
 | 9262 |  else | 
 | 9263 |    exit(0); | 
 | 9264 | } | 
 | 9265 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9266 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9267 | if ac_fn_c_try_run "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9268 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9269 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9270 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9271 |   ipv6=yes | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9272 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9273 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9274 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9275 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9276 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9277 |   ipv6=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9278 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9279 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9280 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9281 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9282 | fi | 
 | 9283 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9284 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9285 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9286 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 9287 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 9288 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9289 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9290 |  | 
 | 9291 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9292 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | int | 
 | 9294 | main () | 
 | 9295 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9296 | struct sockaddr_in6 x; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9297 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 |   ; | 
 | 9299 |   return 0; | 
 | 9300 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9301 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9302 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9303 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9304 |  | 
 | 9305 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9306 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9307 | 	  ipv6=yes | 
 | 9308 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9309 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9310 |  | 
 | 9311 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9312 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9313 | 	  ipv6=no | 
 | 9314 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9315 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9316 | 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] | 9317 | fi | 
 | 9318 |  | 
 | 9319 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9320 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9321 |  | 
 | 9322 | fi | 
 | 9323 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9324 | fi | 
 | 9325 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9326 |  | 
 | 9327 | ipv6type=unknown | 
 | 9328 | ipv6lib=none | 
 | 9329 | ipv6trylibc=no | 
 | 9330 |  | 
 | 9331 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9332 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 9333 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9334 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 9335 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9336 | 		case $i in | 
 | 9337 | 		inria) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9338 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9339 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9340 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9341 | #include <netinet/in.h> | 
 | 9342 | #ifdef IPV6_INRIA_VERSION | 
 | 9343 | yes | 
 | 9344 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9345 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9347 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9348 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9349 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9350 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9351 |  | 
 | 9352 | 			;; | 
 | 9353 | 		kame) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9354 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9355 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9356 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9357 | #include <netinet/in.h> | 
 | 9358 | #ifdef __KAME__ | 
 | 9359 | yes | 
 | 9360 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9363 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9364 |   ipv6type=$i; | 
 | 9365 | 				ipv6lib=inet6 | 
 | 9366 | 				ipv6libdir=/usr/local/v6/lib | 
 | 9367 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9368 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9369 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9370 |  | 
 | 9371 | 			;; | 
 | 9372 | 		linux-glibc) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9373 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9374 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9375 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9376 | #include <features.h> | 
 | 9377 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 9378 | yes | 
 | 9379 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9380 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9382 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9383 |   ipv6type=$i; | 
 | 9384 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9385 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9386 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9387 |  | 
 | 9388 | 			;; | 
 | 9389 | 		linux-inet6) | 
 | 9390 | 						if test -d /usr/inet6; then | 
 | 9391 | 				ipv6type=$i | 
 | 9392 | 				ipv6lib=inet6 | 
 | 9393 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9394 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9395 | 			fi | 
 | 9396 | 			;; | 
 | 9397 | 		solaris) | 
 | 9398 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | 31e8595 | 2011-01-03 18:57:14 +0000 | [diff] [blame] | 9399 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9400 | 				ipv6type=$i | 
 | 9401 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9402 |                           fi | 
 | 9403 |                         fi | 
 | 9404 | 			;; | 
 | 9405 | 		toshiba) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9406 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9407 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9408 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9409 | #include <sys/param.h> | 
 | 9410 | #ifdef _TOSHIBA_INET6 | 
 | 9411 | yes | 
 | 9412 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9413 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9415 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9416 |   ipv6type=$i; | 
 | 9417 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9418 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9419 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9420 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9421 |  | 
 | 9422 | 			;; | 
 | 9423 | 		v6d) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9424 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9425 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9426 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9427 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 9428 | #ifdef __V6D__ | 
 | 9429 | yes | 
 | 9430 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9433 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9434 |   ipv6type=$i; | 
 | 9435 | 				ipv6lib=v6; | 
 | 9436 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9437 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9438 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9439 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9440 |  | 
 | 9441 | 			;; | 
 | 9442 | 		zeta) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9443 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9444 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9445 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9446 | #include <sys/param.h> | 
 | 9447 | #ifdef _ZETA_MINAMI_INET6 | 
 | 9448 | yes | 
 | 9449 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9450 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9452 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9453 |   ipv6type=$i; | 
 | 9454 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9455 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9456 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9457 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9458 |  | 
 | 9459 | 			;; | 
 | 9460 | 		esac | 
 | 9461 | 		if test "$ipv6type" != "unknown"; then | 
 | 9462 | 			break | 
 | 9463 | 		fi | 
 | 9464 | 	done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9465 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 9466 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9467 | fi | 
 | 9468 |  | 
 | 9469 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 9470 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 9471 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 9472 | 		echo "using lib$ipv6lib" | 
 | 9473 | 	else | 
 | 9474 | 		if test $ipv6trylibc = "yes"; then | 
 | 9475 | 			echo "using libc" | 
 | 9476 | 		else | 
 | 9477 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 9478 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 9479 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 9480 | 			exit 1 | 
 | 9481 | 		fi | 
 | 9482 | 	fi | 
 | 9483 | fi | 
 | 9484 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 9486 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 9487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9488 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9489 |  | 
 | 9490 |   #include <Carbon/Carbon.h> | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9491 | int | 
 | 9492 | main () | 
 | 9493 | { | 
 | 9494 | FSIORefNum fRef = 0 | 
 | 9495 |   ; | 
 | 9496 |   return 0; | 
 | 9497 | } | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9498 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9499 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9500 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9501 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9502 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9503 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9504 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9505 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9506 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9507 |  | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9508 | else | 
 | 9509 |  | 
 | 9510 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9511 | $as_echo "no" >&6; } | 
 | 9512 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9513 | fi | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9515 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9516 | # Check for --with-doc-strings | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 9518 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9519 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9520 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9521 | if test "${with_doc_strings+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9522 |   withval=$with_doc_strings; | 
 | 9523 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9524 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9525 |  | 
 | 9526 | if test -z "$with_doc_strings" | 
 | 9527 | then with_doc_strings="yes" | 
 | 9528 | fi | 
 | 9529 | if test "$with_doc_strings" != "no" | 
 | 9530 | then | 
 | 9531 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9532 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9533 |  | 
 | 9534 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 9536 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9537 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9538 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 9540 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9541 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9542 | # Check whether --with-tsc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9543 | if test "${with_tsc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9544 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9545 | if test "$withval" != no | 
 | 9546 | then | 
 | 9547 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9548 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9549 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9550 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9551 | $as_echo "yes" >&6; } | 
 | 9552 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9553 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9554 | fi | 
 | 9555 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9556 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9557 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9558 | fi | 
 | 9559 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9560 |  | 
 | 9561 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 9563 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9565 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9566 | if test "${with_pymalloc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9567 |   withval=$with_pymalloc; | 
 | 9568 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9569 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9570 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9571 | if test -z "$with_pymalloc" | 
 | 9572 | then with_pymalloc="yes" | 
 | 9573 | fi | 
 | 9574 | if test "$with_pymalloc" != "no" | 
 | 9575 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9577 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9578 |  | 
 | 9579 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 9581 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9582 |  | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9583 | # Check for Valgrind support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 9585 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9586 |  | 
 | 9587 | # Check whether --with-valgrind was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9588 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9589 |   withval=$with_valgrind; | 
 | 9590 | else | 
 | 9591 |   with_valgrind=no | 
 | 9592 | fi | 
 | 9593 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 9595 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9596 | if test "$with_valgrind" != no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9597 |     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9598 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9599 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9600 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9601 |  | 
 | 9602 | else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9603 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9604 |  | 
 | 9605 | fi | 
 | 9606 |  | 
 | 9607 |  | 
 | 9608 | fi | 
 | 9609 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9610 | # Check for --with-wctype-functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 | 
 | 9612 | $as_echo_n "checking for --with-wctype-functions... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9614 | # Check whether --with-wctype-functions was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9615 | if test "${with_wctype_functions+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9616 |   withval=$with_wctype_functions; | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9617 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | then | 
 | 9619 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9620 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9621 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9622 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9623 | $as_echo "yes" >&6; } | 
 | 9624 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9625 | $as_echo "no" >&6; } | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9626 | fi | 
 | 9627 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9628 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9629 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9630 | fi | 
 | 9631 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9632 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9633 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9634 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9635 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9636 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9637 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 9638 | # 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] | 9639 | for ac_func in dlopen | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9640 | do : | 
 | 9641 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9642 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9644 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9645 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9646 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9647 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9648 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9649 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9650 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9651 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 9652 | # loading of modules. | 
 | 9653 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 9655 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9656 | if test -z "$DYNLOADFILE" | 
 | 9657 | then | 
 | 9658 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9659 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 9660 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 9661 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 9662 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 9663 | 	fi | 
 | 9664 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9665 | 	BeOS*) DYNLOADFILE="dynload_beos.o";; | 
 | 9666 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 9667 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 9668 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9669 | 	atheos*) DYNLOADFILE="dynload_atheos.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9670 | 	*) | 
 | 9671 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 9672 | 	# out any dynamic loading | 
 | 9673 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 9674 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 9675 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 9676 | 	fi | 
 | 9677 | 	;; | 
 | 9678 | 	esac | 
 | 9679 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 9681 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9682 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 9683 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9685 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9686 |  | 
 | 9687 | fi | 
 | 9688 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9689 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 9690 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9691 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 9693 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9694 | if test -z "$MACHDEP_OBJS" | 
 | 9695 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9696 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 9697 | else | 
 | 9698 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9699 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
 | 9701 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9702 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9703 | # checks for library functions | 
| Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 9704 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ | 
 | 9705 |  clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9706 |  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 9707 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 9708 |  initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9709 |  mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9710 |  putenv readlink realpath \ | 
| Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 9711 |  select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
 | 9712 |  setgid \ | 
| Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 9713 |  setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 9714 |  setlocale setregid setreuid setresuid setresgid \ | 
 | 9715 |  setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 9716 |  sigaction siginterrupt sigrelse strftime \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9717 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 9718 |  truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9719 | do : | 
 | 9720 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9721 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9722 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9724 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9726 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9727 | fi | 
 | 9728 | done | 
 | 9729 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9730 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9731 | # For some functions, having a definition is not sufficient, since | 
 | 9732 | # we want to take their address. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 9734 | $as_echo_n "checking for chroot... " >&6; } | 
 | 9735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9736 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9737 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9738 | int | 
 | 9739 | main () | 
 | 9740 | { | 
 | 9741 | void *x=chroot | 
 | 9742 |   ; | 
 | 9743 |   return 0; | 
 | 9744 | } | 
 | 9745 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9746 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9747 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9748 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9749 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9750 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9751 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9752 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9753 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9754 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9755 |  | 
 | 9756 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 9759 | $as_echo_n "checking for link... " >&6; } | 
 | 9760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9761 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9762 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9763 | int | 
 | 9764 | main () | 
 | 9765 | { | 
 | 9766 | void *x=link | 
 | 9767 |   ; | 
 | 9768 |   return 0; | 
 | 9769 | } | 
 | 9770 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9771 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9772 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9773 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9774 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9775 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9776 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9777 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9778 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9779 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9780 |  | 
 | 9781 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 9784 | $as_echo_n "checking for symlink... " >&6; } | 
 | 9785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9786 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9787 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9788 | int | 
 | 9789 | main () | 
 | 9790 | { | 
 | 9791 | void *x=symlink | 
 | 9792 |   ; | 
 | 9793 |   return 0; | 
 | 9794 | } | 
 | 9795 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9796 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9797 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9798 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9799 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9800 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9801 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9802 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9803 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9804 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9805 |  | 
 | 9806 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 9809 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 9810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9811 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9812 | #include <unistd.h> | 
 | 9813 | int | 
 | 9814 | main () | 
 | 9815 | { | 
 | 9816 | void *x=fchdir | 
 | 9817 |   ; | 
 | 9818 |   return 0; | 
 | 9819 | } | 
 | 9820 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9821 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9822 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9823 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9824 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9825 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9826 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9827 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9828 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9829 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9830 |  | 
 | 9831 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 9834 | $as_echo_n "checking for fsync... " >&6; } | 
 | 9835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9836 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9837 | #include <unistd.h> | 
 | 9838 | int | 
 | 9839 | main () | 
 | 9840 | { | 
 | 9841 | void *x=fsync | 
 | 9842 |   ; | 
 | 9843 |   return 0; | 
 | 9844 | } | 
 | 9845 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9846 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9847 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9848 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9849 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9850 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9851 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9852 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9853 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9854 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9855 |  | 
 | 9856 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 9859 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 9860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9861 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9862 | #include <unistd.h> | 
 | 9863 | int | 
 | 9864 | main () | 
 | 9865 | { | 
 | 9866 | void *x=fdatasync | 
 | 9867 |   ; | 
 | 9868 |   return 0; | 
 | 9869 | } | 
 | 9870 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9871 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9872 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9873 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9874 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9875 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9876 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9877 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9878 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9879 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9880 |  | 
 | 9881 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 9884 | $as_echo_n "checking for epoll... " >&6; } | 
 | 9885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9886 | /* end confdefs.h.  */ | 
 | 9887 | #include <sys/epoll.h> | 
 | 9888 | int | 
 | 9889 | main () | 
 | 9890 | { | 
 | 9891 | void *x=epoll_create | 
 | 9892 |   ; | 
 | 9893 |   return 0; | 
 | 9894 | } | 
 | 9895 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9896 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9897 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9898 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9899 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9900 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9901 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9902 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9903 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9904 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9905 |  | 
 | 9906 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 9909 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 9910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9911 | /* end confdefs.h.  */ | 
 | 9912 |  | 
 | 9913 | #include <sys/types.h> | 
 | 9914 | #include <sys/event.h> | 
 | 9915 |  | 
 | 9916 | int | 
 | 9917 | main () | 
 | 9918 | { | 
 | 9919 | int x=kqueue() | 
 | 9920 |   ; | 
 | 9921 |   return 0; | 
 | 9922 | } | 
 | 9923 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9924 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9925 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9926 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9927 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9928 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9929 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9930 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9931 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9932 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9933 |  | 
 | 9934 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9935 | 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] | 9936 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 9937 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 9938 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 9939 | # address to avoid compiler warnings and potential miscompilations | 
 | 9940 | # because of the missing prototypes. | 
 | 9941 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 9943 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 9944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9945 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9946 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9947 | #include <stdio.h> | 
 | 9948 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9949 | int | 
 | 9950 | main () | 
 | 9951 | { | 
 | 9952 | void* p = ctermid_r | 
 | 9953 |   ; | 
 | 9954 |   return 0; | 
 | 9955 | } | 
 | 9956 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9957 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9958 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9959 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9960 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9961 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9962 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9963 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9964 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9965 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9966 |  | 
 | 9967 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9969 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 9971 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9972 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9973 |   $as_echo_n "(cached) " >&6 | 
 | 9974 | else | 
 | 9975 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9976 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9977 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9978 | int | 
 | 9979 | main () | 
 | 9980 | { | 
 | 9981 | void* p = flock | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9982 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9983 |   ; | 
 | 9984 |   return 0; | 
 | 9985 | } | 
 | 9986 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9987 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9988 |   ac_cv_flock_decl=yes | 
 | 9989 | else | 
 | 9990 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9991 |  | 
 | 9992 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9994 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9995 | fi | 
 | 9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 9997 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 9998 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 9999 |   for ac_func in flock | 
 | 10000 | do : | 
 | 10001 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10002 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10003 |   cat >>confdefs.h <<_ACEOF | 
 | 10004 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10005 | _ACEOF | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10006 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10007 | else | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10008 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10009 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10010 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10011 |   $as_echo_n "(cached) " >&6 | 
 | 10012 | else | 
 | 10013 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10014 | LIBS="-lbsd  $LIBS" | 
 | 10015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10016 | /* end confdefs.h.  */ | 
 | 10017 |  | 
 | 10018 | /* Override any GCC internal prototype to avoid an error. | 
 | 10019 |    Use char because int might match the return type of a GCC | 
 | 10020 |    builtin and then its argument prototype would still apply.  */ | 
 | 10021 | #ifdef __cplusplus | 
 | 10022 | extern "C" | 
 | 10023 | #endif | 
 | 10024 | char flock (); | 
 | 10025 | int | 
 | 10026 | main () | 
 | 10027 | { | 
 | 10028 | return flock (); | 
 | 10029 |   ; | 
 | 10030 |   return 0; | 
 | 10031 | } | 
 | 10032 | _ACEOF | 
 | 10033 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 10034 |   ac_cv_lib_bsd_flock=yes | 
 | 10035 | else | 
 | 10036 |   ac_cv_lib_bsd_flock=no | 
 | 10037 | fi | 
 | 10038 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10039 |     conftest$ac_exeext conftest.$ac_ext | 
 | 10040 | LIBS=$ac_check_lib_save_LIBS | 
 | 10041 | fi | 
 | 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 10043 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10044 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10045 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10046 |  | 
 | 10047 |  | 
 | 10048 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 10049 |  | 
 | 10050 |  | 
 | 10051 | fi | 
 | 10052 |  | 
 | 10053 |  | 
 | 10054 | fi | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10055 | done | 
 | 10056 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10057 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10058 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 10060 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 10061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10062 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10063 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10064 | #include <unistd.h> | 
 | 10065 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10066 | int | 
 | 10067 | main () | 
 | 10068 | { | 
 | 10069 | void* p = getpagesize | 
 | 10070 |   ; | 
 | 10071 |   return 0; | 
 | 10072 | } | 
 | 10073 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10074 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10075 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10076 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10077 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10078 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10079 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10080 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10081 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10082 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10083 |  | 
 | 10084 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10085 | 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] | 10086 |  | 
| Charles-François Natali | 93a1175 | 2011-11-27 13:01:35 +0100 | [diff] [blame] | 10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 10088 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 10089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10090 | /* end confdefs.h.  */ | 
 | 10091 |  | 
 | 10092 | #include <stdlib.h> | 
 | 10093 |  | 
 | 10094 | int | 
 | 10095 | main () | 
 | 10096 | { | 
 | 10097 | int res = unsetenv("DUMMY") | 
 | 10098 |   ; | 
 | 10099 |   return 0; | 
 | 10100 | } | 
 | 10101 | _ACEOF | 
 | 10102 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10103 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10104 | $as_echo "no" >&6; } | 
 | 10105 | else | 
 | 10106 |  | 
 | 10107 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 10108 |  | 
 | 10109 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10110 | $as_echo "yes" >&6; } | 
 | 10111 |  | 
 | 10112 | fi | 
 | 10113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10114 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10115 | for ac_prog in true | 
 | 10116 | do | 
 | 10117 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 10118 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10120 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10121 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10122 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10123 | else | 
 | 10124 |   if test -n "$TRUE"; then | 
 | 10125 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 10126 | else | 
 | 10127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10128 | for as_dir in $PATH | 
 | 10129 | do | 
 | 10130 |   IFS=$as_save_IFS | 
 | 10131 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10132 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10133 |   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] | 10134 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10135 |     $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] | 10136 |     break 2 | 
 | 10137 |   fi | 
 | 10138 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10139 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10140 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10141 |  | 
 | 10142 | fi | 
 | 10143 | fi | 
 | 10144 | TRUE=$ac_cv_prog_TRUE | 
 | 10145 | if test -n "$TRUE"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10146 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 10147 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10148 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10149 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10150 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10151 | fi | 
 | 10152 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10153 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10154 |   test -n "$TRUE" && break | 
 | 10155 | done | 
 | 10156 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 10157 |  | 
 | 10158 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 10160 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10161 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10162 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10163 | else | 
 | 10164 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10165 | LIBS="-lc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10167 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10168 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10169 | /* Override any GCC internal prototype to avoid an error. | 
 | 10170 |    Use char because int might match the return type of a GCC | 
 | 10171 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10172 | #ifdef __cplusplus | 
 | 10173 | extern "C" | 
 | 10174 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10175 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10176 | int | 
 | 10177 | main () | 
 | 10178 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10179 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10180 |   ; | 
 | 10181 |   return 0; | 
 | 10182 | } | 
 | 10183 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10184 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10185 |   ac_cv_lib_c_inet_aton=yes | 
 | 10186 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10187 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10188 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10189 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10190 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10191 | LIBS=$ac_check_lib_save_LIBS | 
 | 10192 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 10194 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10195 | 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] | 10196 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10197 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10198 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 10199 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10200 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10201 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10202 | else | 
 | 10203 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10204 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10206 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10207 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10208 | /* Override any GCC internal prototype to avoid an error. | 
 | 10209 |    Use char because int might match the return type of a GCC | 
 | 10210 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10211 | #ifdef __cplusplus | 
 | 10212 | extern "C" | 
 | 10213 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10214 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10215 | int | 
 | 10216 | main () | 
 | 10217 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10218 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10219 |   ; | 
 | 10220 |   return 0; | 
 | 10221 | } | 
 | 10222 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10223 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10224 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 10225 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10226 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10227 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10228 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10229 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10230 | LIBS=$ac_check_lib_save_LIBS | 
 | 10231 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 10233 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10234 | 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] | 10235 |   cat >>confdefs.h <<_ACEOF | 
 | 10236 | #define HAVE_LIBRESOLV 1 | 
 | 10237 | _ACEOF | 
 | 10238 |  | 
 | 10239 |   LIBS="-lresolv $LIBS" | 
 | 10240 |  | 
 | 10241 | fi | 
 | 10242 |  | 
 | 10243 |  | 
 | 10244 | fi | 
 | 10245 |  | 
 | 10246 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10247 | # On Tru64, chflags seems to be present, but calling it will | 
 | 10248 | # exit Python | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 10250 | $as_echo_n "checking for chflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10251 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10252 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10253 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10254 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10255 |   ac_cv_have_chflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10256 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10257 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10258 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10259 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10260 | #include <sys/stat.h> | 
 | 10261 | #include <unistd.h> | 
 | 10262 | int main(int argc, char*argv[]) | 
 | 10263 | { | 
 | 10264 |   if(chflags(argv[0], 0) != 0) | 
 | 10265 |     return 1; | 
 | 10266 |   return 0; | 
 | 10267 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10268 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10269 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10270 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10271 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10272 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10273 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10274 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10275 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10276 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 10277 | fi | 
 | 10278 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10279 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10280 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 10282 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10283 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10284 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10285 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10286 |   ac_cv_have_chflags="yes" | 
 | 10287 | else | 
 | 10288 |   ac_cv_have_chflags="no" | 
 | 10289 | fi | 
 | 10290 |  | 
 | 10291 | fi | 
 | 10292 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10293 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10294 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10295 |  | 
 | 10296 | fi | 
 | 10297 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 10299 | $as_echo_n "checking for lchflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10300 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10301 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10302 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10303 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10304 |   ac_cv_have_lchflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10305 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10306 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10307 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10308 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10309 | #include <sys/stat.h> | 
 | 10310 | #include <unistd.h> | 
 | 10311 | int main(int argc, char*argv[]) | 
 | 10312 | { | 
 | 10313 |   if(lchflags(argv[0], 0) != 0) | 
 | 10314 |     return 1; | 
 | 10315 |   return 0; | 
 | 10316 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10317 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10318 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10319 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10320 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10321 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10322 |   ac_cv_have_lchflags=no | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10323 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10324 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10325 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10326 | fi | 
 | 10327 |  | 
 | 10328 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10329 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 10331 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10332 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10333 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10334 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10335 |   ac_cv_have_lchflags="yes" | 
 | 10336 | else | 
 | 10337 |   ac_cv_have_lchflags="no" | 
 | 10338 | fi | 
 | 10339 |  | 
 | 10340 | fi | 
 | 10341 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10342 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10343 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10344 |  | 
 | 10345 | fi | 
 | 10346 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10347 | case $ac_sys_system/$ac_sys_release in | 
 | 10348 | Darwin/*) | 
 | 10349 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 10350 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 10351 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 10352 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 10353 | 	;; | 
 | 10354 | esac | 
 | 10355 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 10357 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10358 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10359 |   $as_echo_n "(cached) " >&6 | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10360 | else | 
 | 10361 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10362 | LIBS="-lz  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10364 | /* end confdefs.h.  */ | 
 | 10365 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10366 | /* Override any GCC internal prototype to avoid an error. | 
 | 10367 |    Use char because int might match the return type of a GCC | 
 | 10368 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10369 | #ifdef __cplusplus | 
 | 10370 | extern "C" | 
 | 10371 | #endif | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10372 | char inflateCopy (); | 
 | 10373 | int | 
 | 10374 | main () | 
 | 10375 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10376 | return inflateCopy (); | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10377 |   ; | 
 | 10378 |   return 0; | 
 | 10379 | } | 
 | 10380 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10381 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10382 |   ac_cv_lib_z_inflateCopy=yes | 
 | 10383 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10384 |   ac_cv_lib_z_inflateCopy=no | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10385 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10386 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10387 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10388 | LIBS=$ac_check_lib_save_LIBS | 
 | 10389 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 10391 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10392 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10393 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10394 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10395 |  | 
 | 10396 | fi | 
 | 10397 |  | 
 | 10398 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10399 | case $ac_sys_system/$ac_sys_release in | 
 | 10400 | Darwin/*) | 
 | 10401 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 10402 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 10403 | 	;; | 
 | 10404 | esac | 
 | 10405 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 10407 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 10408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10409 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10410 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10411 | #include <netdb.h> | 
 | 10412 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10413 | int | 
 | 10414 | main () | 
 | 10415 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10416 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10417 |   ; | 
 | 10418 |   return 0; | 
 | 10419 | } | 
 | 10420 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10421 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10422 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10423 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10424 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10425 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10426 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10427 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10428 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10429 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10430 |  | 
 | 10431 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10432 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10433 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10434 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 10436 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 10437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10438 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10439 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10440 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10441 | #include <sys/socket.h> | 
 | 10442 | #include <netinet/in.h> | 
 | 10443 | #include <arpa/inet.h> | 
 | 10444 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10445 | int | 
 | 10446 | main () | 
 | 10447 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10448 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10449 |   ; | 
 | 10450 |   return 0; | 
 | 10451 | } | 
 | 10452 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10453 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10454 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10455 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10456 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10457 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10458 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10459 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10460 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10461 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10462 |  | 
 | 10463 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10464 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10465 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10466 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 10468 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 10469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10470 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10471 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10472 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10473 | #include <sys/socket.h> | 
 | 10474 | #include <netinet/in.h> | 
 | 10475 | #include <arpa/inet.h> | 
 | 10476 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10477 | int | 
 | 10478 | main () | 
 | 10479 | { | 
 | 10480 | void* p = inet_pton | 
 | 10481 |   ; | 
 | 10482 |   return 0; | 
 | 10483 | } | 
 | 10484 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10485 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10486 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10487 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10488 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10489 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10490 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10491 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10492 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10493 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10494 |  | 
 | 10495 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10496 | 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] | 10497 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10498 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 10500 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 10501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10502 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10503 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10504 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10505 | #ifdef HAVE_GRP_H | 
 | 10506 | #include <grp.h> | 
 | 10507 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10508 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10509 | int | 
 | 10510 | main () | 
 | 10511 | { | 
 | 10512 | void* p = setgroups | 
 | 10513 |   ; | 
 | 10514 |   return 0; | 
 | 10515 | } | 
 | 10516 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10517 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10518 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10519 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10520 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10521 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10522 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10523 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10524 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10525 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10526 |  | 
 | 10527 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10528 | 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] | 10529 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10530 | # check for openpty and forkpty | 
 | 10531 |  | 
 | 10532 | for ac_func in openpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10533 | do : | 
 | 10534 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10535 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10537 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10539 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10540 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10541 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 10542 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10543 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10544 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10545 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10546 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10547 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10549 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10550 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10551 | /* Override any GCC internal prototype to avoid an error. | 
 | 10552 |    Use char because int might match the return type of a GCC | 
 | 10553 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | #ifdef __cplusplus | 
 | 10555 | extern "C" | 
 | 10556 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10557 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10558 | int | 
 | 10559 | main () | 
 | 10560 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10561 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10562 |   ; | 
 | 10563 |   return 0; | 
 | 10564 | } | 
 | 10565 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10566 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10568 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10569 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10570 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10571 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10572 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10573 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10574 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 10576 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10577 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10578 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10579 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10580 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10581 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 10582 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10583 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10584 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10585 | else | 
 | 10586 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10587 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10589 | /* end confdefs.h.  */ | 
 | 10590 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10591 | /* Override any GCC internal prototype to avoid an error. | 
 | 10592 |    Use char because int might match the return type of a GCC | 
 | 10593 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10594 | #ifdef __cplusplus | 
 | 10595 | extern "C" | 
 | 10596 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10597 | char openpty (); | 
 | 10598 | int | 
 | 10599 | main () | 
 | 10600 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10601 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10602 |   ; | 
 | 10603 |   return 0; | 
 | 10604 | } | 
 | 10605 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10606 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10607 |   ac_cv_lib_bsd_openpty=yes | 
 | 10608 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10609 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10610 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10611 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10612 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10613 | LIBS=$ac_check_lib_save_LIBS | 
 | 10614 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 10616 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10617 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10618 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10619 |  LIBS="$LIBS -lbsd" | 
 | 10620 | fi | 
 | 10621 |  | 
 | 10622 |  | 
 | 10623 | fi | 
 | 10624 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10625 |  | 
 | 10626 | fi | 
 | 10627 | done | 
 | 10628 |  | 
 | 10629 | for ac_func in forkpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10630 | do : | 
 | 10631 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10632 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10634 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10636 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10637 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10638 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 10639 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10640 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10641 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10642 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10643 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10644 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10646 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10647 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10648 | /* Override any GCC internal prototype to avoid an error. | 
 | 10649 |    Use char because int might match the return type of a GCC | 
 | 10650 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10651 | #ifdef __cplusplus | 
 | 10652 | extern "C" | 
 | 10653 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10654 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10655 | int | 
 | 10656 | main () | 
 | 10657 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10658 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10659 |   ; | 
 | 10660 |   return 0; | 
 | 10661 | } | 
 | 10662 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10663 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10665 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10666 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10667 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10668 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10669 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10670 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10671 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 10673 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10674 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10675 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10676 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10677 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10678 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 10679 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10680 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10681 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10682 | else | 
 | 10683 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10684 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10686 | /* end confdefs.h.  */ | 
 | 10687 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10688 | /* Override any GCC internal prototype to avoid an error. | 
 | 10689 |    Use char because int might match the return type of a GCC | 
 | 10690 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10691 | #ifdef __cplusplus | 
 | 10692 | extern "C" | 
 | 10693 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10694 | char forkpty (); | 
 | 10695 | int | 
 | 10696 | main () | 
 | 10697 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10698 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10699 |   ; | 
 | 10700 |   return 0; | 
 | 10701 | } | 
 | 10702 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10703 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10704 |   ac_cv_lib_bsd_forkpty=yes | 
 | 10705 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10706 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10707 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10708 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10709 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10710 | LIBS=$ac_check_lib_save_LIBS | 
 | 10711 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 10713 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10714 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10715 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10716 |  LIBS="$LIBS -lbsd" | 
 | 10717 | fi | 
 | 10718 |  | 
 | 10719 |  | 
 | 10720 | fi | 
 | 10721 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10722 |  | 
 | 10723 | fi | 
 | 10724 | done | 
 | 10725 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10726 |  | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10727 | # Stuff for expat. | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10728 | for ac_func in memmove | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10729 | do : | 
 | 10730 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10731 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10732 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10733 | #define HAVE_MEMMOVE 1 | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10734 | _ACEOF | 
 | 10735 |  | 
 | 10736 | fi | 
 | 10737 | done | 
 | 10738 |  | 
 | 10739 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10740 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10741 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10742 | do : | 
 | 10743 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 10744 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10745 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10747 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10749 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10750 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10751 | done | 
 | 10752 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10753 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10754 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10755 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10756 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10757 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10758 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10759 |   case " $LIBOBJS " in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10760 |   *" dup2.$ac_objext "* ) ;; | 
 | 10761 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10762 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10763 | esac | 
 | 10764 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10765 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10766 |  | 
 | 10767 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10768 | if test "x$ac_cv_func_getcwd" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10769 |   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h | 
 | 10770 |  | 
 | 10771 | else | 
 | 10772 |   case " $LIBOBJS " in | 
 | 10773 |   *" getcwd.$ac_objext "* ) ;; | 
 | 10774 |   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" | 
 | 10775 |  ;; | 
 | 10776 | esac | 
 | 10777 |  | 
 | 10778 | fi | 
 | 10779 |  | 
 | 10780 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10781 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10782 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 10783 |  | 
 | 10784 | else | 
 | 10785 |   case " $LIBOBJS " in | 
 | 10786 |   *" strdup.$ac_objext "* ) ;; | 
 | 10787 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 10788 |  ;; | 
 | 10789 | esac | 
 | 10790 |  | 
 | 10791 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10792 |  | 
 | 10793 |  | 
 | 10794 | for ac_func in getpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10795 | do : | 
 | 10796 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10797 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10799 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10800 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10801 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10802 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10803 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10804 | int | 
 | 10805 | main () | 
 | 10806 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10807 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 |   ; | 
 | 10809 |   return 0; | 
 | 10810 | } | 
 | 10811 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10812 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10813 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10814 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10815 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10816 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10817 | 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] | 10818 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10819 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10820 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10821 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10822 | for ac_func in setpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10823 | do : | 
 | 10824 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10825 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10826 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10827 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10828 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10829 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10830 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10831 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10832 | int | 
 | 10833 | main () | 
 | 10834 | { | 
 | 10835 | setpgrp(0,0); | 
 | 10836 |   ; | 
 | 10837 |   return 0; | 
 | 10838 | } | 
 | 10839 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10840 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10841 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10842 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10843 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10844 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10846 |  | 
 | 10847 | fi | 
 | 10848 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10849 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10850 | for ac_func in gettimeofday | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10851 | do : | 
 | 10852 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10853 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10855 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10856 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10857 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10858 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10859 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10860 | int | 
 | 10861 | main () | 
 | 10862 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10863 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 |   ; | 
 | 10865 |   return 0; | 
 | 10866 | } | 
 | 10867 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10868 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10869 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10870 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10871 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10872 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10873 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10874 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10875 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10876 | 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] | 10877 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10878 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10879 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10880 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10881 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 10883 | $as_echo_n "checking for major... " >&6; } | 
 | 10884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10885 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10886 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10887 | #if defined(MAJOR_IN_MKDEV) | 
 | 10888 | #include <sys/mkdev.h> | 
 | 10889 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 10890 | #include <sys/sysmacros.h> | 
 | 10891 | #else | 
 | 10892 | #include <sys/types.h> | 
 | 10893 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10894 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10895 | int | 
 | 10896 | main () | 
 | 10897 | { | 
 | 10898 |  | 
 | 10899 |   makedev(major(0),minor(0)); | 
 | 10900 |  | 
 | 10901 |   ; | 
 | 10902 |   return 0; | 
 | 10903 | } | 
 | 10904 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10905 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10906 |  | 
 | 10907 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10908 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10909 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10910 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10911 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10912 |  | 
 | 10913 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10914 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10915 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10916 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10917 |  | 
 | 10918 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10919 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10920 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10921 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10922 | # 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] | 10923 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 10925 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 10926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10927 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10928 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10929 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10930 | #include <sys/socket.h> | 
 | 10931 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10932 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10933 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10934 | int | 
 | 10935 | main () | 
 | 10936 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10937 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10938 |   ; | 
 | 10939 |   return 0; | 
 | 10940 | } | 
 | 10941 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10942 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10943 |   have_getaddrinfo=yes | 
 | 10944 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10945 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10946 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10947 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10948 |     conftest$ac_exeext conftest.$ac_ext | 
 | 10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 10950 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10951 | if test $have_getaddrinfo = yes | 
 | 10952 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10953 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 10954 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10955 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10956 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10957 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10958 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10959 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10960 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10961 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10962 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10963 |  | 
| Stefan Krah | 0afe4e4 | 2012-11-22 23:56:51 +0100 | [diff] [blame] | 10964 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10965 | #include <sys/types.h> | 
 | 10966 | #include <netdb.h> | 
 | 10967 | #include <string.h> | 
 | 10968 | #include <sys/socket.h> | 
 | 10969 | #include <netinet/in.h> | 
 | 10970 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10971 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10972 | { | 
 | 10973 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 10974 |   struct addrinfo hints, *ai, *aitop; | 
 | 10975 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 10976 |  | 
 | 10977 |   for (passive = 0; passive <= 1; passive++) { | 
 | 10978 |     memset(&hints, 0, sizeof(hints)); | 
 | 10979 |     hints.ai_family = AF_UNSPEC; | 
 | 10980 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 10981 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10982 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10983 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 10984 |       (void)gai_strerror(gaierr); | 
 | 10985 |       goto bad; | 
 | 10986 |     } | 
 | 10987 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 10988 |       if (ai->ai_addr == NULL || | 
 | 10989 |           ai->ai_addrlen == 0 || | 
 | 10990 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 10991 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 10992 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 10993 |         goto bad; | 
 | 10994 |       } | 
 | 10995 |       switch (ai->ai_family) { | 
 | 10996 |       case AF_INET: | 
 | 10997 |         if (strcmp(strport, "54321") != 0) { | 
 | 10998 |           goto bad; | 
 | 10999 |         } | 
 | 11000 |         if (passive) { | 
 | 11001 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 11002 |             goto bad; | 
 | 11003 |           } | 
 | 11004 |         } else { | 
 | 11005 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 11006 |             goto bad; | 
 | 11007 |           } | 
 | 11008 |         } | 
 | 11009 |         inet4++; | 
 | 11010 |         break; | 
 | 11011 |       case AF_INET6: | 
 | 11012 |         if (strcmp(strport, "54321") != 0) { | 
 | 11013 |           goto bad; | 
 | 11014 |         } | 
 | 11015 |         if (passive) { | 
 | 11016 |           if (strcmp(straddr, "::") != 0) { | 
 | 11017 |             goto bad; | 
 | 11018 |           } | 
 | 11019 |         } else { | 
 | 11020 |           if (strcmp(straddr, "::1") != 0) { | 
 | 11021 |             goto bad; | 
 | 11022 |           } | 
 | 11023 |         } | 
 | 11024 |         inet6++; | 
 | 11025 |         break; | 
 | 11026 |       case AF_UNSPEC: | 
 | 11027 |         goto bad; | 
 | 11028 |         break; | 
 | 11029 |       default: | 
 | 11030 |         /* another family support? */ | 
 | 11031 |         break; | 
 | 11032 |       } | 
 | 11033 |     } | 
 | 11034 |   } | 
 | 11035 |  | 
 | 11036 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 11037 |     goto bad; | 
 | 11038 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 11039 |     goto bad; | 
 | 11040 |  | 
 | 11041 |   if (aitop) | 
 | 11042 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11043 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11044 |  | 
 | 11045 |  bad: | 
 | 11046 |   if (aitop) | 
 | 11047 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11048 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11049 | } | 
 | 11050 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11051 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11052 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11053 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11054 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11055 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11056 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11057 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11058 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11059 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11060 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11061 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11062 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11063 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11064 |  | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 11066 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 11067 |  | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 11068 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11069 | then | 
 | 11070 | 	if test $ipv6 = yes | 
 | 11071 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11072 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 11073 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 11074 | 		exit 1 | 
 | 11075 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11076 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11078 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11079 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11080 | fi | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11081 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11082 | for ac_func in getnameinfo | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11083 | do : | 
 | 11084 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11085 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11087 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11089 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11090 | fi | 
 | 11091 | done | 
 | 11092 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11093 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11094 | # checks for structures | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 11096 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11097 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11098 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11099 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11100 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11101 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11102 | #include <sys/types.h> | 
 | 11103 | #include <sys/time.h> | 
 | 11104 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11106 | int | 
 | 11107 | main () | 
 | 11108 | { | 
 | 11109 | if ((struct tm *) 0) | 
 | 11110 | return 0; | 
 | 11111 |   ; | 
 | 11112 |   return 0; | 
 | 11113 | } | 
 | 11114 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11115 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11116 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11117 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11118 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11119 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11121 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 11123 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11124 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11126 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11127 |  | 
 | 11128 | fi | 
 | 11129 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 11131 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11132 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11133 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11134 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11135 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11136 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11137 | #include <sys/types.h> | 
 | 11138 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11139 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11140 | int | 
 | 11141 | main () | 
 | 11142 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11143 | struct tm tm; | 
 | 11144 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11145 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 |   ; | 
 | 11147 |   return 0; | 
 | 11148 | } | 
 | 11149 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11150 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11151 |   ac_cv_struct_tm=time.h | 
 | 11152 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11153 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11154 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11156 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 11158 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11159 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11160 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11161 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11162 |  | 
 | 11163 | fi | 
 | 11164 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11165 | 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] | 11166 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11168 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11169 | 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] | 11170 |  | 
 | 11171 | cat >>confdefs.h <<_ACEOF | 
 | 11172 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 11173 | _ACEOF | 
 | 11174 |  | 
 | 11175 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11176 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11177 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11178 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 11179 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11180 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11181 |  | 
 | 11182 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11183 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 11184 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11185 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11186 |   ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11187 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11188 |   ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11189 | fi | 
 | 11190 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11191 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11192 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11193 | _ACEOF | 
 | 11194 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11195 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 11196 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11197 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11198 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11199 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11200 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11201 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11202 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11203 | #if !HAVE_DECL_TZNAME | 
 | 11204 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11205 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11206 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11207 | int | 
 | 11208 | main () | 
 | 11209 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11210 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 |   ; | 
 | 11212 |   return 0; | 
 | 11213 | } | 
 | 11214 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11215 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11216 |   ac_cv_var_tzname=yes | 
 | 11217 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11218 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11219 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11220 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11221 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11222 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 11224 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11225 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11226 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11227 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11228 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11229 |   fi | 
 | 11230 | fi | 
 | 11231 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11232 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11233 | 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] | 11234 |  | 
 | 11235 | cat >>confdefs.h <<_ACEOF | 
 | 11236 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 11237 | _ACEOF | 
 | 11238 |  | 
 | 11239 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11240 | fi | 
 | 11241 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11242 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11243 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11244 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 | cat >>confdefs.h <<_ACEOF | 
 | 11246 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 11247 | _ACEOF | 
 | 11248 |  | 
 | 11249 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11250 | fi | 
 | 11251 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11252 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11253 | 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] | 11254 |  | 
 | 11255 | cat >>confdefs.h <<_ACEOF | 
 | 11256 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 11257 | _ACEOF | 
 | 11258 |  | 
 | 11259 |  | 
 | 11260 | fi | 
 | 11261 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11262 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11263 | 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] | 11264 |  | 
 | 11265 | cat >>confdefs.h <<_ACEOF | 
 | 11266 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 11267 | _ACEOF | 
 | 11268 |  | 
 | 11269 |  | 
 | 11270 | fi | 
 | 11271 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11272 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11273 | 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] | 11274 |  | 
 | 11275 | cat >>confdefs.h <<_ACEOF | 
 | 11276 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 11277 | _ACEOF | 
 | 11278 |  | 
 | 11279 |  | 
 | 11280 | fi | 
 | 11281 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11282 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11283 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11284 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11285 | cat >>confdefs.h <<_ACEOF | 
 | 11286 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 11287 | _ACEOF | 
 | 11288 |  | 
 | 11289 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11290 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11291 |  | 
 | 11292 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11293 |   case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11294 |   *" fileblocks.$ac_objext "* ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11295 |   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
 | 11296 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11297 | esac | 
 | 11298 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11299 | fi | 
 | 11300 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11301 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 11304 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11305 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11306 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11307 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11308 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11309 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11310 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11311 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11312 | int | 
 | 11313 | main () | 
 | 11314 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11315 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 |   ; | 
 | 11317 |   return 0; | 
 | 11318 | } | 
 | 11319 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11320 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11321 |   ac_cv_header_time_altzone=yes | 
 | 11322 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11323 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11324 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11326 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11327 | fi | 
 | 11328 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 11330 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11331 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11332 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11333 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11334 |  | 
 | 11335 | fi | 
 | 11336 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11337 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 11339 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 11340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11341 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11342 |  | 
 | 11343 | #include <sys/types.h> | 
 | 11344 | #include <sys/select.h> | 
 | 11345 | #include <sys/time.h> | 
 | 11346 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11347 | int | 
 | 11348 | main () | 
 | 11349 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11350 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 |   ; | 
 | 11352 |   return 0; | 
 | 11353 | } | 
 | 11354 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11355 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 |  | 
 | 11357 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11358 | $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] | 11359 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11360 |   was_it_defined=yes | 
 | 11361 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11362 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 11365 | $as_echo "$was_it_defined" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11366 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 11368 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11369 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11370 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11371 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11372 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11373 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11374 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11375 | int | 
 | 11376 | main () | 
 | 11377 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11378 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 |   ; | 
 | 11380 |   return 0; | 
 | 11381 | } | 
 | 11382 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11383 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11384 |   ac_cv_struct_addrinfo=yes | 
 | 11385 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11386 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11387 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11389 | fi | 
 | 11390 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 11392 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11393 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11395 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11396 |  | 
 | 11397 | fi | 
 | 11398 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 11400 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11401 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11402 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11403 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11404 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11405 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11406 |  | 
 | 11407 | #		include <sys/types.h> | 
 | 11408 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | int | 
 | 11410 | main () | 
 | 11411 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11412 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11413 |   ; | 
 | 11414 |   return 0; | 
 | 11415 | } | 
 | 11416 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11417 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11418 |   ac_cv_struct_sockaddr_storage=yes | 
 | 11419 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11420 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11421 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11423 | fi | 
 | 11424 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 11426 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11427 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11429 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11430 |  | 
 | 11431 | fi | 
 | 11432 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11433 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11434 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 11436 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11437 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11438 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11439 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11440 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11441 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11442 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | int | 
 | 11444 | main () | 
 | 11445 | { | 
 | 11446 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
 | 11447 | test_array [0] = 0 | 
 | 11448 |  | 
 | 11449 |   ; | 
 | 11450 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11451 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11452 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11453 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11454 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11456 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11457 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11459 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 11461 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11462 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11463 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11464 |  | 
 | 11465 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11466 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 11468 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11469 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11470 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11471 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11472 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11473 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11474 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | int | 
 | 11476 | main () | 
 | 11477 | { | 
 | 11478 | /* FIXME: Include the comments suggested by Paul. */ | 
 | 11479 | #ifndef __cplusplus | 
 | 11480 |   /* Ultrix mips cc rejects this.  */ | 
 | 11481 |   typedef int charset[2]; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11482 |   const charset cs; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11483 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11484 |   char const *const *pcpcc; | 
 | 11485 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 11487 |   struct point {int x, y;}; | 
 | 11488 |   static struct point const zero = {0,0}; | 
 | 11489 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 11490 |      It does not let you subtract one const X* pointer from another in | 
 | 11491 |      an arm of an if-expression whose if-part is not a constant | 
 | 11492 |      expression */ | 
 | 11493 |   const char *g = "string"; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11494 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 |   /* HPUX 7.0 cc rejects these. */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11496 |   ++pcpcc; | 
 | 11497 |   ppc = (char**) pcpcc; | 
 | 11498 |   pcpcc = (char const *const *) ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11499 |   { /* SCO 3.2v4 cc rejects this.  */ | 
 | 11500 |     char *t; | 
 | 11501 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11502 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11503 |     *t++ = 0; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11504 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11505 |   } | 
 | 11506 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 11507 |     int x[] = {25, 17}; | 
 | 11508 |     const int *foo = &x[0]; | 
 | 11509 |     ++foo; | 
 | 11510 |   } | 
 | 11511 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 11512 |     typedef const int *iptr; | 
 | 11513 |     iptr p = 0; | 
 | 11514 |     ++p; | 
 | 11515 |   } | 
 | 11516 |   { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 11517 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 11518 |     struct s { int j; const int *ap[3]; }; | 
 | 11519 |     struct s *b; b->j = 5; | 
 | 11520 |   } | 
 | 11521 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 11522 |     const int foo = 10; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11523 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11524 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11525 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11526 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11527 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11528 |   ; | 
 | 11529 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11530 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11531 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11532 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11533 |   ac_cv_c_const=yes | 
 | 11534 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11535 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11536 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11538 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 11540 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11541 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11543 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11544 |  | 
 | 11545 | fi | 
 | 11546 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11547 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11548 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 11550 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 11551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11552 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11553 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | int | 
 | 11555 | main () | 
 | 11556 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11557 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11558 |   ; | 
 | 11559 |   return 0; | 
 | 11560 | } | 
 | 11561 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11562 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11563 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11564 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11565 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11566 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11567 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11568 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11569 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11572 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11573 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11574 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 11576 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 11577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11578 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11579 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11580 | int | 
 | 11581 | main () | 
 | 11582 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11583 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11584 |   ; | 
 | 11585 |   return 0; | 
 | 11586 | } | 
 | 11587 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11588 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11589 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11590 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11591 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11592 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11593 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11594 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11595 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11598 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11599 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11600 | have_prototypes=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 11602 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 11603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11604 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11605 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | int | 
 | 11607 | main () | 
 | 11608 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11609 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 |   ; | 
 | 11611 |   return 0; | 
 | 11612 | } | 
 | 11613 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11614 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11615 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11616 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11618 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11619 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 11622 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11623 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11624 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 11626 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 11627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11628 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11629 |  | 
 | 11630 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11631 | int foo(int x, ...) { | 
 | 11632 | 	va_list va; | 
 | 11633 | 	va_start(va, x); | 
 | 11634 | 	va_arg(va, int); | 
 | 11635 | 	va_arg(va, char *); | 
 | 11636 | 	va_arg(va, double); | 
 | 11637 | 	return 0; | 
 | 11638 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11639 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | int | 
 | 11641 | main () | 
 | 11642 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11643 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11644 |   ; | 
 | 11645 |   return 0; | 
 | 11646 | } | 
 | 11647 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11648 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11649 |  | 
 | 11650 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11651 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11652 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11653 |   works=yes | 
 | 11654 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11655 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11658 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11659 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11660 | # check for socketpair | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 11662 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 11663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11664 | /* end confdefs.h.  */ | 
 | 11665 |  | 
 | 11666 | #include <sys/types.h> | 
 | 11667 | #include <sys/socket.h> | 
 | 11668 |  | 
 | 11669 | int | 
 | 11670 | main () | 
 | 11671 | { | 
 | 11672 | void *x=socketpair | 
 | 11673 |   ; | 
 | 11674 |   return 0; | 
 | 11675 | } | 
 | 11676 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11677 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11678 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11679 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11680 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11681 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11682 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11683 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11684 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11685 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11686 |  | 
 | 11687 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11688 | 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] | 11689 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11690 | # check if sockaddr has sa_len member | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 11692 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 11693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11694 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11695 | #include <sys/types.h> | 
 | 11696 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11697 | int | 
 | 11698 | main () | 
 | 11699 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11700 | struct sockaddr x; | 
 | 11701 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11702 |   ; | 
 | 11703 |   return 0; | 
 | 11704 | } | 
 | 11705 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11706 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11707 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11708 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11710 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11711 |  | 
 | 11712 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11713 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11714 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11715 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11716 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11717 | 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] | 11718 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11719 | va_list_is_array=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 11721 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 11722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11723 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11724 |  | 
 | 11725 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 11726 | #include <stdarg.h> | 
 | 11727 | #else | 
 | 11728 | #include <varargs.h> | 
 | 11729 | #endif | 
 | 11730 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11731 | int | 
 | 11732 | main () | 
 | 11733 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11734 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11735 |   ; | 
 | 11736 |   return 0; | 
 | 11737 | } | 
 | 11738 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11739 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11740 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11741 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11742 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11743 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11744 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11746 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11747 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11748 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 11751 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11752 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11753 | # 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] | 11754 |  | 
 | 11755 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11756 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11757 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11758 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11759 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11760 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11761 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 11762 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11763 |   OLD_CFLAGS=$CFLAGS | 
 | 11764 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11765 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11766 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11767 |  | 
 | 11768 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11769 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11770 | int | 
 | 11771 | main () | 
 | 11772 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11773 |  | 
 | 11774 |     char *name; | 
 | 11775 |     struct hostent *he, *res; | 
 | 11776 |     char buffer[2048]; | 
 | 11777 |     int buflen = 2048; | 
 | 11778 |     int h_errnop; | 
 | 11779 |  | 
 | 11780 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11781 |  | 
 | 11782 |   ; | 
 | 11783 |   return 0; | 
 | 11784 | } | 
 | 11785 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11786 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11787 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11788 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11789 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11790 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11791 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11792 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11793 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11794 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11796 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11797 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11798 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11799 | $as_echo "no" >&6; } | 
 | 11800 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 11801 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 11802 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11803 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11804 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11805 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11806 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11807 | int | 
 | 11808 | main () | 
 | 11809 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11810 |  | 
 | 11811 |         char *name; | 
 | 11812 |         struct hostent *he; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11813 |         char buffer[2048]; | 
 | 11814 |         int buflen = 2048; | 
 | 11815 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11816 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11817 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11818 |  | 
 | 11819 |   ; | 
 | 11820 |   return 0; | 
 | 11821 | } | 
 | 11822 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11823 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11824 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11825 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11826 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11828 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11829 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11830 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11831 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11833 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11834 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11835 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11836 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11837 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 11838 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 11839 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11840 | /* end confdefs.h.  */ | 
 | 11841 |  | 
 | 11842 | #           include <netdb.h> | 
 | 11843 |  | 
 | 11844 | int | 
 | 11845 | main () | 
 | 11846 | { | 
 | 11847 |  | 
 | 11848 |             char *name; | 
 | 11849 |             struct hostent *he; | 
 | 11850 |             struct hostent_data data; | 
 | 11851 |  | 
 | 11852 |             (void) gethostbyname_r(name, he, &data); | 
 | 11853 |  | 
 | 11854 |   ; | 
 | 11855 |   return 0; | 
 | 11856 | } | 
 | 11857 | _ACEOF | 
 | 11858 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11859 |  | 
 | 11860 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 11861 |  | 
 | 11862 |  | 
 | 11863 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 11864 |  | 
 | 11865 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11866 | $as_echo "yes" >&6; } | 
 | 11867 |  | 
 | 11868 | else | 
 | 11869 |  | 
 | 11870 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11871 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11872 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11873 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11874 | 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] | 11875 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11876 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11877 | 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] | 11878 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11879 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11881 |   CFLAGS=$OLD_CFLAGS | 
 | 11882 |  | 
 | 11883 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11884 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11885 |   for ac_func in gethostbyname | 
 | 11886 | do : | 
 | 11887 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11888 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11890 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11891 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11892 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11893 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11894 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11895 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11896 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11897 | fi | 
 | 11898 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11899 |  | 
 | 11900 |  | 
 | 11901 |  | 
 | 11902 |  | 
 | 11903 |  | 
 | 11904 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11905 | # checks for system services | 
 | 11906 | # (none yet) | 
 | 11907 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11908 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11909 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11910 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11911 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11912 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11913 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 11914 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11915 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11916 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11917 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11918 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11919 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11921 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11922 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11923 | /* Override any GCC internal prototype to avoid an error. | 
 | 11924 |    Use char because int might match the return type of a GCC | 
 | 11925 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | #ifdef __cplusplus | 
 | 11927 | extern "C" | 
 | 11928 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11929 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11930 | int | 
 | 11931 | main () | 
 | 11932 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11933 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11934 |   ; | 
 | 11935 |   return 0; | 
 | 11936 | } | 
 | 11937 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11938 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11939 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11940 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11941 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11942 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11943 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11944 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11945 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11946 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 11948 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11949 | 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] | 11950 |   cat >>confdefs.h <<_ACEOF | 
 | 11951 | #define HAVE_LIBIEEE 1 | 
 | 11952 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11953 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11954 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11955 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11956 | fi | 
 | 11957 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11958 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11959 | fi | 
 | 11960 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11961 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11962 | # Check for --with-fpectl | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 11964 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11965 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11966 | # Check whether --with-fpectl was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11967 | if test "${with_fpectl+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11968 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11969 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11970 | then | 
 | 11971 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11972 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11974 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11975 | $as_echo "yes" >&6; } | 
 | 11976 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11977 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11978 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11979 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11980 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11981 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11982 | fi | 
 | 11983 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11984 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11985 | # check for --with-libm=... | 
 | 11986 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11987 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11988 | Darwin) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11989 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11990 | *) LIBM=-lm | 
 | 11991 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 11993 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11994 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11995 | # Check whether --with-libm was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11996 | if test "${with_libm+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11997 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11998 | if test "$withval" = no | 
 | 11999 | then LIBM= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12000 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 12001 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12002 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12003 | then LIBM=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12004 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 12005 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12006 | 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] | 12007 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12008 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12009 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 12010 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12011 | fi | 
 | 12012 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12013 |  | 
 | 12014 | # check for --with-libc=... | 
 | 12015 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 12017 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12018 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12019 | # Check whether --with-libc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12020 | if test "${with_libc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12021 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12022 | if test "$withval" = no | 
 | 12023 | then LIBC= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12024 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 12025 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12026 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12027 | then LIBC=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12028 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 12029 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12030 | 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] | 12031 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12032 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12033 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 12034 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12035 | fi | 
 | 12036 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12037 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12038 | # ************************************************** | 
 | 12039 | # * Check for various properties of floating point * | 
 | 12040 | # ************************************************** | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12041 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 12043 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12044 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12045 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12046 | else | 
 | 12047 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12048 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12049 |   ac_cv_little_endian_double=no | 
 | 12050 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12051 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12052 | /* end confdefs.h.  */ | 
 | 12053 |  | 
 | 12054 | #include <string.h> | 
 | 12055 | int main() { | 
 | 12056 |     double x = 9006104071832581.0; | 
 | 12057 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 12058 |         return 0; | 
 | 12059 |     else | 
 | 12060 |         return 1; | 
 | 12061 | } | 
 | 12062 |  | 
 | 12063 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12064 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12065 |   ac_cv_little_endian_double=yes | 
 | 12066 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12067 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12068 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12069 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12070 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12071 | fi | 
 | 12072 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12073 | fi | 
 | 12074 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 12076 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12077 | if test "$ac_cv_little_endian_double" = yes | 
 | 12078 | then | 
 | 12079 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12080 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12081 |  | 
 | 12082 | fi | 
 | 12083 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 12085 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12086 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12087 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12088 | else | 
 | 12089 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12090 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12091 |   ac_cv_big_endian_double=no | 
 | 12092 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12093 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12094 | /* end confdefs.h.  */ | 
 | 12095 |  | 
 | 12096 | #include <string.h> | 
 | 12097 | int main() { | 
 | 12098 |     double x = 9006104071832581.0; | 
 | 12099 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 12100 |         return 0; | 
 | 12101 |     else | 
 | 12102 |         return 1; | 
 | 12103 | } | 
 | 12104 |  | 
 | 12105 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12106 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12107 |   ac_cv_big_endian_double=yes | 
 | 12108 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12109 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12110 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12111 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12112 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12113 | fi | 
 | 12114 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12115 | fi | 
 | 12116 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 12118 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12119 | if test "$ac_cv_big_endian_double" = yes | 
 | 12120 | then | 
 | 12121 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12122 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12123 |  | 
 | 12124 | fi | 
 | 12125 |  | 
 | 12126 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 12127 | # While Python doesn't currently have full support for these platforms | 
 | 12128 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 12129 | # conversions work. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 12131 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12132 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12133 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12134 | else | 
 | 12135 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12136 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12137 |   ac_cv_mixed_endian_double=no | 
 | 12138 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12139 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12140 | /* end confdefs.h.  */ | 
 | 12141 |  | 
 | 12142 | #include <string.h> | 
 | 12143 | int main() { | 
 | 12144 |     double x = 9006104071832581.0; | 
 | 12145 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 12146 |         return 0; | 
 | 12147 |     else | 
 | 12148 |         return 1; | 
 | 12149 | } | 
 | 12150 |  | 
 | 12151 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12152 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12153 |   ac_cv_mixed_endian_double=yes | 
 | 12154 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12155 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12156 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12157 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12158 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12159 | fi | 
 | 12160 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12161 | fi | 
 | 12162 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 12164 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12165 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 12166 | then | 
 | 12167 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12168 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12169 |  | 
 | 12170 | fi | 
 | 12171 |  | 
 | 12172 | # The short float repr introduced in Python 3.1 requires the | 
 | 12173 | # correctly-rounded string <-> double conversion functions from | 
 | 12174 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
 | 12175 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12176 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12177 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12178 |  | 
 | 12179 | # This inline assembler syntax may also work for suncc and icc, | 
 | 12180 | # so we try it on all platforms. | 
 | 12181 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 12183 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 12184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12185 | /* end confdefs.h.  */ | 
 | 12186 |  | 
 | 12187 | int | 
 | 12188 | main () | 
 | 12189 | { | 
 | 12190 |  | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12191 |   unsigned short cw; | 
 | 12192 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 12193 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12194 |  | 
 | 12195 |   ; | 
 | 12196 |   return 0; | 
 | 12197 | } | 
 | 12198 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12199 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12200 |   have_gcc_asm_for_x87=yes | 
 | 12201 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12202 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12203 | fi | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 12206 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12207 | if test "$have_gcc_asm_for_x87" = yes | 
 | 12208 | then | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12209 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12210 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12211 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12212 | fi | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12213 |  | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12214 | # Detect whether system arithmetic is subject to x87-style double | 
 | 12215 | # rounding issues.  The result of this test has little meaning on non | 
 | 12216 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 12217 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 12218 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 12220 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12221 | # $BASECFLAGS may affect the result | 
 | 12222 | ac_save_cc="$CC" | 
 | 12223 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12224 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12225 |   ac_cv_x87_double_rounding=no | 
 | 12226 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12227 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12228 | /* end confdefs.h.  */ | 
 | 12229 |  | 
 | 12230 | #include <stdlib.h> | 
 | 12231 | #include <math.h> | 
 | 12232 | int main() { | 
 | 12233 |     volatile double x, y, z; | 
 | 12234 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 12235 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 12236 |     y = 1./x; | 
 | 12237 |     if (y != 1.) | 
 | 12238 |         exit(0); | 
 | 12239 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 12240 |     x = 1e16; | 
 | 12241 |     y = 2.99999; | 
 | 12242 |     z = x + y; | 
 | 12243 |     if (z != 1e16+4.) | 
 | 12244 |         exit(0); | 
 | 12245 |     /* both tests show evidence of double rounding */ | 
 | 12246 |     exit(1); | 
 | 12247 | } | 
 | 12248 |  | 
 | 12249 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12250 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12251 |   ac_cv_x87_double_rounding=no | 
 | 12252 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12253 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12254 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12255 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12256 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12257 | fi | 
 | 12258 |  | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12259 | CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 12261 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12262 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 12263 | then | 
 | 12264 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12265 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12266 |  | 
 | 12267 | fi | 
 | 12268 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12269 | # ************************************ | 
 | 12270 | # * Check for mathematical functions * | 
 | 12271 | # ************************************ | 
 | 12272 |  | 
 | 12273 | LIBS_SAVE=$LIBS | 
 | 12274 | LIBS="$LIBS $LIBM" | 
 | 12275 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12276 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 12277 | # -0. on some architectures. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 12279 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12280 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12281 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12282 | else | 
 | 12283 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12284 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12285 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 12286 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12287 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12288 | /* end confdefs.h.  */ | 
 | 12289 |  | 
 | 12290 | #include <math.h> | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12291 | #include <stdlib.h> | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12292 | int main() { | 
 | 12293 |     /* return 0 if either negative zeros don't exist | 
 | 12294 |        on this platform or if negative zeros exist | 
 | 12295 |        and tanh(-0.) == -0. */ | 
 | 12296 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 12297 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 12298 |   else exit(1); | 
 | 12299 | } | 
 | 12300 |  | 
 | 12301 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12302 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12303 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 12304 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12305 |   ac_cv_tanh_preserves_zero_sign=no | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12306 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12307 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12308 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12309 | fi | 
 | 12310 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12311 | fi | 
 | 12312 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 12314 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12315 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 12316 | then | 
 | 12317 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12318 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12319 |  | 
 | 12320 | fi | 
 | 12321 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12322 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12323 | do : | 
 | 12324 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12325 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12326 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12327 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12328 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12329 | _ACEOF | 
 | 12330 |  | 
 | 12331 | fi | 
 | 12332 | done | 
 | 12333 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12334 | for ac_func in hypot lgamma log1p round tgamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12335 | do : | 
 | 12336 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12337 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12338 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12339 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12340 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12341 | _ACEOF | 
 | 12342 |  | 
 | 12343 | fi | 
 | 12344 | done | 
 | 12345 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12346 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 12347 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12348 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12349 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12350 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12351 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12352 | fi | 
 | 12353 |  | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12354 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12355 | #define HAVE_DECL_ISINF $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12356 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12357 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 12358 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12359 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12360 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12361 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12362 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12363 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12364 |  | 
 | 12365 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12366 | #define HAVE_DECL_ISNAN $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12367 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12368 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 12369 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12370 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12371 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12372 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12373 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12374 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12375 |  | 
 | 12376 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12377 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12378 | _ACEOF | 
 | 12379 |  | 
 | 12380 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12381 | LIBS=$LIBS_SAVE | 
 | 12382 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12383 | # For multiprocessing module, check that sem_open | 
 | 12384 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 12385 | # the kernel module that provides POSIX semaphores | 
 | 12386 | # isn't loaded by default, so an attempt to call | 
 | 12387 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 12389 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12390 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12391 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12392 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12393 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12394 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12395 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12396 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12397 | /* end confdefs.h.  */ | 
 | 12398 |  | 
 | 12399 | #include <unistd.h> | 
 | 12400 | #include <fcntl.h> | 
 | 12401 | #include <stdio.h> | 
 | 12402 | #include <semaphore.h> | 
 | 12403 | #include <sys/stat.h> | 
 | 12404 |  | 
 | 12405 | int main(void) { | 
 | 12406 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 12407 |   if (a == SEM_FAILED) { | 
 | 12408 |     perror("sem_open"); | 
 | 12409 |     return 1; | 
 | 12410 |   } | 
 | 12411 |   sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12412 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12413 |   return 0; | 
 | 12414 | } | 
 | 12415 |  | 
 | 12416 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12417 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12418 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12419 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12420 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12421 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12422 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12423 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12424 | fi | 
 | 12425 |  | 
 | 12426 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12427 | fi | 
 | 12428 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 12430 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12431 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 12432 | then | 
 | 12433 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12434 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12435 |  | 
 | 12436 | fi | 
 | 12437 |  | 
 | 12438 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 12440 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12441 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12442 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12443 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12444 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12445 |   ac_cv_broken_sem_getvalue=yes | 
 | 12446 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12447 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12448 | /* end confdefs.h.  */ | 
 | 12449 |  | 
 | 12450 | #include <unistd.h> | 
 | 12451 | #include <fcntl.h> | 
 | 12452 | #include <stdio.h> | 
 | 12453 | #include <semaphore.h> | 
 | 12454 | #include <sys/stat.h> | 
 | 12455 |  | 
 | 12456 | int main(void){ | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12457 |   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12458 |   int count; | 
 | 12459 |   int res; | 
 | 12460 |   if(a==SEM_FAILED){ | 
 | 12461 |     perror("sem_open"); | 
 | 12462 |     return 1; | 
 | 12463 |  | 
 | 12464 |   } | 
 | 12465 |   res = sem_getvalue(a, &count); | 
 | 12466 |   sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12467 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12468 |   return res==-1 ? 1 : 0; | 
 | 12469 | } | 
 | 12470 |  | 
 | 12471 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12472 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12473 |   ac_cv_broken_sem_getvalue=no | 
 | 12474 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12475 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12476 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12477 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12478 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12479 | fi | 
 | 12480 |  | 
 | 12481 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12482 | fi | 
 | 12483 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 12485 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12486 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 12487 | then | 
 | 12488 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12489 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12490 |  | 
 | 12491 | fi | 
 | 12492 |  | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12493 | # determine what size digit to use for Python's longs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 12495 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12496 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12497 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12498 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 12499 | yes) | 
 | 12500 |   enable_big_digits=30 ;; | 
 | 12501 | no) | 
 | 12502 |   enable_big_digits=15 ;; | 
 | 12503 | 15|30) | 
 | 12504 |   ;; | 
 | 12505 | *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12506 |   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12507 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 12509 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12510 |  | 
 | 12511 | cat >>confdefs.h <<_ACEOF | 
 | 12512 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 12513 | _ACEOF | 
 | 12514 |  | 
 | 12515 |  | 
 | 12516 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12517 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 12518 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12519 | fi | 
 | 12520 |  | 
 | 12521 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12522 | # check for wchar.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12523 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12524 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12525 |  | 
 | 12526 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12527 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12528 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12529 |   wchar_h="yes" | 
 | 12530 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12531 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12532 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12533 |  | 
 | 12534 | fi | 
 | 12535 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12536 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12537 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12538 | # determine wchar_t size | 
 | 12539 | if test "$wchar_h" = yes | 
 | 12540 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12541 |   # The cast to long int works around a bug in the HP C Compiler | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12542 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 12543 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 12544 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 12546 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12547 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12548 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12549 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12550 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 12551 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12553 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12554 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 12555 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 12556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12557 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12558 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12559 |    else | 
 | 12560 |      ac_cv_sizeof_wchar_t=0 | 
 | 12561 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12562 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12563 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12564 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 12566 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12567 |  | 
 | 12568 |  | 
 | 12569 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12570 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12571 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12573 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12574 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12575 | fi | 
 | 12576 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 12578 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12579 | have_ucs4_tcl=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12581 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12582 |  | 
 | 12583 | #include <tcl.h> | 
 | 12584 | #if TCL_UTF_MAX != 6 | 
 | 12585 | # error "NOT UCS4_TCL" | 
 | 12586 | #endif | 
 | 12587 | int | 
 | 12588 | main () | 
 | 12589 | { | 
 | 12590 |  | 
 | 12591 |   ; | 
 | 12592 |   return 0; | 
 | 12593 | } | 
 | 12594 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12595 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12596 |  | 
 | 12597 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12598 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12599 |  | 
 | 12600 |   have_ucs4_tcl=yes | 
 | 12601 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12602 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 12605 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12606 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12607 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12608 | if test "$wchar_h" = yes | 
 | 12609 | then | 
 | 12610 |   # check whether wchar_t is signed or not | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12611 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 12612 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12613 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12614 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12615 | else | 
 | 12616 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12617 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12618 |   ac_cv_wchar_t_signed=yes | 
 | 12619 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12620 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12621 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12622 |  | 
 | 12623 |   #include <wchar.h> | 
 | 12624 |   int main() | 
 | 12625 |   { | 
| Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 12626 | 	/* Success: exit code 0 */ | 
 | 12627 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12628 |   } | 
 | 12629 |  | 
 | 12630 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12631 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12632 |   ac_cv_wchar_t_signed=yes | 
 | 12633 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12634 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12635 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12636 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12637 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12638 | fi | 
 | 12639 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12640 | fi | 
 | 12641 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12642 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 12643 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12644 | fi | 
 | 12645 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 | 
 | 12647 | $as_echo_n "checking what type to use for unicode... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12648 | # Check whether --enable-unicode was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12649 | if test "${enable_unicode+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12650 |   enableval=$enable_unicode; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12651 | else | 
 | 12652 |   enable_unicode=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12653 | fi | 
 | 12654 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12655 |  | 
 | 12656 | if test $enable_unicode = yes | 
 | 12657 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 12658 |   # Without any arguments, Py_UNICODE defaults to two-byte mode | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12659 |   case "$have_ucs4_tcl" in | 
 | 12660 |   yes) enable_unicode="ucs4" | 
 | 12661 |        ;; | 
 | 12662 |   *)   enable_unicode="ucs2" | 
 | 12663 |        ;; | 
 | 12664 |   esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12665 | fi | 
 | 12666 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12667 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12668 | case "$enable_unicode" in | 
 | 12669 | ucs2) unicode_size="2" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12670 |       $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12671 |  | 
 | 12672 |       ;; | 
 | 12673 | ucs4) unicode_size="4" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12674 |       $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12675 |  | 
 | 12676 |       ;; | 
| Martin v. Löwis | ed11a5d | 2012-05-20 10:42:17 +0200 | [diff] [blame] | 12677 | no)   ;;      # To allow --disable-unicode | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12678 | *) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12679 | esac | 
 | 12680 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12681 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12682 |  | 
 | 12683 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12684 | if test "$enable_unicode" = "no" | 
 | 12685 | then | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 12686 |   UNICODE_OBJS="" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12687 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 | 
 | 12688 | $as_echo "not used" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12689 | else | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 12690 |   UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12691 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12692 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12693 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12694 |  | 
 | 12695 |   # wchar_t is only usable if it maps to an unsigned type | 
 | 12696 |   if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12697 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12698 |   then | 
 | 12699 |     PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12700 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12701 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12702 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12703 |     $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12704 |  | 
 | 12705 |   elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
 | 12706 |   then | 
 | 12707 |        PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12708 |        $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12709 |  | 
 | 12710 |   elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
 | 12711 |   then | 
 | 12712 |        PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12713 |        $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12714 |  | 
 | 12715 |   else | 
 | 12716 |        PY_UNICODE_TYPE="no type found" | 
 | 12717 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12718 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
 | 12719 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12720 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12721 |  | 
 | 12722 | # check for endianness | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12723 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 12724 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12725 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12726 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12727 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12728 |   ac_cv_c_bigendian=unknown | 
 | 12729 |     # See if we're dealing with a universal compiler. | 
 | 12730 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12731 | /* end confdefs.h.  */ | 
 | 12732 | #ifndef __APPLE_CC__ | 
 | 12733 | 	       not a universal capable compiler | 
 | 12734 | 	     #endif | 
 | 12735 | 	     typedef int dummy; | 
 | 12736 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12737 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12738 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12739 |  | 
 | 12740 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 12741 | 	# there are at least two -arch flags with different values. | 
 | 12742 | 	ac_arch= | 
 | 12743 | 	ac_prev= | 
 | 12744 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 12745 | 	 if test -n "$ac_prev"; then | 
 | 12746 | 	   case $ac_word in | 
 | 12747 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 12748 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 12749 | 		 ac_arch=$ac_word | 
 | 12750 | 	       else | 
 | 12751 | 		 ac_cv_c_bigendian=universal | 
 | 12752 | 		 break | 
 | 12753 | 	       fi | 
 | 12754 | 	       ;; | 
 | 12755 | 	   esac | 
 | 12756 | 	   ac_prev= | 
 | 12757 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 12758 | 	   ac_prev=arch | 
 | 12759 | 	 fi | 
 | 12760 |        done | 
 | 12761 | fi | 
 | 12762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12763 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12764 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 12765 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12766 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12767 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12768 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12769 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12770 | int | 
 | 12771 | main () | 
 | 12772 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12773 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 12774 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 12775 | 		     && LITTLE_ENDIAN) | 
 | 12776 | 	      bogus endian macros | 
 | 12777 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 |  | 
 | 12779 |   ; | 
 | 12780 |   return 0; | 
 | 12781 | } | 
 | 12782 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12783 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12784 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12785 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12786 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12787 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12788 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12789 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12790 | int | 
 | 12791 | main () | 
 | 12792 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12793 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12794 | 		 not big endian | 
 | 12795 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12796 |  | 
 | 12797 |   ; | 
 | 12798 |   return 0; | 
 | 12799 | } | 
 | 12800 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12801 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12802 |   ac_cv_c_bigendian=yes | 
 | 12803 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12804 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12805 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12807 | fi | 
 | 12808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12809 |     fi | 
 | 12810 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12811 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 12812 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12813 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12814 | #include <limits.h> | 
 | 12815 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12816 | int | 
 | 12817 | main () | 
 | 12818 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12819 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 12820 | 	      bogus endian macros | 
 | 12821 | 	     #endif | 
 | 12822 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12823 |   ; | 
 | 12824 |   return 0; | 
 | 12825 | } | 
 | 12826 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12827 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12828 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 12829 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12830 | /* end confdefs.h.  */ | 
 | 12831 | #include <limits.h> | 
 | 12832 |  | 
 | 12833 | int | 
 | 12834 | main () | 
 | 12835 | { | 
 | 12836 | #ifndef _BIG_ENDIAN | 
 | 12837 | 		 not big endian | 
 | 12838 | 		#endif | 
 | 12839 |  | 
 | 12840 |   ; | 
 | 12841 |   return 0; | 
 | 12842 | } | 
 | 12843 | _ACEOF | 
 | 12844 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 |   ac_cv_c_bigendian=yes | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 12846 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12847 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12848 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12850 | fi | 
 | 12851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12852 |     fi | 
 | 12853 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12854 |       # Compile a test program. | 
 | 12855 |       if test "$cross_compiling" = yes; then : | 
 | 12856 |   # Try to guess by grepping values from an object file. | 
 | 12857 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12858 | /* end confdefs.h.  */ | 
 | 12859 | short int ascii_mm[] = | 
 | 12860 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 12861 | 		short int ascii_ii[] = | 
 | 12862 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 12863 | 		int use_ascii (int i) { | 
 | 12864 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 12865 | 		} | 
 | 12866 | 		short int ebcdic_ii[] = | 
 | 12867 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 12868 | 		short int ebcdic_mm[] = | 
 | 12869 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 12870 | 		int use_ebcdic (int i) { | 
 | 12871 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 12872 | 		} | 
 | 12873 | 		extern int foo; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12874 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12875 | int | 
 | 12876 | main () | 
 | 12877 | { | 
 | 12878 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 12879 |   ; | 
 | 12880 |   return 0; | 
 | 12881 | } | 
 | 12882 | _ACEOF | 
 | 12883 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12884 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 12885 | 	      ac_cv_c_bigendian=yes | 
 | 12886 | 	    fi | 
 | 12887 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 12888 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 12889 | 		ac_cv_c_bigendian=no | 
 | 12890 | 	      else | 
 | 12891 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 12892 | 		ac_cv_c_bigendian=unknown | 
 | 12893 | 	      fi | 
 | 12894 | 	    fi | 
 | 12895 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12896 | 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] | 12897 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12900 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | int | 
 | 12902 | main () | 
 | 12903 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12904 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12905 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 12906 | 	     union | 
 | 12907 | 	     { | 
 | 12908 | 	       long int l; | 
 | 12909 | 	       char c[sizeof (long int)]; | 
 | 12910 | 	     } u; | 
 | 12911 | 	     u.l = 1; | 
 | 12912 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12913 |  | 
 | 12914 |   ; | 
 | 12915 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12916 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12918 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12919 |   ac_cv_c_bigendian=no | 
 | 12920 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12921 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12922 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12923 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12924 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12925 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12926 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12927 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12928 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 12930 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 12931 |  case $ac_cv_c_bigendian in #( | 
 | 12932 |    yes) | 
 | 12933 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 12934 | ;; #( | 
 | 12935 |    no) | 
 | 12936 |       ;; #( | 
 | 12937 |    universal) | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12938 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12939 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 12940 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12941 |      ;; #( | 
 | 12942 |    *) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12943 |      as_fn_error $? "unknown endianness | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12944 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12945 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12946 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12947 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12948 | # Check whether right shifting a negative integer extends the sign bit | 
 | 12949 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 12951 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12952 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12953 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12954 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12956 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12957 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12958 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12959 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12960 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12961 |  | 
 | 12962 | int main() | 
 | 12963 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12964 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12965 | } | 
 | 12966 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12968 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12969 |   ac_cv_rshift_extends_sign=yes | 
 | 12970 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12971 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12972 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12973 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12974 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12975 | fi | 
 | 12976 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12977 | fi | 
 | 12978 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 12980 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12981 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12982 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12983 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12984 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12985 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12986 | fi | 
 | 12987 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12988 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 12990 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12991 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12992 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12993 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12994 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12996 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12997 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12998 | int | 
 | 12999 | main () | 
 | 13000 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13001 |  | 
 | 13002 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 13003 | 	flockfile(f); | 
 | 13004 | 	getc_unlocked(f); | 
 | 13005 | 	funlockfile(f); | 
 | 13006 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 |   ; | 
 | 13008 |   return 0; | 
 | 13009 | } | 
 | 13010 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13011 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13012 |   ac_cv_have_getc_unlocked=yes | 
 | 13013 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13014 |   ac_cv_have_getc_unlocked=no | 
 | 13015 | fi | 
 | 13016 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13017 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13018 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13019 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 13021 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13022 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 13023 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13024 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13025 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13026 |  | 
 | 13027 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13028 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13029 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13030 | # save the value of LIBS so we don't actually link Python with readline | 
 | 13031 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13032 |  | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13033 | # On some systems we need to link readline to a termcap compatible | 
 | 13034 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 13035 | # with setup.py. | 
 | 13036 | py_cv_lib_readline=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 13038 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13039 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
 | 13040 |   if test -z "$py_libtermcap"; then | 
 | 13041 |     READLINE_LIBS="-lreadline" | 
 | 13042 |   else | 
 | 13043 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 13044 |   fi | 
 | 13045 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13046 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13047 | /* end confdefs.h.  */ | 
 | 13048 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13049 | /* Override any GCC internal prototype to avoid an error. | 
 | 13050 |    Use char because int might match the return type of a GCC | 
 | 13051 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13052 | #ifdef __cplusplus | 
 | 13053 | extern "C" | 
 | 13054 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13055 | char readline (); | 
 | 13056 | int | 
 | 13057 | main () | 
 | 13058 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13059 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13060 |   ; | 
 | 13061 |   return 0; | 
 | 13062 | } | 
 | 13063 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13064 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13065 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13066 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13067 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13068 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13069 |   if test $py_cv_lib_readline = yes; then | 
 | 13070 |     break | 
 | 13071 |   fi | 
 | 13072 | done | 
 | 13073 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 13074 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 13075 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13076 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 13077 | $as_echo "none" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13078 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13079 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 13080 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13081 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13082 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13083 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13084 | fi | 
 | 13085 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13086 | # check for readline 2.1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 13088 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13089 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13090 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13091 | else | 
 | 13092 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13093 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13095 | /* end confdefs.h.  */ | 
 | 13096 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13097 | /* Override any GCC internal prototype to avoid an error. | 
 | 13098 |    Use char because int might match the return type of a GCC | 
 | 13099 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13100 | #ifdef __cplusplus | 
 | 13101 | extern "C" | 
 | 13102 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13103 | char rl_callback_handler_install (); | 
 | 13104 | int | 
 | 13105 | main () | 
 | 13106 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13107 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13108 |   ; | 
 | 13109 |   return 0; | 
 | 13110 | } | 
 | 13111 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13112 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13113 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 13114 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13115 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13116 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13117 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13118 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13119 | LIBS=$ac_check_lib_save_LIBS | 
 | 13120 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 13122 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13123 | 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] | 13124 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13125 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13126 |  | 
 | 13127 | fi | 
 | 13128 |  | 
 | 13129 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13130 | # check for readline 2.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13132 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13133 | #include <readline/readline.h> | 
 | 13134 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13135 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13136 |   have_readline=yes | 
 | 13137 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13138 |   have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13139 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13140 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13141 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13142 | if test $have_readline = yes | 
 | 13143 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13144 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13145 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13146 | #include <readline/readline.h> | 
 | 13147 |  | 
 | 13148 | _ACEOF | 
 | 13149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13150 |   $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] | 13151 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13152 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13153 |  | 
 | 13154 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13155 | rm -f conftest* | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13156 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13157 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13158 | /* end confdefs.h.  */ | 
 | 13159 | #include <readline/readline.h> | 
 | 13160 |  | 
 | 13161 | _ACEOF | 
 | 13162 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13163 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13164 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13165 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13166 |  | 
 | 13167 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13168 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13169 |  | 
 | 13170 | fi | 
 | 13171 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13172 | # check for readline 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 13174 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13175 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13176 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13177 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13178 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13179 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13181 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13183 | /* Override any GCC internal prototype to avoid an error. | 
 | 13184 |    Use char because int might match the return type of a GCC | 
 | 13185 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13186 | #ifdef __cplusplus | 
 | 13187 | extern "C" | 
 | 13188 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13190 | int | 
 | 13191 | main () | 
 | 13192 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13193 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13194 |   ; | 
 | 13195 |   return 0; | 
 | 13196 | } | 
 | 13197 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13198 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13199 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13200 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13201 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13202 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13203 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13204 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | LIBS=$ac_check_lib_save_LIBS | 
 | 13206 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 13208 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13209 | 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] | 13210 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13211 | $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] | 13212 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13213 | fi | 
 | 13214 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13215 |  | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13216 | # also in 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 13218 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13219 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13220 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13221 | else | 
 | 13222 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13223 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13225 | /* end confdefs.h.  */ | 
 | 13226 |  | 
 | 13227 | /* Override any GCC internal prototype to avoid an error. | 
 | 13228 |    Use char because int might match the return type of a GCC | 
 | 13229 |    builtin and then its argument prototype would still apply.  */ | 
 | 13230 | #ifdef __cplusplus | 
 | 13231 | extern "C" | 
 | 13232 | #endif | 
 | 13233 | char rl_completion_display_matches_hook (); | 
 | 13234 | int | 
 | 13235 | main () | 
 | 13236 | { | 
 | 13237 | return rl_completion_display_matches_hook (); | 
 | 13238 |   ; | 
 | 13239 |   return 0; | 
 | 13240 | } | 
 | 13241 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13242 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13243 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 13244 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13245 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13246 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13247 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13248 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13249 | LIBS=$ac_check_lib_save_LIBS | 
 | 13250 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 13252 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13253 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13254 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13255 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13256 |  | 
 | 13257 | fi | 
 | 13258 |  | 
 | 13259 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13260 | # check for readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 13262 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13263 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13264 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13265 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13267 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13269 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13270 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13271 | /* Override any GCC internal prototype to avoid an error. | 
 | 13272 |    Use char because int might match the return type of a GCC | 
 | 13273 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13274 | #ifdef __cplusplus | 
 | 13275 | extern "C" | 
 | 13276 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13278 | int | 
 | 13279 | main () | 
 | 13280 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13281 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13282 |   ; | 
 | 13283 |   return 0; | 
 | 13284 | } | 
 | 13285 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13286 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13288 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13289 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13290 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13291 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13292 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | LIBS=$ac_check_lib_save_LIBS | 
 | 13294 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 13296 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13297 | 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] | 13298 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13299 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13300 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13301 | fi | 
 | 13302 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13303 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13304 | # also in readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13306 | /* end confdefs.h.  */ | 
 | 13307 | #include <readline/readline.h> | 
 | 13308 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13309 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13310 |   have_readline=yes | 
 | 13311 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13312 |   have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13313 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13314 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13315 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13316 | if test $have_readline = yes | 
 | 13317 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13318 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13319 | /* end confdefs.h.  */ | 
 | 13320 | #include <readline/readline.h> | 
 | 13321 |  | 
 | 13322 | _ACEOF | 
 | 13323 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13324 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13325 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13326 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13327 |  | 
 | 13328 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13329 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13330 |  | 
 | 13331 | fi | 
 | 13332 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13333 | # End of readline checks: restore LIBS | 
 | 13334 | LIBS=$LIBS_no_readline | 
 | 13335 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 13337 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13338 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13339 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13340 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13341 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13342 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13343 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13344 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13345 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13346 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13347 |  | 
 | 13348 | int main() | 
 | 13349 | { | 
 | 13350 | 	int val1 = nice(1); | 
 | 13351 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 13352 | 		exit(0); | 
 | 13353 | 	exit(1); | 
 | 13354 | } | 
 | 13355 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13356 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13357 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13358 |   ac_cv_broken_nice=yes | 
 | 13359 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13360 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13361 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13362 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13363 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13364 | fi | 
 | 13365 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13366 | fi | 
 | 13367 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 13369 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13370 | if test "$ac_cv_broken_nice" = yes | 
 | 13371 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13372 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13373 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13374 |  | 
 | 13375 | fi | 
 | 13376 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 13378 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13379 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13380 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13381 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13382 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13383 |   ac_cv_broken_poll=no | 
 | 13384 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13385 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13386 | /* end confdefs.h.  */ | 
 | 13387 |  | 
 | 13388 | #include <poll.h> | 
 | 13389 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13390 | int main() | 
 | 13391 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13392 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13393 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13394 |  | 
 | 13395 |     close (42); | 
 | 13396 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13397 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13398 |     if (poll_test < 0) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13399 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13400 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13401 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13402 |     else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13403 |         return 1; | 
 | 13404 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13405 |  | 
 | 13406 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13407 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13408 |   ac_cv_broken_poll=yes | 
 | 13409 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13410 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13411 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13412 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13413 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13414 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13415 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13416 | fi | 
 | 13417 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 13419 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13420 | if test "$ac_cv_broken_poll" = yes | 
 | 13421 | then | 
 | 13422 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13423 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13424 |  | 
 | 13425 | fi | 
 | 13426 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13427 | # 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] | 13428 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 13429 | # tzname[] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13430 | 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] | 13431 | #include <$ac_cv_struct_tm> | 
 | 13432 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13433 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13434 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13435 |  | 
 | 13436 | cat >>confdefs.h <<_ACEOF | 
 | 13437 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 13438 | _ACEOF | 
 | 13439 |  | 
 | 13440 |  | 
 | 13441 | fi | 
 | 13442 |  | 
 | 13443 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 13444 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13445 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13446 |  | 
 | 13447 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13448 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 13449 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13450 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13451 |   ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13452 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13453 |   ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13454 | fi | 
 | 13455 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13456 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13457 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13458 | _ACEOF | 
 | 13459 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13460 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 13461 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13462 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13463 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13464 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13465 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13466 | /* end confdefs.h.  */ | 
 | 13467 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13468 | #if !HAVE_DECL_TZNAME | 
 | 13469 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13470 | #endif | 
 | 13471 |  | 
 | 13472 | int | 
 | 13473 | main () | 
 | 13474 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13475 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13476 |   ; | 
 | 13477 |   return 0; | 
 | 13478 | } | 
 | 13479 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13480 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13481 |   ac_cv_var_tzname=yes | 
 | 13482 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13483 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13484 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13485 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13486 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13487 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 13489 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13490 |   if test $ac_cv_var_tzname = yes; then | 
 | 13491 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13492 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13493 |  | 
 | 13494 |   fi | 
 | 13495 | fi | 
 | 13496 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13497 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13498 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 13500 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13501 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13502 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13503 | else | 
 | 13504 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13505 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13506 |   ac_cv_working_tzset=no | 
 | 13507 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13508 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13509 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13510 |  | 
 | 13511 | #include <stdlib.h> | 
 | 13512 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13513 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13514 |  | 
 | 13515 | #if HAVE_TZNAME | 
 | 13516 | extern char *tzname[]; | 
 | 13517 | #endif | 
 | 13518 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13519 | int main() | 
 | 13520 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13521 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 13522 | 	   do 'something' with localtime, but it works as documented | 
 | 13523 | 	   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] | 13524 | 	   This includes making sure that tzname is set properly if | 
 | 13525 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 13526 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13527 |  | 
 | 13528 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13529 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13530 | 	*/ | 
 | 13531 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13532 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13533 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 13534 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13535 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13536 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13537 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 13538 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13539 | #if HAVE_TZNAME | 
 | 13540 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 13541 | 	if (strcmp(tzname[0], "UTC") || | 
 | 13542 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 13543 | 	    exit(1); | 
 | 13544 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13545 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13546 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13547 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13548 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13549 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13550 | #if HAVE_TZNAME | 
 | 13551 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 13552 | 	    exit(1); | 
 | 13553 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13554 |  | 
 | 13555 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 13556 | 	tzset(); | 
 | 13557 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 13558 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13559 | #if HAVE_TZNAME | 
 | 13560 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 13561 | 	    exit(1); | 
 | 13562 | #endif | 
 | 13563 |  | 
 | 13564 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13565 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 13566 | 	    exit(1); | 
 | 13567 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 13568 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13569 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13570 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13571 | 	exit(0); | 
 | 13572 | } | 
 | 13573 |  | 
 | 13574 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13575 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13576 |   ac_cv_working_tzset=yes | 
 | 13577 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13578 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13579 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13580 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13581 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13582 | fi | 
 | 13583 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13584 | fi | 
 | 13585 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 13587 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13588 | if test "$ac_cv_working_tzset" = yes | 
 | 13589 | then | 
 | 13590 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13591 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13592 |  | 
 | 13593 | fi | 
 | 13594 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13595 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 13597 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13598 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13599 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13600 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13601 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13602 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13603 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13604 | int | 
 | 13605 | main () | 
 | 13606 | { | 
 | 13607 |  | 
 | 13608 | struct stat st; | 
 | 13609 | st.st_mtim.tv_nsec = 1; | 
 | 13610 |  | 
 | 13611 |   ; | 
 | 13612 |   return 0; | 
 | 13613 | } | 
 | 13614 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13615 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13616 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13617 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13618 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13619 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13621 | fi | 
 | 13622 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 13624 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13625 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 13626 | then | 
 | 13627 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13628 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13629 |  | 
 | 13630 | fi | 
 | 13631 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13632 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 13634 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13635 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13636 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13637 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13638 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13639 | /* end confdefs.h.  */ | 
 | 13640 | #include <sys/stat.h> | 
 | 13641 | int | 
 | 13642 | main () | 
 | 13643 | { | 
 | 13644 |  | 
 | 13645 | struct stat st; | 
 | 13646 | st.st_mtimespec.tv_nsec = 1; | 
 | 13647 |  | 
 | 13648 |   ; | 
 | 13649 |   return 0; | 
 | 13650 | } | 
 | 13651 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13652 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13653 |   ac_cv_stat_tv_nsec2=yes | 
 | 13654 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13655 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13656 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13658 | fi | 
 | 13659 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 13661 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13662 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 13663 | then | 
 | 13664 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13665 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13666 |  | 
 | 13667 | fi | 
 | 13668 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13669 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 13671 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13672 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13673 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13674 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13675 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13676 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13677 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13678 | int | 
 | 13679 | main () | 
 | 13680 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13681 |  | 
 | 13682 |   int rtn; | 
 | 13683 |   rtn = mvwdelch(0,0,0); | 
 | 13684 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13685 |   ; | 
 | 13686 |   return 0; | 
 | 13687 | } | 
 | 13688 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13689 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13690 |   ac_cv_mvwdelch_is_expression=yes | 
 | 13691 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13692 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13693 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13695 | fi | 
 | 13696 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 13698 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13699 |  | 
 | 13700 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 13701 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13702 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13703 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13704 |  | 
 | 13705 | fi | 
 | 13706 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 13708 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13709 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13710 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13711 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13712 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13713 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13714 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13715 | int | 
 | 13716 | main () | 
 | 13717 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13718 |  | 
 | 13719 |   WINDOW *w; | 
 | 13720 |   w->_flags = 0; | 
 | 13721 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 |   ; | 
 | 13723 |   return 0; | 
 | 13724 | } | 
 | 13725 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13726 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13727 |   ac_cv_window_has_flags=yes | 
 | 13728 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13729 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13730 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13732 | fi | 
 | 13733 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 13735 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13736 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13737 |  | 
 | 13738 | if test "$ac_cv_window_has_flags" = yes | 
 | 13739 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13740 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13741 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13742 |  | 
 | 13743 | fi | 
 | 13744 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 13746 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 13747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13748 | /* end confdefs.h.  */ | 
 | 13749 | #include <curses.h> | 
 | 13750 | int | 
 | 13751 | main () | 
 | 13752 | { | 
 | 13753 | void *x=is_term_resized | 
 | 13754 |   ; | 
 | 13755 |   return 0; | 
 | 13756 | } | 
 | 13757 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13758 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13759 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13760 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13761 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13762 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13763 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13764 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13765 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13766 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13767 |  | 
 | 13768 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13770 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 13772 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 13773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13774 | /* end confdefs.h.  */ | 
 | 13775 | #include <curses.h> | 
 | 13776 | int | 
 | 13777 | main () | 
 | 13778 | { | 
 | 13779 | void *x=resize_term | 
 | 13780 |   ; | 
 | 13781 |   return 0; | 
 | 13782 | } | 
 | 13783 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13784 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13785 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13786 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13787 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13788 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13789 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13790 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13791 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13792 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13793 |  | 
 | 13794 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13796 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 13798 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 13799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13800 | /* end confdefs.h.  */ | 
 | 13801 | #include <curses.h> | 
 | 13802 | int | 
 | 13803 | main () | 
 | 13804 | { | 
 | 13805 | void *x=resizeterm | 
 | 13806 |   ; | 
 | 13807 |   return 0; | 
 | 13808 | } | 
 | 13809 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13810 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13811 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13812 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13813 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13814 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13815 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13816 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13817 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13818 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13819 |  | 
 | 13820 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13822 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 13824 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13825 |  | 
 | 13826 | if test -r /dev/ptmx | 
 | 13827 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13828 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13829 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13830 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13831 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13832 |  | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13833 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13834 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13835 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13836 | fi | 
 | 13837 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 13839 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13840 |  | 
 | 13841 | if test -r /dev/ptc | 
 | 13842 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13843 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13844 | $as_echo "yes" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13845 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13846 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13847 |  | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13848 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13849 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13850 | $as_echo "no" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13851 | fi | 
 | 13852 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13853 | if test "$have_long_long" = yes | 
 | 13854 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13855 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 13856 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13857 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13858 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13859 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13860 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13861 |   ac_cv_have_long_long_format=no | 
 | 13862 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13863 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13864 | /* end confdefs.h.  */ | 
 | 13865 |  | 
 | 13866 |   #include <stdio.h> | 
 | 13867 |   #include <stddef.h> | 
 | 13868 |   #include <string.h> | 
 | 13869 |  | 
 | 13870 |   #ifdef HAVE_SYS_TYPES_H | 
 | 13871 |   #include <sys/types.h> | 
 | 13872 |   #endif | 
 | 13873 |  | 
 | 13874 |   int main() | 
 | 13875 |   { | 
 | 13876 |       char buffer[256]; | 
 | 13877 |  | 
 | 13878 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 13879 |           return 1; | 
 | 13880 |       if (strcmp(buffer, "123")) | 
 | 13881 |           return 1; | 
 | 13882 |  | 
 | 13883 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 13884 |           return 1; | 
 | 13885 |       if (strcmp(buffer, "-123")) | 
 | 13886 |           return 1; | 
 | 13887 |  | 
 | 13888 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 13889 |           return 1; | 
 | 13890 |       if (strcmp(buffer, "123")) | 
 | 13891 |           return 1; | 
 | 13892 |  | 
 | 13893 |       return 0; | 
 | 13894 |   } | 
 | 13895 |  | 
 | 13896 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13897 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13898 |   ac_cv_have_long_long_format=yes | 
 | 13899 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13900 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13901 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13902 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13903 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13904 | fi | 
 | 13905 |  | 
 | 13906 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13907 | fi | 
 | 13908 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 13910 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13911 | fi | 
 | 13912 |  | 
| Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 13913 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13914 | then | 
 | 13915 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13916 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13917 |  | 
 | 13918 | fi | 
 | 13919 |  | 
| Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 13920 | if test $ac_sys_system = Darwin | 
 | 13921 | then | 
 | 13922 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 13923 | fi | 
 | 13924 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13925 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 13927 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13928 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13929 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13930 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13931 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 13932 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 13933 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13934 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13935 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13936 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13937 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13938 | #include <stdio.h> | 
 | 13939 | #include <stddef.h> | 
 | 13940 | #include <string.h> | 
 | 13941 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 13942 | #ifdef HAVE_SYS_TYPES_H | 
 | 13943 | #include <sys/types.h> | 
 | 13944 | #endif | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 13945 |  | 
 | 13946 | #ifdef HAVE_SSIZE_T | 
 | 13947 | typedef ssize_t Py_ssize_t; | 
 | 13948 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 13949 | typedef long Py_ssize_t; | 
 | 13950 | #else | 
 | 13951 | typedef int Py_ssize_t; | 
 | 13952 | #endif | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13953 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 13954 | int main() | 
 | 13955 | { | 
 | 13956 |     char buffer[256]; | 
 | 13957 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13958 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 13959 |        	return 1; | 
 | 13960 |  | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 13961 |     if (strcmp(buffer, "123")) | 
 | 13962 | 	return 1; | 
 | 13963 |  | 
 | 13964 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 13965 |        	return 1; | 
 | 13966 |  | 
 | 13967 |     if (strcmp(buffer, "-123")) | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13968 | 	return 1; | 
 | 13969 |  | 
 | 13970 |     return 0; | 
 | 13971 | } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13972 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13973 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13974 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13975 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13976 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13977 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13978 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13979 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13980 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13981 | fi | 
 | 13982 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13983 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 13985 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 13986 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13987 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13988 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13989 |  | 
 | 13990 | fi | 
 | 13991 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13992 | 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] | 13993 | #ifdef HAVE_SYS_TYPES_H | 
 | 13994 | #include <sys/types.h> | 
 | 13995 | #endif | 
 | 13996 | #ifdef HAVE_SYS_SOCKET_H | 
 | 13997 | #include <sys/socket.h> | 
 | 13998 | #endif | 
 | 13999 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14000 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14001 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 14002 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14004 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14005 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14006 |  | 
 | 14007 | fi | 
 | 14008 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14009 |  | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame] | 14010 | case $ac_sys_system in | 
 | 14011 | AIX*) | 
 | 14012 |  | 
 | 14013 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 14014 |  ;; | 
 | 14015 | esac | 
 | 14016 |  | 
 | 14017 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14018 |  | 
 | 14019 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 14020 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 14021 | do | 
 | 14022 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 14023 | done | 
 | 14024 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14025 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 14026 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 14028 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14029 | for dir in $SRCDIRS; do | 
 | 14030 |     if test ! -d $dir; then | 
 | 14031 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 14032 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14033 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 14035 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 14036 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14037 | # generate output files | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14038 | 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] | 14039 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14040 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 14041 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14042 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14043 | # This file is a shell script that caches the results of configure | 
 | 14044 | # 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] | 14045 | # scripts and configure runs, see configure's option --config-cache. | 
 | 14046 | # It is not useful on other systems.  If it contains results you don't | 
 | 14047 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14048 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14049 | # config.status only pays attention to the cache file if you give it | 
 | 14050 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14051 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14052 | # `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] | 14053 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 14054 | # following values. | 
 | 14055 |  | 
 | 14056 | _ACEOF | 
 | 14057 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14058 | # The following way of writing the cache mishandles newlines in values, | 
 | 14059 | # but we know of no workaround that is simple, portable, and efficient. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14060 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14061 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 14062 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14063 | ( | 
 | 14064 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 14065 |     eval ac_val=\$$ac_var | 
 | 14066 |     case $ac_val in #( | 
 | 14067 |     *${as_nl}*) | 
 | 14068 |       case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14069 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 14070 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14071 |       esac | 
 | 14072 |       case $ac_var in #( | 
 | 14073 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14074 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 14075 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14076 |       esac ;; | 
 | 14077 |     esac | 
 | 14078 |   done | 
 | 14079 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14080 |   (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14081 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 14082 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14083 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 14084 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14086 | 	"s/'/'\\\\''/g; | 
 | 14087 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14088 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14089 |     *) | 
 | 14090 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14091 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 |       ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14093 |     esac | | 
 | 14094 |     sort | 
 | 14095 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14096 |   sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14097 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14098 |      t clear | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14099 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14100 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 14101 |      t end | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14102 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 14103 |      :end' >>confcache | 
 | 14104 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 14105 |   if test -w "$cache_file"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14106 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14107 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 14108 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14109 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 14110 | 	cat confcache >"$cache_file" | 
 | 14111 |       else | 
 | 14112 |         case $cache_file in #( | 
 | 14113 |         */* | ?:*) | 
 | 14114 | 	  mv -f confcache "$cache_file"$$ && | 
 | 14115 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 14116 |         *) | 
 | 14117 | 	  mv -f confcache "$cache_file" ;; | 
 | 14118 | 	esac | 
 | 14119 |       fi | 
 | 14120 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14121 |   else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14122 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 14123 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14124 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14125 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14126 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14127 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14128 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 14129 | # Let make expand exec_prefix. | 
 | 14130 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14131 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14132 | DEFS=-DHAVE_CONFIG_H | 
 | 14133 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14134 | ac_libobjs= | 
 | 14135 | ac_ltlibobjs= | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14136 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14137 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 14138 |   # 1. Remove the extension, and $U if already installed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14139 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14140 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14141 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 14142 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14143 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 14144 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14145 | done | 
 | 14146 | LIBOBJS=$ac_libobjs | 
 | 14147 |  | 
 | 14148 | LTLIBOBJS=$ac_ltlibobjs | 
 | 14149 |  | 
 | 14150 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14152 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14153 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14154 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14155 | ac_clean_files_save=$ac_clean_files | 
 | 14156 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14157 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 14158 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 14159 | as_write_fail=0 | 
 | 14160 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | #! $SHELL | 
 | 14162 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14163 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14164 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14165 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14166 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14167 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14168 | ac_cs_recheck=false | 
 | 14169 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14170 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14171 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 14172 | export SHELL | 
 | 14173 | _ASEOF | 
 | 14174 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 14175 | ## -------------------- ## | 
 | 14176 | ## M4sh Initialization. ## | 
 | 14177 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14178 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14179 | # Be more Bourne compatible | 
 | 14180 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14181 | 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] | 14182 |   emulate sh | 
 | 14183 |   NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14184 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14185 |   # is contrary to our usage.  Disable this feature. | 
 | 14186 |   alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14187 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14188 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14189 |   case `(set -o) 2>/dev/null` in #( | 
 | 14190 |   *posix*) : | 
 | 14191 |     set -o posix ;; #( | 
 | 14192 |   *) : | 
 | 14193 |      ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14194 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14195 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14196 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14197 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14198 | as_nl=' | 
 | 14199 | ' | 
 | 14200 | export as_nl | 
 | 14201 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 14202 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 14203 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14204 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14205 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 14206 | # but without wasting forks for bash or zsh. | 
 | 14207 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 14208 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14209 |   as_echo='print -r --' | 
 | 14210 |   as_echo_n='print -rn --' | 
 | 14211 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14212 |   as_echo='printf %s\n' | 
 | 14213 |   as_echo_n='printf %s' | 
 | 14214 | else | 
 | 14215 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 14216 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 14217 |     as_echo_n='/usr/ucb/echo -n' | 
 | 14218 |   else | 
 | 14219 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 14220 |     as_echo_n_body='eval | 
 | 14221 |       arg=$1; | 
 | 14222 |       case $arg in #( | 
 | 14223 |       *"$as_nl"*) | 
 | 14224 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 14225 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 14226 |       esac; | 
 | 14227 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 14228 |     ' | 
 | 14229 |     export as_echo_n_body | 
 | 14230 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 14231 |   fi | 
 | 14232 |   export as_echo_body | 
 | 14233 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 14234 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14235 |  | 
 | 14236 | # The user is always right. | 
 | 14237 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14238 |   PATH_SEPARATOR=: | 
 | 14239 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 14240 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 14241 |       PATH_SEPARATOR=';' | 
 | 14242 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14243 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14244 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14245 |  | 
 | 14246 | # IFS | 
 | 14247 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 14248 | # there to prevent editors from complaining about space-tab. | 
 | 14249 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 14250 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14251 | IFS=" ""	$as_nl" | 
 | 14252 |  | 
 | 14253 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14254 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14255 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14256 |   *[\\/]* ) as_myself=$0 ;; | 
 | 14257 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14258 | for as_dir in $PATH | 
 | 14259 | do | 
 | 14260 |   IFS=$as_save_IFS | 
 | 14261 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14262 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 14263 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14264 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14265 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14266 |      ;; | 
 | 14267 | esac | 
 | 14268 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 14269 | # in which case we are not to be found in the path. | 
 | 14270 | if test "x$as_myself" = x; then | 
 | 14271 |   as_myself=$0 | 
 | 14272 | fi | 
 | 14273 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14274 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 14275 |   exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14276 | fi | 
 | 14277 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14278 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 14279 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 14280 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 14281 | # trigger a bug in pdksh 5.2.14. | 
 | 14282 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 14283 | do eval test x\${$as_var+set} = xset \ | 
 | 14284 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14285 | done | 
 | 14286 | PS1='$ ' | 
 | 14287 | PS2='> ' | 
 | 14288 | PS4='+ ' | 
 | 14289 |  | 
 | 14290 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14291 | LC_ALL=C | 
 | 14292 | export LC_ALL | 
 | 14293 | LANGUAGE=C | 
 | 14294 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14295 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14296 | # CDPATH. | 
 | 14297 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 14298 |  | 
 | 14299 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14300 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 14301 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14302 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 14303 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14304 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14305 | as_fn_error () | 
 | 14306 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14307 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 14308 |   if test "$4"; then | 
 | 14309 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 14310 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14311 |   fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14312 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14313 |   as_fn_exit $as_status | 
 | 14314 | } # as_fn_error | 
 | 14315 |  | 
 | 14316 |  | 
 | 14317 | # as_fn_set_status STATUS | 
 | 14318 | # ----------------------- | 
 | 14319 | # Set $? to STATUS, without forking. | 
 | 14320 | as_fn_set_status () | 
 | 14321 | { | 
 | 14322 |   return $1 | 
 | 14323 | } # as_fn_set_status | 
 | 14324 |  | 
 | 14325 | # as_fn_exit STATUS | 
 | 14326 | # ----------------- | 
 | 14327 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 14328 | as_fn_exit () | 
 | 14329 | { | 
 | 14330 |   set +e | 
 | 14331 |   as_fn_set_status $1 | 
 | 14332 |   exit $1 | 
 | 14333 | } # as_fn_exit | 
 | 14334 |  | 
 | 14335 | # as_fn_unset VAR | 
 | 14336 | # --------------- | 
 | 14337 | # Portably unset VAR. | 
 | 14338 | as_fn_unset () | 
 | 14339 | { | 
 | 14340 |   { eval $1=; unset $1;} | 
 | 14341 | } | 
 | 14342 | as_unset=as_fn_unset | 
 | 14343 | # as_fn_append VAR VALUE | 
 | 14344 | # ---------------------- | 
 | 14345 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 14346 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 14347 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 14348 | # implementations. | 
 | 14349 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 14350 |   eval 'as_fn_append () | 
 | 14351 |   { | 
 | 14352 |     eval $1+=\$2 | 
 | 14353 |   }' | 
 | 14354 | else | 
 | 14355 |   as_fn_append () | 
 | 14356 |   { | 
 | 14357 |     eval $1=\$$1\$2 | 
 | 14358 |   } | 
 | 14359 | fi # as_fn_append | 
 | 14360 |  | 
 | 14361 | # as_fn_arith ARG... | 
 | 14362 | # ------------------ | 
 | 14363 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 14364 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 14365 | # must be portable across $(()) and expr. | 
 | 14366 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 14367 |   eval 'as_fn_arith () | 
 | 14368 |   { | 
 | 14369 |     as_val=$(( $* )) | 
 | 14370 |   }' | 
 | 14371 | else | 
 | 14372 |   as_fn_arith () | 
 | 14373 |   { | 
 | 14374 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 14375 |   } | 
 | 14376 | fi # as_fn_arith | 
 | 14377 |  | 
 | 14378 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14379 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 14380 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 14381 |   as_expr=expr | 
 | 14382 | else | 
 | 14383 |   as_expr=false | 
 | 14384 | fi | 
 | 14385 |  | 
 | 14386 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 14387 |   as_basename=basename | 
 | 14388 | else | 
 | 14389 |   as_basename=false | 
 | 14390 | fi | 
 | 14391 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14392 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 14393 |   as_dirname=dirname | 
 | 14394 | else | 
 | 14395 |   as_dirname=false | 
 | 14396 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14397 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14398 | as_me=`$as_basename -- "$0" || | 
 | 14399 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 14400 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 14401 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14402 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14403 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 14404 | 	    s//\1/ | 
 | 14405 | 	    q | 
 | 14406 | 	  } | 
 | 14407 | 	  /^X\/\(\/\/\)$/{ | 
 | 14408 | 	    s//\1/ | 
 | 14409 | 	    q | 
 | 14410 | 	  } | 
 | 14411 | 	  /^X\/\(\/\).*/{ | 
 | 14412 | 	    s//\1/ | 
 | 14413 | 	    q | 
 | 14414 | 	  } | 
 | 14415 | 	  s/.*/./; q'` | 
 | 14416 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14417 | # Avoid depending upon Character Ranges. | 
 | 14418 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 14419 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 14420 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 14421 | as_cr_digits='0123456789' | 
 | 14422 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14423 |  | 
 | 14424 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14425 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14426 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14427 |   case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14428 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14429 |   xy)  ECHO_C='\c';; | 
 | 14430 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 14431 |        ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14432 |   esac;; | 
 | 14433 | *) | 
 | 14434 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14436 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14438 | if test -d conf$$.dir; then | 
 | 14439 |   rm -f conf$$.dir/conf$$.file | 
 | 14440 | else | 
 | 14441 |   rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14442 |   mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14443 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14444 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 14445 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 14446 |     as_ln_s='ln -s' | 
 | 14447 |     # ... but there are two gotchas: | 
 | 14448 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 14449 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 14450 |     # In both cases, we have to default to `cp -p'. | 
 | 14451 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
 | 14452 |       as_ln_s='cp -p' | 
 | 14453 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 14454 |     as_ln_s=ln | 
 | 14455 |   else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14456 |     as_ln_s='cp -p' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14457 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14458 | else | 
 | 14459 |   as_ln_s='cp -p' | 
 | 14460 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14461 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 14462 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14463 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14464 |  | 
 | 14465 | # as_fn_mkdir_p | 
 | 14466 | # ------------- | 
 | 14467 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 14468 | as_fn_mkdir_p () | 
 | 14469 | { | 
 | 14470 |  | 
 | 14471 |   case $as_dir in #( | 
 | 14472 |   -*) as_dir=./$as_dir;; | 
 | 14473 |   esac | 
 | 14474 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 14475 |     as_dirs= | 
 | 14476 |     while :; do | 
 | 14477 |       case $as_dir in #( | 
 | 14478 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 14479 |       *) as_qdir=$as_dir;; | 
 | 14480 |       esac | 
 | 14481 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 14482 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 14483 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 14484 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 14485 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 14486 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 14487 | $as_echo X"$as_dir" | | 
 | 14488 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 14489 | 	    s//\1/ | 
 | 14490 | 	    q | 
 | 14491 | 	  } | 
 | 14492 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 14493 | 	    s//\1/ | 
 | 14494 | 	    q | 
 | 14495 | 	  } | 
 | 14496 | 	  /^X\(\/\/\)$/{ | 
 | 14497 | 	    s//\1/ | 
 | 14498 | 	    q | 
 | 14499 | 	  } | 
 | 14500 | 	  /^X\(\/\).*/{ | 
 | 14501 | 	    s//\1/ | 
 | 14502 | 	    q | 
 | 14503 | 	  } | 
 | 14504 | 	  s/.*/./; q'` | 
 | 14505 |       test -d "$as_dir" && break | 
 | 14506 |     done | 
 | 14507 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14508 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14509 |  | 
 | 14510 |  | 
 | 14511 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14512 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14513 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14514 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14515 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14516 |   as_mkdir_p=false | 
 | 14517 | fi | 
 | 14518 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14519 | if test -x / >/dev/null 2>&1; then | 
 | 14520 |   as_test_x='test -x' | 
 | 14521 | else | 
 | 14522 |   if ls -dL / >/dev/null 2>&1; then | 
 | 14523 |     as_ls_L_option=L | 
 | 14524 |   else | 
 | 14525 |     as_ls_L_option= | 
 | 14526 |   fi | 
 | 14527 |   as_test_x=' | 
 | 14528 |     eval sh -c '\'' | 
 | 14529 |       if test -d "$1"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14530 | 	test -d "$1/."; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14531 |       else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14532 | 	case $1 in #( | 
 | 14533 | 	-*)set "./$1";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14534 | 	esac; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14535 | 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14536 | 	???[sx]*):;;*)false;;esac;fi | 
 | 14537 |     '\'' sh | 
 | 14538 |   ' | 
 | 14539 | fi | 
 | 14540 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14541 |  | 
 | 14542 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14543 | 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] | 14544 |  | 
 | 14545 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14546 | 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] | 14547 |  | 
 | 14548 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 | exec 6>&1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14550 | ## ----------------------------------- ## | 
 | 14551 | ## Main body of $CONFIG_STATUS script. ## | 
 | 14552 | ## ----------------------------------- ## | 
 | 14553 | _ASEOF | 
 | 14554 | 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] | 14555 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14556 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14557 | # 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] | 14558 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14559 | # values after options handling. | 
 | 14560 | ac_log=" | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 14561 | This file was extended by python $as_me 2.7, which was | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14562 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14563 |  | 
 | 14564 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 14565 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 14566 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 14567 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 14568 |   $ $0 $@ | 
 | 14569 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14570 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 14571 | " | 
 | 14572 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14573 | _ACEOF | 
 | 14574 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14575 | case $ac_config_files in *" | 
 | 14576 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 14577 | esac | 
 | 14578 |  | 
 | 14579 | case $ac_config_headers in *" | 
 | 14580 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 14581 | esac | 
 | 14582 |  | 
 | 14583 |  | 
 | 14584 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14585 | # Files that config.status was made for. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14586 | config_files="$ac_config_files" | 
 | 14587 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14589 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14591 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | ac_cs_usage="\ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14593 | \`$as_me' instantiates files and other configuration actions | 
 | 14594 | from templates according to the current configuration.  Unless the files | 
 | 14595 | 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] | 14596 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14597 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14598 |  | 
 | 14599 |   -h, --help       print this help, then exit | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14600 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14601 |       --config     print configuration, then exit | 
 | 14602 |   -q, --quiet, --silent | 
 | 14603 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14604 |   -d, --debug      don't remove temporary files | 
 | 14605 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14606 |       --file=FILE[:TEMPLATE] | 
 | 14607 |                    instantiate the configuration file FILE | 
 | 14608 |       --header=FILE[:TEMPLATE] | 
 | 14609 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14610 |  | 
 | 14611 | Configuration files: | 
 | 14612 | $config_files | 
 | 14613 |  | 
 | 14614 | Configuration headers: | 
 | 14615 | $config_headers | 
 | 14616 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14617 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14618 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14619 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14620 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 14621 | 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] | 14622 | ac_cs_version="\\ | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 14623 | python config.status 2.7 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14624 | configured by $0, generated by GNU Autoconf 2.68, | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14625 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14627 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14628 | This config.status script is free software; the Free Software Foundation | 
 | 14629 | gives unlimited permission to copy, distribute and modify it." | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14630 |  | 
 | 14631 | ac_pwd='$ac_pwd' | 
 | 14632 | srcdir='$srcdir' | 
 | 14633 | INSTALL='$INSTALL' | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 14634 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14635 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14636 | _ACEOF | 
 | 14637 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14639 | # 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] | 14640 | ac_need_defaults=: | 
 | 14641 | while test $# != 0 | 
 | 14642 | do | 
 | 14643 |   case $1 in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14644 |   --*=?*) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14645 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 14646 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14647 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14648 |     ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14649 |   --*=) | 
 | 14650 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 14651 |     ac_optarg= | 
 | 14652 |     ac_shift=: | 
 | 14653 |     ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14654 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14655 |     ac_option=$1 | 
 | 14656 |     ac_optarg=$2 | 
 | 14657 |     ac_shift=shift | 
 | 14658 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 |   esac | 
 | 14660 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14661 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14663 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 14664 |     ac_cs_recheck=: ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14665 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14666 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 14667 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 14668 |     $as_echo "$ac_cs_config"; exit ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14669 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 |     debug=: ;; | 
 | 14671 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14672 |     $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14673 |     case $ac_optarg in | 
 | 14674 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14675 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14676 |     esac | 
 | 14677 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14678 |     ac_need_defaults=false;; | 
 | 14679 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14680 |     $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14681 |     case $ac_optarg in | 
 | 14682 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 14683 |     esac | 
 | 14684 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14685 |     ac_need_defaults=false;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14686 |   --he | --h) | 
 | 14687 |     # Conflict between --help and --header | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14688 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14689 | Try \`$0 --help' for more information.";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14690 |   --help | --hel | -h ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14691 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14692 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 14693 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 14694 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14695 |  | 
 | 14696 |   # This is an error. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14697 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14698 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14699 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14700 |   *) as_fn_append ac_config_targets " $1" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14701 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14702 |  | 
 | 14703 |   esac | 
 | 14704 |   shift | 
 | 14705 | done | 
 | 14706 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14707 | ac_configure_extra_args= | 
 | 14708 |  | 
 | 14709 | if $ac_cs_silent; then | 
 | 14710 |   exec 6>/dev/null | 
 | 14711 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 14712 | fi | 
 | 14713 |  | 
 | 14714 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14715 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14716 | if \$ac_cs_recheck; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14717 |   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 14718 |   shift | 
 | 14719 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 14720 |   CONFIG_SHELL='$SHELL' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14721 |   export CONFIG_SHELL | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14722 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14723 | fi | 
 | 14724 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14725 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14726 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14727 | exec 5>>config.log | 
 | 14728 | { | 
 | 14729 |   echo | 
 | 14730 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 14731 | ## Running $as_me. ## | 
 | 14732 | _ASBOX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14733 |   $as_echo "$ac_log" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14734 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14735 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14736 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14737 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14738 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14740 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14741 |  | 
 | 14742 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14743 | for ac_config_target in $ac_config_targets | 
 | 14744 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14745 |   case $ac_config_target in | 
 | 14746 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 14747 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 14748 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
 | 14749 |     "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 14750 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 14751 |     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14752 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 14753 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14754 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14755 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14756 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14757 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14758 |   esac | 
 | 14759 | done | 
 | 14760 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14761 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14762 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 14763 | # then the envvar interface is used.  Set only those that are not. | 
 | 14764 | # We use the long form for the default assignment because of an extremely | 
 | 14765 | # bizarre bug on SunOS 4.1.3. | 
 | 14766 | if $ac_need_defaults; then | 
 | 14767 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 14768 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 14769 | fi | 
 | 14770 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14771 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14772 | # 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] | 14773 | # creating and moving files from /tmp can sometimes cause problems. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14774 | # Hook for its removal unless debugging. | 
 | 14775 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 14776 | # 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] | 14777 | $debug || | 
 | 14778 | { | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14779 |   tmp= ac_tmp= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14780 |   trap 'exit_status=$? | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14781 |   : "${ac_tmp:=$tmp}" | 
 | 14782 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14783 | ' 0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14784 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14785 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14786 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14787 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14789 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14790 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14791 | }  || | 
 | 14792 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14793 |   tmp=./conf$$-$RANDOM | 
 | 14794 |   (umask 077 && mkdir "$tmp") | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14795 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14796 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14797 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14798 | # Set up the scripts for CONFIG_FILES section. | 
 | 14799 | # No need to generate them if there are no CONFIG_FILES. | 
 | 14800 | # This happens for instance with `./config.status config.h'. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14801 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14802 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14803 |  | 
 | 14804 | ac_cr=`echo X | tr X '\015'` | 
 | 14805 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 14806 | # But we know of no other shell where ac_cr would be empty at this | 
 | 14807 | # point, so we can use a bashism as a fallback. | 
 | 14808 | if test "x$ac_cr" = x; then | 
 | 14809 |   eval ac_cr=\$\'\\r\' | 
 | 14810 | fi | 
 | 14811 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 14812 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14813 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14814 | else | 
 | 14815 |   ac_cs_awk_cr=$ac_cr | 
 | 14816 | fi | 
 | 14817 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14818 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14819 | _ACEOF | 
 | 14820 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14821 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14822 | { | 
 | 14823 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 14824 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 14825 |   echo "_ACEOF" | 
 | 14826 | } >conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14827 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 14828 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14829 | ac_delim='%!_!# ' | 
 | 14830 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14831 |   . ./conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14832 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14833 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14834 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 14835 |   if test $ac_delim_n = $ac_delim_num; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14836 |     break | 
 | 14837 |   elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14838 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14839 |   else | 
 | 14840 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14841 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14842 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14843 | rm -f conf$$subs.sh | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14844 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14845 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14846 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14847 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14848 | sed -n ' | 
 | 14849 | h | 
 | 14850 | s/^/S["/; s/!.*/"]=/ | 
 | 14851 | p | 
 | 14852 | g | 
 | 14853 | s/^[^!]*!// | 
 | 14854 | :repl | 
 | 14855 | t repl | 
 | 14856 | s/'"$ac_delim"'$// | 
 | 14857 | t delim | 
 | 14858 | :nl | 
 | 14859 | h | 
 | 14860 | s/\(.\{148\}\)..*/\1/ | 
 | 14861 | t more1 | 
 | 14862 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 14863 | p | 
 | 14864 | n | 
 | 14865 | b repl | 
 | 14866 | :more1 | 
 | 14867 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 14868 | p | 
 | 14869 | g | 
 | 14870 | s/.\{148\}// | 
 | 14871 | t nl | 
 | 14872 | :delim | 
 | 14873 | h | 
 | 14874 | s/\(.\{148\}\)..*/\1/ | 
 | 14875 | t more2 | 
 | 14876 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 14877 | p | 
 | 14878 | b | 
 | 14879 | :more2 | 
 | 14880 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 14881 | p | 
 | 14882 | g | 
 | 14883 | s/.\{148\}// | 
 | 14884 | t delim | 
 | 14885 | ' <conf$$subs.awk | sed ' | 
 | 14886 | /^[^""]/{ | 
 | 14887 |   N | 
 | 14888 |   s/\n// | 
 | 14889 | } | 
 | 14890 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 14891 | rm -f conf$$subs.awk | 
 | 14892 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 14893 | _ACAWK | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14894 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14895 |   for (key in S) S_is_set[key] = 1 | 
 | 14896 |   FS = "" | 
 | 14897 |  | 
 | 14898 | } | 
 | 14899 | { | 
 | 14900 |   line = $ 0 | 
 | 14901 |   nfields = split(line, field, "@") | 
 | 14902 |   substed = 0 | 
 | 14903 |   len = length(field[1]) | 
 | 14904 |   for (i = 2; i < nfields; i++) { | 
 | 14905 |     key = field[i] | 
 | 14906 |     keylen = length(key) | 
 | 14907 |     if (S_is_set[key]) { | 
 | 14908 |       value = S[key] | 
 | 14909 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 14910 |       len += length(value) + length(field[++i]) | 
 | 14911 |       substed = 1 | 
 | 14912 |     } else | 
 | 14913 |       len += 1 + keylen | 
 | 14914 |   } | 
 | 14915 |  | 
 | 14916 |   print line | 
 | 14917 | } | 
 | 14918 |  | 
 | 14919 | _ACAWK | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14920 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14921 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14922 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 14923 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 14924 | else | 
 | 14925 |   cat | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14926 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14927 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14928 | _ACEOF | 
 | 14929 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14930 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 14931 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14932 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 14933 | # (actually we leave an empty line to preserve line numbers). | 
 | 14934 | if test "x$srcdir" = x.; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14935 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 14936 | h | 
 | 14937 | s/// | 
 | 14938 | s/^/:/ | 
 | 14939 | s/[	 ]*$/:/ | 
 | 14940 | s/:\$(srcdir):/:/g | 
 | 14941 | s/:\${srcdir}:/:/g | 
 | 14942 | s/:@srcdir@:/:/g | 
 | 14943 | s/^:*// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14944 | s/:*$// | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14945 | x | 
 | 14946 | s/\(=[	 ]*\).*/\1/ | 
 | 14947 | G | 
 | 14948 | s/\n// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14949 | s/^[^=]*=[	 ]*$// | 
 | 14950 | }' | 
 | 14951 | fi | 
 | 14952 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | fi # test -n "$CONFIG_FILES" | 
 | 14955 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14956 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 14957 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 14958 | # This happens for instance with `./config.status Makefile'. | 
 | 14959 | if test -n "$CONFIG_HEADERS"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14960 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14961 | BEGIN { | 
 | 14962 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14963 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14964 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 14965 | # here-document in config.status, that substitutes the proper values into | 
 | 14966 | # config.h.in to produce config.h. | 
 | 14967 |  | 
 | 14968 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 14969 | # handling of long lines. | 
 | 14970 | ac_delim='%!_!# ' | 
 | 14971 | for ac_last_try in false false :; do | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14972 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 14973 |   if test -z "$ac_tt"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14974 |     break | 
 | 14975 |   elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14976 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14977 |   else | 
 | 14978 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 14979 |   fi | 
 | 14980 | done | 
 | 14981 |  | 
 | 14982 | # For the awk script, D is an array of macro values keyed by name, | 
 | 14983 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 14984 | # newline sequences. | 
 | 14985 |  | 
 | 14986 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 14987 | sed -n ' | 
 | 14988 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 14989 | t rset | 
 | 14990 | :rset | 
 | 14991 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 14992 | t def | 
 | 14993 | d | 
 | 14994 | :def | 
 | 14995 | s/\\$// | 
 | 14996 | t bsnl | 
 | 14997 | s/["\\]/\\&/g | 
 | 14998 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 14999 | D["\1"]=" \3"/p | 
 | 15000 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 15001 | d | 
 | 15002 | :bsnl | 
 | 15003 | s/["\\]/\\&/g | 
 | 15004 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 15005 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 15006 | t cont | 
 | 15007 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 15008 | t cont | 
 | 15009 | d | 
 | 15010 | :cont | 
 | 15011 | n | 
 | 15012 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 15013 | t clear | 
 | 15014 | :clear | 
 | 15015 | s/\\$// | 
 | 15016 | t bsnlc | 
 | 15017 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 15018 | d | 
 | 15019 | :bsnlc | 
 | 15020 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 15021 | b cont | 
 | 15022 | ' <confdefs.h | sed ' | 
 | 15023 | s/'"$ac_delim"'/"\\\ | 
 | 15024 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 15025 |  | 
 | 15026 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15027 |   for (key in D) D_is_set[key] = 1 | 
 | 15028 |   FS = "" | 
 | 15029 | } | 
 | 15030 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 15031 |   line = \$ 0 | 
 | 15032 |   split(line, arg, " ") | 
 | 15033 |   if (arg[1] == "#") { | 
 | 15034 |     defundef = arg[2] | 
 | 15035 |     mac1 = arg[3] | 
 | 15036 |   } else { | 
 | 15037 |     defundef = substr(arg[1], 2) | 
 | 15038 |     mac1 = arg[2] | 
 | 15039 |   } | 
 | 15040 |   split(mac1, mac2, "(") #) | 
 | 15041 |   macro = mac2[1] | 
 | 15042 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 15043 |   if (D_is_set[macro]) { | 
 | 15044 |     # Preserve the white space surrounding the "#". | 
 | 15045 |     print prefix "define", macro P[macro] D[macro] | 
 | 15046 |     next | 
 | 15047 |   } else { | 
 | 15048 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 15049 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 15050 |     # on some systems where configure will not decide to define it. | 
 | 15051 |     if (defundef == "undef") { | 
 | 15052 |       print "/*", prefix defundef, macro, "*/" | 
 | 15053 |       next | 
 | 15054 |     } | 
 | 15055 |   } | 
 | 15056 | } | 
 | 15057 | { print } | 
 | 15058 | _ACAWK | 
 | 15059 | _ACEOF | 
 | 15060 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15061 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15062 | fi # test -n "$CONFIG_HEADERS" | 
 | 15063 |  | 
 | 15064 |  | 
 | 15065 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 15066 | shift | 
 | 15067 | for ac_tag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15068 | do | 
 | 15069 |   case $ac_tag in | 
 | 15070 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 15071 |   esac | 
 | 15072 |   case $ac_mode$ac_tag in | 
 | 15073 |   :[FHL]*:*);; | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15074 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15075 |   :[FH]-) ac_tag=-:-;; | 
 | 15076 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 15077 |   esac | 
 | 15078 |   ac_save_IFS=$IFS | 
 | 15079 |   IFS=: | 
 | 15080 |   set x $ac_tag | 
 | 15081 |   IFS=$ac_save_IFS | 
 | 15082 |   shift | 
 | 15083 |   ac_file=$1 | 
 | 15084 |   shift | 
 | 15085 |  | 
 | 15086 |   case $ac_mode in | 
 | 15087 |   :L) ac_source=$1;; | 
 | 15088 |   :[FH]) | 
 | 15089 |     ac_file_inputs= | 
 | 15090 |     for ac_f | 
 | 15091 |     do | 
 | 15092 |       case $ac_f in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15093 |       -) ac_f="$ac_tmp/stdin";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15094 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 15095 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 15096 | 	 # because $ac_f cannot contain `:'. | 
 | 15097 | 	 test -f "$ac_f" || | 
 | 15098 | 	   case $ac_f in | 
 | 15099 | 	   [\\/$]*) false;; | 
 | 15100 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 15101 | 	   esac || | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15102 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15103 |       esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15104 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 15105 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15106 |     done | 
 | 15107 |  | 
 | 15108 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 15109 |     # use $as_me), people would be surprised to read: | 
 | 15110 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15111 |     configure_input='Generated from '` | 
 | 15112 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 15113 | 	`' by configure.' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15114 |     if test x"$ac_file" != x-; then | 
 | 15115 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15116 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 15117 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15118 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15119 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 15120 |     case $configure_input in #( | 
 | 15121 |     *\&* | *\|* | *\\* ) | 
 | 15122 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 15123 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 15124 |     *) ac_sed_conf_input=$configure_input;; | 
 | 15125 |     esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15126 |  | 
 | 15127 |     case $ac_tag in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15128 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 15129 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15130 |     esac | 
 | 15131 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 |   esac | 
 | 15133 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15134 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15135 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15136 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 15137 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15138 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15139 | $as_echo X"$ac_file" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15140 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15141 | 	    s//\1/ | 
 | 15142 | 	    q | 
 | 15143 | 	  } | 
 | 15144 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15145 | 	    s//\1/ | 
 | 15146 | 	    q | 
 | 15147 | 	  } | 
 | 15148 | 	  /^X\(\/\/\)$/{ | 
 | 15149 | 	    s//\1/ | 
 | 15150 | 	    q | 
 | 15151 | 	  } | 
 | 15152 | 	  /^X\(\/\).*/{ | 
 | 15153 | 	    s//\1/ | 
 | 15154 | 	    q | 
 | 15155 | 	  } | 
 | 15156 | 	  s/.*/./; q'` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15157 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 |   ac_builddir=. | 
 | 15159 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15160 | case "$ac_dir" in | 
 | 15161 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15162 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15163 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15164 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15165 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15166 |   case $ac_top_builddir_sub in | 
 | 15167 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15168 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 15169 |   esac ;; | 
 | 15170 | esac | 
 | 15171 | ac_abs_top_builddir=$ac_pwd | 
 | 15172 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 15173 | # for backward compatibility: | 
 | 15174 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15175 |  | 
 | 15176 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15177 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15178 |     ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15179 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 15180 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 15181 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15183 |     ac_top_srcdir=$srcdir | 
 | 15184 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 15185 |   *) # Relative name. | 
 | 15186 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 15187 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 15188 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15189 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15190 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15191 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15192 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15193 |   case $ac_mode in | 
 | 15194 |   :F) | 
 | 15195 |   # | 
 | 15196 |   # CONFIG_FILE | 
 | 15197 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 |  | 
 | 15199 |   case $INSTALL in | 
 | 15200 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15201 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 |   esac | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15203 |   ac_MKDIR_P=$MKDIR_P | 
 | 15204 |   case $MKDIR_P in | 
 | 15205 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 15206 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 15207 |   esac | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15208 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15209 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15211 | # If the template does not know about datarootdir, expand it. | 
 | 15212 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 15213 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15214 | ac_sed_dataroot=' | 
 | 15215 | /datarootdir/ { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15216 |   p | 
 | 15217 |   q | 
 | 15218 | } | 
 | 15219 | /@datadir@/p | 
 | 15220 | /@docdir@/p | 
 | 15221 | /@infodir@/p | 
 | 15222 | /@localedir@/p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15223 | /@mandir@/p' | 
 | 15224 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15225 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 15226 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15227 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 15228 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15229 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15231 |   ac_datarootdir_hack=' | 
 | 15232 |   s&@datadir@&$datadir&g | 
 | 15233 |   s&@docdir@&$docdir&g | 
 | 15234 |   s&@infodir@&$infodir&g | 
 | 15235 |   s&@localedir@&$localedir&g | 
 | 15236 |   s&@mandir@&$mandir&g | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15237 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15238 | esac | 
 | 15239 | _ACEOF | 
 | 15240 |  | 
 | 15241 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 15242 | # Shell code in configure.ac might set extrasub. | 
 | 15243 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15244 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15245 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15246 | $extrasub | 
 | 15247 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15248 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15249 | :t | 
 | 15250 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15251 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15252 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15253 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15254 | s&@srcdir@&$ac_srcdir&;t t | 
 | 15255 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 15256 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 15257 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 15258 | s&@builddir@&$ac_builddir&;t t | 
 | 15259 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 15260 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 15261 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15262 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15263 | $ac_datarootdir_hack | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15264 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15265 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 15266 |   >$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] | 15267 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15268 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15269 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 15270 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 15271 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15272 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15273 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15274 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15275 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15276 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15277 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15278 |   case $ac_file in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15279 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 15280 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15281 |   esac \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15282 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15283 |  ;; | 
 | 15284 |   :H) | 
 | 15285 |   # | 
 | 15286 |   # CONFIG_HEADER | 
 | 15287 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15289 |     { | 
 | 15290 |       $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15291 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 15292 |     } >"$ac_tmp/config.h" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15293 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15294 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15295 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 15296 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 |     else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15298 |       rm -f "$ac_file" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15299 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15300 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 |     fi | 
 | 15302 |   else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15303 |     $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15304 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15305 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15306 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15307 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15308 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15309 |  | 
 | 15310 |   esac | 
 | 15311 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15312 |  | 
 | 15313 |   case $ac_file$ac_mode in | 
 | 15314 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 15315 |  | 
 | 15316 |   esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15317 | done # for ac_tag | 
 | 15318 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15319 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15320 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15321 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 | ac_clean_files=$ac_clean_files_save | 
 | 15323 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15324 | test $ac_write_fail = 0 || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15325 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15326 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 |  | 
 | 15328 | # configure is writing to config.log, and then calls config.status. | 
 | 15329 | # config.status does its own redirection, appending to config.log. | 
 | 15330 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 15331 | # by configure, so config.status won't be able to write to it; its | 
 | 15332 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 15333 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 15334 | # appended to by config.status.  When coming back to configure, we | 
 | 15335 | # need to make the FD available again. | 
 | 15336 | if test "$no_create" != yes; then | 
 | 15337 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15338 |   ac_config_status_args= | 
 | 15339 |   test "$silent" = yes && | 
 | 15340 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15341 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15342 |   $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] | 15343 |   exec 5>>config.log | 
 | 15344 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 15345 |   # would make configure fail if this is the last instruction. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15346 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15347 | fi | 
 | 15348 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 15349 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 15350 | $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] | 15351 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15352 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15353 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15354 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15355 | if test ! -f Modules/Setup | 
 | 15356 | then | 
 | 15357 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 15358 | fi | 
 | 15359 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15360 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15361 | if test ! -f Modules/Setup.local | 
 | 15362 | then | 
 | 15363 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 15364 | fi | 
 | 15365 |  | 
 | 15366 | echo "creating Makefile" | 
 | 15367 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 15368 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15369 | 			Modules/Setup.local Modules/Setup | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15370 |  | 
 | 15371 | case $ac_sys_system in | 
 | 15372 | BeOS) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15373 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15374 |  | 
 | 15375 |   Support for BeOS is deprecated as of Python 2.6. | 
 | 15376 |   See PEP 11 for the gory details. | 
 | 15377 |   " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15378 | $as_echo "$as_me: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15379 |  | 
 | 15380 |   Support for BeOS is deprecated as of Python 2.6. | 
 | 15381 |   See PEP 11 for the gory details. | 
 | 15382 |   " >&2;} | 
 | 15383 |   ;; | 
 | 15384 | *) ;; | 
 | 15385 | esac | 
 | 15386 |  | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15387 | mv config.c Modules |