Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2 | # From configure.ac Revision. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.69 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8 | # |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10 | # |
| 11 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # This configure script is free software; the Free Software Foundation |
| 13 | # gives unlimited permission to copy, distribute and modify it. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21 | emulate sh |
| 22 | NULLCMD=: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24 | # is contrary to our usage. Disable this feature. |
| 25 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 28 | case `(set -o) 2>/dev/null` in #( |
| 29 | *posix*) : |
| 30 | set -o posix ;; #( |
| 31 | *) : |
| 32 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 33 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | fi |
| 35 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 36 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 37 | as_nl=' |
| 38 | ' |
| 39 | export as_nl |
| 40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 45 | # but without wasting forks for bash or zsh. |
| 46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='print -r --' |
| 49 | as_echo_n='print -rn --' |
| 50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 51 | as_echo='printf %s\n' |
| 52 | as_echo_n='printf %s' |
| 53 | else |
| 54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 56 | as_echo_n='/usr/ucb/echo -n' |
| 57 | else |
| 58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 59 | as_echo_n_body='eval |
| 60 | arg=$1; |
| 61 | case $arg in #( |
| 62 | *"$as_nl"*) |
| 63 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 65 | esac; |
| 66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 67 | ' |
| 68 | export as_echo_n_body |
| 69 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 70 | fi |
| 71 | export as_echo_body |
| 72 | as_echo='sh -c $as_echo_body as_echo' |
| 73 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 74 | |
| 75 | # The user is always right. |
| 76 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 77 | PATH_SEPARATOR=: |
| 78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 | PATH_SEPARATOR=';' |
| 81 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 82 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 83 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 84 | |
| 85 | # IFS |
| 86 | # We need space, tab and new line, in precisely that order. Quoting is |
| 87 | # there to prevent editors from complaining about space-tab. |
| 88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 89 | # splitting by setting IFS to empty value.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 90 | IFS=" "" $as_nl" |
| 91 | |
| 92 | # Find who we are. Look in the path if we contain no directory separator. |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 93 | as_myself= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 94 | case $0 in #(( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 104 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 | exit 1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 115 | fi |
| 116 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 134 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 138 | # Use a proper internal environment variable to ensure we don't fall |
| 139 | # into an infinite loop, continuously re-executing ourselves. |
| 140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 141 | _as_can_reexec=no; export _as_can_reexec; |
| 142 | # We cannot yet assume a decent shell, so we have to provide a |
| 143 | # neutralization value for shells without unset; and this also |
| 144 | # works around shells that cannot unset nonexistent variables. |
| 145 | # Preserve -v and -x to the replacement shell. |
| 146 | BASH_ENV=/dev/null |
| 147 | ENV=/dev/null |
| 148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 149 | case $- in # (((( |
| 150 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 151 | *v* ) as_opts=-v ;; |
| 152 | *x* ) as_opts=-x ;; |
| 153 | * ) as_opts= ;; |
| 154 | esac |
| 155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 156 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 157 | # out after a failed `exec'. |
| 158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 159 | as_fn_exit 255 |
| 160 | fi |
| 161 | # We don't want this to propagate to other subprocesses. |
| 162 | { _as_can_reexec=; unset _as_can_reexec;} |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 163 | if test "x$CONFIG_SHELL" = x; then |
| 164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 165 | emulate sh |
| 166 | NULLCMD=: |
| 167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 168 | # is contrary to our usage. Disable this feature. |
| 169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 170 | setopt NO_GLOB_SUBST |
| 171 | else |
| 172 | case \`(set -o) 2>/dev/null\` in #( |
| 173 | *posix*) : |
| 174 | set -o posix ;; #( |
| 175 | *) : |
| 176 | ;; |
| 177 | esac |
| 178 | fi |
| 179 | " |
| 180 | as_required="as_fn_return () { (exit \$1); } |
| 181 | as_fn_success () { as_fn_return 0; } |
| 182 | as_fn_failure () { as_fn_return 1; } |
| 183 | as_fn_ret_success () { return 0; } |
| 184 | as_fn_ret_failure () { return 1; } |
| 185 | |
| 186 | exitcode=0 |
| 187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 192 | |
| 193 | else |
| 194 | exitcode=1; echo positional parameters were not saved. |
| 195 | fi |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 196 | test x\$exitcode = x0 || exit 1 |
| 197 | test -x / || exit 1" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 202 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 203 | if (eval "$as_required") 2>/dev/null; then : |
| 204 | as_have_required=yes |
| 205 | else |
| 206 | as_have_required=no |
| 207 | fi |
| 208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 209 | |
| 210 | else |
| 211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 212 | as_found=false |
| 213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 214 | do |
| 215 | IFS=$as_save_IFS |
| 216 | test -z "$as_dir" && as_dir=. |
| 217 | as_found=: |
| 218 | case $as_dir in #( |
| 219 | /*) |
| 220 | for as_base in sh bash ksh sh5; do |
| 221 | # Try only shells that exist, to save several forks. |
| 222 | as_shell=$as_dir/$as_base |
| 223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 225 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 227 | break 2 |
| 228 | fi |
| 229 | fi |
| 230 | done;; |
| 231 | esac |
| 232 | as_found=false |
| 233 | done |
| 234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 236 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 237 | fi; } |
| 238 | IFS=$as_save_IFS |
| 239 | |
| 240 | |
| 241 | if test "x$CONFIG_SHELL" != x; then : |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 242 | export CONFIG_SHELL |
| 243 | # We cannot yet assume a decent shell, so we have to provide a |
| 244 | # neutralization value for shells without unset; and this also |
| 245 | # works around shells that cannot unset nonexistent variables. |
| 246 | # Preserve -v and -x to the replacement shell. |
| 247 | BASH_ENV=/dev/null |
| 248 | ENV=/dev/null |
| 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 | case $- in # (((( |
| 251 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 252 | *v* ) as_opts=-v ;; |
| 253 | *x* ) as_opts=-x ;; |
| 254 | * ) as_opts= ;; |
| 255 | esac |
| 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 258 | # out after a failed `exec'. |
| 259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 260 | exit 255 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 261 | fi |
| 262 | |
| 263 | if test x$as_have_required = xno; then : |
| 264 | $as_echo "$0: This script requires a shell more modern than all" |
| 265 | $as_echo "$0: the shells that I found on your system." |
| 266 | if test x${ZSH_VERSION+set} = xset ; then |
| 267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 269 | else |
| 270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 271 | $0: http://bugs.python.org/ about your system, including |
| 272 | $0: any error possibly output before this message. Then |
| 273 | $0: install a modern shell, or manually run the script |
| 274 | $0: under such a shell if you do have one." |
| 275 | fi |
| 276 | exit 1 |
| 277 | fi |
| 278 | fi |
| 279 | fi |
| 280 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 | export SHELL |
| 282 | # Unset more variables known to interfere with behavior of common tools. |
| 283 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 | |
| 286 | ## --------------------- ## |
| 287 | ## M4sh Shell Functions. ## |
| 288 | ## --------------------- ## |
| 289 | # as_fn_unset VAR |
| 290 | # --------------- |
| 291 | # Portably unset VAR. |
| 292 | as_fn_unset () |
| 293 | { |
| 294 | { eval $1=; unset $1;} |
| 295 | } |
| 296 | as_unset=as_fn_unset |
| 297 | |
| 298 | # as_fn_set_status STATUS |
| 299 | # ----------------------- |
| 300 | # Set $? to STATUS, without forking. |
| 301 | as_fn_set_status () |
| 302 | { |
| 303 | return $1 |
| 304 | } # as_fn_set_status |
| 305 | |
| 306 | # as_fn_exit STATUS |
| 307 | # ----------------- |
| 308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 309 | as_fn_exit () |
| 310 | { |
| 311 | set +e |
| 312 | as_fn_set_status $1 |
| 313 | exit $1 |
| 314 | } # as_fn_exit |
| 315 | |
| 316 | # as_fn_mkdir_p |
| 317 | # ------------- |
| 318 | # Create "$as_dir" as a directory, including parents if necessary. |
| 319 | as_fn_mkdir_p () |
| 320 | { |
| 321 | |
| 322 | case $as_dir in #( |
| 323 | -*) as_dir=./$as_dir;; |
| 324 | esac |
| 325 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 326 | as_dirs= |
| 327 | while :; do |
| 328 | case $as_dir in #( |
| 329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 330 | *) as_qdir=$as_dir;; |
| 331 | esac |
| 332 | as_dirs="'$as_qdir' $as_dirs" |
| 333 | as_dir=`$as_dirname -- "$as_dir" || |
| 334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 335 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 336 | X"$as_dir" : 'X\(//\)$' \| \ |
| 337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 338 | $as_echo X"$as_dir" | |
| 339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)[^/].*/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\/\)$/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | /^X\(\/\).*/{ |
| 352 | s//\1/ |
| 353 | q |
| 354 | } |
| 355 | s/.*/./; q'` |
| 356 | test -d "$as_dir" && break |
| 357 | done |
| 358 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 360 | |
| 361 | |
| 362 | } # as_fn_mkdir_p |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 363 | |
| 364 | # as_fn_executable_p FILE |
| 365 | # ----------------------- |
| 366 | # Test if FILE is an executable regular file. |
| 367 | as_fn_executable_p () |
| 368 | { |
| 369 | test -f "$1" && test -x "$1" |
| 370 | } # as_fn_executable_p |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 371 | # as_fn_append VAR VALUE |
| 372 | # ---------------------- |
| 373 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 374 | # advantage of any shell optimizations that allow amortized linear growth over |
| 375 | # repeated appends, instead of the typical quadratic growth present in naive |
| 376 | # implementations. |
| 377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 378 | eval 'as_fn_append () |
| 379 | { |
| 380 | eval $1+=\$2 |
| 381 | }' |
| 382 | else |
| 383 | as_fn_append () |
| 384 | { |
| 385 | eval $1=\$$1\$2 |
| 386 | } |
| 387 | fi # as_fn_append |
| 388 | |
| 389 | # as_fn_arith ARG... |
| 390 | # ------------------ |
| 391 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 393 | # must be portable across $(()) and expr. |
| 394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 395 | eval 'as_fn_arith () |
| 396 | { |
| 397 | as_val=$(( $* )) |
| 398 | }' |
| 399 | else |
| 400 | as_fn_arith () |
| 401 | { |
| 402 | as_val=`expr "$@" || test $? -eq 1` |
| 403 | } |
| 404 | fi # as_fn_arith |
| 405 | |
| 406 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 408 | # ---------------------------------------- |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 411 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 412 | as_fn_error () |
| 413 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 414 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 415 | if test "$4"; then |
| 416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 418 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 419 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 420 | as_fn_exit $as_status |
| 421 | } # as_fn_error |
| 422 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 423 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 425 | as_expr=expr |
| 426 | else |
| 427 | as_expr=false |
| 428 | fi |
| 429 | |
| 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 431 | as_basename=basename |
| 432 | else |
| 433 | as_basename=false |
| 434 | fi |
| 435 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 437 | as_dirname=dirname |
| 438 | else |
| 439 | as_dirname=false |
| 440 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 441 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 442 | as_me=`$as_basename -- "$0" || |
| 443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 444 | X"$0" : 'X\(//\)$' \| \ |
| 445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 446 | $as_echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\/\)$/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | /^X\/\(\/\).*/{ |
| 456 | s//\1/ |
| 457 | q |
| 458 | } |
| 459 | s/.*/./; q'` |
| 460 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 461 | # Avoid depending upon Character Ranges. |
| 462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 465 | as_cr_digits='0123456789' |
| 466 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 467 | |
| 468 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 474 | sed -n ' |
| 475 | p |
| 476 | /[$]LINENO/= |
| 477 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 478 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 479 | s/[$]LINENO.*/&-/ |
| 480 | t lineno |
| 481 | b |
| 482 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 483 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 484 | :loop |
| 485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 486 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 487 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 489 | chmod +x "$as_me.lineno" || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 491 | |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 493 | # already done that, so ensure we don't try to do so again and fall |
| 494 | # in an infinite loop. This has already happened in practice. |
| 495 | _as_can_reexec=no; export _as_can_reexec |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 497 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 498 | # original and so on. Autoconf is especially sensitive to this). |
| 499 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 | # Exit status is that of the last command. |
| 501 | exit |
| 502 | } |
| 503 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 504 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 505 | case `echo -n x` in #((((( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 506 | -n*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 507 | case `echo 'xy\c'` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 509 | xy) ECHO_C='\c';; |
| 510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 511 | ECHO_T=' ';; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 512 | esac;; |
| 513 | *) |
| 514 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 515 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 517 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 518 | if test -d conf$$.dir; then |
| 519 | rm -f conf$$.dir/conf$$.file |
| 520 | else |
| 521 | rm -f conf$$.dir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 522 | mkdir conf$$.dir 2>/dev/null |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 523 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 524 | if (echo >conf$$.file) 2>/dev/null; then |
| 525 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 526 | as_ln_s='ln -s' |
| 527 | # ... but there are two gotchas: |
| 528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 530 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 534 | as_ln_s=ln |
| 535 | else |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 536 | as_ln_s='cp -pR' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | else |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 539 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 540 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 542 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 544 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 545 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 547 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 548 | as_mkdir_p=false |
| 549 | fi |
| 550 | |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 551 | as_test_x='test -x' |
| 552 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 | |
| 554 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 559 | |
| 560 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 561 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 562 | exec 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 563 | |
| 564 | # Name of the host. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 566 | # so uname gets run too. |
| 567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # |
| 570 | # Initializations. |
| 571 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 572 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 573 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 574 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 575 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | cross_compiling=no |
| 577 | subdirs= |
| 578 | MFLAGS= |
| 579 | MAKEFLAGS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 582 | PACKAGE_NAME='python' |
| 583 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 584 | PACKAGE_VERSION='2.7' |
| 585 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 586 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 587 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 | |
| 589 | ac_unique_file="Include/object.h" |
| 590 | # Factoring default headers for most tests. |
| 591 | ac_includes_default="\ |
| 592 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 593 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <sys/types.h> |
| 595 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <sys/stat.h> |
| 598 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 599 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # include <stddef.h> |
| 602 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 603 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 604 | # include <stdlib.h> |
| 605 | # endif |
| 606 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 607 | #ifdef HAVE_STRING_H |
| 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 609 | # include <memory.h> |
| 610 | # endif |
| 611 | # include <string.h> |
| 612 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 613 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 614 | # include <strings.h> |
| 615 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 616 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 618 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STDINT_H |
| 620 | # include <stdint.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 623 | # include <unistd.h> |
| 624 | #endif" |
| 625 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 627 | SRCDIRS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 628 | THREADHEADERS |
| 629 | UNICODE_OBJS |
| 630 | LIBC |
| 631 | LIBM |
| 632 | HAVE_GETHOSTBYNAME |
| 633 | HAVE_GETHOSTBYNAME_R |
| 634 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 635 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 636 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 637 | LIBOBJS |
| 638 | TRUE |
| 639 | MACHDEP_OBJS |
| 640 | DYNLOADFILE |
| 641 | DLINCLDIR |
| 642 | THREADOBJ |
| 643 | LDLAST |
| 644 | USE_THREAD_MODULE |
| 645 | SIGNAL_OBJS |
| 646 | USE_SIGNAL_MODULE |
Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 647 | TCLTK_LIBS |
| 648 | TCLTK_INCLUDES |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 649 | LIBFFI_INCLUDEDIR |
| 650 | PKG_CONFIG |
| 651 | SHLIBS |
| 652 | CFLAGSFORSHARED |
| 653 | LINKFORSHARED |
| 654 | CCSHARED |
| 655 | BLDSHARED |
| 656 | LDCXXSHARED |
| 657 | LDSHARED |
| 658 | SO |
| 659 | LIBTOOL_CRUFT |
| 660 | OTHER_LIBTOOL_OPT |
| 661 | UNIVERSAL_ARCH_FLAGS |
| 662 | BASECFLAGS |
| 663 | OPT |
| 664 | LN |
Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 665 | MKDIR_P |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 666 | INSTALL_DATA |
| 667 | INSTALL_SCRIPT |
| 668 | INSTALL_PROGRAM |
Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 669 | HAS_HG |
| 670 | HGBRANCH |
| 671 | HGTAG |
| 672 | HGVERSION |
Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 673 | BASECPPFLAGS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 674 | SVNVERSION |
| 675 | ARFLAGS |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 676 | ac_ct_AR |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 677 | AR |
| 678 | RANLIB |
| 679 | GNULD |
| 680 | LINKCC |
| 681 | RUNSHARED |
| 682 | INSTSONAME |
| 683 | LDLIBRARYDIR |
| 684 | BLDLIBRARY |
| 685 | DLLLIBRARY |
| 686 | LDLIBRARY |
| 687 | LIBRARY |
| 688 | BUILDEXEEXT |
| 689 | EGREP |
| 690 | GREP |
| 691 | CPP |
doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 692 | MULTIARCH |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 693 | ac_ct_CXX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 694 | MAINCC |
| 695 | CXX |
| 696 | OBJEXT |
| 697 | EXEEXT |
| 698 | ac_ct_CC |
| 699 | CPPFLAGS |
| 700 | LDFLAGS |
| 701 | CFLAGS |
| 702 | CC |
| 703 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 704 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 705 | EXTRAMACHDEPPATH |
| 706 | EXTRAPLATDIR |
| 707 | SGI_ABI |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 708 | _PYTHON_HOST_PLATFORM |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 709 | MACHDEP |
| 710 | FRAMEWORKINSTALLAPPSPREFIX |
| 711 | FRAMEWORKUNIXTOOLSPREFIX |
| 712 | FRAMEWORKALTINSTALLLAST |
| 713 | FRAMEWORKALTINSTALLFIRST |
| 714 | FRAMEWORKINSTALLLAST |
| 715 | FRAMEWORKINSTALLFIRST |
| 716 | PYTHONFRAMEWORKINSTALLDIR |
| 717 | PYTHONFRAMEWORKPREFIX |
| 718 | PYTHONFRAMEWORKDIR |
| 719 | PYTHONFRAMEWORKIDENTIFIER |
| 720 | PYTHONFRAMEWORK |
| 721 | LIPO_32BIT_FLAGS |
| 722 | ARCH_RUN_32BIT |
| 723 | UNIVERSALSDK |
| 724 | CONFIG_ARGS |
| 725 | SOVERSION |
| 726 | VERSION |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 727 | PYTHON_FOR_BUILD |
| 728 | host_os |
| 729 | host_vendor |
| 730 | host_cpu |
| 731 | host |
| 732 | build_os |
| 733 | build_vendor |
| 734 | build_cpu |
| 735 | build |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 736 | target_alias |
| 737 | host_alias |
| 738 | build_alias |
| 739 | LIBS |
| 740 | ECHO_T |
| 741 | ECHO_N |
| 742 | ECHO_C |
| 743 | DEFS |
| 744 | mandir |
| 745 | localedir |
| 746 | libdir |
| 747 | psdir |
| 748 | pdfdir |
| 749 | dvidir |
| 750 | htmldir |
| 751 | infodir |
| 752 | docdir |
| 753 | oldincludedir |
| 754 | includedir |
| 755 | localstatedir |
| 756 | sharedstatedir |
| 757 | sysconfdir |
| 758 | datadir |
| 759 | datarootdir |
| 760 | libexecdir |
| 761 | sbindir |
| 762 | bindir |
| 763 | program_transform_name |
| 764 | prefix |
| 765 | exec_prefix |
| 766 | PACKAGE_URL |
| 767 | PACKAGE_BUGREPORT |
| 768 | PACKAGE_STRING |
| 769 | PACKAGE_VERSION |
| 770 | PACKAGE_TARNAME |
| 771 | PACKAGE_NAME |
| 772 | PATH_SEPARATOR |
| 773 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 774 | ac_subst_files='' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 775 | ac_user_opts=' |
| 776 | enable_option_checking |
| 777 | enable_universalsdk |
| 778 | with_universal_archs |
| 779 | with_framework_name |
| 780 | enable_framework |
| 781 | with_gcc |
| 782 | with_cxx_main |
| 783 | with_suffix |
| 784 | enable_shared |
| 785 | enable_profiling |
| 786 | with_pydebug |
| 787 | enable_toolbox_glue |
| 788 | with_libs |
| 789 | with_system_expat |
| 790 | with_system_ffi |
Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 791 | with_tcltk_includes |
| 792 | with_tcltk_libs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 793 | with_dbmliborder |
| 794 | with_signal_module |
| 795 | with_dec_threads |
| 796 | with_threads |
| 797 | with_thread |
| 798 | with_pth |
| 799 | enable_ipv6 |
| 800 | with_doc_strings |
| 801 | with_tsc |
| 802 | with_pymalloc |
| 803 | with_valgrind |
| 804 | with_wctype_functions |
| 805 | with_fpectl |
| 806 | with_libm |
| 807 | with_libc |
| 808 | enable_big_digits |
| 809 | enable_unicode |
| 810 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 811 | ac_precious_vars='build_alias |
| 812 | host_alias |
| 813 | target_alias |
| 814 | CC |
| 815 | CFLAGS |
| 816 | LDFLAGS |
| 817 | LIBS |
| 818 | CPPFLAGS |
| 819 | CPP' |
| 820 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 821 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 822 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | ac_init_help= |
| 824 | ac_init_version=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 825 | ac_unrecognized_opts= |
| 826 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 827 | # The variables have the same names as the options, with |
| 828 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 829 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 830 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 831 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 832 | no_recursion= |
| 833 | prefix=NONE |
| 834 | program_prefix=NONE |
| 835 | program_suffix=NONE |
| 836 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 837 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 838 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 839 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 840 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 841 | x_includes=NONE |
| 842 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | |
| 844 | # Installation directory options. |
| 845 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 846 | # and all the variables that are supposed to be based on exec_prefix |
| 847 | # by default will actually change. |
| 848 | # 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] | 849 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 850 | bindir='${exec_prefix}/bin' |
| 851 | sbindir='${exec_prefix}/sbin' |
| 852 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 853 | datarootdir='${prefix}/share' |
| 854 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 855 | sysconfdir='${prefix}/etc' |
| 856 | sharedstatedir='${prefix}/com' |
| 857 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 858 | includedir='${prefix}/include' |
| 859 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 860 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 861 | infodir='${datarootdir}/info' |
| 862 | htmldir='${docdir}' |
| 863 | dvidir='${docdir}' |
| 864 | pdfdir='${docdir}' |
| 865 | psdir='${docdir}' |
| 866 | libdir='${exec_prefix}/lib' |
| 867 | localedir='${datarootdir}/locale' |
| 868 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 871 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 872 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 873 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | # If the previous option needs an argument, assign it. |
| 875 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 876 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 877 | ac_prev= |
| 878 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 879 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 881 | case $ac_option in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 882 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 883 | *=) ac_optarg= ;; |
| 884 | *) ac_optarg=yes ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 885 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 886 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 887 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 888 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 889 | case $ac_dashdash$ac_option in |
| 890 | --) |
| 891 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 894 | ac_prev=bindir ;; |
| 895 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | |
| 898 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 899 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 900 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 901 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 903 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 904 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 905 | ac_prev=cache_file ;; |
| 906 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 907 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 908 | cache_file=$ac_optarg ;; |
| 909 | |
| 910 | --config-cache | -C) |
| 911 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 913 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 914 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 915 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 918 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 919 | | --dataroo | --dataro | --datar) |
| 920 | ac_prev=datarootdir ;; |
| 921 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 922 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 923 | datarootdir=$ac_optarg ;; |
| 924 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 925 | -disable-* | --disable-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 926 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 927 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 928 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 929 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 930 | ac_useropt_orig=$ac_useropt |
| 931 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 932 | case $ac_user_opts in |
| 933 | *" |
| 934 | "enable_$ac_useropt" |
| 935 | "*) ;; |
| 936 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 937 | ac_unrecognized_sep=', ';; |
| 938 | esac |
| 939 | eval enable_$ac_useropt=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 940 | |
| 941 | -docdir | --docdir | --docdi | --doc | --do) |
| 942 | ac_prev=docdir ;; |
| 943 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 944 | docdir=$ac_optarg ;; |
| 945 | |
| 946 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 947 | ac_prev=dvidir ;; |
| 948 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 949 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 950 | |
| 951 | -enable-* | --enable-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 952 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 953 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 955 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 956 | ac_useropt_orig=$ac_useropt |
| 957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 958 | case $ac_user_opts in |
| 959 | *" |
| 960 | "enable_$ac_useropt" |
| 961 | "*) ;; |
| 962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 963 | ac_unrecognized_sep=', ';; |
| 964 | esac |
| 965 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 966 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 967 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 968 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 969 | | --exec | --exe | --ex) |
| 970 | ac_prev=exec_prefix ;; |
| 971 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 972 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 973 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 975 | |
| 976 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 977 | # Obsolete; use --with-gas. |
| 978 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 980 | -help | --help | --hel | --he | -h) |
| 981 | ac_init_help=long ;; |
| 982 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 983 | ac_init_help=recursive ;; |
| 984 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 985 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 986 | |
| 987 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 989 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 991 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 992 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 993 | ac_prev=htmldir ;; |
| 994 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 995 | | --ht=*) |
| 996 | htmldir=$ac_optarg ;; |
| 997 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 998 | -includedir | --includedir | --includedi | --included | --include \ |
| 999 | | --includ | --inclu | --incl | --inc) |
| 1000 | ac_prev=includedir ;; |
| 1001 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1002 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1003 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1004 | |
| 1005 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1006 | ac_prev=infodir ;; |
| 1007 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1008 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1009 | |
| 1010 | -libdir | --libdir | --libdi | --libd) |
| 1011 | ac_prev=libdir ;; |
| 1012 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1013 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1014 | |
| 1015 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1016 | | --libexe | --libex | --libe) |
| 1017 | ac_prev=libexecdir ;; |
| 1018 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1019 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1020 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1021 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1022 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1023 | ac_prev=localedir ;; |
| 1024 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1025 | localedir=$ac_optarg ;; |
| 1026 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1027 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1028 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1029 | ac_prev=localstatedir ;; |
| 1030 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1031 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1032 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1033 | |
| 1034 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1035 | ac_prev=mandir ;; |
| 1036 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1037 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1038 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1039 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1040 | # Obsolete; use --without-fp. |
| 1041 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1042 | |
| 1043 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1044 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1045 | no_create=yes ;; |
| 1046 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1048 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1049 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1050 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1051 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1052 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1053 | | --oldin | --oldi | --old | --ol | --o) |
| 1054 | ac_prev=oldincludedir ;; |
| 1055 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1056 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1057 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1061 | ac_prev=prefix ;; |
| 1062 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1064 | |
| 1065 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1066 | | --program-pre | --program-pr | --program-p) |
| 1067 | ac_prev=program_prefix ;; |
| 1068 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1069 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 | |
| 1072 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1073 | | --program-suf | --program-su | --program-s) |
| 1074 | ac_prev=program_suffix ;; |
| 1075 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1076 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1077 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 | |
| 1079 | -program-transform-name | --program-transform-name \ |
| 1080 | | --program-transform-nam | --program-transform-na \ |
| 1081 | | --program-transform-n | --program-transform- \ |
| 1082 | | --program-transform | --program-transfor \ |
| 1083 | | --program-transfo | --program-transf \ |
| 1084 | | --program-trans | --program-tran \ |
| 1085 | | --progr-tra | --program-tr | --program-t) |
| 1086 | ac_prev=program_transform_name ;; |
| 1087 | -program-transform-name=* | --program-transform-name=* \ |
| 1088 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1089 | | --program-transform-n=* | --program-transform-=* \ |
| 1090 | | --program-transform=* | --program-transfor=* \ |
| 1091 | | --program-transfo=* | --program-transf=* \ |
| 1092 | | --program-trans=* | --program-tran=* \ |
| 1093 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1094 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1095 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1096 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1097 | ac_prev=pdfdir ;; |
| 1098 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1099 | pdfdir=$ac_optarg ;; |
| 1100 | |
| 1101 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1102 | ac_prev=psdir ;; |
| 1103 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1104 | psdir=$ac_optarg ;; |
| 1105 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1106 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1107 | | -silent | --silent | --silen | --sile | --sil) |
| 1108 | silent=yes ;; |
| 1109 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1110 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1111 | ac_prev=sbindir ;; |
| 1112 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1113 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1115 | |
| 1116 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1117 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1118 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1119 | | --sha | --sh) |
| 1120 | ac_prev=sharedstatedir ;; |
| 1121 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1122 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1123 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1124 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1125 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1126 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 | -site | --site | --sit) |
| 1128 | ac_prev=site ;; |
| 1129 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1131 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1133 | ac_prev=srcdir ;; |
| 1134 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1137 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1138 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1139 | ac_prev=sysconfdir ;; |
| 1140 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1141 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1143 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1144 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1146 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1147 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1148 | |
| 1149 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1150 | verbose=yes ;; |
| 1151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1152 | -version | --version | --versio | --versi | --vers | -V) |
| 1153 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1154 | |
| 1155 | -with-* | --with-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1156 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1157 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1158 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1159 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1160 | ac_useropt_orig=$ac_useropt |
| 1161 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1162 | case $ac_user_opts in |
| 1163 | *" |
| 1164 | "with_$ac_useropt" |
| 1165 | "*) ;; |
| 1166 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1167 | ac_unrecognized_sep=', ';; |
| 1168 | esac |
| 1169 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 | |
| 1171 | -without-* | --without-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1172 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1173 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1174 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1175 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1176 | ac_useropt_orig=$ac_useropt |
| 1177 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1178 | case $ac_user_opts in |
| 1179 | *" |
| 1180 | "with_$ac_useropt" |
| 1181 | "*) ;; |
| 1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1183 | ac_unrecognized_sep=', ';; |
| 1184 | esac |
| 1185 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1187 | --x) |
| 1188 | # Obsolete; use --with-x. |
| 1189 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1190 | |
| 1191 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1192 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1193 | ac_prev=x_includes ;; |
| 1194 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1195 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1196 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1197 | |
| 1198 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1199 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1200 | ac_prev=x_libraries ;; |
| 1201 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1202 | | --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] | 1203 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1204 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1205 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1206 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1207 | ;; |
| 1208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1209 | *=*) |
| 1210 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1211 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1212 | case $ac_envvar in #( |
| 1213 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1214 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1215 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1216 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1217 | export $ac_envvar ;; |
| 1218 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1219 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1220 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1221 | $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] | 1222 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1223 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1224 | : "${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] | 1225 | ;; |
| 1226 | |
| 1227 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1228 | done |
| 1229 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1230 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1231 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1232 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1233 | fi |
| 1234 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1235 | if test -n "$ac_unrecognized_opts"; then |
| 1236 | case $enable_option_checking in |
| 1237 | no) ;; |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1238 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1239 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1240 | esac |
| 1241 | fi |
| 1242 | |
| 1243 | # Check all directory arguments for consistency. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1244 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1245 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1246 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1247 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1248 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1249 | eval ac_val=\$$ac_var |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1250 | # Remove trailing slashes. |
| 1251 | case $ac_val in |
| 1252 | */ ) |
| 1253 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1254 | eval $ac_var=\$ac_val;; |
| 1255 | esac |
| 1256 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1257 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1258 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1259 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1260 | esac |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1261 | 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] | 1262 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1264 | # There might be people who depend on the old broken behavior: `$host' |
| 1265 | # used to hold the argument of --host etc. |
| 1266 | # FIXME: To remove some day. |
| 1267 | build=$build_alias |
| 1268 | host=$host_alias |
| 1269 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1271 | # FIXME: To remove some day. |
| 1272 | if test "x$host_alias" != x; then |
| 1273 | if test "x$build_alias" = x; then |
| 1274 | cross_compiling=maybe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | elif test "x$build_alias" != "x$host_alias"; then |
| 1276 | cross_compiling=yes |
| 1277 | fi |
| 1278 | fi |
| 1279 | |
| 1280 | ac_tool_prefix= |
| 1281 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1282 | |
| 1283 | test "$silent" = yes && exec 6>/dev/null |
| 1284 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1285 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1286 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1287 | ac_ls_di=`ls -di .` && |
| 1288 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1289 | as_fn_error $? "working directory cannot be determined" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1290 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1291 | 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] | 1292 | |
| 1293 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1294 | # Find the source files, if location was not specified. |
| 1295 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1296 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1297 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1298 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1299 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1300 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1301 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1302 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1303 | $as_echo X"$as_myself" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1305 | s//\1/ |
| 1306 | q |
| 1307 | } |
| 1308 | /^X\(\/\/\)[^/].*/{ |
| 1309 | s//\1/ |
| 1310 | q |
| 1311 | } |
| 1312 | /^X\(\/\/\)$/{ |
| 1313 | s//\1/ |
| 1314 | q |
| 1315 | } |
| 1316 | /^X\(\/\).*/{ |
| 1317 | s//\1/ |
| 1318 | q |
| 1319 | } |
| 1320 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1321 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1322 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1323 | srcdir=.. |
| 1324 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1325 | else |
| 1326 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1327 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1328 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1329 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1330 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1331 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1332 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1333 | ac_abs_confdir=`( |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1334 | 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] | 1335 | pwd)` |
| 1336 | # When building in place, set srcdir=. |
| 1337 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1338 | srcdir=. |
| 1339 | fi |
| 1340 | # Remove unnecessary trailing slashes from srcdir. |
| 1341 | # Double slashes in file names in object file debugging info |
| 1342 | # mess up M-x gdb in Emacs. |
| 1343 | case $srcdir in |
| 1344 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1345 | esac |
| 1346 | for ac_var in $ac_precious_vars; do |
| 1347 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1348 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1349 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1350 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1351 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1353 | # |
| 1354 | # Report the --help message. |
| 1355 | # |
| 1356 | if test "$ac_init_help" = "long"; then |
| 1357 | # Omit some internal or obsolete options to make the list less imposing. |
| 1358 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1359 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1360 | \`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] | 1361 | |
| 1362 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1363 | |
| 1364 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1365 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1366 | |
| 1367 | Defaults for the options are specified in brackets. |
| 1368 | |
| 1369 | Configuration: |
| 1370 | -h, --help display this help and exit |
| 1371 | --help=short display options specific to this package |
| 1372 | --help=recursive display the short help of all the included packages |
| 1373 | -V, --version display version information and exit |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1374 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | --cache-file=FILE cache test results in FILE [disabled] |
| 1376 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1377 | -n, --no-create do not create output files |
| 1378 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | Installation directories: |
| 1381 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1382 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1383 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1384 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1385 | |
| 1386 | By default, \`make install' will install all the files in |
| 1387 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1388 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1389 | for instance \`--prefix=\$HOME'. |
| 1390 | |
| 1391 | For better control, use the options below. |
| 1392 | |
| 1393 | Fine tuning of the installation directories: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1394 | --bindir=DIR user executables [EPREFIX/bin] |
| 1395 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1396 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1397 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1398 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1399 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1400 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1401 | --includedir=DIR C header files [PREFIX/include] |
| 1402 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1403 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1404 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1405 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1406 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1407 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1408 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1409 | --htmldir=DIR html documentation [DOCDIR] |
| 1410 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1411 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1412 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | _ACEOF |
| 1414 | |
| 1415 | cat <<\_ACEOF |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 1416 | |
| 1417 | System types: |
| 1418 | --build=BUILD configure for building on BUILD [guessed] |
| 1419 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | _ACEOF |
| 1421 | fi |
| 1422 | |
| 1423 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1424 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1425 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1426 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1427 | cat <<\_ACEOF |
| 1428 | |
| 1429 | Optional Features: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1430 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1432 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1433 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1434 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1435 | --enable-framework[=INSTALLDIR] |
| 1436 | Build (MacOSX|Darwin) framework |
| 1437 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1438 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1439 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1440 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1441 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1442 | --enable-big-digits[=BITS] |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1443 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1444 | --enable-unicode[=ucs[24]] |
Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1445 | Enable Unicode strings (default is ucs2) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | |
| 1447 | Optional Packages: |
| 1448 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1449 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1450 | --with-universal-archs=ARCH |
| 1451 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1452 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1453 | --with-framework-name=FRAMEWORK |
| 1454 | specify an alternate name of the framework built |
| 1455 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1456 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1457 | --with-cxx-main=<compiler> |
| 1458 | compile main() and link python executable with C++ |
| 1459 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1460 | --with-suffix=.exe set executable suffix |
| 1461 | --with-pydebug build with Py_DEBUG defined |
| 1462 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1463 | --with-system-expat build pyexpat module using an installed expat |
| 1464 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1465 | --with-system-ffi build _ctypes module using an installed ffi library |
Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 1466 | --with-tcltk-includes='-I...' |
| 1467 | override search for Tcl and Tk include files |
| 1468 | --with-tcltk-libs='-L...' |
| 1469 | override search for Tcl and Tk libs |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1470 | --with-dbmliborder=db1:db2:... |
| 1471 | order to check db backends for dbm. Valid value is a |
| 1472 | colon separated string with the backend names |
| 1473 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1474 | --with-signal-module disable/enable signal module |
| 1475 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1476 | --with(out)-threads[=DIRECTORY] |
| 1477 | disable/enable thread support |
| 1478 | --with(out)-thread[=DIRECTORY] |
| 1479 | deprecated; use --with(out)-threads |
| 1480 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1481 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1482 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1483 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1484 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1485 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1486 | --with-fpectl enable SIGFPE catching |
| 1487 | --with-libm=STRING math library |
| 1488 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1489 | |
| 1490 | Some influential environment variables: |
| 1491 | CC C compiler command |
| 1492 | CFLAGS C compiler flags |
| 1493 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1494 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1495 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1496 | 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] | 1497 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | CPP C preprocessor |
| 1499 | |
| 1500 | Use these variables to override the choices made by `configure' or to help |
| 1501 | it to find libraries and programs with nonstandard names/locations. |
| 1502 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1503 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1505 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | fi |
| 1507 | |
| 1508 | if test "$ac_init_help" = "recursive"; then |
| 1509 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | 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] | 1511 | test -d "$ac_dir" || |
| 1512 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1513 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 | ac_builddir=. |
| 1515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1516 | case "$ac_dir" in |
| 1517 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1518 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1519 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1520 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1521 | 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] | 1522 | case $ac_top_builddir_sub in |
| 1523 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1524 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1525 | esac ;; |
| 1526 | esac |
| 1527 | ac_abs_top_builddir=$ac_pwd |
| 1528 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1529 | # for backward compatibility: |
| 1530 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1531 | |
| 1532 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1533 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1534 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1535 | ac_top_srcdir=$ac_top_builddir_sub |
| 1536 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1537 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1539 | ac_top_srcdir=$srcdir |
| 1540 | ac_abs_top_srcdir=$srcdir ;; |
| 1541 | *) # Relative name. |
| 1542 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1543 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1544 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1545 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1546 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1547 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1548 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1549 | # Check for guested configure. |
| 1550 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1551 | echo && |
| 1552 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1553 | elif test -f "$ac_srcdir/configure"; then |
| 1554 | echo && |
| 1555 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1556 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1557 | $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] | 1558 | fi || ac_status=$? |
| 1559 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | done |
| 1561 | fi |
| 1562 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1563 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | if $ac_init_version; then |
| 1565 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1566 | python configure 2.7 |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1567 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 | |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1569 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1570 | This configure script is free software; the Free Software Foundation |
| 1571 | gives unlimited permission to copy, distribute and modify it. |
| 1572 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1573 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1575 | |
| 1576 | ## ------------------------ ## |
| 1577 | ## Autoconf initialization. ## |
| 1578 | ## ------------------------ ## |
| 1579 | |
| 1580 | # ac_fn_c_try_compile LINENO |
| 1581 | # -------------------------- |
| 1582 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1583 | ac_fn_c_try_compile () |
| 1584 | { |
| 1585 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1586 | rm -f conftest.$ac_objext |
| 1587 | if { { ac_try="$ac_compile" |
| 1588 | case "(($ac_try" in |
| 1589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1590 | *) ac_try_echo=$ac_try;; |
| 1591 | esac |
| 1592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1593 | $as_echo "$ac_try_echo"; } >&5 |
| 1594 | (eval "$ac_compile") 2>conftest.err |
| 1595 | ac_status=$? |
| 1596 | if test -s conftest.err; then |
| 1597 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1598 | cat conftest.er1 >&5 |
| 1599 | mv -f conftest.er1 conftest.err |
| 1600 | fi |
| 1601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1602 | test $ac_status = 0; } && { |
| 1603 | test -z "$ac_c_werror_flag" || |
| 1604 | test ! -s conftest.err |
| 1605 | } && test -s conftest.$ac_objext; then : |
| 1606 | ac_retval=0 |
| 1607 | else |
| 1608 | $as_echo "$as_me: failed program was:" >&5 |
| 1609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1610 | |
| 1611 | ac_retval=1 |
| 1612 | fi |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1613 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1614 | as_fn_set_status $ac_retval |
| 1615 | |
| 1616 | } # ac_fn_c_try_compile |
| 1617 | |
| 1618 | # ac_fn_c_try_cpp LINENO |
| 1619 | # ---------------------- |
| 1620 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1621 | ac_fn_c_try_cpp () |
| 1622 | { |
| 1623 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1624 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1625 | case "(($ac_try" in |
| 1626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1627 | *) ac_try_echo=$ac_try;; |
| 1628 | esac |
| 1629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1630 | $as_echo "$ac_try_echo"; } >&5 |
| 1631 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1632 | ac_status=$? |
| 1633 | if test -s conftest.err; then |
| 1634 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1635 | cat conftest.er1 >&5 |
| 1636 | mv -f conftest.er1 conftest.err |
| 1637 | fi |
| 1638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1639 | test $ac_status = 0; } > conftest.i && { |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1640 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1641 | test ! -s conftest.err |
| 1642 | }; then : |
| 1643 | ac_retval=0 |
| 1644 | else |
| 1645 | $as_echo "$as_me: failed program was:" >&5 |
| 1646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1647 | |
| 1648 | ac_retval=1 |
| 1649 | fi |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1650 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1651 | as_fn_set_status $ac_retval |
| 1652 | |
| 1653 | } # ac_fn_c_try_cpp |
| 1654 | |
| 1655 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1656 | # ------------------------------------------------------- |
| 1657 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1658 | # the include files in INCLUDES and setting the cache variable VAR |
| 1659 | # accordingly. |
| 1660 | ac_fn_c_check_header_mongrel () |
| 1661 | { |
| 1662 | 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] | 1663 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1665 | $as_echo_n "checking for $2... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1666 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1667 | $as_echo_n "(cached) " >&6 |
| 1668 | fi |
| 1669 | eval ac_res=\$$3 |
| 1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1671 | $as_echo "$ac_res" >&6; } |
| 1672 | else |
| 1673 | # Is the header compilable? |
| 1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1675 | $as_echo_n "checking $2 usability... " >&6; } |
| 1676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1677 | /* end confdefs.h. */ |
| 1678 | $4 |
| 1679 | #include <$2> |
| 1680 | _ACEOF |
| 1681 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1682 | ac_header_compiler=yes |
| 1683 | else |
| 1684 | ac_header_compiler=no |
| 1685 | fi |
| 1686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1688 | $as_echo "$ac_header_compiler" >&6; } |
| 1689 | |
| 1690 | # Is the header present? |
| 1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1692 | $as_echo_n "checking $2 presence... " >&6; } |
| 1693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1694 | /* end confdefs.h. */ |
| 1695 | #include <$2> |
| 1696 | _ACEOF |
| 1697 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1698 | ac_header_preproc=yes |
| 1699 | else |
| 1700 | ac_header_preproc=no |
| 1701 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1702 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1704 | $as_echo "$ac_header_preproc" >&6; } |
| 1705 | |
| 1706 | # So? What about this header? |
| 1707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1708 | yes:no: ) |
| 1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1710 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1712 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1713 | ;; |
| 1714 | no:yes:* ) |
| 1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1716 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1718 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1720 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1722 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1724 | $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] | 1725 | ( $as_echo "## -------------------------------------- ## |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1726 | ## Report this to http://bugs.python.org/ ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1727 | ## -------------------------------------- ##" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1728 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1729 | ;; |
| 1730 | esac |
| 1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1732 | $as_echo_n "checking for $2... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1733 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1734 | $as_echo_n "(cached) " >&6 |
| 1735 | else |
| 1736 | eval "$3=\$ac_header_compiler" |
| 1737 | fi |
| 1738 | eval ac_res=\$$3 |
| 1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1740 | $as_echo "$ac_res" >&6; } |
| 1741 | fi |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1742 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1743 | |
| 1744 | } # ac_fn_c_check_header_mongrel |
| 1745 | |
| 1746 | # ac_fn_c_try_run LINENO |
| 1747 | # ---------------------- |
| 1748 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1749 | # that executables *can* be run. |
| 1750 | ac_fn_c_try_run () |
| 1751 | { |
| 1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1753 | if { { ac_try="$ac_link" |
| 1754 | case "(($ac_try" in |
| 1755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1756 | *) ac_try_echo=$ac_try;; |
| 1757 | esac |
| 1758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1759 | $as_echo "$ac_try_echo"; } >&5 |
| 1760 | (eval "$ac_link") 2>&5 |
| 1761 | ac_status=$? |
| 1762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1763 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1764 | { { case "(($ac_try" in |
| 1765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1766 | *) ac_try_echo=$ac_try;; |
| 1767 | esac |
| 1768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1769 | $as_echo "$ac_try_echo"; } >&5 |
| 1770 | (eval "$ac_try") 2>&5 |
| 1771 | ac_status=$? |
| 1772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1773 | test $ac_status = 0; }; }; then : |
| 1774 | ac_retval=0 |
| 1775 | else |
| 1776 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1777 | $as_echo "$as_me: failed program was:" >&5 |
| 1778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1779 | |
| 1780 | ac_retval=$ac_status |
| 1781 | fi |
| 1782 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1784 | as_fn_set_status $ac_retval |
| 1785 | |
| 1786 | } # ac_fn_c_try_run |
| 1787 | |
| 1788 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1789 | # ------------------------------------------------------- |
| 1790 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1791 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1792 | ac_fn_c_check_header_compile () |
| 1793 | { |
| 1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1796 | $as_echo_n "checking for $2... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1797 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1798 | $as_echo_n "(cached) " >&6 |
| 1799 | else |
| 1800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1801 | /* end confdefs.h. */ |
| 1802 | $4 |
| 1803 | #include <$2> |
| 1804 | _ACEOF |
| 1805 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1806 | eval "$3=yes" |
| 1807 | else |
| 1808 | eval "$3=no" |
| 1809 | fi |
| 1810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1811 | fi |
| 1812 | eval ac_res=\$$3 |
| 1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1814 | $as_echo "$ac_res" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1815 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1816 | |
| 1817 | } # ac_fn_c_check_header_compile |
| 1818 | |
| 1819 | # ac_fn_c_try_link LINENO |
| 1820 | # ----------------------- |
| 1821 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1822 | ac_fn_c_try_link () |
| 1823 | { |
| 1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1825 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1826 | if { { ac_try="$ac_link" |
| 1827 | case "(($ac_try" in |
| 1828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1829 | *) ac_try_echo=$ac_try;; |
| 1830 | esac |
| 1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1832 | $as_echo "$ac_try_echo"; } >&5 |
| 1833 | (eval "$ac_link") 2>conftest.err |
| 1834 | ac_status=$? |
| 1835 | if test -s conftest.err; then |
| 1836 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1837 | cat conftest.er1 >&5 |
| 1838 | mv -f conftest.er1 conftest.err |
| 1839 | fi |
| 1840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1841 | test $ac_status = 0; } && { |
| 1842 | test -z "$ac_c_werror_flag" || |
| 1843 | test ! -s conftest.err |
| 1844 | } && test -s conftest$ac_exeext && { |
| 1845 | test "$cross_compiling" = yes || |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1846 | test -x conftest$ac_exeext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1847 | }; then : |
| 1848 | ac_retval=0 |
| 1849 | else |
| 1850 | $as_echo "$as_me: failed program was:" >&5 |
| 1851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1852 | |
| 1853 | ac_retval=1 |
| 1854 | fi |
| 1855 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1856 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1857 | # interfere with the next link command; also delete a directory that is |
| 1858 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1859 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1860 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1861 | as_fn_set_status $ac_retval |
| 1862 | |
| 1863 | } # ac_fn_c_try_link |
| 1864 | |
| 1865 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1866 | # ------------------------------------------- |
| 1867 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1868 | # variable VAR accordingly. |
| 1869 | ac_fn_c_check_type () |
| 1870 | { |
| 1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1873 | $as_echo_n "checking for $2... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1874 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1875 | $as_echo_n "(cached) " >&6 |
| 1876 | else |
| 1877 | eval "$3=no" |
| 1878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1879 | /* end confdefs.h. */ |
| 1880 | $4 |
| 1881 | int |
| 1882 | main () |
| 1883 | { |
| 1884 | if (sizeof ($2)) |
| 1885 | return 0; |
| 1886 | ; |
| 1887 | return 0; |
| 1888 | } |
| 1889 | _ACEOF |
| 1890 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1892 | /* end confdefs.h. */ |
| 1893 | $4 |
| 1894 | int |
| 1895 | main () |
| 1896 | { |
| 1897 | if (sizeof (($2))) |
| 1898 | return 0; |
| 1899 | ; |
| 1900 | return 0; |
| 1901 | } |
| 1902 | _ACEOF |
| 1903 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1904 | |
| 1905 | else |
| 1906 | eval "$3=yes" |
| 1907 | fi |
| 1908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1909 | fi |
| 1910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1911 | fi |
| 1912 | eval ac_res=\$$3 |
| 1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1914 | $as_echo "$ac_res" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1915 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1916 | |
| 1917 | } # ac_fn_c_check_type |
| 1918 | |
| 1919 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1920 | # ------------------------------------ |
| 1921 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1922 | # accordingly. |
| 1923 | ac_fn_c_find_uintX_t () |
| 1924 | { |
| 1925 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1927 | $as_echo_n "checking for uint$2_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1928 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1929 | $as_echo_n "(cached) " >&6 |
| 1930 | else |
| 1931 | eval "$3=no" |
| 1932 | # Order is important - never check a type that is potentially smaller |
| 1933 | # than half of the expected target width. |
| 1934 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1935 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1937 | /* end confdefs.h. */ |
| 1938 | $ac_includes_default |
| 1939 | int |
| 1940 | main () |
| 1941 | { |
| 1942 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1943 | test_array [0] = 0; |
| 1944 | return test_array [0]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1945 | |
| 1946 | ; |
| 1947 | return 0; |
| 1948 | } |
| 1949 | _ACEOF |
| 1950 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1951 | case $ac_type in #( |
| 1952 | uint$2_t) : |
| 1953 | eval "$3=yes" ;; #( |
| 1954 | *) : |
| 1955 | eval "$3=\$ac_type" ;; |
| 1956 | esac |
| 1957 | fi |
| 1958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1959 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1960 | |
| 1961 | else |
| 1962 | break |
| 1963 | fi |
| 1964 | done |
| 1965 | fi |
| 1966 | eval ac_res=\$$3 |
| 1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1968 | $as_echo "$ac_res" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1969 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1970 | |
| 1971 | } # ac_fn_c_find_uintX_t |
| 1972 | |
| 1973 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1974 | # ----------------------------------- |
| 1975 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1976 | # accordingly. |
| 1977 | ac_fn_c_find_intX_t () |
| 1978 | { |
| 1979 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1981 | $as_echo_n "checking for int$2_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1982 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1983 | $as_echo_n "(cached) " >&6 |
| 1984 | else |
| 1985 | eval "$3=no" |
| 1986 | # Order is important - never check a type that is potentially smaller |
| 1987 | # than half of the expected target width. |
| 1988 | for ac_type in int$2_t 'int' 'long int' \ |
| 1989 | 'long long int' 'short int' 'signed char'; do |
| 1990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1991 | /* end confdefs.h. */ |
| 1992 | $ac_includes_default |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1993 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1994 | int |
| 1995 | main () |
| 1996 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1997 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1998 | test_array [0] = 0; |
| 1999 | return test_array [0]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2000 | |
| 2001 | ; |
| 2002 | return 0; |
| 2003 | } |
| 2004 | _ACEOF |
| 2005 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2007 | /* end confdefs.h. */ |
| 2008 | $ac_includes_default |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2009 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2010 | int |
| 2011 | main () |
| 2012 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2013 | 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] | 2014 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2015 | test_array [0] = 0; |
| 2016 | return test_array [0]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2017 | |
| 2018 | ; |
| 2019 | return 0; |
| 2020 | } |
| 2021 | _ACEOF |
| 2022 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2023 | |
| 2024 | else |
| 2025 | case $ac_type in #( |
| 2026 | int$2_t) : |
| 2027 | eval "$3=yes" ;; #( |
| 2028 | *) : |
| 2029 | eval "$3=\$ac_type" ;; |
| 2030 | esac |
| 2031 | fi |
| 2032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2033 | fi |
| 2034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2035 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2036 | |
| 2037 | else |
| 2038 | break |
| 2039 | fi |
| 2040 | done |
| 2041 | fi |
| 2042 | eval ac_res=\$$3 |
| 2043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2044 | $as_echo "$ac_res" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2045 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2046 | |
| 2047 | } # ac_fn_c_find_intX_t |
| 2048 | |
| 2049 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2050 | # -------------------------------------------- |
| 2051 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2052 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2053 | # computed |
| 2054 | ac_fn_c_compute_int () |
| 2055 | { |
| 2056 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2057 | if test "$cross_compiling" = yes; then |
| 2058 | # Depending upon the size, compute the lo and hi bounds. |
| 2059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2060 | /* end confdefs.h. */ |
| 2061 | $4 |
| 2062 | int |
| 2063 | main () |
| 2064 | { |
| 2065 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2066 | test_array [0] = 0; |
| 2067 | return test_array [0]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2068 | |
| 2069 | ; |
| 2070 | return 0; |
| 2071 | } |
| 2072 | _ACEOF |
| 2073 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2074 | ac_lo=0 ac_mid=0 |
| 2075 | while :; do |
| 2076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2077 | /* end confdefs.h. */ |
| 2078 | $4 |
| 2079 | int |
| 2080 | main () |
| 2081 | { |
| 2082 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2083 | test_array [0] = 0; |
| 2084 | return test_array [0]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2085 | |
| 2086 | ; |
| 2087 | return 0; |
| 2088 | } |
| 2089 | _ACEOF |
| 2090 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2091 | ac_hi=$ac_mid; break |
| 2092 | else |
| 2093 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2094 | if test $ac_lo -le $ac_mid; then |
| 2095 | ac_lo= ac_hi= |
| 2096 | break |
| 2097 | fi |
| 2098 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2099 | fi |
| 2100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2101 | done |
| 2102 | else |
| 2103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2104 | /* end confdefs.h. */ |
| 2105 | $4 |
| 2106 | int |
| 2107 | main () |
| 2108 | { |
| 2109 | static int test_array [1 - 2 * !(($2) < 0)]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2110 | test_array [0] = 0; |
| 2111 | return test_array [0]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2112 | |
| 2113 | ; |
| 2114 | return 0; |
| 2115 | } |
| 2116 | _ACEOF |
| 2117 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2118 | ac_hi=-1 ac_mid=-1 |
| 2119 | while :; do |
| 2120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2121 | /* end confdefs.h. */ |
| 2122 | $4 |
| 2123 | int |
| 2124 | main () |
| 2125 | { |
| 2126 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2127 | test_array [0] = 0; |
| 2128 | return test_array [0]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2129 | |
| 2130 | ; |
| 2131 | return 0; |
| 2132 | } |
| 2133 | _ACEOF |
| 2134 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2135 | ac_lo=$ac_mid; break |
| 2136 | else |
| 2137 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2138 | if test $ac_mid -le $ac_hi; then |
| 2139 | ac_lo= ac_hi= |
| 2140 | break |
| 2141 | fi |
| 2142 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2143 | fi |
| 2144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2145 | done |
| 2146 | else |
| 2147 | ac_lo= ac_hi= |
| 2148 | fi |
| 2149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2150 | fi |
| 2151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2152 | # Binary search between lo and hi bounds. |
| 2153 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2154 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2156 | /* end confdefs.h. */ |
| 2157 | $4 |
| 2158 | int |
| 2159 | main () |
| 2160 | { |
| 2161 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2162 | test_array [0] = 0; |
| 2163 | return test_array [0]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2164 | |
| 2165 | ; |
| 2166 | return 0; |
| 2167 | } |
| 2168 | _ACEOF |
| 2169 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2170 | ac_hi=$ac_mid |
| 2171 | else |
| 2172 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2173 | fi |
| 2174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2175 | done |
| 2176 | case $ac_lo in #(( |
| 2177 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2178 | '') ac_retval=1 ;; |
| 2179 | esac |
| 2180 | else |
| 2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2182 | /* end confdefs.h. */ |
| 2183 | $4 |
| 2184 | static long int longval () { return $2; } |
| 2185 | static unsigned long int ulongval () { return $2; } |
| 2186 | #include <stdio.h> |
| 2187 | #include <stdlib.h> |
| 2188 | int |
| 2189 | main () |
| 2190 | { |
| 2191 | |
| 2192 | FILE *f = fopen ("conftest.val", "w"); |
| 2193 | if (! f) |
| 2194 | return 1; |
| 2195 | if (($2) < 0) |
| 2196 | { |
| 2197 | long int i = longval (); |
| 2198 | if (i != ($2)) |
| 2199 | return 1; |
| 2200 | fprintf (f, "%ld", i); |
| 2201 | } |
| 2202 | else |
| 2203 | { |
| 2204 | unsigned long int i = ulongval (); |
| 2205 | if (i != ($2)) |
| 2206 | return 1; |
| 2207 | fprintf (f, "%lu", i); |
| 2208 | } |
| 2209 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2210 | on some platforms. */ |
| 2211 | return ferror (f) || fclose (f) != 0; |
| 2212 | |
| 2213 | ; |
| 2214 | return 0; |
| 2215 | } |
| 2216 | _ACEOF |
| 2217 | if ac_fn_c_try_run "$LINENO"; then : |
| 2218 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2219 | else |
| 2220 | ac_retval=1 |
| 2221 | fi |
| 2222 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2223 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2224 | rm -f conftest.val |
| 2225 | |
| 2226 | fi |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2227 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2228 | as_fn_set_status $ac_retval |
| 2229 | |
| 2230 | } # ac_fn_c_compute_int |
| 2231 | |
| 2232 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2233 | # ---------------------------------- |
| 2234 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2235 | ac_fn_c_check_func () |
| 2236 | { |
| 2237 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2239 | $as_echo_n "checking for $2... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2240 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2241 | $as_echo_n "(cached) " >&6 |
| 2242 | else |
| 2243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2244 | /* end confdefs.h. */ |
| 2245 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2247 | #define $2 innocuous_$2 |
| 2248 | |
| 2249 | /* System header to define __stub macros and hopefully few prototypes, |
| 2250 | which can conflict with char $2 (); below. |
| 2251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2252 | <limits.h> exists even on freestanding compilers. */ |
| 2253 | |
| 2254 | #ifdef __STDC__ |
| 2255 | # include <limits.h> |
| 2256 | #else |
| 2257 | # include <assert.h> |
| 2258 | #endif |
| 2259 | |
| 2260 | #undef $2 |
| 2261 | |
| 2262 | /* Override any GCC internal prototype to avoid an error. |
| 2263 | Use char because int might match the return type of a GCC |
| 2264 | builtin and then its argument prototype would still apply. */ |
| 2265 | #ifdef __cplusplus |
| 2266 | extern "C" |
| 2267 | #endif |
| 2268 | char $2 (); |
| 2269 | /* The GNU C library defines this for functions which it implements |
| 2270 | to always fail with ENOSYS. Some functions are actually named |
| 2271 | something starting with __ and the normal name is an alias. */ |
| 2272 | #if defined __stub_$2 || defined __stub___$2 |
| 2273 | choke me |
| 2274 | #endif |
| 2275 | |
| 2276 | int |
| 2277 | main () |
| 2278 | { |
| 2279 | return $2 (); |
| 2280 | ; |
| 2281 | return 0; |
| 2282 | } |
| 2283 | _ACEOF |
| 2284 | if ac_fn_c_try_link "$LINENO"; then : |
| 2285 | eval "$3=yes" |
| 2286 | else |
| 2287 | eval "$3=no" |
| 2288 | fi |
| 2289 | rm -f core conftest.err conftest.$ac_objext \ |
| 2290 | conftest$ac_exeext conftest.$ac_ext |
| 2291 | fi |
| 2292 | eval ac_res=\$$3 |
| 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2294 | $as_echo "$ac_res" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2295 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2296 | |
| 2297 | } # ac_fn_c_check_func |
| 2298 | |
| 2299 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2300 | # ---------------------------------------------------- |
| 2301 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2302 | # INCLUDES, setting cache variable VAR accordingly. |
| 2303 | ac_fn_c_check_member () |
| 2304 | { |
| 2305 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2307 | $as_echo_n "checking for $2.$3... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2308 | if eval \${$4+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2309 | $as_echo_n "(cached) " >&6 |
| 2310 | else |
| 2311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2312 | /* end confdefs.h. */ |
| 2313 | $5 |
| 2314 | int |
| 2315 | main () |
| 2316 | { |
| 2317 | static $2 ac_aggr; |
| 2318 | if (ac_aggr.$3) |
| 2319 | return 0; |
| 2320 | ; |
| 2321 | return 0; |
| 2322 | } |
| 2323 | _ACEOF |
| 2324 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2325 | eval "$4=yes" |
| 2326 | else |
| 2327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2328 | /* end confdefs.h. */ |
| 2329 | $5 |
| 2330 | int |
| 2331 | main () |
| 2332 | { |
| 2333 | static $2 ac_aggr; |
| 2334 | if (sizeof ac_aggr.$3) |
| 2335 | return 0; |
| 2336 | ; |
| 2337 | return 0; |
| 2338 | } |
| 2339 | _ACEOF |
| 2340 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2341 | eval "$4=yes" |
| 2342 | else |
| 2343 | eval "$4=no" |
| 2344 | fi |
| 2345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2346 | fi |
| 2347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2348 | fi |
| 2349 | eval ac_res=\$$4 |
| 2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2351 | $as_echo "$ac_res" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2352 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2353 | |
| 2354 | } # ac_fn_c_check_member |
| 2355 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2356 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2357 | # --------------------------------------------- |
| 2358 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2359 | # accordingly. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2360 | ac_fn_c_check_decl () |
| 2361 | { |
| 2362 | 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] | 2363 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2364 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2366 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2367 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2368 | $as_echo_n "(cached) " >&6 |
| 2369 | else |
| 2370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2371 | /* end confdefs.h. */ |
| 2372 | $4 |
| 2373 | int |
| 2374 | main () |
| 2375 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2376 | #ifndef $as_decl_name |
| 2377 | #ifdef __cplusplus |
| 2378 | (void) $as_decl_use; |
| 2379 | #else |
| 2380 | (void) $as_decl_name; |
| 2381 | #endif |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2382 | #endif |
| 2383 | |
| 2384 | ; |
| 2385 | return 0; |
| 2386 | } |
| 2387 | _ACEOF |
| 2388 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2389 | eval "$3=yes" |
| 2390 | else |
| 2391 | eval "$3=no" |
| 2392 | fi |
| 2393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2394 | fi |
| 2395 | eval ac_res=\$$3 |
| 2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2397 | $as_echo "$ac_res" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2398 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2399 | |
| 2400 | } # ac_fn_c_check_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2401 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2402 | This file contains any messages produced by compilers while |
| 2403 | running configure, to aid debugging if configure makes a mistake. |
| 2404 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2405 | It was created by python $as_me 2.7, which was |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2406 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | |
| 2408 | $ $0 $@ |
| 2409 | |
| 2410 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2411 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2412 | { |
| 2413 | cat <<_ASUNAME |
| 2414 | ## --------- ## |
| 2415 | ## Platform. ## |
| 2416 | ## --------- ## |
| 2417 | |
| 2418 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2419 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2420 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2421 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2422 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2423 | |
| 2424 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2425 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2426 | |
| 2427 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2428 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2429 | /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] | 2430 | /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] | 2431 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2432 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2433 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2434 | |
| 2435 | _ASUNAME |
| 2436 | |
| 2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2438 | for as_dir in $PATH |
| 2439 | do |
| 2440 | IFS=$as_save_IFS |
| 2441 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2442 | $as_echo "PATH: $as_dir" |
| 2443 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2444 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2445 | |
| 2446 | } >&5 |
| 2447 | |
| 2448 | cat >&5 <<_ACEOF |
| 2449 | |
| 2450 | |
| 2451 | ## ----------- ## |
| 2452 | ## Core tests. ## |
| 2453 | ## ----------- ## |
| 2454 | |
| 2455 | _ACEOF |
| 2456 | |
| 2457 | |
| 2458 | # Keep a trace of the command line. |
| 2459 | # 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] | 2460 | # 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] | 2461 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2462 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2464 | ac_configure_args0= |
| 2465 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2466 | ac_must_keep_next=false |
| 2467 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2469 | for ac_arg |
| 2470 | do |
| 2471 | case $ac_arg in |
| 2472 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2473 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2474 | | -silent | --silent | --silen | --sile | --sil) |
| 2475 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2476 | *\'*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2477 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2478 | esac |
| 2479 | case $ac_pass in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2480 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2481 | 2) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2482 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2483 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2484 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2485 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2486 | case $ac_arg in |
| 2487 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2488 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2489 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2490 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2491 | case "$ac_configure_args0 " in |
| 2492 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2493 | esac |
| 2494 | ;; |
| 2495 | -* ) ac_must_keep_next=true ;; |
| 2496 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2497 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2498 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2499 | ;; |
| 2500 | esac |
| 2501 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2502 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2503 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2504 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | |
| 2506 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2507 | # config.log. We remove comments because anyway the quotes in there |
| 2508 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2509 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2510 | # 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] | 2511 | trap 'exit_status=$? |
| 2512 | # Save into config.log some information that might help in debugging. |
| 2513 | { |
| 2514 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2515 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2516 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | ## Cache variables. ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2518 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | echo |
| 2520 | # 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] | 2521 | ( |
| 2522 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2523 | eval ac_val=\$$ac_var |
| 2524 | case $ac_val in #( |
| 2525 | *${as_nl}*) |
| 2526 | case $ac_var in #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2527 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2528 | $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] | 2529 | esac |
| 2530 | case $ac_var in #( |
| 2531 | _ | IFS | as_nl) ;; #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2532 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2533 | *) { eval $ac_var=; unset $ac_var;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2534 | esac ;; |
| 2535 | esac |
| 2536 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2538 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2539 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2541 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2542 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2543 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2544 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2545 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2546 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2547 | esac | |
| 2548 | sort |
| 2549 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2551 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2552 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2553 | ## Output variables. ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2554 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2555 | echo |
| 2556 | for ac_var in $ac_subst_vars |
| 2557 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2558 | eval ac_val=\$$ac_var |
| 2559 | case $ac_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2560 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2561 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2562 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2563 | done | sort |
| 2564 | echo |
| 2565 | |
| 2566 | if test -n "$ac_subst_files"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2567 | $as_echo "## ------------------- ## |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2568 | ## File substitutions. ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2569 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2570 | echo |
| 2571 | for ac_var in $ac_subst_files |
| 2572 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2573 | eval ac_val=\$$ac_var |
| 2574 | case $ac_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2575 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2576 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2577 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2578 | done | sort |
| 2579 | echo |
| 2580 | fi |
| 2581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2582 | if test -s confdefs.h; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2583 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2584 | ## confdefs.h. ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2585 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2587 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2588 | echo |
| 2589 | fi |
| 2590 | test "$ac_signal" != 0 && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2591 | $as_echo "$as_me: caught signal $ac_signal" |
| 2592 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2594 | rm -f core *.core core.conftest.* && |
| 2595 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2596 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2597 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2598 | for ac_signal in 1 2 13 15; do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2599 | 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] | 2600 | done |
| 2601 | ac_signal=0 |
| 2602 | |
| 2603 | # 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] | 2604 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2606 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | # Predefined preprocessor variables. |
| 2609 | |
| 2610 | cat >>confdefs.h <<_ACEOF |
| 2611 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2612 | _ACEOF |
| 2613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | cat >>confdefs.h <<_ACEOF |
| 2615 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2616 | _ACEOF |
| 2617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | cat >>confdefs.h <<_ACEOF |
| 2619 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2620 | _ACEOF |
| 2621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | cat >>confdefs.h <<_ACEOF |
| 2623 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2624 | _ACEOF |
| 2625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 | cat >>confdefs.h <<_ACEOF |
| 2627 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2628 | _ACEOF |
| 2629 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2630 | cat >>confdefs.h <<_ACEOF |
| 2631 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2632 | _ACEOF |
| 2633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | |
| 2635 | # 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] | 2636 | # Prefer an explicitly selected file to automatically selected ones. |
| 2637 | ac_site_file1=NONE |
| 2638 | ac_site_file2=NONE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2639 | if test -n "$CONFIG_SITE"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2640 | # We do not want a PATH search for config.site. |
| 2641 | case $CONFIG_SITE in #(( |
| 2642 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2643 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2644 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2645 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2646 | elif test "x$prefix" != xNONE; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2647 | ac_site_file1=$prefix/share/config.site |
| 2648 | ac_site_file2=$prefix/etc/config.site |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2649 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2650 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2651 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2652 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2653 | 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] | 2654 | do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2655 | test "x$ac_site_file" = xNONE && continue |
| 2656 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2658 | $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] | 2659 | sed 's/^/| /' "$ac_site_file" >&5 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2660 | . "$ac_site_file" \ |
| 2661 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2662 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2663 | as_fn_error $? "failed to load site script $ac_site_file |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2664 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2665 | fi |
| 2666 | done |
| 2667 | |
| 2668 | if test -r "$cache_file"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2669 | # Some versions of bash will fail to source /dev/null (special files |
| 2670 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2671 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2673 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2675 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2676 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2677 | esac |
| 2678 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2679 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2681 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2682 | >$cache_file |
| 2683 | fi |
| 2684 | |
| 2685 | # Check that the precious variables saved in the cache have kept the same |
| 2686 | # value. |
| 2687 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2688 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2689 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2690 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2691 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2692 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 | case $ac_old_set,$ac_new_set in |
| 2694 | set,) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2696 | $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] | 2697 | ac_cache_corrupted=: ;; |
| 2698 | ,set) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2700 | $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] | 2701 | ac_cache_corrupted=: ;; |
| 2702 | ,);; |
| 2703 | *) |
| 2704 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2705 | # differences in whitespace do not lead to failure. |
| 2706 | ac_old_val_w=`echo x $ac_old_val` |
| 2707 | ac_new_val_w=`echo x $ac_new_val` |
| 2708 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2710 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2711 | ac_cache_corrupted=: |
| 2712 | else |
| 2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2714 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2715 | eval $ac_var=\$ac_old_val |
| 2716 | fi |
| 2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2718 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2720 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2721 | fi;; |
| 2722 | esac |
| 2723 | # Pass precious variables to config.status. |
| 2724 | if test "$ac_new_set" = set; then |
| 2725 | case $ac_new_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2726 | *\'*) 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] | 2727 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2728 | esac |
| 2729 | case " $ac_configure_args " in |
| 2730 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2731 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2732 | esac |
| 2733 | fi |
| 2734 | done |
| 2735 | if $ac_cache_corrupted; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2739 | $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] | 2740 | 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] | 2741 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2742 | ## -------------------- ## |
| 2743 | ## Main body of script. ## |
| 2744 | ## -------------------- ## |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2745 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2746 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2747 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2751 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2752 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2753 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2754 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | |
| 2756 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2757 | ac_aux_dir= |
| 2758 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2759 | if test -f "$ac_dir/install-sh"; then |
| 2760 | ac_aux_dir=$ac_dir |
| 2761 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2762 | break |
| 2763 | elif test -f "$ac_dir/install.sh"; then |
| 2764 | ac_aux_dir=$ac_dir |
| 2765 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2766 | break |
| 2767 | elif test -f "$ac_dir/shtool"; then |
| 2768 | ac_aux_dir=$ac_dir |
| 2769 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2770 | break |
| 2771 | fi |
| 2772 | done |
| 2773 | if test -z "$ac_aux_dir"; then |
| 2774 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2775 | fi |
| 2776 | |
| 2777 | # These three variables are undocumented and unsupported, |
| 2778 | # and are intended to be withdrawn in a future Autoconf release. |
| 2779 | # They can cause serious problems if a builder's source tree is in a directory |
| 2780 | # whose full name contains unusual characters. |
| 2781 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2782 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2783 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2784 | |
| 2785 | |
| 2786 | # Make sure we can run config.sub. |
| 2787 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2788 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2789 | |
| 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2791 | $as_echo_n "checking build system type... " >&6; } |
| 2792 | if ${ac_cv_build+:} false; then : |
| 2793 | $as_echo_n "(cached) " >&6 |
| 2794 | else |
| 2795 | ac_build_alias=$build_alias |
| 2796 | test "x$ac_build_alias" = x && |
| 2797 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2798 | test "x$ac_build_alias" = x && |
| 2799 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2800 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2801 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2802 | |
| 2803 | fi |
| 2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2805 | $as_echo "$ac_cv_build" >&6; } |
| 2806 | case $ac_cv_build in |
| 2807 | *-*-*) ;; |
| 2808 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2809 | esac |
| 2810 | build=$ac_cv_build |
| 2811 | ac_save_IFS=$IFS; IFS='-' |
| 2812 | set x $ac_cv_build |
| 2813 | shift |
| 2814 | build_cpu=$1 |
| 2815 | build_vendor=$2 |
| 2816 | shift; shift |
| 2817 | # Remember, the first character of IFS is used to create $*, |
| 2818 | # except with old shells: |
| 2819 | build_os=$* |
| 2820 | IFS=$ac_save_IFS |
| 2821 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2822 | |
| 2823 | |
| 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2825 | $as_echo_n "checking host system type... " >&6; } |
| 2826 | if ${ac_cv_host+:} false; then : |
| 2827 | $as_echo_n "(cached) " >&6 |
| 2828 | else |
| 2829 | if test "x$host_alias" = x; then |
| 2830 | ac_cv_host=$ac_cv_build |
| 2831 | else |
| 2832 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2833 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2834 | fi |
| 2835 | |
| 2836 | fi |
| 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2838 | $as_echo "$ac_cv_host" >&6; } |
| 2839 | case $ac_cv_host in |
| 2840 | *-*-*) ;; |
| 2841 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2842 | esac |
| 2843 | host=$ac_cv_host |
| 2844 | ac_save_IFS=$IFS; IFS='-' |
| 2845 | set x $ac_cv_host |
| 2846 | shift |
| 2847 | host_cpu=$1 |
| 2848 | host_vendor=$2 |
| 2849 | shift; shift |
| 2850 | # Remember, the first character of IFS is used to create $*, |
| 2851 | # except with old shells: |
| 2852 | host_os=$* |
| 2853 | IFS=$ac_save_IFS |
| 2854 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2855 | |
| 2856 | |
| 2857 | |
| 2858 | |
| 2859 | |
| 2860 | if test "$cross_compiling" = yes; then |
| 2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
| 2862 | $as_echo_n "checking for python interpreter for cross build... " >&6; } |
| 2863 | if test -z "$PYTHON_FOR_BUILD"; then |
| 2864 | for interp in python$PACKAGE_VERSION python2 python; do |
| 2865 | which $interp >/dev/null 2>&1 || continue |
| 2866 | if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then |
| 2867 | break |
| 2868 | fi |
| 2869 | interp= |
| 2870 | done |
| 2871 | if test x$interp = x; then |
| 2872 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 |
| 2873 | fi |
| 2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
| 2875 | $as_echo "$interp" >&6; } |
| 2876 | PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/plat-$(MACHDEP) '$interp |
| 2877 | fi |
| 2878 | elif test "$cross_compiling" = maybe; then |
| 2879 | as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 |
| 2880 | else |
| 2881 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' |
| 2882 | fi |
| 2883 | |
| 2884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2885 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2886 | if test "$prefix" != "/"; then |
| 2887 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2888 | fi |
| 2889 | |
| 2890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2891 | |
| 2892 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2893 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2894 | # with other autoconf-based packages that include Python.h |
| 2895 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2896 | rm confdefs.h |
| 2897 | mv confdefs.h.new confdefs.h |
| 2898 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2899 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2900 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2901 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2902 | |
| 2903 | SOVERSION=1.0 |
| 2904 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2905 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2906 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2907 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2908 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2909 | |
| 2910 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2911 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2912 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2913 | # them. |
| 2914 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2915 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2916 | |
| 2917 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2918 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2919 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2920 | # them. |
| 2921 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2922 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2923 | |
| 2924 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2925 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2926 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 2927 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2928 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2929 | |
| 2930 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2931 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2932 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2933 | # them. |
| 2934 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2935 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2936 | |
| 2937 | |
| 2938 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2939 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2940 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2941 | # Arguments passed to configure. |
| 2942 | |
| 2943 | CONFIG_ARGS="$ac_configure_args" |
| 2944 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 2946 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2947 | # Check whether --enable-universalsdk was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2948 | if test "${enable_universalsdk+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2949 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2950 | case $enableval in |
| 2951 | yes) |
| 2952 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2953 | if test ! -d "${enableval}" |
| 2954 | then |
| 2955 | enableval=/ |
| 2956 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2957 | ;; |
| 2958 | esac |
| 2959 | case $enableval in |
| 2960 | no) |
| 2961 | UNIVERSALSDK= |
| 2962 | enable_universalsdk= |
| 2963 | ;; |
| 2964 | *) |
| 2965 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2966 | if test ! -d "${UNIVERSALSDK}" |
| 2967 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2968 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2969 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2970 | ;; |
| 2971 | esac |
| 2972 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2973 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2974 | else |
| 2975 | |
| 2976 | UNIVERSALSDK= |
| 2977 | enable_universalsdk= |
| 2978 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2979 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2980 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2981 | if test -n "${UNIVERSALSDK}" |
| 2982 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 2984 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2985 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2987 | $as_echo "no" >&6; } |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2988 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2989 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2990 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2991 | |
Ned Deily | 8e60f6e | 2013-05-30 00:14:29 -0700 | [diff] [blame] | 2992 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2993 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2994 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2995 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 2997 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2998 | |
| 2999 | # Check whether --with-universal-archs was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3000 | if test "${with_universal_archs+set}" = set; then : |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3001 | withval=$with_universal_archs; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 3003 | $as_echo "$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3004 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3005 | if test "${enable_universalsdk}" ; then |
| 3006 | : |
| 3007 | else |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3008 | 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] | 3009 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3010 | |
| 3011 | else |
| 3012 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 |
| 3014 | $as_echo "32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3015 | |
| 3016 | fi |
| 3017 | |
| 3018 | |
| 3019 | |
| 3020 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3021 | |
| 3022 | # Check whether --with-framework-name was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3023 | if test "${with_framework_name+set}" = set; then : |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3024 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3025 | if test "${enable_framework}"; then |
| 3026 | : |
| 3027 | else |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3028 | 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] | 3029 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3030 | PYTHONFRAMEWORK=${withval} |
| 3031 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 3032 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 3033 | |
| 3034 | else |
| 3035 | |
| 3036 | PYTHONFRAMEWORK=Python |
| 3037 | PYTHONFRAMEWORKDIR=Python.framework |
| 3038 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 3039 | |
| 3040 | fi |
| 3041 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3042 | # Check whether --enable-framework was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3043 | if test "${enable_framework+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3044 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3045 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3046 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3047 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3048 | esac |
| 3049 | case $enableval in |
| 3050 | no) |
| 3051 | PYTHONFRAMEWORK= |
| 3052 | PYTHONFRAMEWORKDIR=no-framework |
| 3053 | PYTHONFRAMEWORKPREFIX= |
| 3054 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3055 | FRAMEWORKINSTALLFIRST= |
| 3056 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3057 | FRAMEWORKALTINSTALLFIRST= |
| 3058 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3059 | if test "x${prefix}" = "xNONE"; then |
| 3060 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3061 | else |
| 3062 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3063 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3064 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3065 | ;; |
| 3066 | *) |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3067 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3068 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3069 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3070 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 3071 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 3072 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3073 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3074 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3075 | if test "x${prefix}" = "xNONE" ; then |
| 3076 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3077 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3078 | else |
| 3079 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3080 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3081 | |
| 3082 | case "${enableval}" in |
| 3083 | /System*) |
| 3084 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3085 | if test "${prefix}" = "NONE" ; then |
| 3086 | # See below |
| 3087 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 3088 | fi |
| 3089 | ;; |
| 3090 | |
| 3091 | /Library*) |
| 3092 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3093 | ;; |
| 3094 | |
| 3095 | */Library/Frameworks) |
| 3096 | MDIR="`dirname "${enableval}"`" |
| 3097 | MDIR="`dirname "${MDIR}"`" |
| 3098 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 3099 | |
| 3100 | if test "${prefix}" = "NONE"; then |
| 3101 | # User hasn't specified the |
| 3102 | # --prefix option, but wants to install |
| 3103 | # the framework in a non-default location, |
| 3104 | # ensure that the compatibility links get |
| 3105 | # installed relative to that prefix as well |
| 3106 | # instead of in /usr/local. |
| 3107 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 3108 | fi |
| 3109 | ;; |
| 3110 | |
| 3111 | *) |
| 3112 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3113 | ;; |
| 3114 | esac |
| 3115 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3116 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3117 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3118 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3119 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3120 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3121 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3122 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3123 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3124 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3125 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3126 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 3127 | |
| 3128 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 3129 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3130 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3131 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3133 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3134 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3135 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3136 | PYTHONFRAMEWORKPREFIX= |
| 3137 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3138 | FRAMEWORKINSTALLFIRST= |
| 3139 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3140 | FRAMEWORKALTINSTALLFIRST= |
| 3141 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3142 | if test "x${prefix}" = "xNONE" ; then |
| 3143 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3144 | else |
| 3145 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3146 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3147 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3148 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3149 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3150 | fi |
| 3151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3152 | |
| 3153 | |
| 3154 | |
| 3155 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3156 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3157 | |
| 3158 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3159 | |
| 3160 | |
| 3161 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3162 | |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3163 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3164 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 3165 | ## AS_HELP_STRING([--with-dyld], |
| 3166 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3167 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3168 | # Set name for machine-dependent library files |
| 3169 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 3171 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3172 | if test -z "$MACHDEP" |
| 3173 | then |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3174 | # avoid using uname for cross builds |
| 3175 | if test "$cross_compiling" = yes; then |
| 3176 | # ac_sys_system and ac_sys_release are only used for setting |
| 3177 | # `define_xopen_source' in the case statement below. For the |
| 3178 | # current supported cross builds, this macro is not adjusted. |
| 3179 | case "$host" in |
| 3180 | *-*-linux*) |
| 3181 | ac_sys_system=Linux |
| 3182 | ;; |
| 3183 | *-*-cygwin*) |
| 3184 | ac_sys_system=Cygwin |
| 3185 | ;; |
| 3186 | *) |
| 3187 | # for now, limit cross builds to known configurations |
| 3188 | MACHDEP="unknown" |
| 3189 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3190 | esac |
| 3191 | ac_sys_release= |
| 3192 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3193 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 3194 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3195 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3196 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3197 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3198 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3199 | fi |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3200 | fi |
| 3201 | ac_md_system=`echo $ac_sys_system | |
| 3202 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 3203 | ac_md_release=`echo $ac_sys_release | |
| 3204 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
| 3205 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3206 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3207 | case $MACHDEP in |
Victor Stinner | acacbaa | 2011-08-20 14:02:38 +0200 | [diff] [blame] | 3208 | linux*) MACHDEP="linux2";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3209 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3210 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3211 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3212 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3213 | '') MACHDEP="unknown";; |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3214 | esac |
| 3215 | fi |
| 3216 | |
| 3217 | |
| 3218 | if test "$cross_compiling" = yes; then |
| 3219 | case "$host" in |
| 3220 | *-*-linux*) |
| 3221 | case "$host_cpu" in |
| 3222 | arm*) |
| 3223 | _host_cpu=arm |
| 3224 | ;; |
| 3225 | *) |
| 3226 | _host_cpu=$host_cpu |
| 3227 | esac |
| 3228 | ;; |
| 3229 | *-*-cygwin*) |
| 3230 | _host_cpu= |
| 3231 | ;; |
| 3232 | *) |
| 3233 | # for now, limit cross builds to known configurations |
| 3234 | MACHDEP="unknown" |
| 3235 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3236 | esac |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3237 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3238 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3239 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3240 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 3241 | # disable features if it is defined, without any means to access these |
| 3242 | # features as extensions. For these systems, we skip the definition of |
| 3243 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3244 | # some feature, make sure there is no alternative way to access this |
| 3245 | # feature. Also, when using wildcards, make sure you have verified the |
| 3246 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3247 | # wildcard, and that the wildcard does not include future systems |
| 3248 | # (which may remove their limitations). |
| 3249 | case $ac_sys_system/$ac_sys_release in |
| 3250 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3251 | # 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] | 3252 | # 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] | 3253 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3254 | # OpenBSD 4.6, but is fixed in 4.7. |
Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3255 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3256 | define_xopen_source=no |
| 3257 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3258 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3259 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3260 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3261 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3262 | |
| 3263 | ;; |
Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3264 | OpenBSD/*) |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3265 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3266 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3267 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3268 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3269 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3270 | |
| 3271 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3272 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3273 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3274 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3275 | 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] | 3276 | define_xopen_source=no;; |
Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame] | 3277 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3278 | # request to enable features supported by the standard as a request |
| 3279 | # to disable features not supported by the standard. The best way |
| 3280 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3281 | # entirely and define __EXTENSIONS__ instead. |
| 3282 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3283 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3284 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3285 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3286 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3287 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3288 | define_xopen_source=no;; |
| 3289 | # 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] | 3290 | # 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] | 3291 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3292 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3293 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3294 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3295 | FreeBSD/4.*) |
| 3296 | define_xopen_source=no;; |
| 3297 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3298 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3299 | # identifies itself as Darwin/7.* |
| 3300 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3301 | # disables platform specific features beyond repair. |
| 3302 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3303 | # has no effect, don't bother defining them |
| 3304 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3305 | define_xopen_source=no;; |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3306 | Darwin/1[0-9].*) |
| 3307 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3308 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3309 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3310 | # 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] | 3311 | AIX/4) |
| 3312 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3313 | AIX/5) |
| 3314 | if test `uname -r` -eq 1; then |
| 3315 | define_xopen_source=no |
| 3316 | fi |
| 3317 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3318 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3319 | # defining NI_NUMERICHOST. |
| 3320 | QNX/6.3.2) |
| 3321 | define_xopen_source=no |
| 3322 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3323 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3324 | esac |
| 3325 | |
| 3326 | if test $define_xopen_source = yes |
| 3327 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3328 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3329 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3330 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3331 | |
| 3332 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3333 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3334 | # several APIs are not declared. Since this is also needed in some |
| 3335 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3336 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3337 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3338 | |
| 3339 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3340 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3341 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3342 | |
| 3343 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3344 | fi |
| 3345 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3346 | # |
| 3347 | # SGI compilers allow the specification of the both the ABI and the |
| 3348 | # ISA on the command line. Depending on the values of these switches, |
| 3349 | # different and often incompatable code will be generated. |
| 3350 | # |
| 3351 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3352 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3353 | # variable is also adjusted. |
| 3354 | # |
| 3355 | |
| 3356 | if test ! -z "$SGI_ABI" |
| 3357 | then |
| 3358 | CC="cc $SGI_ABI" |
| 3359 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3360 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3361 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
| 3363 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3364 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3365 | # And add extra plat-mac for darwin |
| 3366 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3367 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 |
| 3369 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3370 | if test -z "$EXTRAPLATDIR" |
| 3371 | then |
| 3372 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3373 | darwin) |
| 3374 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 3375 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 3376 | ;; |
| 3377 | *) |
| 3378 | EXTRAPLATDIR="" |
| 3379 | EXTRAMACHDEPPATH="" |
| 3380 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3381 | esac |
| 3382 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 |
| 3384 | $as_echo "$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3385 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3386 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3387 | # it may influence the way we can build extensions, so distutils |
| 3388 | # needs to check it |
| 3389 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3390 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3391 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3392 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3393 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3394 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3395 | |
| 3396 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3397 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3398 | # just to get things to compile and link. Users are free to override OPT |
| 3399 | # when running configure or make. The build should not break if they do. |
| 3400 | # BASECFLAGS should generally not be messed with, however. |
| 3401 | |
| 3402 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3403 | # on that fiddles with OPT and BASECFLAGS? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
| 3405 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3406 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3407 | # Check whether --with-gcc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3408 | if test "${with_gcc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3409 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3410 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3411 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3412 | without_gcc=yes;; |
| 3413 | yes) CC=gcc |
| 3414 | without_gcc=no;; |
| 3415 | *) CC=$withval |
| 3416 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3417 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3420 | case $ac_sys_system in |
Antoine Pitrou | 285cd16 | 2010-09-21 15:23:17 +0000 | [diff] [blame] | 3421 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3422 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3423 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3424 | case $BE_HOST_CPU in |
| 3425 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3426 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3427 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3428 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 3429 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3430 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3431 | ;; |
| 3432 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3433 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3434 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3435 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3436 | ;; |
| 3437 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3438 | as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3439 | ;; |
| 3440 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3441 | AR="\$(srcdir)/Modules/ar_beos" |
| 3442 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3443 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3444 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3445 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3446 | fi |
| 3447 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
| 3449 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3450 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3451 | # If the user switches compilers, we can't believe the cache |
| 3452 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3453 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3454 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3455 | (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] | 3456 | fi |
| 3457 | |
Trent Nelson | 15daa35 | 2012-12-13 06:46:39 +0000 | [diff] [blame] | 3458 | if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then |
| 3459 | # Normally, MIPSpro CC treats #error directives as warnings, which means |
| 3460 | # a successful exit code is returned (0). This is a problem because IRIX |
| 3461 | # has a bunch of system headers with this guard at the top: |
| 3462 | # |
| 3463 | # #ifndef __c99 |
| 3464 | # #error This header file is to be used only for c99 mode compilations |
| 3465 | # #else |
| 3466 | # |
| 3467 | # When autoconf tests for such a header, like stdint.h, this happens: |
| 3468 | # |
| 3469 | # configure:4619: cc -c conftest.c >&5 |
| 3470 | # cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 |
| 3471 | # #error directive: This header file is to be used only for c99 mode |
| 3472 | # compilations |
| 3473 | # |
| 3474 | # #error This header file is to be used only for c99 mode compilations |
| 3475 | # ^ |
| 3476 | # |
| 3477 | # configure:4619: $? = 0 |
| 3478 | # configure:4619: result: yes |
| 3479 | # |
| 3480 | # Therefore, we use `-diag_error 1035` to have the compiler treat the |
| 3481 | # warning as an error, which causes cc to return a non-zero result, |
| 3482 | # which autoconf can interpret correctly. |
| 3483 | CFLAGS="$CFLAGS -diag_error 1035" |
| 3484 | # Whilst we're here, we might as well make sure CXX defaults to something |
| 3485 | # sensible if we're not using gcc. |
| 3486 | if test -z "$CXX"; then |
| 3487 | CXX="CC" |
| 3488 | fi |
| 3489 | fi |
| 3490 | |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3491 | # If the user set CFLAGS, use this instead of the automatically |
| 3492 | # determined setting |
| 3493 | preset_cflags="$CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3494 | ac_ext=c |
| 3495 | ac_cpp='$CPP $CPPFLAGS' |
| 3496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3499 | if test -n "$ac_tool_prefix"; then |
| 3500 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3501 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3503 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3504 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3505 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3506 | else |
| 3507 | if test -n "$CC"; then |
| 3508 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3511 | for as_dir in $PATH |
| 3512 | do |
| 3513 | IFS=$as_save_IFS |
| 3514 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3515 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3516 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3518 | $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] | 3519 | break 2 |
| 3520 | fi |
| 3521 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3522 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3523 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3524 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3525 | fi |
| 3526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3528 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3530 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3531 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3533 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | fi |
| 3535 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | fi |
| 3538 | if test -z "$ac_cv_prog_CC"; then |
| 3539 | ac_ct_CC=$CC |
| 3540 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3541 | set dummy gcc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3543 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3544 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3545 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | else |
| 3547 | if test -n "$ac_ct_CC"; then |
| 3548 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3549 | else |
| 3550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3551 | for as_dir in $PATH |
| 3552 | do |
| 3553 | IFS=$as_save_IFS |
| 3554 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3555 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3556 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3558 | $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] | 3559 | break 2 |
| 3560 | fi |
| 3561 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3562 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3563 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3564 | |
| 3565 | fi |
| 3566 | fi |
| 3567 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3568 | if test -n "$ac_ct_CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3570 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3573 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3574 | fi |
| 3575 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3576 | if test "x$ac_ct_CC" = x; then |
| 3577 | CC="" |
| 3578 | else |
| 3579 | case $cross_compiling:$ac_tool_warned in |
| 3580 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3582 | $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] | 3583 | ac_tool_warned=yes ;; |
| 3584 | esac |
| 3585 | CC=$ac_ct_CC |
| 3586 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | else |
| 3588 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3589 | fi |
| 3590 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3591 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3592 | if test -n "$ac_tool_prefix"; then |
| 3593 | # 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] | 3594 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3596 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3597 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3598 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3599 | else |
| 3600 | if test -n "$CC"; then |
| 3601 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3602 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3604 | for as_dir in $PATH |
| 3605 | do |
| 3606 | IFS=$as_save_IFS |
| 3607 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3608 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3609 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3611 | $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] | 3612 | break 2 |
| 3613 | fi |
| 3614 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3615 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3616 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3617 | |
| 3618 | fi |
| 3619 | fi |
| 3620 | CC=$ac_cv_prog_CC |
| 3621 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3623 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3626 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | fi |
| 3628 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3630 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 | fi |
| 3632 | if test -z "$CC"; then |
| 3633 | # Extract the first word of "cc", so it can be a program name with args. |
| 3634 | set dummy cc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3636 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3637 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3638 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3639 | else |
| 3640 | if test -n "$CC"; then |
| 3641 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3642 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3643 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3645 | for as_dir in $PATH |
| 3646 | do |
| 3647 | IFS=$as_save_IFS |
| 3648 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3649 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3652 | ac_prog_rejected=yes |
| 3653 | continue |
| 3654 | fi |
| 3655 | ac_cv_prog_CC="cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3656 | $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] | 3657 | break 2 |
| 3658 | fi |
| 3659 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3660 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3661 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3662 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3663 | if test $ac_prog_rejected = yes; then |
| 3664 | # We found a bogon in the path, so make sure we never use it. |
| 3665 | set dummy $ac_cv_prog_CC |
| 3666 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3668 | # We chose a different compiler from the bogus one. |
| 3669 | # However, it has the same basename, so the bogon will be chosen |
| 3670 | # first if we set CC to just the basename; use the full file name. |
| 3671 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3672 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3673 | fi |
| 3674 | fi |
| 3675 | fi |
| 3676 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3678 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3680 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3681 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3683 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3684 | fi |
| 3685 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3687 | fi |
| 3688 | if test -z "$CC"; then |
| 3689 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3690 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3691 | do |
| 3692 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3693 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3695 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3696 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3697 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3698 | else |
| 3699 | if test -n "$CC"; then |
| 3700 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3701 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3703 | for as_dir in $PATH |
| 3704 | do |
| 3705 | IFS=$as_save_IFS |
| 3706 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3707 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3710 | $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] | 3711 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3712 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3713 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3714 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3715 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3716 | |
| 3717 | fi |
| 3718 | fi |
| 3719 | CC=$ac_cv_prog_CC |
| 3720 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3722 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3723 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3725 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3726 | fi |
| 3727 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | test -n "$CC" && break |
| 3730 | done |
| 3731 | fi |
| 3732 | if test -z "$CC"; then |
| 3733 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3734 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3735 | do |
| 3736 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3737 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3739 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3740 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3741 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3742 | else |
| 3743 | if test -n "$ac_ct_CC"; then |
| 3744 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3745 | else |
| 3746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3747 | for as_dir in $PATH |
| 3748 | do |
| 3749 | IFS=$as_save_IFS |
| 3750 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3751 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | break 2 |
| 3756 | fi |
| 3757 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3758 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3759 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | fi |
| 3762 | fi |
| 3763 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3764 | if test -n "$ac_ct_CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3766 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3769 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3771 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | test -n "$ac_ct_CC" && break |
| 3774 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3775 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3776 | if test "x$ac_ct_CC" = x; then |
| 3777 | CC="" |
| 3778 | else |
| 3779 | case $cross_compiling:$ac_tool_warned in |
| 3780 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3782 | $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] | 3783 | ac_tool_warned=yes ;; |
| 3784 | esac |
| 3785 | CC=$ac_ct_CC |
| 3786 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 | fi |
| 3788 | |
| 3789 | fi |
| 3790 | |
| 3791 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3792 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3793 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3794 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3795 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 | |
| 3797 | # Provide some information about the compiler. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3798 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3799 | set X $ac_compile |
| 3800 | ac_compiler=$2 |
| 3801 | for ac_option in --version -v -V -qversion; do |
| 3802 | { { ac_try="$ac_compiler $ac_option >&5" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3803 | case "(($ac_try" in |
| 3804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3805 | *) ac_try_echo=$ac_try;; |
| 3806 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3807 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3808 | $as_echo "$ac_try_echo"; } >&5 |
| 3809 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3811 | if test -s conftest.err; then |
| 3812 | sed '10a\ |
| 3813 | ... rest of stderr output deleted ... |
| 3814 | 10q' conftest.err >conftest.er1 |
| 3815 | cat conftest.er1 >&5 |
| 3816 | fi |
| 3817 | rm -f conftest.er1 conftest.err |
| 3818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3819 | test $ac_status = 0; } |
| 3820 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3823 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 | int |
| 3826 | main () |
| 3827 | { |
| 3828 | |
| 3829 | ; |
| 3830 | return 0; |
| 3831 | } |
| 3832 | _ACEOF |
| 3833 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3834 | 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] | 3835 | # Try to create an executable without -o first, disregard a.out. |
| 3836 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3837 | # of exeext. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3839 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3840 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3841 | |
| 3842 | # The possible output files: |
| 3843 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3845 | ac_rmfiles= |
| 3846 | for ac_file in $ac_files |
| 3847 | do |
| 3848 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3849 | *.$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] | 3850 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3851 | esac |
| 3852 | done |
| 3853 | rm -f $ac_rmfiles |
| 3854 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3855 | if { { ac_try="$ac_link_default" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3856 | case "(($ac_try" in |
| 3857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3858 | *) ac_try_echo=$ac_try;; |
| 3859 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3860 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3861 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3862 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3865 | test $ac_status = 0; }; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3866 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3867 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3868 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3869 | # so that the user can short-circuit this test for compilers unknown to |
| 3870 | # Autoconf. |
| 3871 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3872 | do |
| 3873 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3874 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3875 | *.$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] | 3876 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3877 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3878 | # We found the default executable, but exeext='' is most |
| 3879 | # certainly right. |
| 3880 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3881 | *.* ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3882 | 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] | 3883 | then :; else |
| 3884 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3885 | fi |
| 3886 | # We set ac_cv_exeext here because the later test for it is not |
| 3887 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3888 | # argument, so we may need to know it at that point already. |
| 3889 | # Even if this section looks crufty: it has the advantage of |
| 3890 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3891 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3892 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3893 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3894 | esac |
| 3895 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3896 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3897 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3898 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3899 | ac_file='' |
| 3900 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3901 | if test -z "$ac_file"; then : |
| 3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3903 | $as_echo "no" >&6; } |
| 3904 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3906 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3907 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3908 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3909 | as_fn_error 77 "C compiler cannot create executables |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3910 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3911 | else |
| 3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3913 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3914 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3916 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3918 | $as_echo "$ac_file" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3919 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3920 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3921 | 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] | 3922 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3924 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3925 | if { { ac_try="$ac_link" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3926 | case "(($ac_try" in |
| 3927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3928 | *) ac_try_echo=$ac_try;; |
| 3929 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3930 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3931 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3932 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3933 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3935 | test $ac_status = 0; }; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3936 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3937 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3938 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3939 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3940 | for ac_file in conftest.exe conftest conftest.*; do |
| 3941 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3942 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3943 | *.$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] | 3944 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3945 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3946 | * ) break;; |
| 3947 | esac |
| 3948 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3949 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3950 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3951 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3952 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3953 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3954 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3955 | rm -f conftest conftest$ac_cv_exeext |
| 3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3957 | $as_echo "$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3958 | |
| 3959 | rm -f conftest.$ac_ext |
| 3960 | EXEEXT=$ac_cv_exeext |
| 3961 | ac_exeext=$EXEEXT |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3963 | /* end confdefs.h. */ |
| 3964 | #include <stdio.h> |
| 3965 | int |
| 3966 | main () |
| 3967 | { |
| 3968 | FILE *f = fopen ("conftest.out", "w"); |
| 3969 | return ferror (f) || fclose (f) != 0; |
| 3970 | |
| 3971 | ; |
| 3972 | return 0; |
| 3973 | } |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3974 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3975 | ac_clean_files="$ac_clean_files conftest.out" |
| 3976 | # Check that the compiler produces executables we can run. If not, either |
| 3977 | # the compiler is broken, or we cross compile. |
| 3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3979 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3980 | if test "$cross_compiling" != yes; then |
| 3981 | { { ac_try="$ac_link" |
| 3982 | case "(($ac_try" in |
| 3983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3984 | *) ac_try_echo=$ac_try;; |
| 3985 | esac |
| 3986 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3987 | $as_echo "$ac_try_echo"; } >&5 |
| 3988 | (eval "$ac_link") 2>&5 |
| 3989 | ac_status=$? |
| 3990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3991 | test $ac_status = 0; } |
| 3992 | if { ac_try='./conftest$ac_cv_exeext' |
| 3993 | { { case "(($ac_try" in |
| 3994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3995 | *) ac_try_echo=$ac_try;; |
| 3996 | esac |
| 3997 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3998 | $as_echo "$ac_try_echo"; } >&5 |
| 3999 | (eval "$ac_try") 2>&5 |
| 4000 | ac_status=$? |
| 4001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4002 | test $ac_status = 0; }; }; then |
| 4003 | cross_compiling=no |
| 4004 | else |
| 4005 | if test "$cross_compiling" = maybe; then |
| 4006 | cross_compiling=yes |
| 4007 | else |
| 4008 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4009 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4010 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4011 | If you meant to cross compile, use \`--host'. |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4012 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4013 | fi |
| 4014 | fi |
| 4015 | fi |
| 4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4017 | $as_echo "$cross_compiling" >&6; } |
| 4018 | |
| 4019 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4020 | ac_clean_files=$ac_clean_files_save |
| 4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4022 | $as_echo_n "checking for suffix of object files... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4023 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4024 | $as_echo_n "(cached) " >&6 |
| 4025 | else |
| 4026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | int |
| 4030 | main () |
| 4031 | { |
| 4032 | |
| 4033 | ; |
| 4034 | return 0; |
| 4035 | } |
| 4036 | _ACEOF |
| 4037 | rm -f conftest.o conftest.obj |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4038 | if { { ac_try="$ac_compile" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4039 | case "(($ac_try" in |
| 4040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4041 | *) ac_try_echo=$ac_try;; |
| 4042 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4043 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4044 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4045 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4046 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4048 | test $ac_status = 0; }; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4049 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4050 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4051 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4052 | *.$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] | 4053 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4054 | break;; |
| 4055 | esac |
| 4056 | done |
| 4057 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4058 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4060 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4061 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4062 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4063 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4064 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4066 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4067 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4069 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4070 | OBJEXT=$ac_cv_objext |
| 4071 | ac_objext=$OBJEXT |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4073 | $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] | 4074 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4075 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4076 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4078 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4080 | int |
| 4081 | main () |
| 4082 | { |
| 4083 | #ifndef __GNUC__ |
| 4084 | choke me |
| 4085 | #endif |
| 4086 | |
| 4087 | ; |
| 4088 | return 0; |
| 4089 | } |
| 4090 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4091 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4092 | ac_compiler_gnu=yes |
| 4093 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4094 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4095 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4096 | 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] | 4097 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4098 | |
| 4099 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4101 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4102 | if test $ac_compiler_gnu = yes; then |
| 4103 | GCC=yes |
| 4104 | else |
| 4105 | GCC= |
| 4106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4107 | ac_test_CFLAGS=${CFLAGS+set} |
| 4108 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4110 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4111 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4112 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4114 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4115 | ac_c_werror_flag=yes |
| 4116 | ac_cv_prog_cc_g=no |
| 4117 | CFLAGS="-g" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4119 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4121 | int |
| 4122 | main () |
| 4123 | { |
| 4124 | |
| 4125 | ; |
| 4126 | return 0; |
| 4127 | } |
| 4128 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4129 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4130 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4131 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4132 | CFLAGS="" |
| 4133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4134 | /* end confdefs.h. */ |
| 4135 | |
| 4136 | int |
| 4137 | main () |
| 4138 | { |
| 4139 | |
| 4140 | ; |
| 4141 | return 0; |
| 4142 | } |
| 4143 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4144 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4145 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4146 | else |
| 4147 | ac_c_werror_flag=$ac_save_c_werror_flag |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4148 | CFLAGS="-g" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4150 | /* end confdefs.h. */ |
| 4151 | |
| 4152 | int |
| 4153 | main () |
| 4154 | { |
| 4155 | |
| 4156 | ; |
| 4157 | return 0; |
| 4158 | } |
| 4159 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4160 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4161 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4162 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4164 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4166 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4168 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4169 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4171 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4172 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4173 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4174 | elif test $ac_cv_prog_cc_g = yes; then |
| 4175 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4176 | CFLAGS="-g -O2" |
| 4177 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4178 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4179 | fi |
| 4180 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4181 | if test "$GCC" = yes; then |
| 4182 | CFLAGS="-O2" |
| 4183 | else |
| 4184 | CFLAGS= |
| 4185 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4186 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4188 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4189 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4190 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4191 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4192 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4193 | ac_save_CC=$CC |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4195 | /* end confdefs.h. */ |
| 4196 | #include <stdarg.h> |
| 4197 | #include <stdio.h> |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4198 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4199 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4200 | struct buf { int x; }; |
| 4201 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4202 | static char *e (p, i) |
| 4203 | char **p; |
| 4204 | int i; |
| 4205 | { |
| 4206 | return p[i]; |
| 4207 | } |
| 4208 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4209 | { |
| 4210 | char *s; |
| 4211 | va_list v; |
| 4212 | va_start (v,p); |
| 4213 | s = g (p, va_arg (v,int)); |
| 4214 | va_end (v); |
| 4215 | return s; |
| 4216 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4217 | |
| 4218 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4219 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4220 | 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] | 4221 | 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] | 4222 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4223 | 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] | 4224 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4225 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4226 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4227 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4228 | inside strings and character constants. */ |
| 4229 | #define FOO(x) 'x' |
| 4230 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4231 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4232 | int test (int i, double x); |
| 4233 | struct s1 {int (*f) (int a);}; |
| 4234 | struct s2 {int (*f) (double a);}; |
| 4235 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4236 | int argc; |
| 4237 | char **argv; |
| 4238 | int |
| 4239 | main () |
| 4240 | { |
| 4241 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4242 | ; |
| 4243 | return 0; |
| 4244 | } |
| 4245 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4246 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4247 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4248 | do |
| 4249 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4250 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4251 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4252 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4253 | rm -f core conftest.err conftest.$ac_objext |
| 4254 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4255 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4256 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4257 | CC=$ac_save_CC |
| 4258 | |
| 4259 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4260 | # AC_CACHE_VAL |
| 4261 | case "x$ac_cv_prog_cc_c89" in |
| 4262 | x) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4264 | $as_echo "none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4265 | xno) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4267 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4268 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4269 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4271 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4272 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4273 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4274 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4275 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | ac_ext=c |
| 4278 | ac_cpp='$CPP $CPPFLAGS' |
| 4279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4282 | |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4283 | if test ! -z "$preset_cflags" |
| 4284 | then |
| 4285 | CFLAGS=$preset_cflags |
| 4286 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4287 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4288 | |
| 4289 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 4291 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4292 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4293 | # Check whether --with-cxx_main was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4294 | if test "${with_cxx_main+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4295 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4296 | |
| 4297 | case $withval in |
| 4298 | no) with_cxx_main=no |
| 4299 | MAINCC='$(CC)';; |
| 4300 | yes) with_cxx_main=yes |
| 4301 | MAINCC='$(CXX)';; |
| 4302 | *) with_cxx_main=yes |
| 4303 | MAINCC=$withval |
| 4304 | if test -z "$CXX" |
| 4305 | then |
| 4306 | CXX=$withval |
| 4307 | fi;; |
| 4308 | esac |
| 4309 | else |
| 4310 | |
| 4311 | with_cxx_main=no |
| 4312 | MAINCC='$(CC)' |
| 4313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4314 | fi |
| 4315 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4317 | $as_echo "$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4318 | |
| 4319 | preset_cxx="$CXX" |
| 4320 | if test -z "$CXX" |
| 4321 | then |
| 4322 | case "$CC" in |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4323 | gcc) if test -n "$ac_tool_prefix"; then |
| 4324 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. |
| 4325 | set dummy ${ac_tool_prefix}g++; ac_word=$2 |
| 4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4327 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4328 | if ${ac_cv_path_CXX+:} false; then : |
| 4329 | $as_echo_n "(cached) " >&6 |
| 4330 | else |
| 4331 | case $CXX in |
| 4332 | [\\/]* | ?:[\\/]*) |
| 4333 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4334 | ;; |
| 4335 | *) |
| 4336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4337 | for as_dir in notfound |
| 4338 | do |
| 4339 | IFS=$as_save_IFS |
| 4340 | test -z "$as_dir" && as_dir=. |
| 4341 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4343 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4345 | break 2 |
| 4346 | fi |
| 4347 | done |
| 4348 | done |
| 4349 | IFS=$as_save_IFS |
| 4350 | |
| 4351 | ;; |
| 4352 | esac |
| 4353 | fi |
| 4354 | CXX=$ac_cv_path_CXX |
| 4355 | if test -n "$CXX"; then |
| 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4357 | $as_echo "$CXX" >&6; } |
| 4358 | else |
| 4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4360 | $as_echo "no" >&6; } |
| 4361 | fi |
| 4362 | |
| 4363 | |
| 4364 | fi |
| 4365 | if test -z "$ac_cv_path_CXX"; then |
| 4366 | ac_pt_CXX=$CXX |
| 4367 | # Extract the first word of "g++", so it can be a program name with args. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4368 | set dummy g++; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4370 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4371 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4372 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4373 | else |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4374 | case $ac_pt_CXX in |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4375 | [\\/]* | ?:[\\/]*) |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4376 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4377 | ;; |
| 4378 | *) |
| 4379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4380 | for as_dir in notfound |
| 4381 | do |
| 4382 | IFS=$as_save_IFS |
| 4383 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4384 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4386 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4387 | $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] | 4388 | break 2 |
| 4389 | fi |
| 4390 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4391 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4392 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4393 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4394 | ;; |
| 4395 | esac |
| 4396 | fi |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4397 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4398 | if test -n "$ac_pt_CXX"; then |
| 4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4400 | $as_echo "$ac_pt_CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4401 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4403 | $as_echo "no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4404 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4405 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4406 | if test "x$ac_pt_CXX" = x; then |
| 4407 | CXX="g++" |
| 4408 | else |
| 4409 | case $cross_compiling:$ac_tool_warned in |
| 4410 | yes:) |
| 4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4412 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4413 | ac_tool_warned=yes ;; |
| 4414 | esac |
| 4415 | CXX=$ac_pt_CXX |
| 4416 | fi |
| 4417 | else |
| 4418 | CXX="$ac_cv_path_CXX" |
| 4419 | fi |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4420 | ;; |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4421 | cc) if test -n "$ac_tool_prefix"; then |
| 4422 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. |
| 4423 | set dummy ${ac_tool_prefix}c++; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4425 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4426 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4427 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4428 | else |
| 4429 | case $CXX in |
| 4430 | [\\/]* | ?:[\\/]*) |
| 4431 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4432 | ;; |
| 4433 | *) |
| 4434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4435 | for as_dir in notfound |
| 4436 | do |
| 4437 | IFS=$as_save_IFS |
| 4438 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4439 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4441 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4442 | $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] | 4443 | break 2 |
| 4444 | fi |
| 4445 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4446 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4447 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4448 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4449 | ;; |
| 4450 | esac |
| 4451 | fi |
| 4452 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4453 | if test -n "$CXX"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4455 | $as_echo "$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4456 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4458 | $as_echo "no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4459 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4460 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4461 | |
| 4462 | fi |
| 4463 | if test -z "$ac_cv_path_CXX"; then |
| 4464 | ac_pt_CXX=$CXX |
| 4465 | # Extract the first word of "c++", so it can be a program name with args. |
| 4466 | set dummy c++; ac_word=$2 |
| 4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4468 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4469 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4470 | $as_echo_n "(cached) " >&6 |
| 4471 | else |
| 4472 | case $ac_pt_CXX in |
| 4473 | [\\/]* | ?:[\\/]*) |
| 4474 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4475 | ;; |
| 4476 | *) |
| 4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4478 | for as_dir in notfound |
| 4479 | do |
| 4480 | IFS=$as_save_IFS |
| 4481 | test -z "$as_dir" && as_dir=. |
| 4482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4484 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4486 | break 2 |
| 4487 | fi |
| 4488 | done |
| 4489 | done |
| 4490 | IFS=$as_save_IFS |
| 4491 | |
| 4492 | ;; |
| 4493 | esac |
| 4494 | fi |
| 4495 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4496 | if test -n "$ac_pt_CXX"; then |
| 4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4498 | $as_echo "$ac_pt_CXX" >&6; } |
| 4499 | else |
| 4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4501 | $as_echo "no" >&6; } |
| 4502 | fi |
| 4503 | |
| 4504 | if test "x$ac_pt_CXX" = x; then |
| 4505 | CXX="c++" |
| 4506 | else |
| 4507 | case $cross_compiling:$ac_tool_warned in |
| 4508 | yes:) |
| 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4510 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4511 | ac_tool_warned=yes ;; |
| 4512 | esac |
| 4513 | CXX=$ac_pt_CXX |
| 4514 | fi |
| 4515 | else |
| 4516 | CXX="$ac_cv_path_CXX" |
| 4517 | fi |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4518 | ;; |
| 4519 | esac |
| 4520 | if test "$CXX" = "notfound" |
| 4521 | then |
| 4522 | CXX="" |
| 4523 | fi |
| 4524 | fi |
| 4525 | if test -z "$CXX" |
| 4526 | then |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4527 | if test -n "$ac_tool_prefix"; then |
| 4528 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4529 | do |
| 4530 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4531 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4533 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4534 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4535 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4536 | else |
| 4537 | if test -n "$CXX"; then |
| 4538 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4539 | else |
| 4540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4541 | for as_dir in $PATH |
| 4542 | do |
| 4543 | IFS=$as_save_IFS |
| 4544 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4545 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4547 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4548 | $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] | 4549 | break 2 |
| 4550 | fi |
| 4551 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4552 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4553 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4554 | |
| 4555 | fi |
| 4556 | fi |
| 4557 | CXX=$ac_cv_prog_CXX |
| 4558 | if test -n "$CXX"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4560 | $as_echo "$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4561 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4563 | $as_echo "no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4564 | fi |
| 4565 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4566 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4567 | test -n "$CXX" && break |
| 4568 | done |
| 4569 | fi |
| 4570 | if test -z "$CXX"; then |
| 4571 | ac_ct_CXX=$CXX |
| 4572 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4573 | do |
| 4574 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4575 | set dummy $ac_prog; ac_word=$2 |
| 4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4577 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4578 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 4579 | $as_echo_n "(cached) " >&6 |
| 4580 | else |
| 4581 | if test -n "$ac_ct_CXX"; then |
| 4582 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4583 | else |
| 4584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4585 | for as_dir in $PATH |
| 4586 | do |
| 4587 | IFS=$as_save_IFS |
| 4588 | test -z "$as_dir" && as_dir=. |
| 4589 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4591 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4593 | break 2 |
| 4594 | fi |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4595 | done |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4596 | done |
| 4597 | IFS=$as_save_IFS |
| 4598 | |
| 4599 | fi |
| 4600 | fi |
| 4601 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4602 | if test -n "$ac_ct_CXX"; then |
| 4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4604 | $as_echo "$ac_ct_CXX" >&6; } |
| 4605 | else |
| 4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4607 | $as_echo "no" >&6; } |
| 4608 | fi |
| 4609 | |
| 4610 | |
| 4611 | test -n "$ac_ct_CXX" && break |
| 4612 | done |
| 4613 | |
| 4614 | if test "x$ac_ct_CXX" = x; then |
| 4615 | CXX="notfound" |
| 4616 | else |
| 4617 | case $cross_compiling:$ac_tool_warned in |
| 4618 | yes:) |
| 4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4620 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4621 | ac_tool_warned=yes ;; |
| 4622 | esac |
| 4623 | CXX=$ac_ct_CXX |
| 4624 | fi |
| 4625 | fi |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4626 | |
| 4627 | if test "$CXX" = "notfound" |
| 4628 | then |
| 4629 | CXX="" |
| 4630 | fi |
| 4631 | fi |
| 4632 | if test "$preset_cxx" != "$CXX" |
| 4633 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4635 | |
| 4636 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4637 | If this is not intended, then set CXX on the configure command line. |
| 4638 | " >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4639 | $as_echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4640 | |
| 4641 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4642 | If this is not intended, then set CXX on the configure command line. |
| 4643 | " >&2;} |
| 4644 | fi |
| 4645 | |
doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 4646 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
| 4647 | |
| 4648 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4649 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4650 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4651 | |
| 4652 | ac_ext=c |
| 4653 | ac_cpp='$CPP $CPPFLAGS' |
| 4654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4658 | $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] | 4659 | # On Suns, sometimes $CPP names a directory. |
| 4660 | if test -n "$CPP" && test -d "$CPP"; then |
| 4661 | CPP= |
| 4662 | fi |
| 4663 | if test -z "$CPP"; then |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4664 | if ${ac_cv_prog_CPP+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4665 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4667 | # Double quotes because CPP needs to be expanded |
| 4668 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4669 | do |
| 4670 | ac_preproc_ok=false |
| 4671 | for ac_c_preproc_warn_flag in '' yes |
| 4672 | do |
| 4673 | # Use a header file that comes with gcc, so configuring glibc |
| 4674 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4675 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4676 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4677 | # 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] | 4678 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4680 | /* end confdefs.h. */ |
| 4681 | #ifdef __STDC__ |
| 4682 | # include <limits.h> |
| 4683 | #else |
| 4684 | # include <assert.h> |
| 4685 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4686 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4687 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4688 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4689 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4690 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4691 | # Broken: fails on valid input. |
| 4692 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4693 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4694 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4695 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4696 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4697 | # can be detected and how. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4700 | #include <ac_nonexistent.h> |
| 4701 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4702 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4703 | # Broken: success on invalid input. |
| 4704 | continue |
| 4705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4706 | # Passes both tests. |
| 4707 | ac_preproc_ok=: |
| 4708 | break |
| 4709 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4710 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4711 | |
| 4712 | done |
| 4713 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4714 | rm -f conftest.i conftest.err conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4715 | if $ac_preproc_ok; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4716 | break |
| 4717 | fi |
| 4718 | |
| 4719 | done |
| 4720 | ac_cv_prog_CPP=$CPP |
| 4721 | |
| 4722 | fi |
| 4723 | CPP=$ac_cv_prog_CPP |
| 4724 | else |
| 4725 | ac_cv_prog_CPP=$CPP |
| 4726 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4728 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4729 | ac_preproc_ok=false |
| 4730 | for ac_c_preproc_warn_flag in '' yes |
| 4731 | do |
| 4732 | # Use a header file that comes with gcc, so configuring glibc |
| 4733 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4734 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4735 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4736 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4737 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4739 | /* end confdefs.h. */ |
| 4740 | #ifdef __STDC__ |
| 4741 | # include <limits.h> |
| 4742 | #else |
| 4743 | # include <assert.h> |
| 4744 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4745 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4746 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4747 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4748 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4750 | # Broken: fails on valid input. |
| 4751 | continue |
| 4752 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4753 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4754 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4755 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4756 | # can be detected and how. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4758 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4759 | #include <ac_nonexistent.h> |
| 4760 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4761 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4762 | # Broken: success on invalid input. |
| 4763 | continue |
| 4764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4765 | # Passes both tests. |
| 4766 | ac_preproc_ok=: |
| 4767 | break |
| 4768 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4769 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4770 | |
| 4771 | done |
| 4772 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4773 | rm -f conftest.i conftest.err conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4774 | if $ac_preproc_ok; then : |
| 4775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4776 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4777 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4778 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4779 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4780 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4781 | fi |
| 4782 | |
| 4783 | ac_ext=c |
| 4784 | ac_cpp='$CPP $CPPFLAGS' |
| 4785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4788 | |
| 4789 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4791 | $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] | 4792 | if ${ac_cv_path_GREP+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4793 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4794 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4795 | if test -z "$GREP"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4796 | ac_path_GREP_found=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4797 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4799 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4800 | do |
| 4801 | IFS=$as_save_IFS |
| 4802 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4803 | for ac_prog in grep ggrep; do |
| 4804 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4805 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4806 | as_fn_executable_p "$ac_path_GREP" || continue |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4807 | # 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] | 4808 | # Check for GNU $ac_path_GREP |
| 4809 | case `"$ac_path_GREP" --version 2>&1` in |
| 4810 | *GNU*) |
| 4811 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4812 | *) |
| 4813 | ac_count=0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4814 | $as_echo_n 0123456789 >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4815 | while : |
| 4816 | do |
| 4817 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4818 | mv "conftest.tmp" "conftest.in" |
| 4819 | cp "conftest.in" "conftest.nl" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4820 | $as_echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4821 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4822 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4823 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4824 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4825 | # Best one so far, save it but keep looking for a better one |
| 4826 | ac_cv_path_GREP="$ac_path_GREP" |
| 4827 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4828 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4829 | # 10*(2^10) chars as input seems more than enough |
| 4830 | test $ac_count -gt 10 && break |
| 4831 | done |
| 4832 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4833 | esac |
| 4834 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4835 | $ac_path_GREP_found && break 3 |
| 4836 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4837 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4838 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4839 | IFS=$as_save_IFS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4840 | if test -z "$ac_cv_path_GREP"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4841 | 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] | 4842 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4843 | else |
| 4844 | ac_cv_path_GREP=$GREP |
| 4845 | fi |
| 4846 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4847 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4849 | $as_echo "$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4850 | GREP="$ac_cv_path_GREP" |
| 4851 | |
| 4852 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4854 | $as_echo_n "checking for egrep... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4855 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4856 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4857 | else |
| 4858 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4859 | then ac_cv_path_EGREP="$GREP -E" |
| 4860 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4861 | if test -z "$EGREP"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4862 | ac_path_EGREP_found=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4863 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4865 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4866 | do |
| 4867 | IFS=$as_save_IFS |
| 4868 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4869 | for ac_prog in egrep; do |
| 4870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4871 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4872 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4873 | # 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] | 4874 | # Check for GNU $ac_path_EGREP |
| 4875 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4876 | *GNU*) |
| 4877 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4878 | *) |
| 4879 | ac_count=0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4880 | $as_echo_n 0123456789 >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4881 | while : |
| 4882 | do |
| 4883 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4884 | mv "conftest.tmp" "conftest.in" |
| 4885 | cp "conftest.in" "conftest.nl" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4886 | $as_echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4887 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4888 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4889 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4890 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4891 | # Best one so far, save it but keep looking for a better one |
| 4892 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4893 | ac_path_EGREP_max=$ac_count |
| 4894 | fi |
| 4895 | # 10*(2^10) chars as input seems more than enough |
| 4896 | test $ac_count -gt 10 && break |
| 4897 | done |
| 4898 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4899 | esac |
| 4900 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4901 | $ac_path_EGREP_found && break 3 |
| 4902 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4903 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4904 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4905 | IFS=$as_save_IFS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4906 | if test -z "$ac_cv_path_EGREP"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4907 | 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] | 4908 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4909 | else |
| 4910 | ac_cv_path_EGREP=$EGREP |
| 4911 | fi |
| 4912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4913 | fi |
| 4914 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4916 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4917 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4918 | |
| 4919 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4921 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4922 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4923 | $as_echo_n "(cached) " >&6 |
| 4924 | else |
| 4925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4926 | /* end confdefs.h. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4927 | #include <stdlib.h> |
| 4928 | #include <stdarg.h> |
| 4929 | #include <string.h> |
| 4930 | #include <float.h> |
| 4931 | |
| 4932 | int |
| 4933 | main () |
| 4934 | { |
| 4935 | |
| 4936 | ; |
| 4937 | return 0; |
| 4938 | } |
| 4939 | _ACEOF |
| 4940 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4941 | ac_cv_header_stdc=yes |
| 4942 | else |
| 4943 | ac_cv_header_stdc=no |
| 4944 | fi |
| 4945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4946 | |
| 4947 | if test $ac_cv_header_stdc = yes; then |
| 4948 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4950 | /* end confdefs.h. */ |
| 4951 | #include <string.h> |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4952 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4953 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4955 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4956 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4957 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4958 | ac_cv_header_stdc=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4959 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4960 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4961 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4962 | fi |
| 4963 | |
| 4964 | if test $ac_cv_header_stdc = yes; then |
| 4965 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4967 | /* end confdefs.h. */ |
| 4968 | #include <stdlib.h> |
| 4969 | |
| 4970 | _ACEOF |
| 4971 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4972 | $EGREP "free" >/dev/null 2>&1; then : |
| 4973 | |
| 4974 | else |
| 4975 | ac_cv_header_stdc=no |
| 4976 | fi |
| 4977 | rm -f conftest* |
| 4978 | |
| 4979 | fi |
| 4980 | |
| 4981 | if test $ac_cv_header_stdc = yes; then |
| 4982 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4983 | if test "$cross_compiling" = yes; then : |
| 4984 | : |
| 4985 | else |
| 4986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4987 | /* end confdefs.h. */ |
| 4988 | #include <ctype.h> |
| 4989 | #include <stdlib.h> |
| 4990 | #if ((' ' & 0x0FF) == 0x020) |
| 4991 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4992 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4993 | #else |
| 4994 | # define ISLOWER(c) \ |
| 4995 | (('a' <= (c) && (c) <= 'i') \ |
| 4996 | || ('j' <= (c) && (c) <= 'r') \ |
| 4997 | || ('s' <= (c) && (c) <= 'z')) |
| 4998 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4999 | #endif |
| 5000 | |
| 5001 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5002 | int |
| 5003 | main () |
| 5004 | { |
| 5005 | int i; |
| 5006 | for (i = 0; i < 256; i++) |
| 5007 | if (XOR (islower (i), ISLOWER (i)) |
| 5008 | || toupper (i) != TOUPPER (i)) |
| 5009 | return 2; |
| 5010 | return 0; |
| 5011 | } |
| 5012 | _ACEOF |
| 5013 | if ac_fn_c_try_run "$LINENO"; then : |
| 5014 | |
| 5015 | else |
| 5016 | ac_cv_header_stdc=no |
| 5017 | fi |
| 5018 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5019 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5020 | fi |
| 5021 | |
| 5022 | fi |
| 5023 | fi |
| 5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5025 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5026 | if test $ac_cv_header_stdc = yes; then |
| 5027 | |
| 5028 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5029 | |
| 5030 | fi |
| 5031 | |
| 5032 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5033 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5034 | inttypes.h stdint.h unistd.h |
| 5035 | do : |
| 5036 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5037 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5038 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5039 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5040 | cat >>confdefs.h <<_ACEOF |
| 5041 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5042 | _ACEOF |
| 5043 | |
| 5044 | fi |
| 5045 | |
| 5046 | done |
| 5047 | |
| 5048 | |
| 5049 | |
| 5050 | 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] | 5051 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5052 | MINIX=yes |
| 5053 | else |
| 5054 | MINIX= |
| 5055 | fi |
| 5056 | |
| 5057 | |
| 5058 | if test "$MINIX" = yes; then |
| 5059 | |
| 5060 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5061 | |
| 5062 | |
| 5063 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5064 | |
| 5065 | |
| 5066 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5067 | |
| 5068 | fi |
| 5069 | |
| 5070 | |
| 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5072 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5073 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5074 | $as_echo_n "(cached) " >&6 |
| 5075 | else |
| 5076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5077 | /* end confdefs.h. */ |
| 5078 | |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5079 | # define __EXTENSIONS__ 1 |
| 5080 | $ac_includes_default |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5081 | int |
| 5082 | main () |
| 5083 | { |
| 5084 | |
| 5085 | ; |
| 5086 | return 0; |
| 5087 | } |
| 5088 | _ACEOF |
| 5089 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5090 | ac_cv_safe_to_define___extensions__=yes |
| 5091 | else |
| 5092 | ac_cv_safe_to_define___extensions__=no |
| 5093 | fi |
| 5094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5095 | fi |
| 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5097 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5098 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5099 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5100 | |
| 5101 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5102 | |
| 5103 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5104 | |
| 5105 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5106 | |
| 5107 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5108 | |
| 5109 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5110 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5111 | # Check for unsupported systems |
| 5112 | case $ac_sys_system/$ac_sys_release in |
| 5113 | atheos*|Linux*/1*) |
| 5114 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 5115 | echo See README for details. |
| 5116 | exit 1;; |
| 5117 | esac |
| 5118 | |
| 5119 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 5121 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5122 | |
| 5123 | # Check whether --with-suffix was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5124 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5125 | withval=$with_suffix; |
| 5126 | case $withval in |
| 5127 | no) EXEEXT=;; |
| 5128 | yes) EXEEXT=.exe;; |
| 5129 | *) EXEEXT=$withval;; |
| 5130 | esac |
| 5131 | fi |
| 5132 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 5134 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5135 | |
| 5136 | # Test whether we're running on a non-case-sensitive system, in which |
| 5137 | # case we give a warning if no ext is given |
| 5138 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 5140 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5141 | if test ! -d CaseSensitiveTestDir; then |
| 5142 | mkdir CaseSensitiveTestDir |
| 5143 | fi |
| 5144 | |
| 5145 | if test -d casesensitivetestdir |
| 5146 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5148 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5149 | BUILDEXEEXT=.exe |
| 5150 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5152 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5153 | BUILDEXEEXT=$EXEEXT |
| 5154 | fi |
| 5155 | rmdir CaseSensitiveTestDir |
| 5156 | |
| 5157 | case $MACHDEP in |
| 5158 | bsdos*) |
| 5159 | case $CC in |
| 5160 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 5161 | esac;; |
| 5162 | esac |
| 5163 | |
| 5164 | case $ac_sys_system in |
| 5165 | hp*|HP*) |
| 5166 | case $CC in |
| 5167 | cc|*/cc) CC="$CC -Ae";; |
| 5168 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5169 | SunOS*) |
| 5170 | # Some functions have a prototype only with that define, e.g. confstr |
| 5171 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5172 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5173 | |
| 5174 | ;; |
| 5175 | esac |
| 5176 | |
| 5177 | |
| 5178 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 5180 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5181 | if test -z "$LIBRARY" |
| 5182 | then |
| 5183 | LIBRARY='libpython$(VERSION).a' |
| 5184 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 5186 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5187 | |
| 5188 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 5189 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 5190 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 5191 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 5192 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 5193 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 5194 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 5195 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 5196 | # |
| 5197 | # RUNSHARED is used to run shared python without installed libraries |
| 5198 | # |
| 5199 | # INSTSONAME is the name of the shared library that will be use to install |
| 5200 | # on the system - some systems like version suffix, others don't |
| 5201 | |
| 5202 | |
| 5203 | |
| 5204 | |
| 5205 | |
| 5206 | |
| 5207 | LDLIBRARY="$LIBRARY" |
| 5208 | BLDLIBRARY='$(LDLIBRARY)' |
| 5209 | INSTSONAME='$(LDLIBRARY)' |
| 5210 | DLLLIBRARY='' |
| 5211 | LDLIBRARYDIR='' |
| 5212 | RUNSHARED='' |
| 5213 | |
| 5214 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 5215 | # If CXX is set, and if it is needed to link a main function that was |
| 5216 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 5217 | # python might then depend on the C++ runtime |
| 5218 | # This is altered for AIX in order to build the export list before |
| 5219 | # linking. |
| 5220 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 5222 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5223 | if test -z "$LINKCC" |
| 5224 | then |
| 5225 | LINKCC='$(PURIFY) $(MAINCC)' |
| 5226 | case $ac_sys_system in |
| 5227 | AIX*) |
| 5228 | exp_extra="\"\"" |
| 5229 | if test $ac_sys_release -ge 5 -o \ |
| 5230 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 5231 | exp_extra="." |
| 5232 | fi |
| 5233 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5234 | QNX*) |
| 5235 | # qcc must be used because the other compilers do not |
| 5236 | # support -N. |
| 5237 | LINKCC=qcc;; |
| 5238 | esac |
| 5239 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 5241 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5242 | |
| 5243 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 5244 | # make sure we default having it set to "no": this is used by |
| 5245 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 5246 | # to linker command lines, and failing to detect GNU ld simply results |
| 5247 | # in the same bahaviour as before. |
| 5248 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5250 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5251 | ac_prog=ld |
| 5252 | if test "$GCC" = yes; then |
| 5253 | ac_prog=`$CC -print-prog-name=ld` |
| 5254 | fi |
| 5255 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 5256 | *GNU*) |
| 5257 | GNULD=yes;; |
| 5258 | *) |
| 5259 | GNULD=no;; |
| 5260 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 5262 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5263 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 5265 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5266 | # Check whether --enable-shared was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5267 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5268 | enableval=$enable_shared; |
| 5269 | fi |
| 5270 | |
| 5271 | |
| 5272 | if test -z "$enable_shared" |
| 5273 | then |
| 5274 | case $ac_sys_system in |
| 5275 | CYGWIN* | atheos*) |
| 5276 | enable_shared="yes";; |
| 5277 | *) |
| 5278 | enable_shared="no";; |
| 5279 | esac |
| 5280 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 5282 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5283 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 5285 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5286 | # Check whether --enable-profiling was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5287 | if test "${enable_profiling+set}" = set; then : |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5288 | enableval=$enable_profiling; |
| 5289 | fi |
| 5290 | |
| 5291 | if test "x$enable_profiling" = xyes; then |
| 5292 | ac_save_cc="$CC" |
Benjamin Peterson | b9be7bb | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5293 | CC="$CC -pg" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5295 | /* end confdefs.h. */ |
| 5296 | int main() { return 0; } |
| 5297 | _ACEOF |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5298 | if ac_fn_c_try_link "$LINENO"; then : |
| 5299 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5300 | else |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5301 | enable_profiling=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5302 | fi |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5303 | rm -f core conftest.err conftest.$ac_objext \ |
| 5304 | conftest$ac_exeext conftest.$ac_ext |
| 5305 | CC="$ac_save_cc" |
| 5306 | else |
| 5307 | enable_profiling=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5308 | fi |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
| 5310 | $as_echo "$enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5311 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5312 | if test "x$enable_profiling" = xyes; then |
| 5313 | BASECFLAGS="-pg $BASECFLAGS" |
| 5314 | LDFLAGS="-pg $LDFLAGS" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5315 | fi |
| 5316 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 5318 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5319 | |
| 5320 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 5321 | # library that we build, but we do not want to link against it (we |
| 5322 | # will find it with a -framework option). For this reason there is an |
| 5323 | # extra variable BLDLIBRARY against which Python and the extension |
| 5324 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 5325 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 5326 | if test "$enable_framework" |
| 5327 | then |
| 5328 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 5329 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 5330 | BLDLIBRARY='' |
| 5331 | else |
| 5332 | BLDLIBRARY='$(LDLIBRARY)' |
| 5333 | fi |
| 5334 | |
| 5335 | # Other platforms follow |
| 5336 | if test $enable_shared = "yes"; then |
| 5337 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5338 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5339 | |
| 5340 | case $ac_sys_system in |
| 5341 | BeOS*) |
| 5342 | LDLIBRARY='libpython$(VERSION).so' |
| 5343 | ;; |
| 5344 | CYGWIN*) |
| 5345 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 5346 | DLLLIBRARY='libpython$(VERSION).dll' |
| 5347 | ;; |
| 5348 | SunOS*) |
| 5349 | LDLIBRARY='libpython$(VERSION).so' |
| 5350 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 5351 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 5352 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 5353 | ;; |
Charles-François Natali | 3de8c73 | 2011-07-24 22:33:35 +0200 | [diff] [blame] | 5354 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5355 | LDLIBRARY='libpython$(VERSION).so' |
| 5356 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 5357 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 5358 | case $ac_sys_system in |
| 5359 | FreeBSD*) |
| 5360 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 5361 | ;; |
| 5362 | esac |
| 5363 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 5364 | ;; |
| 5365 | hp*|HP*) |
| 5366 | case `uname -m` in |
| 5367 | ia64) |
| 5368 | LDLIBRARY='libpython$(VERSION).so' |
| 5369 | ;; |
| 5370 | *) |
| 5371 | LDLIBRARY='libpython$(VERSION).sl' |
| 5372 | ;; |
| 5373 | esac |
| 5374 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 5375 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 5376 | ;; |
| 5377 | OSF*) |
| 5378 | LDLIBRARY='libpython$(VERSION).so' |
| 5379 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 5380 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 5381 | ;; |
| 5382 | atheos*) |
| 5383 | LDLIBRARY='libpython$(VERSION).so' |
| 5384 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 5385 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 5386 | ;; |
| 5387 | Darwin*) |
| 5388 | LDLIBRARY='libpython$(VERSION).dylib' |
| 5389 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 5390 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 5391 | ;; |
Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5392 | AIX*) |
| 5393 | LDLIBRARY='libpython$(VERSION).so' |
| 5394 | RUNSHARED=LIBPATH=`pwd`:${LIBPATH} |
| 5395 | ;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5396 | |
| 5397 | esac |
| 5398 | else # shared is disabled |
| 5399 | case $ac_sys_system in |
| 5400 | CYGWIN*) |
| 5401 | BLDLIBRARY='$(LIBRARY)' |
| 5402 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 5403 | ;; |
| 5404 | esac |
| 5405 | fi |
| 5406 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5407 | if test "$cross_compiling" = yes; then |
| 5408 | RUNSHARED= |
| 5409 | fi |
| 5410 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 5412 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5413 | |
| 5414 | if test -n "$ac_tool_prefix"; then |
| 5415 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5416 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5418 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5419 | if ${ac_cv_prog_RANLIB+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5420 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5421 | else |
| 5422 | if test -n "$RANLIB"; then |
| 5423 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5424 | else |
| 5425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5426 | for as_dir in $PATH |
| 5427 | do |
| 5428 | IFS=$as_save_IFS |
| 5429 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5430 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5432 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5433 | $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] | 5434 | break 2 |
| 5435 | fi |
| 5436 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5437 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5438 | IFS=$as_save_IFS |
| 5439 | |
| 5440 | fi |
| 5441 | fi |
| 5442 | RANLIB=$ac_cv_prog_RANLIB |
| 5443 | if test -n "$RANLIB"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5445 | $as_echo "$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5446 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5448 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5449 | fi |
| 5450 | |
| 5451 | |
| 5452 | fi |
| 5453 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5454 | ac_ct_RANLIB=$RANLIB |
| 5455 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5456 | set dummy ranlib; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5458 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5459 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5460 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5461 | else |
| 5462 | if test -n "$ac_ct_RANLIB"; then |
| 5463 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5464 | else |
| 5465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5466 | for as_dir in $PATH |
| 5467 | do |
| 5468 | IFS=$as_save_IFS |
| 5469 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5470 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5472 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5473 | $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] | 5474 | break 2 |
| 5475 | fi |
| 5476 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5477 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5478 | IFS=$as_save_IFS |
| 5479 | |
| 5480 | fi |
| 5481 | fi |
| 5482 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5483 | if test -n "$ac_ct_RANLIB"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5485 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5486 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5488 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5489 | fi |
| 5490 | |
| 5491 | if test "x$ac_ct_RANLIB" = x; then |
| 5492 | RANLIB=":" |
| 5493 | else |
| 5494 | case $cross_compiling:$ac_tool_warned in |
| 5495 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5497 | $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] | 5498 | ac_tool_warned=yes ;; |
| 5499 | esac |
| 5500 | RANLIB=$ac_ct_RANLIB |
| 5501 | fi |
| 5502 | else |
| 5503 | RANLIB="$ac_cv_prog_RANLIB" |
| 5504 | fi |
| 5505 | |
| 5506 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5507 | if test -n "$ac_tool_prefix"; then |
| 5508 | for ac_prog in ar aal |
| 5509 | do |
| 5510 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5511 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5513 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5514 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5515 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5516 | else |
| 5517 | if test -n "$AR"; then |
| 5518 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5519 | else |
| 5520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5521 | for as_dir in $PATH |
| 5522 | do |
| 5523 | IFS=$as_save_IFS |
| 5524 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5525 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5526 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5527 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5528 | $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] | 5529 | break 2 |
| 5530 | fi |
| 5531 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5532 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5533 | IFS=$as_save_IFS |
| 5534 | |
| 5535 | fi |
| 5536 | fi |
| 5537 | AR=$ac_cv_prog_AR |
| 5538 | if test -n "$AR"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5540 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5541 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5543 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5544 | fi |
| 5545 | |
| 5546 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5547 | test -n "$AR" && break |
| 5548 | done |
| 5549 | fi |
| 5550 | if test -z "$AR"; then |
| 5551 | ac_ct_AR=$AR |
| 5552 | for ac_prog in ar aal |
| 5553 | do |
| 5554 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5555 | set dummy $ac_prog; ac_word=$2 |
| 5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5557 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5558 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5559 | $as_echo_n "(cached) " >&6 |
| 5560 | else |
| 5561 | if test -n "$ac_ct_AR"; then |
| 5562 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5563 | else |
| 5564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5565 | for as_dir in $PATH |
| 5566 | do |
| 5567 | IFS=$as_save_IFS |
| 5568 | test -z "$as_dir" && as_dir=. |
| 5569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5570 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5571 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5573 | break 2 |
| 5574 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5575 | done |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5576 | done |
| 5577 | IFS=$as_save_IFS |
| 5578 | |
| 5579 | fi |
| 5580 | fi |
| 5581 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5582 | if test -n "$ac_ct_AR"; then |
| 5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5584 | $as_echo "$ac_ct_AR" >&6; } |
| 5585 | else |
| 5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5587 | $as_echo "no" >&6; } |
| 5588 | fi |
| 5589 | |
| 5590 | |
| 5591 | test -n "$ac_ct_AR" && break |
| 5592 | done |
| 5593 | |
| 5594 | if test "x$ac_ct_AR" = x; then |
| 5595 | AR="ar" |
| 5596 | else |
| 5597 | case $cross_compiling:$ac_tool_warned in |
| 5598 | yes:) |
| 5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5600 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5601 | ac_tool_warned=yes ;; |
| 5602 | esac |
| 5603 | AR=$ac_ct_AR |
| 5604 | fi |
| 5605 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5606 | |
| 5607 | |
| 5608 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 5609 | |
| 5610 | if test -z "$ARFLAGS" |
| 5611 | then |
| 5612 | ARFLAGS="rc" |
| 5613 | fi |
| 5614 | |
| 5615 | |
| 5616 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 5617 | set dummy svnversion; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5619 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5620 | if ${ac_cv_prog_SVNVERSION+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5621 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5622 | else |
| 5623 | if test -n "$SVNVERSION"; then |
| 5624 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 5625 | else |
| 5626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5627 | for as_dir in $PATH |
| 5628 | do |
| 5629 | IFS=$as_save_IFS |
| 5630 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5631 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5632 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5633 | ac_cv_prog_SVNVERSION="found" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5634 | $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] | 5635 | break 2 |
| 5636 | fi |
| 5637 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5638 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5639 | IFS=$as_save_IFS |
| 5640 | |
| 5641 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 5642 | fi |
| 5643 | fi |
| 5644 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 5645 | if test -n "$SVNVERSION"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 |
| 5647 | $as_echo "$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5648 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5650 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5651 | fi |
| 5652 | |
| 5653 | |
| 5654 | if test $SVNVERSION = found |
| 5655 | then |
| 5656 | SVNVERSION="svnversion \$(srcdir)" |
| 5657 | else |
| 5658 | SVNVERSION="echo Unversioned directory" |
| 5659 | fi |
| 5660 | |
Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5661 | |
Trent Nelson | abf2051 | 2012-10-17 04:32:49 -0400 | [diff] [blame] | 5662 | if test "$abs_srcdir" != "$abs_builddir"; then |
Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5663 | # If we're building out-of-tree make sure Include (in the current dir) |
| 5664 | # gets picked up before its $srcdir counterpart in order for Python-ast.h |
| 5665 | # and graminit.h to get picked up from the correct directory. |
| 5666 | # (A side effect of this is that these resources will automatically be |
| 5667 | # regenerated when building out-of-tree, regardless of whether or not |
| 5668 | # the $srcdir counterpart is up-to-date. This is an acceptable trade |
| 5669 | # off.) |
| 5670 | BASECPPFLAGS="-IInclude" |
| 5671 | else |
| 5672 | BASECPPFLAGS="" |
| 5673 | fi |
| 5674 | |
Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5675 | |
| 5676 | |
| 5677 | |
| 5678 | # Extract the first word of "hg", so it can be a program name with args. |
| 5679 | set dummy hg; ac_word=$2 |
| 5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5681 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5682 | if ${ac_cv_prog_HAS_HG+:} false; then : |
Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5683 | $as_echo_n "(cached) " >&6 |
| 5684 | else |
| 5685 | if test -n "$HAS_HG"; then |
| 5686 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. |
| 5687 | else |
| 5688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5689 | for as_dir in $PATH |
| 5690 | do |
| 5691 | IFS=$as_save_IFS |
| 5692 | test -z "$as_dir" && as_dir=. |
| 5693 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5695 | ac_cv_prog_HAS_HG="found" |
| 5696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5697 | break 2 |
| 5698 | fi |
| 5699 | done |
| 5700 | done |
| 5701 | IFS=$as_save_IFS |
| 5702 | |
| 5703 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" |
| 5704 | fi |
| 5705 | fi |
| 5706 | HAS_HG=$ac_cv_prog_HAS_HG |
| 5707 | if test -n "$HAS_HG"; then |
| 5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 |
| 5709 | $as_echo "$HAS_HG" >&6; } |
| 5710 | else |
| 5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5712 | $as_echo "no" >&6; } |
| 5713 | fi |
| 5714 | |
| 5715 | |
| 5716 | if test $HAS_HG = found |
| 5717 | then |
| 5718 | HGVERSION="hg id -i \$(srcdir)" |
| 5719 | HGTAG="hg id -t \$(srcdir)" |
| 5720 | HGBRANCH="hg id -b \$(srcdir)" |
| 5721 | else |
| 5722 | HGVERSION="" |
| 5723 | HGTAG="" |
| 5724 | HGBRANCH="" |
| 5725 | fi |
| 5726 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5727 | case $MACHDEP in |
| 5728 | bsdos*|hp*|HP*) |
| 5729 | # install -d does not work on BSDI or HP-UX |
| 5730 | if test -z "$INSTALL" |
| 5731 | then |
| 5732 | INSTALL="${srcdir}/install-sh -c" |
| 5733 | fi |
| 5734 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5735 | # Find a good install program. We prefer a C program (faster), |
| 5736 | # so one script is as good as another. But avoid the broken or |
| 5737 | # incompatible versions: |
| 5738 | # SysV /etc/install, /usr/sbin/install |
| 5739 | # SunOS /usr/etc/install |
| 5740 | # IRIX /sbin/install |
| 5741 | # AIX /bin/install |
| 5742 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5743 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5744 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5745 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5746 | # OS/2's system install, which has a completely different semantic |
| 5747 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5748 | # Reject install programs that cannot install multiple files. |
| 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5750 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5751 | if test -z "$INSTALL"; then |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5752 | if ${ac_cv_path_install+:} 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 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5756 | for as_dir in $PATH |
| 5757 | do |
| 5758 | IFS=$as_save_IFS |
| 5759 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5760 | # Account for people who put trailing slashes in PATH elements. |
| 5761 | case $as_dir/ in #(( |
| 5762 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5763 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5764 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5765 | /usr/ucb/* ) ;; |
| 5766 | *) |
| 5767 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5768 | # Don't use installbsd from OSF since it installs stuff as root |
| 5769 | # by default. |
| 5770 | for ac_prog in ginstall scoinst install; do |
| 5771 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5772 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5773 | if test $ac_prog = install && |
| 5774 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5775 | # AIX install. It has an incompatible calling convention. |
| 5776 | : |
| 5777 | elif test $ac_prog = install && |
| 5778 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5779 | # program-specific install script used by HP pwplus--don't use. |
| 5780 | : |
| 5781 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5782 | rm -rf conftest.one conftest.two conftest.dir |
| 5783 | echo one > conftest.one |
| 5784 | echo two > conftest.two |
| 5785 | mkdir conftest.dir |
| 5786 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5787 | test -s conftest.one && test -s conftest.two && |
| 5788 | test -s conftest.dir/conftest.one && |
| 5789 | test -s conftest.dir/conftest.two |
| 5790 | then |
| 5791 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5792 | break 3 |
| 5793 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5794 | fi |
| 5795 | fi |
| 5796 | done |
| 5797 | done |
| 5798 | ;; |
| 5799 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5800 | |
| 5801 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5802 | IFS=$as_save_IFS |
| 5803 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5804 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5805 | |
| 5806 | fi |
| 5807 | if test "${ac_cv_path_install+set}" = set; then |
| 5808 | INSTALL=$ac_cv_path_install |
| 5809 | else |
| 5810 | # As a last resort, use the slow shell script. Don't cache a |
| 5811 | # value for INSTALL within a source directory, because that will |
| 5812 | # break other packages using the cache if that directory is |
| 5813 | # removed, or if the value is a relative name. |
| 5814 | INSTALL=$ac_install_sh |
| 5815 | fi |
| 5816 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 5818 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5819 | |
| 5820 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5821 | # It thinks the first close brace ends the variable substitution. |
| 5822 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5823 | |
| 5824 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5825 | |
| 5826 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5827 | |
Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 5829 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 5830 | if test -z "$MKDIR_P"; then |
| 5831 | if ${ac_cv_path_mkdir+:} false; then : |
| 5832 | $as_echo_n "(cached) " >&6 |
| 5833 | else |
| 5834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5835 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 5836 | do |
| 5837 | IFS=$as_save_IFS |
| 5838 | test -z "$as_dir" && as_dir=. |
| 5839 | for ac_prog in mkdir gmkdir; do |
| 5840 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5841 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5842 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 5843 | 'mkdir (GNU coreutils) '* | \ |
| 5844 | 'mkdir (coreutils) '* | \ |
| 5845 | 'mkdir (fileutils) '4.1*) |
| 5846 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 5847 | break 3;; |
| 5848 | esac |
| 5849 | done |
| 5850 | done |
| 5851 | done |
| 5852 | IFS=$as_save_IFS |
| 5853 | |
| 5854 | fi |
| 5855 | |
| 5856 | test -d ./--version && rmdir ./--version |
| 5857 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 5858 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 5859 | else |
| 5860 | # As a last resort, use the slow shell script. Don't cache a |
| 5861 | # value for MKDIR_P within a source directory, because that will |
| 5862 | # break other packages using the cache if that directory is |
| 5863 | # removed, or if the value is a relative name. |
| 5864 | MKDIR_P="$ac_install_sh -d" |
| 5865 | fi |
| 5866 | fi |
| 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 5868 | $as_echo "$MKDIR_P" >&6; } |
| 5869 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5870 | |
| 5871 | # Not every filesystem supports hard links |
| 5872 | |
| 5873 | if test -z "$LN" ; then |
| 5874 | case $ac_sys_system in |
| 5875 | BeOS*) LN="ln -s";; |
| 5876 | CYGWIN*) LN="ln -s";; |
| 5877 | atheos*) LN="ln -s";; |
| 5878 | *) LN=ln;; |
| 5879 | esac |
| 5880 | fi |
| 5881 | |
| 5882 | # Check for --with-pydebug |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 5884 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5885 | |
| 5886 | # Check whether --with-pydebug was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5887 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5888 | withval=$with_pydebug; |
| 5889 | if test "$withval" != no |
| 5890 | then |
| 5891 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5892 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5893 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5895 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5896 | Py_DEBUG='true' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5897 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5898 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5899 | fi |
| 5900 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5902 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5903 | fi |
| 5904 | |
| 5905 | |
| 5906 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5907 | # merged with this chunk of code? |
| 5908 | |
| 5909 | # Optimizer/debugger flags |
| 5910 | # ------------------------ |
| 5911 | # (The following bit of code is complicated enough - please keep things |
| 5912 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5913 | |
| 5914 | # There are two parallel sets of case statements below, one that checks to |
| 5915 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5916 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5917 | # user set OPT. |
| 5918 | |
| 5919 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5920 | # it on the command line |
| 5921 | |
Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5922 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5923 | then |
| 5924 | case $GCC in |
| 5925 | yes) |
| 5926 | if test "$CC" != 'g++' ; then |
| 5927 | STRICT_PROTO="-Wstrict-prototypes" |
| 5928 | fi |
| 5929 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5930 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5931 | WRAP="-fwrapv" |
| 5932 | fi |
Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5933 | |
| 5934 | # Clang also needs -fwrapv |
Stefan Krah | 2bc1e8f | 2011-12-08 22:26:06 +0100 | [diff] [blame] | 5935 | case $CC in |
| 5936 | *clang*) WRAP="-fwrapv" |
| 5937 | ;; |
| 5938 | esac |
Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5939 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5940 | case $ac_cv_prog_cc_g in |
| 5941 | yes) |
| 5942 | if test "$Py_DEBUG" = 'true' ; then |
| 5943 | # Optimization messes up debuggers, so turn it off for |
| 5944 | # debug builds. |
Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 5945 | OPT="-g -O0 -Wall $STRICT_PROTO" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5946 | else |
| 5947 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5948 | fi |
| 5949 | ;; |
| 5950 | *) |
| 5951 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5952 | ;; |
| 5953 | esac |
| 5954 | case $ac_sys_system in |
| 5955 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5956 | ;; |
| 5957 | esac |
| 5958 | ;; |
| 5959 | |
| 5960 | *) |
| 5961 | OPT="-O" |
| 5962 | ;; |
| 5963 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5964 | fi |
| 5965 | |
| 5966 | |
| 5967 | |
| 5968 | # The -arch flags for universal builds on OSX |
| 5969 | UNIVERSAL_ARCH_FLAGS= |
| 5970 | |
| 5971 | |
| 5972 | # tweak BASECFLAGS based on compiler and platform |
| 5973 | case $GCC in |
| 5974 | yes) |
| 5975 | # Python violates C99 rules, by casting between incompatible |
| 5976 | # pointer types. GCC may generate bad code as a result of that, |
| 5977 | # so use -fno-strict-aliasing if supported. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 5979 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5980 | ac_save_cc="$CC" |
| 5981 | CC="$CC -fno-strict-aliasing" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5982 | if ${ac_cv_no_strict_aliasing_ok+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5983 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5984 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5986 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5987 | |
| 5988 | int |
| 5989 | main () |
| 5990 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5991 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5992 | ; |
| 5993 | return 0; |
| 5994 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5995 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5996 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5997 | ac_cv_no_strict_aliasing_ok=yes |
| 5998 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5999 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6000 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 6002 | fi |
| 6003 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6004 | CC="$ac_save_cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 6006 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6007 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 6008 | then |
| 6009 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 6010 | fi |
| 6011 | |
| 6012 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 6013 | # support. Without this, treatment of subnormals doesn't follow |
| 6014 | # the standard. |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 6015 | case $host in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6016 | alpha*) |
| 6017 | BASECFLAGS="$BASECFLAGS -mieee" |
| 6018 | ;; |
| 6019 | esac |
| 6020 | |
| 6021 | case $ac_sys_system in |
| 6022 | SCO_SV*) |
| 6023 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 6024 | ;; |
| 6025 | # is there any other compiler on Darwin besides gcc? |
| 6026 | Darwin*) |
| 6027 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 6028 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6029 | if test "${CC}" = gcc |
| 6030 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
| 6032 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6033 | case "${UNIVERSALSDK}" in |
| 6034 | */MacOSX10.4u.sdk) |
| 6035 | # Build using 10.4 SDK, force usage of gcc when the |
| 6036 | # compiler is gcc, otherwise the user will get very |
| 6037 | # confusing error messages when building on OSX 10.6 |
| 6038 | CC=gcc-4.0 |
| 6039 | CPP=cpp-4.0 |
| 6040 | ;; |
| 6041 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 6043 | $as_echo "$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6044 | fi |
| 6045 | |
| 6046 | # Calculate the right deployment target for this build. |
| 6047 | # |
| 6048 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 6049 | if test ${cur_target} '>' 10.2; then |
| 6050 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6051 | if test ${enable_universalsdk}; then |
| 6052 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 6053 | # Ensure that the default platform for a |
| 6054 | # 4-way universal build is OSX 10.5, |
| 6055 | # that's the first OS release where |
| 6056 | # 4-way builds make sense. |
| 6057 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 6058 | |
| 6059 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 6060 | cur_target='10.5' |
| 6061 | |
| 6062 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 6063 | cur_target='10.5' |
| 6064 | |
| 6065 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 6066 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6067 | fi |
| 6068 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 6069 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6070 | # On Intel macs default to a deployment |
| 6071 | # target of 10.4, that's the first OSX |
| 6072 | # release with Intel support. |
| 6073 | cur_target="10.4" |
| 6074 | fi |
| 6075 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6076 | fi |
| 6077 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 6078 | |
| 6079 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 6080 | # environment with a value that is the same as what we'll use |
| 6081 | # in the Makefile to ensure that we'll get the same compiler |
| 6082 | # environment during configure and build time. |
| 6083 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 6084 | export MACOSX_DEPLOYMENT_TARGET |
| 6085 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 6086 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6087 | if test "${enable_universalsdk}"; then |
| 6088 | UNIVERSAL_ARCH_FLAGS="" |
| 6089 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 6090 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 6091 | ARCH_RUN_32BIT="" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 6092 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6093 | |
| 6094 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 6095 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 6096 | LIPO_32BIT_FLAGS="" |
| 6097 | ARCH_RUN_32BIT="true" |
| 6098 | |
| 6099 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 6100 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 6101 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6102 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6103 | |
| 6104 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 6105 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 6106 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6107 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6108 | |
| 6109 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 6110 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 6111 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 6112 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6113 | |
| 6114 | else |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6115 | 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] | 6116 | |
| 6117 | fi |
| 6118 | |
| 6119 | |
Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 6120 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 6121 | if test "${UNIVERSALSDK}" != "/" |
| 6122 | then |
| 6123 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 6124 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 6125 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6126 | fi |
| 6127 | |
| 6128 | fi |
| 6129 | |
| 6130 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6131 | ;; |
| 6132 | OSF*) |
| 6133 | BASECFLAGS="$BASECFLAGS -mieee" |
| 6134 | ;; |
| 6135 | esac |
| 6136 | ;; |
| 6137 | |
| 6138 | *) |
| 6139 | case $ac_sys_system in |
| 6140 | OpenUNIX*|UnixWare*) |
| 6141 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 6142 | ;; |
| 6143 | OSF*) |
| 6144 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 6145 | ;; |
| 6146 | SCO_SV*) |
| 6147 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 6148 | ;; |
| 6149 | esac |
| 6150 | ;; |
| 6151 | esac |
| 6152 | |
| 6153 | if test "$Py_DEBUG" = 'true'; then |
| 6154 | : |
| 6155 | else |
| 6156 | OPT="-DNDEBUG $OPT" |
| 6157 | fi |
| 6158 | |
| 6159 | if test "$ac_arch_flags" |
| 6160 | then |
| 6161 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 6162 | fi |
| 6163 | |
| 6164 | # disable check for icc since it seems to pass, but generates a warning |
| 6165 | if test "$CC" = icc |
| 6166 | then |
| 6167 | ac_cv_opt_olimit_ok=no |
| 6168 | fi |
| 6169 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 6171 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6172 | if ${ac_cv_opt_olimit_ok+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6173 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6174 | else |
| 6175 | ac_save_cc="$CC" |
| 6176 | CC="$CC -OPT:Olimit=0" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6178 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6179 | |
| 6180 | int |
| 6181 | main () |
| 6182 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6183 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6184 | ; |
| 6185 | return 0; |
| 6186 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6187 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6188 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6189 | ac_cv_opt_olimit_ok=yes |
| 6190 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6191 | ac_cv_opt_olimit_ok=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6192 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6193 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6195 | CC="$ac_save_cc" |
| 6196 | fi |
| 6197 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 |
| 6199 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6200 | if test $ac_cv_opt_olimit_ok = yes; then |
| 6201 | case $ac_sys_system in |
| 6202 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 6203 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 6204 | # environment? |
| 6205 | Darwin*) |
| 6206 | ;; |
Trent Nelson | 34562e1 | 2012-10-17 18:01:12 -0400 | [diff] [blame] | 6207 | # XXX thankfully this useless troublemaker of a flag has been |
| 6208 | # eradicated in the 3.x line. For now, make sure it isn't picked |
| 6209 | # up by any of our other platforms that use CC. |
| 6210 | AIX*|SunOS*|HP-UX*|IRIX*) |
| 6211 | ;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6212 | *) |
| 6213 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 6214 | ;; |
| 6215 | esac |
| 6216 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 |
| 6218 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6219 | if ${ac_cv_olimit_ok+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6220 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6221 | else |
| 6222 | ac_save_cc="$CC" |
| 6223 | CC="$CC -Olimit 1500" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6225 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6226 | |
| 6227 | int |
| 6228 | main () |
| 6229 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6230 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6231 | ; |
| 6232 | return 0; |
| 6233 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6234 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6235 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6236 | ac_cv_olimit_ok=yes |
| 6237 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6238 | ac_cv_olimit_ok=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6239 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6240 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6242 | CC="$ac_save_cc" |
| 6243 | fi |
| 6244 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 |
| 6246 | $as_echo "$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6247 | if test $ac_cv_olimit_ok = yes; then |
Stefan Krah | 6747326 | 2012-11-29 00:17:05 +0100 | [diff] [blame] | 6248 | case $ac_sys_system in |
| 6249 | # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive. |
| 6250 | HP-UX*) |
| 6251 | ;; |
| 6252 | *) |
| 6253 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 6254 | ;; |
| 6255 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6256 | fi |
| 6257 | fi |
| 6258 | |
| 6259 | # Check whether GCC supports PyArg_ParseTuple format |
| 6260 | if test "$GCC" = "yes" |
| 6261 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 |
| 6263 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6264 | save_CFLAGS=$CFLAGS |
Benjamin Peterson | c875966 | 2013-05-11 13:00:05 -0500 | [diff] [blame] | 6265 | CFLAGS="$CFLAGS -Werror -Wformat" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6267 | /* end confdefs.h. */ |
| 6268 | |
| 6269 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6270 | int |
| 6271 | main () |
| 6272 | { |
| 6273 | |
| 6274 | ; |
| 6275 | return 0; |
| 6276 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6277 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6278 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6279 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6280 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6281 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6282 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6283 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6285 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6286 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6287 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6288 | |
| 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6290 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6291 | |
| 6292 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6294 | CFLAGS=$save_CFLAGS |
| 6295 | fi |
| 6296 | |
| 6297 | # On some compilers, pthreads are available without further options |
| 6298 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 6299 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 6300 | # So we have to see first whether pthreads are available without |
| 6301 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 6303 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6304 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6305 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6306 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6307 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6308 | ac_cv_pthread_is_default=no |
| 6309 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6311 | /* end confdefs.h. */ |
| 6312 | |
Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6313 | #include <stdio.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6314 | #include <pthread.h> |
| 6315 | |
| 6316 | void* routine(void* p){return NULL;} |
| 6317 | |
| 6318 | int main(){ |
| 6319 | pthread_t p; |
| 6320 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 6321 | return 1; |
| 6322 | (void)pthread_detach(p); |
| 6323 | return 0; |
| 6324 | } |
| 6325 | |
| 6326 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6327 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6328 | |
| 6329 | ac_cv_pthread_is_default=yes |
| 6330 | ac_cv_kthread=no |
| 6331 | ac_cv_pthread=no |
| 6332 | |
| 6333 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6334 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6335 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6336 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6337 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6338 | fi |
| 6339 | |
| 6340 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6341 | fi |
| 6342 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 6344 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6345 | |
| 6346 | |
| 6347 | if test $ac_cv_pthread_is_default = yes |
| 6348 | then |
| 6349 | ac_cv_kpthread=no |
| 6350 | else |
| 6351 | # -Kpthread, if available, provides the right #defines |
| 6352 | # and linker options to make pthread_create available |
| 6353 | # Some compilers won't report that they do not support -Kpthread, |
| 6354 | # so we need to run a program to see whether it really made the |
| 6355 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 6357 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6358 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6359 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6360 | else |
| 6361 | ac_save_cc="$CC" |
| 6362 | CC="$CC -Kpthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6363 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6364 | ac_cv_kpthread=no |
| 6365 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6367 | /* end confdefs.h. */ |
| 6368 | |
Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6369 | #include <stdio.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6370 | #include <pthread.h> |
| 6371 | |
| 6372 | void* routine(void* p){return NULL;} |
| 6373 | |
| 6374 | int main(){ |
| 6375 | pthread_t p; |
| 6376 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 6377 | return 1; |
| 6378 | (void)pthread_detach(p); |
| 6379 | return 0; |
| 6380 | } |
| 6381 | |
| 6382 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6383 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6384 | ac_cv_kpthread=yes |
| 6385 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6386 | ac_cv_kpthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6387 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6388 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6389 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6390 | fi |
| 6391 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6392 | CC="$ac_save_cc" |
| 6393 | fi |
| 6394 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 6396 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6397 | fi |
| 6398 | |
| 6399 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 6400 | then |
| 6401 | # -Kthread, if available, provides the right #defines |
| 6402 | # and linker options to make pthread_create available |
| 6403 | # Some compilers won't report that they do not support -Kthread, |
| 6404 | # so we need to run a program to see whether it really made the |
| 6405 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 6407 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6408 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6409 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6410 | else |
| 6411 | ac_save_cc="$CC" |
| 6412 | CC="$CC -Kthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6413 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6414 | ac_cv_kthread=no |
| 6415 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6417 | /* end confdefs.h. */ |
| 6418 | |
Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6419 | #include <stdio.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6420 | #include <pthread.h> |
| 6421 | |
| 6422 | void* routine(void* p){return NULL;} |
| 6423 | |
| 6424 | int main(){ |
| 6425 | pthread_t p; |
| 6426 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 6427 | return 1; |
| 6428 | (void)pthread_detach(p); |
| 6429 | return 0; |
| 6430 | } |
| 6431 | |
| 6432 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6433 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6434 | ac_cv_kthread=yes |
| 6435 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6436 | ac_cv_kthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6437 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6438 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6439 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6440 | fi |
| 6441 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6442 | CC="$ac_save_cc" |
| 6443 | fi |
| 6444 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 6446 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6447 | fi |
| 6448 | |
| 6449 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 6450 | then |
| 6451 | # -pthread, if available, provides the right #defines |
| 6452 | # and linker options to make pthread_create available |
| 6453 | # Some compilers won't report that they do not support -pthread, |
| 6454 | # so we need to run a program to see whether it really made the |
| 6455 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 6457 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
doko@python.org | fa3f9a3 | 2013-01-25 15:32:31 +0100 | [diff] [blame] | 6458 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6459 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6460 | else |
| 6461 | ac_save_cc="$CC" |
| 6462 | CC="$CC -pthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6463 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6464 | ac_cv_pthread=no |
| 6465 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6467 | /* end confdefs.h. */ |
| 6468 | |
Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6469 | #include <stdio.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6470 | #include <pthread.h> |
| 6471 | |
| 6472 | void* routine(void* p){return NULL;} |
| 6473 | |
| 6474 | int main(){ |
| 6475 | pthread_t p; |
| 6476 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 6477 | return 1; |
| 6478 | (void)pthread_detach(p); |
| 6479 | return 0; |
| 6480 | } |
| 6481 | |
| 6482 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6483 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6484 | ac_cv_pthread=yes |
| 6485 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6486 | ac_cv_pthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6487 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6488 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6489 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6490 | fi |
| 6491 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6492 | CC="$ac_save_cc" |
| 6493 | fi |
| 6494 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 6496 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6497 | fi |
| 6498 | |
| 6499 | # If we have set a CC compiler flag for thread support then |
| 6500 | # check if it works for CXX, too. |
| 6501 | ac_cv_cxx_thread=no |
| 6502 | if test ! -z "$CXX" |
| 6503 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 6505 | $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] | 6506 | ac_save_cxx="$CXX" |
| 6507 | |
| 6508 | if test "$ac_cv_kpthread" = "yes" |
| 6509 | then |
| 6510 | CXX="$CXX -Kpthread" |
| 6511 | ac_cv_cxx_thread=yes |
| 6512 | elif test "$ac_cv_kthread" = "yes" |
| 6513 | then |
| 6514 | CXX="$CXX -Kthread" |
| 6515 | ac_cv_cxx_thread=yes |
| 6516 | elif test "$ac_cv_pthread" = "yes" |
| 6517 | then |
| 6518 | CXX="$CXX -pthread" |
| 6519 | ac_cv_cxx_thread=yes |
| 6520 | fi |
| 6521 | |
| 6522 | if test $ac_cv_cxx_thread = yes |
| 6523 | then |
| 6524 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 6525 | $CXX -c conftest.$ac_ext 2>&5 |
| 6526 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 6527 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 6528 | then |
| 6529 | ac_cv_cxx_thread=yes |
| 6530 | else |
| 6531 | ac_cv_cxx_thread=no |
| 6532 | fi |
| 6533 | rm -fr conftest* |
| 6534 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 6536 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6537 | fi |
| 6538 | CXX="$ac_save_cxx" |
| 6539 | |
| 6540 | |
| 6541 | # checks for header files |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6543 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6544 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6545 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6546 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6548 | /* end confdefs.h. */ |
| 6549 | #include <stdlib.h> |
| 6550 | #include <stdarg.h> |
| 6551 | #include <string.h> |
| 6552 | #include <float.h> |
| 6553 | |
| 6554 | int |
| 6555 | main () |
| 6556 | { |
| 6557 | |
| 6558 | ; |
| 6559 | return 0; |
| 6560 | } |
| 6561 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6562 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6563 | ac_cv_header_stdc=yes |
| 6564 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6565 | ac_cv_header_stdc=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6566 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6568 | |
| 6569 | if test $ac_cv_header_stdc = yes; then |
| 6570 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6572 | /* end confdefs.h. */ |
| 6573 | #include <string.h> |
| 6574 | |
| 6575 | _ACEOF |
| 6576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6577 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6578 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6579 | else |
| 6580 | ac_cv_header_stdc=no |
| 6581 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6582 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6583 | |
| 6584 | fi |
| 6585 | |
| 6586 | if test $ac_cv_header_stdc = yes; then |
| 6587 | # 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] | 6588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6589 | /* end confdefs.h. */ |
| 6590 | #include <stdlib.h> |
| 6591 | |
| 6592 | _ACEOF |
| 6593 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6594 | $EGREP "free" >/dev/null 2>&1; then : |
| 6595 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6596 | else |
| 6597 | ac_cv_header_stdc=no |
| 6598 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6599 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6600 | |
| 6601 | fi |
| 6602 | |
| 6603 | if test $ac_cv_header_stdc = yes; then |
| 6604 | # /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] | 6605 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6606 | : |
| 6607 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6609 | /* end confdefs.h. */ |
| 6610 | #include <ctype.h> |
| 6611 | #include <stdlib.h> |
| 6612 | #if ((' ' & 0x0FF) == 0x020) |
| 6613 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6614 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6615 | #else |
| 6616 | # define ISLOWER(c) \ |
| 6617 | (('a' <= (c) && (c) <= 'i') \ |
| 6618 | || ('j' <= (c) && (c) <= 'r') \ |
| 6619 | || ('s' <= (c) && (c) <= 'z')) |
| 6620 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6621 | #endif |
| 6622 | |
| 6623 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6624 | int |
| 6625 | main () |
| 6626 | { |
| 6627 | int i; |
| 6628 | for (i = 0; i < 256; i++) |
| 6629 | if (XOR (islower (i), ISLOWER (i)) |
| 6630 | || toupper (i) != TOUPPER (i)) |
| 6631 | return 2; |
| 6632 | return 0; |
| 6633 | } |
| 6634 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6635 | if ac_fn_c_try_run "$LINENO"; then : |
| 6636 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6637 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6638 | ac_cv_header_stdc=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6639 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6640 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6641 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6642 | fi |
| 6643 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6644 | fi |
| 6645 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6647 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6648 | if test $ac_cv_header_stdc = yes; then |
| 6649 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6650 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6651 | |
| 6652 | fi |
| 6653 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6654 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6655 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 6656 | 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] | 6657 | 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] | 6658 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6659 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6660 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6661 | 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] | 6662 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6663 | 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] | 6664 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 3aa138f | 2013-06-18 13:25:24 +0200 | [diff] [blame] | 6665 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6666 | do : |
| 6667 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6668 | 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] | 6669 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6670 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6671 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6672 | _ACEOF |
| 6673 | |
| 6674 | fi |
| 6675 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6676 | done |
| 6677 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6678 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6679 | 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] | 6680 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 6682 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6683 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6684 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6685 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6687 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6688 | #include <sys/types.h> |
| 6689 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6691 | int |
| 6692 | main () |
| 6693 | { |
| 6694 | if ((DIR *) 0) |
| 6695 | return 0; |
| 6696 | ; |
| 6697 | return 0; |
| 6698 | } |
| 6699 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6700 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6702 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6703 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6704 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6706 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6707 | eval ac_res=\$$as_ac_Header |
| 6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6709 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6710 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6711 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6712 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6713 | _ACEOF |
| 6714 | |
| 6715 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6716 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6718 | done |
| 6719 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6720 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6722 | $as_echo_n "checking for library containing opendir... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6723 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6724 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6726 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6728 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6729 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6730 | /* Override any GCC internal prototype to avoid an error. |
| 6731 | Use char because int might match the return type of a GCC |
| 6732 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 | #ifdef __cplusplus |
| 6734 | extern "C" |
| 6735 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6737 | int |
| 6738 | main () |
| 6739 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6740 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6741 | ; |
| 6742 | return 0; |
| 6743 | } |
| 6744 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6745 | for ac_lib in '' dir; do |
| 6746 | if test -z "$ac_lib"; then |
| 6747 | ac_res="none required" |
| 6748 | else |
| 6749 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6750 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6751 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6752 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6753 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6754 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6755 | rm -f core conftest.err conftest.$ac_objext \ |
| 6756 | conftest$ac_exeext |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6757 | if ${ac_cv_search_opendir+:} false; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6758 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6759 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6760 | done |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6761 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6762 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6763 | else |
| 6764 | ac_cv_search_opendir=no |
| 6765 | fi |
| 6766 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | LIBS=$ac_func_search_save_LIBS |
| 6768 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6770 | $as_echo "$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6771 | ac_res=$ac_cv_search_opendir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6772 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6773 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6774 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6775 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6776 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6777 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6779 | $as_echo_n "checking for library containing opendir... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6780 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6781 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | else |
| 6783 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6785 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6787 | /* Override any GCC internal prototype to avoid an error. |
| 6788 | Use char because int might match the return type of a GCC |
| 6789 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6790 | #ifdef __cplusplus |
| 6791 | extern "C" |
| 6792 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6793 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6794 | int |
| 6795 | main () |
| 6796 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6797 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6798 | ; |
| 6799 | return 0; |
| 6800 | } |
| 6801 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6802 | for ac_lib in '' x; do |
| 6803 | if test -z "$ac_lib"; then |
| 6804 | ac_res="none required" |
| 6805 | else |
| 6806 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6807 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6808 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6809 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6810 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6811 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6812 | rm -f core conftest.err conftest.$ac_objext \ |
| 6813 | conftest$ac_exeext |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6814 | if ${ac_cv_search_opendir+:} false; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6815 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6816 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6817 | done |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6818 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6820 | else |
| 6821 | ac_cv_search_opendir=no |
| 6822 | fi |
| 6823 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6824 | LIBS=$ac_func_search_save_LIBS |
| 6825 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6827 | $as_echo "$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6828 | ac_res=$ac_cv_search_opendir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6829 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6830 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6832 | fi |
| 6833 | |
| 6834 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6835 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 6837 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6838 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6839 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6840 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6842 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6843 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6844 | int |
| 6845 | main () |
| 6846 | { |
| 6847 | return makedev(0, 0); |
| 6848 | ; |
| 6849 | return 0; |
| 6850 | } |
| 6851 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6852 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6853 | ac_cv_header_sys_types_h_makedev=yes |
| 6854 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6855 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6856 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6857 | rm -f core conftest.err conftest.$ac_objext \ |
| 6858 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6859 | |
| 6860 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6862 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6863 | |
| 6864 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6865 | 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] | 6866 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6867 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6868 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6869 | |
| 6870 | fi |
| 6871 | |
| 6872 | |
| 6873 | |
| 6874 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6875 | 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] | 6876 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6877 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6878 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6879 | |
| 6880 | fi |
| 6881 | |
| 6882 | |
| 6883 | fi |
| 6884 | fi |
| 6885 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6886 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6887 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6888 | for ac_header in term.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6889 | do : |
| 6890 | 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] | 6891 | #ifdef HAVE_CURSES_H |
| 6892 | #include <curses.h> |
| 6893 | #endif |
| 6894 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6895 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6896 | if test "x$ac_cv_header_term_h" = xyes; then : |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6897 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6898 | #define HAVE_TERM_H 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6899 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6900 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6901 | fi |
| 6902 | |
| 6903 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6904 | |
| 6905 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6906 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6907 | for ac_header in linux/netlink.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6908 | do : |
| 6909 | 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] | 6910 | #ifdef HAVE_ASM_TYPES_H |
| 6911 | #include <asm/types.h> |
| 6912 | #endif |
| 6913 | #ifdef HAVE_SYS_SOCKET_H |
| 6914 | #include <sys/socket.h> |
| 6915 | #endif |
| 6916 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6917 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6918 | 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] | 6919 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6920 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6921 | _ACEOF |
| 6922 | |
| 6923 | fi |
| 6924 | |
| 6925 | done |
| 6926 | |
| 6927 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6928 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6929 | was_it_defined=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 6931 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 6932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6933 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6934 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6935 | |
| 6936 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6937 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6938 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6939 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6941 | |
| 6942 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6943 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6944 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6945 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6946 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6947 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6948 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 6950 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6951 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6952 | # Check whether using makedev requires defining _OSF_SOURCE |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 6954 | $as_echo_n "checking for makedev... " >&6; } |
| 6955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6956 | /* end confdefs.h. */ |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6957 | |
| 6958 | #if defined(MAJOR_IN_MKDEV) |
| 6959 | #include <sys/mkdev.h> |
| 6960 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6961 | #include <sys/sysmacros.h> |
| 6962 | #else |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6963 | #include <sys/types.h> |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6964 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6965 | int |
| 6966 | main () |
| 6967 | { |
| 6968 | makedev(0, 0) |
| 6969 | ; |
| 6970 | return 0; |
| 6971 | } |
| 6972 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6973 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6974 | ac_cv_has_makedev=yes |
| 6975 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6976 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6977 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6978 | rm -f core conftest.err conftest.$ac_objext \ |
| 6979 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6980 | if test "$ac_cv_has_makedev" = "no"; then |
| 6981 | # 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] | 6982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6983 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6984 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6985 | #define _OSF_SOURCE 1 |
| 6986 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6987 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6988 | int |
| 6989 | main () |
| 6990 | { |
| 6991 | makedev(0, 0) |
| 6992 | ; |
| 6993 | return 0; |
| 6994 | } |
| 6995 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6996 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6997 | ac_cv_has_makedev=yes |
| 6998 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6999 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7000 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7001 | rm -f core conftest.err conftest.$ac_objext \ |
| 7002 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7003 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7004 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7005 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7006 | |
| 7007 | fi |
| 7008 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 7010 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7011 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7012 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7013 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7014 | |
| 7015 | fi |
| 7016 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7017 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 7018 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 7019 | # defined, but the compiler does not support pragma redefine_extname, |
| 7020 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 7021 | # structures (such as rlimit64) without declaring them. As a |
| 7022 | # work-around, disable LFS on such configurations |
| 7023 | |
| 7024 | use_lfs=yes |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
| 7026 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
| 7027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7028 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7029 | |
| 7030 | #define _LARGEFILE_SOURCE 1 |
| 7031 | #define _FILE_OFFSET_BITS 64 |
| 7032 | #include <sys/resource.h> |
| 7033 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7034 | int |
| 7035 | main () |
| 7036 | { |
| 7037 | struct rlimit foo; |
| 7038 | ; |
| 7039 | return 0; |
| 7040 | } |
| 7041 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7042 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7043 | sol_lfs_bug=no |
| 7044 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7045 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7046 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
| 7049 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7050 | if test "$sol_lfs_bug" = "yes"; then |
| 7051 | use_lfs=no |
| 7052 | fi |
| 7053 | |
| 7054 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7055 | # Two defines needed to enable largefile support on various platforms |
| 7056 | # These may affect some typedefs |
Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 7057 | case $ac_sys_system/$ac_sys_release in |
| 7058 | AIX*) |
| 7059 | |
| 7060 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
| 7061 | |
| 7062 | ;; |
| 7063 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7064 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7065 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7066 | |
| 7067 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7068 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7069 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7070 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7071 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7072 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 7073 | cat >> confdefs.h <<\EOF |
| 7074 | #if defined(SCO_DS) |
| 7075 | #undef _OFF_T |
| 7076 | #endif |
| 7077 | EOF |
| 7078 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7079 | # Type availability checks |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7080 | 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] | 7081 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7082 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7084 | |
| 7085 | cat >>confdefs.h <<_ACEOF |
| 7086 | #define mode_t int |
| 7087 | _ACEOF |
| 7088 | |
| 7089 | fi |
| 7090 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7091 | 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] | 7092 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7093 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7095 | |
| 7096 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7097 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7098 | _ACEOF |
| 7099 | |
| 7100 | fi |
| 7101 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7102 | 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] | 7103 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7104 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | |
| 7107 | cat >>confdefs.h <<_ACEOF |
| 7108 | #define pid_t int |
| 7109 | _ACEOF |
| 7110 | |
| 7111 | fi |
| 7112 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7114 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 7115 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7117 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7118 | 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] | 7119 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7120 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7122 | |
| 7123 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7124 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7125 | _ACEOF |
| 7126 | |
| 7127 | fi |
| 7128 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 7130 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7131 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7132 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7133 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7135 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7136 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7137 | |
| 7138 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7140 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7141 | ac_cv_type_uid_t=yes |
| 7142 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7143 | ac_cv_type_uid_t=no |
| 7144 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 7145 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7146 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7147 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 7149 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7150 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7151 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7152 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7153 | |
| 7154 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7155 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7156 | |
| 7157 | fi |
| 7158 | |
Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7159 | |
| 7160 | # There are two separate checks for each of the exact-width integer types we |
| 7161 | # need. First we check whether the type is available using the usual |
| 7162 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> |
| 7163 | # and <stdint.h> where available). We then also use the special type checks of |
| 7164 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available |
| 7165 | # directly, #define's uint32_t to be a suitable type. |
| 7166 | |
| 7167 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 7168 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
| 7169 | |
| 7170 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h |
| 7171 | |
| 7172 | fi |
| 7173 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7174 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 7175 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7176 | no|yes) ;; #( |
| 7177 | *) |
| 7178 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7179 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7180 | |
| 7181 | |
| 7182 | cat >>confdefs.h <<_ACEOF |
| 7183 | #define uint32_t $ac_cv_c_uint32_t |
| 7184 | _ACEOF |
| 7185 | ;; |
| 7186 | esac |
| 7187 | |
Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7188 | |
| 7189 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 7190 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
| 7191 | |
| 7192 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h |
| 7193 | |
| 7194 | fi |
| 7195 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7196 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 7197 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7198 | no|yes) ;; #( |
| 7199 | *) |
| 7200 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7201 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7202 | |
| 7203 | |
| 7204 | cat >>confdefs.h <<_ACEOF |
| 7205 | #define uint64_t $ac_cv_c_uint64_t |
| 7206 | _ACEOF |
| 7207 | ;; |
| 7208 | esac |
| 7209 | |
Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7210 | |
| 7211 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 7212 | if test "x$ac_cv_type_int32_t" = xyes; then : |
| 7213 | |
| 7214 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h |
| 7215 | |
| 7216 | fi |
| 7217 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7218 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 7219 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7220 | no|yes) ;; #( |
| 7221 | *) |
| 7222 | |
| 7223 | cat >>confdefs.h <<_ACEOF |
| 7224 | #define int32_t $ac_cv_c_int32_t |
| 7225 | _ACEOF |
| 7226 | ;; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7227 | esac |
| 7228 | |
Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7229 | |
| 7230 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 7231 | if test "x$ac_cv_type_int64_t" = xyes; then : |
| 7232 | |
| 7233 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h |
| 7234 | |
| 7235 | fi |
| 7236 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7237 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 7238 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7239 | no|yes) ;; #( |
| 7240 | *) |
| 7241 | |
| 7242 | cat >>confdefs.h <<_ACEOF |
| 7243 | #define int64_t $ac_cv_c_int64_t |
| 7244 | _ACEOF |
| 7245 | ;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7246 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7247 | |
Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7248 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7249 | 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] | 7250 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7251 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7252 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7253 | |
| 7254 | fi |
| 7255 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7256 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7257 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7258 | # 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] | 7259 | # The cast to long int works around a bug in the HP C Compiler |
| 7260 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7261 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7262 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 7264 | $as_echo_n "checking size of int... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7265 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7266 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7267 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7268 | 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] | 7269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7270 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7271 | if test "$ac_cv_type_int" = yes; then |
| 7272 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7273 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7274 | as_fn_error 77 "cannot compute sizeof (int) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7275 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7276 | else |
| 7277 | ac_cv_sizeof_int=0 |
| 7278 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7279 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7281 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 7283 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7284 | |
| 7285 | |
| 7286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7287 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7288 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7289 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7290 | |
| 7291 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7292 | # The cast to long int works around a bug in the HP C Compiler |
| 7293 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7294 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7295 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 7297 | $as_echo_n "checking size of long... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7298 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7299 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7300 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7301 | 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] | 7302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7303 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7304 | if test "$ac_cv_type_long" = yes; then |
| 7305 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7306 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7307 | as_fn_error 77 "cannot compute sizeof (long) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7308 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7309 | else |
| 7310 | ac_cv_sizeof_long=0 |
| 7311 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7312 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7314 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 7316 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7317 | |
| 7318 | |
| 7319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7320 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7321 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7322 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7323 | |
| 7324 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7325 | # The cast to long int works around a bug in the HP C Compiler |
| 7326 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7327 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7328 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 7330 | $as_echo_n "checking size of void *... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7331 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7332 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7333 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7334 | 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] | 7335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7336 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7337 | if test "$ac_cv_type_void_p" = yes; then |
| 7338 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7339 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7340 | as_fn_error 77 "cannot compute sizeof (void *) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7341 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7342 | else |
| 7343 | ac_cv_sizeof_void_p=0 |
| 7344 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7345 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7347 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 7349 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7350 | |
| 7351 | |
| 7352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7353 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7354 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7355 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7356 | |
| 7357 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7358 | # The cast to long int works around a bug in the HP C Compiler |
| 7359 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7360 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7361 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 7363 | $as_echo_n "checking size of short... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7364 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7365 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7366 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7367 | 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] | 7368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7369 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7370 | if test "$ac_cv_type_short" = yes; then |
| 7371 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7372 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7373 | as_fn_error 77 "cannot compute sizeof (short) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7374 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7375 | else |
| 7376 | ac_cv_sizeof_short=0 |
| 7377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7380 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 7382 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7383 | |
| 7384 | |
| 7385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7386 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7387 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7388 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7389 | |
| 7390 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7391 | # The cast to long int works around a bug in the HP C Compiler |
| 7392 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7393 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7394 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 7396 | $as_echo_n "checking size of float... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7397 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7398 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7399 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7400 | 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] | 7401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7402 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7403 | if test "$ac_cv_type_float" = yes; then |
| 7404 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7405 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7406 | as_fn_error 77 "cannot compute sizeof (float) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7407 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7408 | else |
| 7409 | ac_cv_sizeof_float=0 |
| 7410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7411 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7413 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 7415 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7416 | |
| 7417 | |
| 7418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7419 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7420 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7421 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7422 | |
| 7423 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7424 | # The cast to long int works around a bug in the HP C Compiler |
| 7425 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7426 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7427 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 7429 | $as_echo_n "checking size of double... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7430 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7431 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7432 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7433 | 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] | 7434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7435 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7436 | if test "$ac_cv_type_double" = yes; then |
| 7437 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7438 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7439 | as_fn_error 77 "cannot compute sizeof (double) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7440 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7441 | else |
| 7442 | ac_cv_sizeof_double=0 |
| 7443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7444 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7446 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 7448 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7449 | |
| 7450 | |
| 7451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7452 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7453 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7454 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7455 | |
| 7456 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7457 | # The cast to long int works around a bug in the HP C Compiler |
| 7458 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7459 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7460 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 7462 | $as_echo_n "checking size of fpos_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7463 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7464 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7465 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7466 | 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] | 7467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7469 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7470 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7471 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7472 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7473 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7474 | else |
| 7475 | ac_cv_sizeof_fpos_t=0 |
| 7476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7479 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7481 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7482 | |
| 7483 | |
| 7484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7485 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7486 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7487 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7488 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7489 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7490 | # The cast to long int works around a bug in the HP C Compiler |
| 7491 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7492 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7493 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 7495 | $as_echo_n "checking size of size_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7496 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7497 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7498 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7499 | 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] | 7500 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7501 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7502 | if test "$ac_cv_type_size_t" = yes; then |
| 7503 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7504 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7505 | as_fn_error 77 "cannot compute sizeof (size_t) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7506 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7507 | else |
| 7508 | ac_cv_sizeof_size_t=0 |
| 7509 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7510 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7511 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7512 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 7514 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7515 | |
| 7516 | |
| 7517 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7518 | cat >>confdefs.h <<_ACEOF |
| 7519 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 7520 | _ACEOF |
| 7521 | |
| 7522 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7523 | # The cast to long int works around a bug in the HP C Compiler |
| 7524 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7525 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7526 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 7528 | $as_echo_n "checking size of pid_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7529 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7530 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7531 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7532 | 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] | 7533 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7534 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7535 | if test "$ac_cv_type_pid_t" = yes; then |
| 7536 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7537 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7538 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7539 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7540 | else |
| 7541 | ac_cv_sizeof_pid_t=0 |
| 7542 | fi |
| 7543 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7544 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7545 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 7547 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7548 | |
| 7549 | |
| 7550 | |
| 7551 | cat >>confdefs.h <<_ACEOF |
| 7552 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 7553 | _ACEOF |
| 7554 | |
| 7555 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7556 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
| 7558 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7559 | have_long_long=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7561 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7563 | int |
| 7564 | main () |
| 7565 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7566 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7567 | ; |
| 7568 | return 0; |
| 7569 | } |
| 7570 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7571 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7572 | |
| 7573 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7574 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7575 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7576 | have_long_long=yes |
| 7577 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7578 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
| 7581 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7582 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7583 | # The cast to long int works around a bug in the HP C Compiler |
| 7584 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7585 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7586 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 7588 | $as_echo_n "checking size of long long... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7589 | if ${ac_cv_sizeof_long_long+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7590 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7591 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7592 | 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] | 7593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7594 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7595 | if test "$ac_cv_type_long_long" = yes; then |
| 7596 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7597 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7598 | as_fn_error 77 "cannot compute sizeof (long long) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7599 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7600 | else |
| 7601 | ac_cv_sizeof_long_long=0 |
| 7602 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7603 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 7607 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7608 | |
| 7609 | |
| 7610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7611 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7612 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7613 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7614 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7615 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7616 | fi |
| 7617 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
| 7619 | $as_echo_n "checking for long double support... " >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7620 | have_long_double=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7622 | /* end confdefs.h. */ |
| 7623 | |
| 7624 | int |
| 7625 | main () |
| 7626 | { |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7627 | long double x; x = (long double)0; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7628 | ; |
| 7629 | return 0; |
| 7630 | } |
| 7631 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7632 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7633 | |
| 7634 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7635 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7636 | |
| 7637 | have_long_double=yes |
| 7638 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7639 | fi |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
| 7642 | $as_echo "$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7643 | if test "$have_long_double" = yes ; then |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7644 | # The cast to long int works around a bug in the HP C Compiler |
| 7645 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7646 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7647 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 7649 | $as_echo_n "checking size of long double... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7650 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7651 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7652 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7653 | 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] | 7654 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7655 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7656 | if test "$ac_cv_type_long_double" = yes; then |
| 7657 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7658 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7659 | as_fn_error 77 "cannot compute sizeof (long double) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7660 | See \`config.log' for more details" "$LINENO" 5; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7661 | else |
| 7662 | ac_cv_sizeof_long_double=0 |
| 7663 | fi |
| 7664 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7665 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7666 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 7668 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7669 | |
| 7670 | |
| 7671 | |
| 7672 | cat >>confdefs.h <<_ACEOF |
| 7673 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 7674 | _ACEOF |
| 7675 | |
| 7676 | |
| 7677 | fi |
| 7678 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
| 7680 | $as_echo_n "checking for _Bool support... " >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7681 | have_c99_bool=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7683 | /* end confdefs.h. */ |
| 7684 | |
| 7685 | int |
| 7686 | main () |
| 7687 | { |
| 7688 | _Bool x; x = (_Bool)0; |
| 7689 | ; |
| 7690 | return 0; |
| 7691 | } |
| 7692 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7693 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7694 | |
| 7695 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7696 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7697 | |
| 7698 | have_c99_bool=yes |
| 7699 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7700 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
| 7703 | $as_echo "$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7704 | if test "$have_c99_bool" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7705 | # The cast to long int works around a bug in the HP C Compiler |
| 7706 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7707 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7708 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 7710 | $as_echo_n "checking size of _Bool... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7711 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7712 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7713 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7714 | 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] | 7715 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7716 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7717 | if test "$ac_cv_type__Bool" = yes; then |
| 7718 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7719 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7720 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7721 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7722 | else |
| 7723 | ac_cv_sizeof__Bool=0 |
| 7724 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7725 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7726 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7727 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 7729 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7730 | |
| 7731 | |
| 7732 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7733 | cat >>confdefs.h <<_ACEOF |
| 7734 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 7735 | _ACEOF |
| 7736 | |
| 7737 | |
| 7738 | fi |
| 7739 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7740 | 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] | 7741 | #include <stdint.h> |
| 7742 | #endif |
Antoine Pitrou | 7be5a65 | 2010-10-10 08:14:41 +0000 | [diff] [blame] | 7743 | #ifdef HAVE_INTTYPES_H |
| 7744 | #include <inttypes.h> |
| 7745 | #endif |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7746 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7747 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7748 | |
| 7749 | cat >>confdefs.h <<_ACEOF |
| 7750 | #define HAVE_UINTPTR_T 1 |
| 7751 | _ACEOF |
| 7752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7753 | # The cast to long int works around a bug in the HP C Compiler |
| 7754 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7755 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7756 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 7758 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7759 | if ${ac_cv_sizeof_uintptr_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7760 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7762 | 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] | 7763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7765 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 7766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7768 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7769 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7770 | else |
| 7771 | ac_cv_sizeof_uintptr_t=0 |
| 7772 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7775 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 7777 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7778 | |
| 7779 | |
| 7780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7781 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7782 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7783 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7784 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7785 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7786 | fi |
| 7787 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7788 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7789 | # The cast to long int works around a bug in the HP C Compiler |
| 7790 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7791 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7792 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 7794 | $as_echo_n "checking size of off_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7795 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7796 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7797 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7798 | 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] | 7799 | #ifdef HAVE_SYS_TYPES_H |
| 7800 | #include <sys/types.h> |
| 7801 | #endif |
| 7802 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7803 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7804 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7805 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7806 | if test "$ac_cv_type_off_t" = yes; then |
| 7807 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7808 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7809 | as_fn_error 77 "cannot compute sizeof (off_t) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7810 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7811 | else |
| 7812 | ac_cv_sizeof_off_t=0 |
| 7813 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7814 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7815 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7816 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 7818 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7820 | |
| 7821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7823 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7824 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7825 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7826 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7827 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 7829 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7830 | if test "$have_long_long" = yes |
| 7831 | then |
| 7832 | 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] | 7833 | "$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] | 7834 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7835 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7836 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7838 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7839 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7841 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7842 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7843 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7845 | $as_echo "no" >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7846 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7847 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7848 | # The cast to long int works around a bug in the HP C Compiler |
| 7849 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7850 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7851 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 7853 | $as_echo_n "checking size of time_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7854 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7855 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7856 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7857 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7858 | #ifdef HAVE_SYS_TYPES_H |
| 7859 | #include <sys/types.h> |
| 7860 | #endif |
| 7861 | #ifdef HAVE_TIME_H |
| 7862 | #include <time.h> |
| 7863 | #endif |
| 7864 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7865 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7866 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7867 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7868 | if test "$ac_cv_type_time_t" = yes; then |
| 7869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7871 | as_fn_error 77 "cannot compute sizeof (time_t) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7872 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7873 | else |
| 7874 | ac_cv_sizeof_time_t=0 |
| 7875 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7876 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7877 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7878 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 7880 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7882 | |
| 7883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7884 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7885 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7887 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7888 | |
| 7889 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7890 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7891 | ac_save_cc="$CC" |
| 7892 | if test "$ac_cv_kpthread" = "yes" |
| 7893 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7894 | elif test "$ac_cv_kthread" = "yes" |
| 7895 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7896 | elif test "$ac_cv_pthread" = "yes" |
| 7897 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7898 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 7900 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7901 | have_pthread_t=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7903 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7904 | |
| 7905 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7906 | int |
| 7907 | main () |
| 7908 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7909 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | ; |
| 7911 | return 0; |
| 7912 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7914 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7915 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7916 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 7920 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7921 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7922 | # 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] | 7923 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7924 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7925 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 7927 | $as_echo_n "checking size of pthread_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7928 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7929 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7930 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7931 | 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] | 7932 | #ifdef HAVE_PTHREAD_H |
| 7933 | #include <pthread.h> |
| 7934 | #endif |
| 7935 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7936 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7937 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7938 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7939 | if test "$ac_cv_type_pthread_t" = yes; then |
| 7940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7942 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7943 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7944 | else |
| 7945 | ac_cv_sizeof_pthread_t=0 |
| 7946 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7947 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7948 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7949 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 7951 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7952 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7953 | |
| 7954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7955 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7956 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7957 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7958 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7959 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7960 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7961 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7962 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 |
| 7964 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7965 | # Check whether --enable-toolbox-glue was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7966 | if test "${enable_toolbox_glue+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7967 | enableval=$enable_toolbox_glue; |
| 7968 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7969 | |
| 7970 | |
| 7971 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7972 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7973 | case $ac_sys_system/$ac_sys_release in |
| 7974 | Darwin/*) |
| 7975 | enable_toolbox_glue="yes";; |
| 7976 | *) |
| 7977 | enable_toolbox_glue="no";; |
| 7978 | esac |
| 7979 | fi |
| 7980 | case "$enable_toolbox_glue" in |
| 7981 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7982 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7983 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7984 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7985 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7986 | |
| 7987 | ;; |
| 7988 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7989 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 7990 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7991 | ;; |
| 7992 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 |
| 7994 | $as_echo "$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7995 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7996 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7997 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7998 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7999 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8000 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 8001 | ;; |
| 8002 | Darwin/*) |
| 8003 | OTHER_LIBTOOL_OPT="" |
| 8004 | ;; |
| 8005 | esac |
| 8006 | |
| 8007 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8008 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8009 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 8010 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8011 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 8012 | if test "${enable_universalsdk}"; then |
| 8013 | : |
| 8014 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8015 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8016 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8017 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8018 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8019 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 8020 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8021 | if test ${gcc_version} '<' 4.0 |
| 8022 | then |
| 8023 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 8024 | else |
| 8025 | LIBTOOL_CRUFT="" |
| 8026 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8027 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8028 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8029 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8031 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8032 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8033 | #include <unistd.h> |
| 8034 | int main(int argc, char*argv[]) |
| 8035 | { |
| 8036 | if (sizeof(long) == 4) { |
| 8037 | return 0; |
| 8038 | } else { |
| 8039 | return 1; |
| 8040 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 8041 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8042 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8043 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8044 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8045 | ac_osx_32bit=yes |
| 8046 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8047 | ac_osx_32bit=no |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8048 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8049 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8050 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8051 | fi |
| 8052 | |
| 8053 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8054 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8055 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8056 | i386) |
| 8057 | MACOSX_DEFAULT_ARCH="i386" |
| 8058 | ;; |
| 8059 | ppc) |
| 8060 | MACOSX_DEFAULT_ARCH="ppc" |
| 8061 | ;; |
| 8062 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8063 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8064 | ;; |
| 8065 | esac |
| 8066 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8067 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8068 | i386) |
| 8069 | MACOSX_DEFAULT_ARCH="x86_64" |
| 8070 | ;; |
| 8071 | ppc) |
| 8072 | MACOSX_DEFAULT_ARCH="ppc64" |
| 8073 | ;; |
| 8074 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8075 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8076 | ;; |
| 8077 | esac |
| 8078 | |
| 8079 | #ARCH_RUN_32BIT="true" |
| 8080 | fi |
| 8081 | |
| 8082 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8083 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8084 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8085 | esac |
| 8086 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 8088 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8089 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8090 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8091 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8093 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8094 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8095 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8096 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8098 | $as_echo "yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 8099 | if test $enable_shared = "yes" |
| 8100 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8101 | 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] | 8102 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8103 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8105 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8106 | fi |
| 8107 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 8109 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8110 | case $ac_sys_system/$ac_sys_release in |
| 8111 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8112 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8113 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 8116 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8117 | ;; |
| 8118 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8120 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8121 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8122 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8123 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8124 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8125 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8126 | |
| 8127 | |
| 8128 | |
| 8129 | |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8130 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8131 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8132 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 |
| 8134 | $as_echo_n "checking SO... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8135 | if test -z "$SO" |
| 8136 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8137 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8138 | hp*|HP*) |
| 8139 | case `uname -m` in |
| 8140 | ia64) SO=.so;; |
| 8141 | *) SO=.sl;; |
| 8142 | esac |
| 8143 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8144 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8145 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8146 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 8147 | else |
| 8148 | # this might also be a termcap variable, see #610332 |
| 8149 | echo |
| 8150 | echo '=====================================================================' |
| 8151 | echo '+ +' |
| 8152 | echo '+ WARNING: You have set SO in your environment. +' |
| 8153 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 8154 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 8155 | echo '+ +' |
| 8156 | echo '=====================================================================' |
| 8157 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8158 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 |
| 8160 | $as_echo "$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8161 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8162 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8163 | cat >>confdefs.h <<_ACEOF |
| 8164 | #define SHLIB_EXT "$SO" |
| 8165 | _ACEOF |
| 8166 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8167 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 8168 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8169 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8170 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 8172 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8173 | if test -z "$LDSHARED" |
| 8174 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8175 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8176 | AIX*) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8177 | 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] | 8178 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8179 | ;; |
| 8180 | BeOS*) |
| 8181 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8182 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8183 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8184 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8185 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8186 | SunOS/5*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8187 | if test "$GCC" = "yes" ; then |
| 8188 | LDSHARED='$(CC) -shared' |
| 8189 | LDCXXSHARED='$(CXX) -shared' |
| 8190 | else |
| 8191 | LDSHARED='$(CC) -G' |
| 8192 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8193 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8194 | hp*|HP*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8195 | if test "$GCC" = "yes" ; then |
| 8196 | LDSHARED='$(CC) -shared' |
| 8197 | LDCXXSHARED='$(CXX) -shared' |
| 8198 | else |
| 8199 | LDSHARED='ld -b' |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8200 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8201 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8202 | Darwin/1.3*) |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8203 | LDSHARED='$(CC) -bundle' |
| 8204 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8205 | if test "$enable_framework" ; then |
| 8206 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8207 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 8208 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8209 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8210 | else |
| 8211 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8212 | LDSHARED="$LDSHARED -undefined suppress" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8213 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8214 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8215 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8216 | LDSHARED='$(CC) -bundle' |
| 8217 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8218 | if test "$enable_framework" ; then |
| 8219 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8220 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 8221 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8222 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8223 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8224 | # No framework, use the Python app as bundle-loader |
| 8225 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 8226 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8227 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8228 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8229 | Darwin/*) |
| 8230 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 8231 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 8232 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 8233 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8234 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8235 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 8236 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8237 | fi |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8238 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 8239 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8240 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8241 | else |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8242 | LDSHARED='$(CC) -bundle' |
| 8243 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8244 | if test "$enable_framework" ; then |
| 8245 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8246 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 8247 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8248 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8249 | else |
| 8250 | # No framework, use the Python app as bundle-loader |
| 8251 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8252 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8253 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8254 | fi |
| 8255 | fi |
| 8256 | ;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8257 | Linux*|GNU*|QNX*) |
| 8258 | LDSHARED='$(CC) -shared' |
| 8259 | LDCXXSHARED='$(CXX) -shared';; |
| 8260 | BSD/OS*/4*) |
| 8261 | LDSHARED="gcc -shared" |
| 8262 | LDCXXSHARED="g++ -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8263 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8264 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8265 | then |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8266 | LDSHARED='$(CC) -shared' |
| 8267 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8268 | else |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8269 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8270 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8271 | OpenBSD*) |
| 8272 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8273 | then |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8274 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 8275 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8276 | else |
| 8277 | case `uname -r` in |
| 8278 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 8279 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8280 | ;; |
| 8281 | *) |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8282 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 8283 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8284 | ;; |
| 8285 | esac |
| 8286 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8287 | NetBSD*|DragonFly*) |
Antoine Pitrou | cb40277 | 2011-01-02 20:51:34 +0000 | [diff] [blame] | 8288 | LDSHARED='$(CC) -shared' |
| 8289 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8290 | OpenUNIX*|UnixWare*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8291 | if test "$GCC" = "yes" ; then |
| 8292 | LDSHARED='$(CC) -shared' |
| 8293 | LDCXXSHARED='$(CXX) -shared' |
| 8294 | else |
| 8295 | LDSHARED='$(CC) -G' |
| 8296 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8297 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8298 | SCO_SV*) |
| 8299 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 8300 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 8301 | CYGWIN*) |
| 8302 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 8303 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
| 8304 | atheos*) |
| 8305 | LDSHARED="gcc -shared" |
| 8306 | LDCXXSHARED="g++ -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8307 | *) LDSHARED="ld";; |
| 8308 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8309 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 8311 | $as_echo "$LDSHARED" >&6; } |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8312 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8313 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8314 | # 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] | 8315 | # library (module) -- this is only needed for a few systems |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 8317 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8318 | if test -z "$CCSHARED" |
| 8319 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8320 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8321 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 8322 | then CCSHARED="-fPIC"; |
| 8323 | elif test `uname -p` = sparc; |
| 8324 | then CCSHARED="-xcode=pic32"; |
| 8325 | else CCSHARED="-Kpic"; |
| 8326 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8327 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8328 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8329 | else CCSHARED="+z"; |
| 8330 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8331 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8332 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8333 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8334 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8335 | if test "$GCC" = "yes" |
| 8336 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8337 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8338 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8339 | SCO_SV*) |
| 8340 | if test "$GCC" = "yes" |
| 8341 | then CCSHARED="-fPIC" |
| 8342 | else CCSHARED="-Kpic -belf" |
| 8343 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8344 | IRIX*/6*) case $CC in |
| 8345 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8346 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8347 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8348 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8349 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8350 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 8352 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8353 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8354 | # the python executable -- this is only needed for a few systems |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 8356 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8357 | if test -z "$LINKFORSHARED" |
| 8358 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8359 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8360 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8361 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8362 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 8363 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8364 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8365 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8366 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8368 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 8369 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8370 | # not used by the core itself but which needs to be in the core so |
| 8371 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 8372 | # -prebind is no longer used, because it actually seems to give a |
| 8373 | # slowdown in stead of a speedup, maybe due to the large number of |
| 8374 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8375 | |
| 8376 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8377 | if test "$enable_framework" |
| 8378 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8379 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8380 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8381 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8382 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8383 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8384 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8385 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8386 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8387 | then |
| 8388 | LINKFORSHARED="-Wl,--export-dynamic" |
| 8389 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8390 | SunOS/5*) case $CC in |
| 8391 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8392 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8393 | then |
| 8394 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8395 | fi;; |
| 8396 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 8397 | CYGWIN*) |
| 8398 | if test $enable_shared = "no" |
| 8399 | then |
| 8400 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 8401 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 8402 | QNX*) |
| 8403 | # -Wl,-E causes the symbols to be added to the dynamic |
| 8404 | # symbol table so that they can be found when a module |
| 8405 | # is loaded. -N 2048K causes the stack size to be set |
| 8406 | # to 2048 kilobytes so that the stack doesn't overflow |
| 8407 | # when running test_compile.py. |
| 8408 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8409 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8410 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 8412 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8413 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8414 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 8415 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 8417 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8418 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 8419 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8420 | case $ac_sys_system in |
| 8421 | CYGWIN*) |
| 8422 | # Cygwin needs CCSHARED when building extension DLLs |
| 8423 | # but not when building the interpreter DLL. |
| 8424 | CFLAGSFORSHARED='';; |
| 8425 | *) |
| 8426 | CFLAGSFORSHARED='$(CCSHARED)' |
| 8427 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8428 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 8430 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8431 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8432 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 8433 | # library (with --enable-shared). |
| 8434 | # 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] | 8435 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 8436 | # if it is not required, since it creates a dependency of the shared library |
| 8437 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 8438 | # don't need to link LIBS explicitly. The default should be only changed |
| 8439 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8440 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 8442 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8443 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8444 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 8445 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8446 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 8448 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8449 | |
| 8450 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8451 | # checks for libraries |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 8453 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8454 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8455 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8458 | LIBS="-ldl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8460 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8461 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8462 | /* Override any GCC internal prototype to avoid an error. |
| 8463 | Use char because int might match the return type of a GCC |
| 8464 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8465 | #ifdef __cplusplus |
| 8466 | extern "C" |
| 8467 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | int |
| 8470 | main () |
| 8471 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8472 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8473 | ; |
| 8474 | return 0; |
| 8475 | } |
| 8476 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8477 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8479 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8480 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8481 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8482 | rm -f core conftest.err conftest.$ac_objext \ |
| 8483 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8485 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8487 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8488 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | cat >>confdefs.h <<_ACEOF |
| 8490 | #define HAVE_LIBDL 1 |
| 8491 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8492 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8493 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8494 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8495 | fi |
| 8496 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 8498 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8499 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8500 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8503 | LIBS="-ldld $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8507 | /* Override any GCC internal prototype to avoid an error. |
| 8508 | Use char because int might match the return type of a GCC |
| 8509 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | #ifdef __cplusplus |
| 8511 | extern "C" |
| 8512 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8513 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | int |
| 8515 | main () |
| 8516 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8517 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | ; |
| 8519 | return 0; |
| 8520 | } |
| 8521 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8522 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8524 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8525 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8526 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8527 | rm -f core conftest.err conftest.$ac_objext \ |
| 8528 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8529 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8530 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8532 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8533 | 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] | 8534 | cat >>confdefs.h <<_ACEOF |
| 8535 | #define HAVE_LIBDLD 1 |
| 8536 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8537 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8538 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8539 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8540 | fi |
| 8541 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8542 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8543 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8544 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 8546 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8547 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8548 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8549 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8550 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8552 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8554 | /* Override any GCC internal prototype to avoid an error. |
| 8555 | Use char because int might match the return type of a GCC |
| 8556 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | #ifdef __cplusplus |
| 8558 | extern "C" |
| 8559 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8560 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | int |
| 8562 | main () |
| 8563 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8564 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | ; |
| 8566 | return 0; |
| 8567 | } |
| 8568 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8569 | for ac_lib in '' pthread rt posix4; do |
| 8570 | if test -z "$ac_lib"; then |
| 8571 | ac_res="none required" |
| 8572 | else |
| 8573 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8574 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8575 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8576 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8577 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8578 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8579 | rm -f core conftest.err conftest.$ac_objext \ |
| 8580 | conftest$ac_exeext |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8581 | if ${ac_cv_search_sem_init+:} false; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8582 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8583 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8584 | done |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8585 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8586 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8587 | else |
| 8588 | ac_cv_search_sem_init=no |
| 8589 | fi |
| 8590 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8591 | LIBS=$ac_func_search_save_LIBS |
| 8592 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 8594 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8595 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8596 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8597 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8598 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8599 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8600 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8601 | # posix4 on Solaris 2.6 |
| 8602 | # pthread (first!) on Linux |
| 8603 | fi |
| 8604 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8605 | # check if we need libintl for locale functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 8607 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8608 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8609 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8610 | else |
| 8611 | ac_check_lib_save_LIBS=$LIBS |
| 8612 | LIBS="-lintl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8614 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8615 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8616 | /* Override any GCC internal prototype to avoid an error. |
| 8617 | Use char because int might match the return type of a GCC |
| 8618 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8619 | #ifdef __cplusplus |
| 8620 | extern "C" |
| 8621 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8622 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8623 | int |
| 8624 | main () |
| 8625 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8626 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8627 | ; |
| 8628 | return 0; |
| 8629 | } |
| 8630 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8631 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8632 | ac_cv_lib_intl_textdomain=yes |
| 8633 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8634 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8635 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8636 | rm -f core conftest.err conftest.$ac_objext \ |
| 8637 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8638 | LIBS=$ac_check_lib_save_LIBS |
| 8639 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 8641 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8642 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8643 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8644 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8645 | |
| 8646 | fi |
| 8647 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8648 | |
| 8649 | # checks for system dependent C++ extensions support |
| 8650 | case "$ac_sys_system" in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8651 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 8652 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 8653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8654 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8655 | |
Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 8656 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | int |
| 8658 | main () |
| 8659 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8660 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | ; |
| 8662 | return 0; |
| 8663 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8666 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8667 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8668 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8669 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8672 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8673 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8674 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8675 | |
| 8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8677 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8678 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8679 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8680 | rm -f core conftest.err conftest.$ac_objext \ |
| 8681 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8682 | *) ;; |
| 8683 | esac |
| 8684 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8685 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8686 | # BeOS' sockets are stashed in libnet. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 8688 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8689 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8690 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8692 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8693 | LIBS="-lnsl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8695 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8697 | /* Override any GCC internal prototype to avoid an error. |
| 8698 | Use char because int might match the return type of a GCC |
| 8699 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | #ifdef __cplusplus |
| 8701 | extern "C" |
| 8702 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8703 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8704 | int |
| 8705 | main () |
| 8706 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8707 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | ; |
| 8709 | return 0; |
| 8710 | } |
| 8711 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8712 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8714 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8715 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8716 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8717 | rm -f core conftest.err conftest.$ac_objext \ |
| 8718 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8720 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 8722 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8723 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8724 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8725 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8726 | # SVR4 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 8728 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8729 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8730 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8732 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8733 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8737 | /* Override any GCC internal prototype to avoid an error. |
| 8738 | Use char because int might match the return type of a GCC |
| 8739 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 | #ifdef __cplusplus |
| 8741 | extern "C" |
| 8742 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8743 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | int |
| 8745 | main () |
| 8746 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8747 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | ; |
| 8749 | return 0; |
| 8750 | } |
| 8751 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8752 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8753 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8754 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8755 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8756 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8757 | rm -f core conftest.err conftest.$ac_objext \ |
| 8758 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8759 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8760 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 8762 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8763 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8764 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8765 | fi |
| 8766 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8767 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8768 | case "$ac_sys_system" in |
| 8769 | BeOS*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 |
| 8771 | $as_echo_n "checking for socket in -lnet... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8772 | if ${ac_cv_lib_net_socket+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8773 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8776 | LIBS="-lnet $LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8778 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8780 | /* Override any GCC internal prototype to avoid an error. |
| 8781 | Use char because int might match the return type of a GCC |
| 8782 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | #ifdef __cplusplus |
| 8784 | extern "C" |
| 8785 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8786 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | int |
| 8788 | main () |
| 8789 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8790 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8791 | ; |
| 8792 | return 0; |
| 8793 | } |
| 8794 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8795 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8796 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8797 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8798 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8799 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8800 | rm -f core conftest.err conftest.$ac_objext \ |
| 8801 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8802 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8803 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 |
| 8805 | $as_echo "$ac_cv_lib_net_socket" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8806 | if test "x$ac_cv_lib_net_socket" = xyes; then : |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8807 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8808 | fi |
| 8809 | # BeOS |
| 8810 | ;; |
| 8811 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8812 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 8814 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8816 | # Check whether --with-libs was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8817 | if test "${with_libs+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8818 | withval=$with_libs; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8820 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8821 | LIBS="$withval $LIBS" |
| 8822 | |
| 8823 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8825 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8826 | fi |
| 8827 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8828 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8829 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8830 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 8831 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8833 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8834 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8835 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8836 | else |
| 8837 | case $PKG_CONFIG in |
| 8838 | [\\/]* | ?:[\\/]*) |
| 8839 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8840 | ;; |
| 8841 | *) |
| 8842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8843 | for as_dir in $PATH |
| 8844 | do |
| 8845 | IFS=$as_save_IFS |
| 8846 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8847 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 8848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8849 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8850 | $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] | 8851 | break 2 |
| 8852 | fi |
| 8853 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8854 | done |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8855 | IFS=$as_save_IFS |
| 8856 | |
| 8857 | ;; |
| 8858 | esac |
| 8859 | fi |
| 8860 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8861 | if test -n "$PKG_CONFIG"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8863 | $as_echo "$PKG_CONFIG" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8864 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8866 | $as_echo "no" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8867 | fi |
| 8868 | |
| 8869 | |
| 8870 | fi |
| 8871 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8872 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8873 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8874 | set dummy pkg-config; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8876 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8877 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8878 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8879 | else |
| 8880 | case $ac_pt_PKG_CONFIG in |
| 8881 | [\\/]* | ?:[\\/]*) |
| 8882 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8883 | ;; |
| 8884 | *) |
| 8885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8886 | for as_dir in $PATH |
| 8887 | do |
| 8888 | IFS=$as_save_IFS |
| 8889 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8890 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 8891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8892 | 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] | 8893 | $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] | 8894 | break 2 |
| 8895 | fi |
| 8896 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8897 | done |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8898 | IFS=$as_save_IFS |
| 8899 | |
| 8900 | ;; |
| 8901 | esac |
| 8902 | fi |
| 8903 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 8904 | if test -n "$ac_pt_PKG_CONFIG"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 8906 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8907 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8909 | $as_echo "no" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8910 | fi |
| 8911 | |
| 8912 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8913 | PKG_CONFIG="" |
| 8914 | else |
| 8915 | case $cross_compiling:$ac_tool_warned in |
| 8916 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8918 | $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] | 8919 | ac_tool_warned=yes ;; |
| 8920 | esac |
| 8921 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8922 | fi |
| 8923 | else |
| 8924 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8925 | fi |
| 8926 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8927 | |
| 8928 | # Check for use of the system expat library |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 8930 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8931 | |
| 8932 | # Check whether --with-system_expat was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8933 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8934 | withval=$with_system_expat; |
Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8935 | else |
| 8936 | with_system_expat="no" |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8937 | fi |
| 8938 | |
| 8939 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 8941 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8942 | |
| 8943 | # Check for use of the system libffi library |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 8945 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8946 | |
| 8947 | # Check whether --with-system_ffi was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8948 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8949 | withval=$with_system_ffi; |
Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8950 | else |
| 8951 | with_system_ffi="no" |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8952 | fi |
| 8953 | |
| 8954 | |
| 8955 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8956 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 8957 | else |
| 8958 | LIBFFI_INCLUDEDIR="" |
| 8959 | fi |
| 8960 | |
| 8961 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 8963 | $as_echo "$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 8964 | |
Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 8965 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
| 8966 | |
| 8967 | |
| 8968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
| 8969 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } |
| 8970 | |
| 8971 | # Check whether --with-tcltk-includes was given. |
| 8972 | if test "${with_tcltk_includes+set}" = set; then : |
| 8973 | withval=$with_tcltk_includes; |
| 8974 | else |
| 8975 | with_tcltk_includes="default" |
| 8976 | fi |
| 8977 | |
| 8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
| 8979 | $as_echo "$with_tcltk_includes" >&6; } |
| 8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 |
| 8981 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } |
| 8982 | |
| 8983 | # Check whether --with-tcltk-libs was given. |
| 8984 | if test "${with_tcltk_libs+set}" = set; then : |
| 8985 | withval=$with_tcltk_libs; |
| 8986 | else |
| 8987 | with_tcltk_libs="default" |
| 8988 | fi |
| 8989 | |
| 8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
| 8991 | $as_echo "$with_tcltk_libs" >&6; } |
| 8992 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
| 8993 | then |
| 8994 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" |
| 8995 | then |
| 8996 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 |
| 8997 | fi |
| 8998 | TCLTK_INCLUDES="" |
| 8999 | TCLTK_LIBS="" |
| 9000 | else |
| 9001 | TCLTK_INCLUDES="$with_tcltk_includes" |
| 9002 | TCLTK_LIBS="$with_tcltk_libs" |
| 9003 | fi |
| 9004 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9005 | # Check for --with-dbmliborder |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 9007 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9008 | |
| 9009 | # Check whether --with-dbmliborder was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9010 | if test "${with_dbmliborder+set}" = set; then : |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9011 | withval=$with_dbmliborder; |
| 9012 | if test x$with_dbmliborder = xyes |
| 9013 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9014 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9015 | else |
| 9016 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 9017 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 9018 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9019 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9020 | fi |
| 9021 | done |
| 9022 | fi |
| 9023 | fi |
| 9024 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 9026 | $as_echo "$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9027 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9028 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9029 | |
| 9030 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
| 9032 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9034 | # Check whether --with-signal-module was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9035 | if test "${with_signal_module+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9036 | withval=$with_signal_module; |
| 9037 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9038 | |
| 9039 | |
| 9040 | if test -z "$with_signal_module" |
| 9041 | then with_signal_module="yes" |
| 9042 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
| 9044 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9045 | |
| 9046 | if test "${with_signal_module}" = "yes"; then |
| 9047 | USE_SIGNAL_MODULE="" |
| 9048 | SIGNAL_OBJS="" |
| 9049 | else |
| 9050 | USE_SIGNAL_MODULE="#" |
| 9051 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9052 | fi |
| 9053 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9054 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9055 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9056 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9057 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 |
| 9059 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9061 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9062 | # Check whether --with-dec-threads was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9063 | if test "${with_dec_threads+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9064 | withval=$with_dec_threads; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9066 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9067 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9068 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9069 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9070 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9071 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9073 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9074 | fi |
| 9075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9076 | |
| 9077 | # Templates for things AC_DEFINEd more than once. |
| 9078 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9079 | |
| 9080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | |
| 9082 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
| 9084 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9086 | # Check whether --with-threads was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9087 | if test "${with_threads+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9088 | withval=$with_threads; |
| 9089 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9090 | |
| 9091 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9092 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9093 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9094 | # Check whether --with-thread was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9095 | if test "${with_thread+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9096 | withval=$with_thread; with_threads=$with_thread |
| 9097 | fi |
| 9098 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9099 | |
| 9100 | if test -z "$with_threads" |
| 9101 | then with_threads="yes" |
| 9102 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
| 9104 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9105 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9106 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9107 | if test "$with_threads" = "no" |
| 9108 | then |
| 9109 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9110 | elif test "$ac_cv_pthread_is_default" = yes |
| 9111 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9112 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9113 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9114 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9115 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9116 | |
| 9117 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9119 | elif test "$ac_cv_kpthread" = "yes" |
| 9120 | then |
| 9121 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9122 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 9123 | CXX="$CXX -Kpthread" |
| 9124 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9125 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9126 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9127 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9128 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9129 | elif test "$ac_cv_kthread" = "yes" |
| 9130 | then |
| 9131 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9132 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 9133 | CXX="$CXX -Kthread" |
| 9134 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9135 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9136 | |
| 9137 | posix_threads=yes |
| 9138 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9139 | elif test "$ac_cv_pthread" = "yes" |
| 9140 | then |
| 9141 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9142 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 9143 | CXX="$CXX -pthread" |
| 9144 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9145 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9146 | |
| 9147 | posix_threads=yes |
| 9148 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9149 | else |
| 9150 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9151 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9152 | fi |
| 9153 | if test ! -z "$withval" -a -d "$withval" |
| 9154 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9155 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9156 | |
| 9157 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 9158 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 9159 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9161 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 9162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9163 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9164 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9165 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9166 | #ifdef _POSIX_THREADS |
| 9167 | yes |
| 9168 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 | |
| 9170 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9171 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9172 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9173 | unistd_defines_pthreads=yes |
| 9174 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9175 | unistd_defines_pthreads=no |
| 9176 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9177 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9178 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 9180 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9181 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9182 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9183 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9184 | 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] | 9185 | if test "x$ac_cv_header_cthreads_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9186 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9187 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9188 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9191 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9192 | |
| 9193 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9194 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9195 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9196 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9197 | 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] | 9198 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9199 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9200 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9201 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9203 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9204 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9205 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9206 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9207 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9208 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 |
| 9210 | $as_echo_n "checking for --with-pth... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9212 | # Check whether --with-pth was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9213 | if test "${with_pth+set}" = set; then : |
| 9214 | withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9215 | $as_echo "$withval" >&6; } |
| 9216 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | |
| 9218 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9219 | $as_echo "#define HAVE_PTH 1" >>confdefs.h |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9220 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9221 | LIBS="-lpth $LIBS" |
| 9222 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9223 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9225 | $as_echo "no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9226 | |
| 9227 | # Just looking for pthread_create in libpthread is not enough: |
| 9228 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9229 | # So we really have to include pthread.h, and then link. |
| 9230 | _libs=$LIBS |
| 9231 | LIBS="$LIBS -lpthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 9233 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 9234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9235 | /* end confdefs.h. */ |
Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9236 | |
| 9237 | #include <stdio.h> |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9238 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9239 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9240 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9241 | int |
| 9242 | main () |
| 9243 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9244 | |
| 9245 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9246 | ; |
| 9247 | return 0; |
| 9248 | } |
| 9249 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9250 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9251 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9253 | $as_echo "yes" >&6; } |
| 9254 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9255 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9256 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9257 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9259 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9260 | LIBS=$_libs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9261 | 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] | 9262 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9263 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9264 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9265 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9266 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9267 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9268 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9269 | 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] | 9270 | if test "x$ac_cv_header_atheos_threads_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9271 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9272 | |
| 9273 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9274 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9275 | |
| 9276 | THREADOBJ="Python/thread.o" |
| 9277 | else |
| 9278 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9279 | 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] | 9280 | if test "x$ac_cv_header_kernel_OS_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9281 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9282 | |
| 9283 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9284 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9285 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9286 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9287 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9288 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 9290 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9291 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9292 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9294 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9295 | LIBS="-lpthreads $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9297 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9299 | /* Override any GCC internal prototype to avoid an error. |
| 9300 | Use char because int might match the return type of a GCC |
| 9301 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9302 | #ifdef __cplusplus |
| 9303 | extern "C" |
| 9304 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9305 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9306 | int |
| 9307 | main () |
| 9308 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9309 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | ; |
| 9311 | return 0; |
| 9312 | } |
| 9313 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9314 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9315 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9316 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9317 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9318 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9319 | rm -f core conftest.err conftest.$ac_objext \ |
| 9320 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9321 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9322 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 9324 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9325 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9326 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9327 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9328 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9329 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9330 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9331 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9332 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 9334 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9335 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9336 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9339 | LIBS="-lc_r $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9341 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9343 | /* Override any GCC internal prototype to avoid an error. |
| 9344 | Use char because int might match the return type of a GCC |
| 9345 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | #ifdef __cplusplus |
| 9347 | extern "C" |
| 9348 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | int |
| 9351 | main () |
| 9352 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9353 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | ; |
| 9355 | return 0; |
| 9356 | } |
| 9357 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9358 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9359 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9360 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9361 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9362 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9363 | rm -f core conftest.err conftest.$ac_objext \ |
| 9364 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9366 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 9368 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9369 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9370 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9371 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9372 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9373 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9374 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9375 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9376 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 9378 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9379 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9380 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9381 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9383 | LIBS="-lpthread $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9385 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9387 | /* Override any GCC internal prototype to avoid an error. |
| 9388 | Use char because int might match the return type of a GCC |
| 9389 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9390 | #ifdef __cplusplus |
| 9391 | extern "C" |
| 9392 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9394 | int |
| 9395 | main () |
| 9396 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9397 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | ; |
| 9399 | return 0; |
| 9400 | } |
| 9401 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9402 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9403 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9404 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9405 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9406 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9407 | rm -f core conftest.err conftest.$ac_objext \ |
| 9408 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9409 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9410 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 9412 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9413 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9414 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9415 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9416 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9417 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9418 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9419 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9420 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 9422 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9423 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9424 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9426 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9427 | LIBS="-lcma $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9429 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9431 | /* Override any GCC internal prototype to avoid an error. |
| 9432 | Use char because int might match the return type of a GCC |
| 9433 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | #ifdef __cplusplus |
| 9435 | extern "C" |
| 9436 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | int |
| 9439 | main () |
| 9440 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9441 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9442 | ; |
| 9443 | return 0; |
| 9444 | } |
| 9445 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9446 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9448 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9449 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9450 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9451 | rm -f core conftest.err conftest.$ac_objext \ |
| 9452 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9453 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9454 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 9456 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9457 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9458 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9459 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9460 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9461 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9462 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9463 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 9464 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9465 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 9466 | fi |
| 9467 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9468 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9469 | fi |
| 9470 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 9471 | fi |
| 9472 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9473 | fi |
| 9474 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9475 | fi |
| 9476 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9477 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9478 | fi |
| 9479 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9480 | |
| 9481 | fi |
| 9482 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9483 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9484 | rm -f core conftest.err conftest.$ac_objext \ |
| 9485 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9486 | fi |
| 9487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9488 | fi |
| 9489 | |
| 9490 | |
| 9491 | fi |
| 9492 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9493 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9494 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 9496 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9497 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9498 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9501 | LIBS="-lmpc $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9503 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9505 | /* Override any GCC internal prototype to avoid an error. |
| 9506 | Use char because int might match the return type of a GCC |
| 9507 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9508 | #ifdef __cplusplus |
| 9509 | extern "C" |
| 9510 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9511 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9512 | int |
| 9513 | main () |
| 9514 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9515 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | ; |
| 9517 | return 0; |
| 9518 | } |
| 9519 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9520 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9522 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9523 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9524 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9525 | rm -f core conftest.err conftest.$ac_objext \ |
| 9526 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9527 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9528 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 9530 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9531 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9532 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9533 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9534 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9535 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9536 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9537 | fi |
| 9538 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9539 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 9540 | if test "$posix_threads" != "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
| 9542 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9543 | if ${ac_cv_lib_thread_thr_create+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9544 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9547 | LIBS="-lthread $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9549 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9550 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9551 | /* Override any GCC internal prototype to avoid an error. |
| 9552 | Use char because int might match the return type of a GCC |
| 9553 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | #ifdef __cplusplus |
| 9555 | extern "C" |
| 9556 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9557 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | int |
| 9559 | main () |
| 9560 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9561 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9562 | ; |
| 9563 | return 0; |
| 9564 | } |
| 9565 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9566 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9568 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9569 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9570 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9571 | rm -f core conftest.err conftest.$ac_objext \ |
| 9572 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9574 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
| 9576 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9577 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9578 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9579 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9580 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9581 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9582 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9583 | fi |
| 9584 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9585 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9586 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9587 | if test "$USE_THREAD_MODULE" != "#" |
| 9588 | then |
| 9589 | # If the above checks didn't disable threads, (at least) OSF1 |
| 9590 | # needs this '-threads' argument during linking. |
| 9591 | case $ac_sys_system in |
| 9592 | OSF1) LDLAST=-threads;; |
| 9593 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 9594 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9595 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9596 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9597 | if test "$posix_threads" = "yes"; then |
| 9598 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9599 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9600 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9601 | |
| 9602 | fi |
| 9603 | |
| 9604 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 9605 | case $ac_sys_system/$ac_sys_release in |
Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9606 | SunOS/5.6) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9607 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9608 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9609 | ;; |
| 9610 | SunOS/5.8) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9611 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9612 | |
| 9613 | ;; |
Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9614 | AIX/*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9615 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 9616 | |
| 9617 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9618 | esac |
| 9619 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 9621 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9622 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9623 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9624 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9625 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9626 | ac_cv_pthread_system_supported=no |
| 9627 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9629 | /* end confdefs.h. */ |
Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9630 | |
| 9631 | #include <stdio.h> |
| 9632 | #include <pthread.h> |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9633 | void *foo(void *parm) { |
| 9634 | return NULL; |
| 9635 | } |
| 9636 | main() { |
| 9637 | pthread_attr_t attr; |
| 9638 | pthread_t id; |
| 9639 | if (pthread_attr_init(&attr)) exit(-1); |
| 9640 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 9641 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 9642 | exit(0); |
| 9643 | } |
| 9644 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9645 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9646 | ac_cv_pthread_system_supported=yes |
| 9647 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9648 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9649 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9651 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9652 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9653 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9654 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9655 | fi |
| 9656 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 9658 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9659 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 9660 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9661 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9662 | |
| 9663 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9664 | for ac_func in pthread_sigmask |
| 9665 | do : |
| 9666 | 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] | 9667 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9668 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9669 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9670 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9671 | case $ac_sys_system in |
| 9672 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9673 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9674 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9675 | |
| 9676 | ;; |
| 9677 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9678 | fi |
| 9679 | done |
| 9680 | |
Christian Heimes | 0d604cf | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 9681 | for ac_func in pthread_atfork |
| 9682 | do : |
| 9683 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" |
| 9684 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : |
| 9685 | cat >>confdefs.h <<_ACEOF |
| 9686 | #define HAVE_PTHREAD_ATFORK 1 |
| 9687 | _ACEOF |
| 9688 | |
| 9689 | fi |
| 9690 | done |
| 9691 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9692 | fi |
| 9693 | |
| 9694 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9695 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9696 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 9698 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9699 | # Check whether --enable-ipv6 was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9700 | if test "${enable_ipv6+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9701 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9702 | no) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9704 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9705 | ipv6=no |
| 9706 | ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9707 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9708 | $as_echo "yes" >&6; } |
| 9709 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9710 | |
| 9711 | ipv6=yes |
| 9712 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9713 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9717 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9718 | /* AF_INET6 available check */ |
| 9719 | #include <sys/types.h> |
| 9720 | #include <sys/socket.h> |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9721 | int |
| 9722 | main () |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9723 | { |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9724 | int domain = AF_INET6; |
| 9725 | ; |
| 9726 | return 0; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9727 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | _ACEOF |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9729 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9730 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9732 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9733 | ipv6=yes |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9734 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9735 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9736 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9738 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9739 | ipv6=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9740 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9741 | fi |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9743 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9744 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 9746 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 9747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9748 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9749 | |
| 9750 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9751 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | int |
| 9753 | main () |
| 9754 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9755 | struct sockaddr_in6 x; |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9756 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | ; |
| 9758 | return 0; |
| 9759 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9762 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9763 | |
| 9764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9765 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9766 | ipv6=yes |
| 9767 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9768 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9769 | |
| 9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9771 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9772 | ipv6=no |
| 9773 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9774 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9775 | 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] | 9776 | fi |
| 9777 | |
| 9778 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9779 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9780 | |
| 9781 | fi |
| 9782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9783 | fi |
| 9784 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9785 | |
| 9786 | ipv6type=unknown |
| 9787 | ipv6lib=none |
| 9788 | ipv6trylibc=no |
| 9789 | |
| 9790 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 9792 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9793 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 9794 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9795 | case $i in |
| 9796 | inria) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9798 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9799 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9800 | #include <netinet/in.h> |
| 9801 | #ifdef IPV6_INRIA_VERSION |
| 9802 | yes |
| 9803 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9804 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9805 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9806 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9807 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9808 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9809 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9810 | |
| 9811 | ;; |
| 9812 | kame) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9814 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9815 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9816 | #include <netinet/in.h> |
| 9817 | #ifdef __KAME__ |
| 9818 | yes |
| 9819 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9822 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9823 | ipv6type=$i; |
| 9824 | ipv6lib=inet6 |
| 9825 | ipv6libdir=/usr/local/v6/lib |
| 9826 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9827 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9828 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9829 | |
| 9830 | ;; |
| 9831 | linux-glibc) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9833 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9834 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9835 | #include <features.h> |
| 9836 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 9837 | yes |
| 9838 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9839 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9841 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9842 | ipv6type=$i; |
| 9843 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9844 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9845 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9846 | |
| 9847 | ;; |
| 9848 | linux-inet6) |
| 9849 | if test -d /usr/inet6; then |
| 9850 | ipv6type=$i |
| 9851 | ipv6lib=inet6 |
| 9852 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9853 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9854 | fi |
| 9855 | ;; |
| 9856 | solaris) |
| 9857 | if test -f /etc/netconfig; then |
Antoine Pitrou | 31e8595 | 2011-01-03 18:57:14 +0000 | [diff] [blame] | 9858 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9859 | ipv6type=$i |
| 9860 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9861 | fi |
| 9862 | fi |
| 9863 | ;; |
| 9864 | toshiba) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9866 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9867 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9868 | #include <sys/param.h> |
| 9869 | #ifdef _TOSHIBA_INET6 |
| 9870 | yes |
| 9871 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9873 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9874 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9875 | ipv6type=$i; |
| 9876 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9877 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9878 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9879 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9880 | |
| 9881 | ;; |
| 9882 | v6d) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9884 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9885 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9886 | #include </usr/local/v6/include/sys/v6config.h> |
| 9887 | #ifdef __V6D__ |
| 9888 | yes |
| 9889 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9892 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9893 | ipv6type=$i; |
| 9894 | ipv6lib=v6; |
| 9895 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9896 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9897 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9898 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9899 | |
| 9900 | ;; |
| 9901 | zeta) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9903 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9904 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9905 | #include <sys/param.h> |
| 9906 | #ifdef _ZETA_MINAMI_INET6 |
| 9907 | yes |
| 9908 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9911 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9912 | ipv6type=$i; |
| 9913 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9914 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9915 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9916 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9917 | |
| 9918 | ;; |
| 9919 | esac |
| 9920 | if test "$ipv6type" != "unknown"; then |
| 9921 | break |
| 9922 | fi |
| 9923 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 9925 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9926 | fi |
| 9927 | |
| 9928 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 9929 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 9930 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 9931 | echo "using lib$ipv6lib" |
| 9932 | else |
| 9933 | if test $ipv6trylibc = "yes"; then |
| 9934 | echo "using libc" |
| 9935 | else |
| 9936 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 9937 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 9938 | echo 'ipv6 kit and compile beforehand.' |
| 9939 | exit 1 |
| 9940 | fi |
| 9941 | fi |
| 9942 | fi |
| 9943 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
| 9945 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
| 9946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9947 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9948 | |
| 9949 | #include <Carbon/Carbon.h> |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9950 | int |
| 9951 | main () |
| 9952 | { |
| 9953 | FSIORefNum fRef = 0 |
| 9954 | ; |
| 9955 | return 0; |
| 9956 | } |
Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9957 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9958 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9959 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9960 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9961 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9962 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9963 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9965 | $as_echo "yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9966 | |
Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9967 | else |
| 9968 | |
| 9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9970 | $as_echo "no" >&6; } |
| 9971 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9972 | fi |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9974 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9975 | # Check for --with-doc-strings |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 9977 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9978 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9979 | # Check whether --with-doc-strings was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9980 | if test "${with_doc_strings+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9981 | withval=$with_doc_strings; |
| 9982 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9983 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9984 | |
| 9985 | if test -z "$with_doc_strings" |
| 9986 | then with_doc_strings="yes" |
| 9987 | fi |
| 9988 | if test "$with_doc_strings" != "no" |
| 9989 | then |
| 9990 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9991 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9992 | |
| 9993 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 9995 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9996 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9997 | # Check for Python-specific malloc support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
| 9999 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10000 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10001 | # Check whether --with-tsc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10002 | if test "${with_tsc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10003 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10004 | if test "$withval" != no |
| 10005 | then |
| 10006 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10007 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10008 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10010 | $as_echo "yes" >&6; } |
| 10011 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10012 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10013 | fi |
| 10014 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10016 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10017 | fi |
| 10018 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10019 | |
| 10020 | # Check for Python-specific malloc support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 10022 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10023 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10024 | # Check whether --with-pymalloc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10025 | if test "${with_pymalloc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10026 | withval=$with_pymalloc; |
| 10027 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10028 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10029 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10030 | if test -z "$with_pymalloc" |
| 10031 | then with_pymalloc="yes" |
| 10032 | fi |
| 10033 | if test "$with_pymalloc" != "no" |
| 10034 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10035 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10036 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10037 | |
| 10038 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 10040 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10041 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10042 | # Check for Valgrind support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 10044 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10045 | |
| 10046 | # Check whether --with-valgrind was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10047 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10048 | withval=$with_valgrind; |
| 10049 | else |
| 10050 | with_valgrind=no |
| 10051 | fi |
| 10052 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 10054 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10055 | if test "$with_valgrind" != no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10056 | 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] | 10057 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10058 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10059 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10060 | |
| 10061 | else |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10062 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10063 | |
| 10064 | fi |
| 10065 | |
| 10066 | |
| 10067 | fi |
| 10068 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10069 | # Check for --with-wctype-functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 |
| 10071 | $as_echo_n "checking for --with-wctype-functions... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10072 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10073 | # Check whether --with-wctype-functions was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10074 | if test "${with_wctype_functions+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10075 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10076 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10077 | then |
| 10078 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10079 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10080 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10082 | $as_echo "yes" >&6; } |
| 10083 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10084 | $as_echo "no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10085 | fi |
| 10086 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10088 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10089 | fi |
| 10090 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10091 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10092 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10093 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 10094 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10095 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10096 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 10097 | # 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] | 10098 | for ac_func in dlopen |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10099 | do : |
| 10100 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10101 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10102 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10103 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10104 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10105 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10106 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10107 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10108 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10109 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10110 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 10111 | # loading of modules. |
| 10112 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 10114 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10115 | if test -z "$DYNLOADFILE" |
| 10116 | then |
| 10117 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 10118 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 10119 | if test "$ac_cv_func_dlopen" = yes |
| 10120 | then DYNLOADFILE="dynload_shlib.o" |
| 10121 | else DYNLOADFILE="dynload_aix.o" |
| 10122 | fi |
| 10123 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10124 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 10125 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 10126 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 10127 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10128 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10129 | *) |
| 10130 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 10131 | # out any dynamic loading |
| 10132 | if test "$ac_cv_func_dlopen" = yes |
| 10133 | then DYNLOADFILE="dynload_shlib.o" |
| 10134 | else DYNLOADFILE="dynload_stub.o" |
| 10135 | fi |
| 10136 | ;; |
| 10137 | esac |
| 10138 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 10140 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10141 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 10142 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10143 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10144 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10145 | |
| 10146 | fi |
| 10147 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10148 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 10149 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10150 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 10152 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10153 | if test -z "$MACHDEP_OBJS" |
| 10154 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10155 | MACHDEP_OBJS=$extra_machdep_objs |
| 10156 | else |
| 10157 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10158 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 |
| 10160 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10161 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10162 | # checks for library functions |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 10163 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 10164 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 10165 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10166 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 10167 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 10168 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 10169 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 10170 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 10171 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 10172 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10173 | setlocale setregid setreuid setresuid setresgid \ |
| 10174 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 10175 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 10176 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 10177 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10178 | do : |
| 10179 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10180 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10181 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10182 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10183 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10184 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10185 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10186 | fi |
| 10187 | done |
| 10188 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10189 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10190 | # For some functions, having a definition is not sufficient, since |
| 10191 | # we want to take their address. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 10193 | $as_echo_n "checking for chroot... " >&6; } |
| 10194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10195 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10196 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10197 | int |
| 10198 | main () |
| 10199 | { |
| 10200 | void *x=chroot |
| 10201 | ; |
| 10202 | return 0; |
| 10203 | } |
| 10204 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10205 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10206 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10207 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10208 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10210 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10211 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10213 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10214 | |
| 10215 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 10218 | $as_echo_n "checking for link... " >&6; } |
| 10219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10220 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10221 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10222 | int |
| 10223 | main () |
| 10224 | { |
| 10225 | void *x=link |
| 10226 | ; |
| 10227 | return 0; |
| 10228 | } |
| 10229 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10230 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10231 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10232 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10233 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10235 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10236 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10238 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10239 | |
| 10240 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 10243 | $as_echo_n "checking for symlink... " >&6; } |
| 10244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10245 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10246 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10247 | int |
| 10248 | main () |
| 10249 | { |
| 10250 | void *x=symlink |
| 10251 | ; |
| 10252 | return 0; |
| 10253 | } |
| 10254 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10255 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10256 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10257 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10258 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10260 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10261 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10263 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10264 | |
| 10265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 10268 | $as_echo_n "checking for fchdir... " >&6; } |
| 10269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10270 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10271 | #include <unistd.h> |
| 10272 | int |
| 10273 | main () |
| 10274 | { |
| 10275 | void *x=fchdir |
| 10276 | ; |
| 10277 | return 0; |
| 10278 | } |
| 10279 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10280 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10281 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10282 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10283 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10285 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10286 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10288 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10289 | |
| 10290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 10293 | $as_echo_n "checking for fsync... " >&6; } |
| 10294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10295 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10296 | #include <unistd.h> |
| 10297 | int |
| 10298 | main () |
| 10299 | { |
| 10300 | void *x=fsync |
| 10301 | ; |
| 10302 | return 0; |
| 10303 | } |
| 10304 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10305 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10306 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10307 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10308 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10310 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10311 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10313 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10314 | |
| 10315 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 10318 | $as_echo_n "checking for fdatasync... " >&6; } |
| 10319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10320 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10321 | #include <unistd.h> |
| 10322 | int |
| 10323 | main () |
| 10324 | { |
| 10325 | void *x=fdatasync |
| 10326 | ; |
| 10327 | return 0; |
| 10328 | } |
| 10329 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10330 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10331 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10332 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10333 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10335 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10336 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10338 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10339 | |
| 10340 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 10343 | $as_echo_n "checking for epoll... " >&6; } |
| 10344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10345 | /* end confdefs.h. */ |
| 10346 | #include <sys/epoll.h> |
| 10347 | int |
| 10348 | main () |
| 10349 | { |
| 10350 | void *x=epoll_create |
| 10351 | ; |
| 10352 | return 0; |
| 10353 | } |
| 10354 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10355 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10356 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10357 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10358 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10360 | $as_echo "yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10361 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10363 | $as_echo "no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10364 | |
| 10365 | fi |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 10368 | $as_echo_n "checking for kqueue... " >&6; } |
| 10369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10370 | /* end confdefs.h. */ |
| 10371 | |
| 10372 | #include <sys/types.h> |
| 10373 | #include <sys/event.h> |
| 10374 | |
| 10375 | int |
| 10376 | main () |
| 10377 | { |
| 10378 | int x=kqueue() |
| 10379 | ; |
| 10380 | return 0; |
| 10381 | } |
| 10382 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10383 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10384 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10385 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10386 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10388 | $as_echo "yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10389 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10391 | $as_echo "no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10392 | |
| 10393 | fi |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10394 | 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] | 10395 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 10396 | # functions ctermid_r, setgroups in the library, but no prototype |
| 10397 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 10398 | # address to avoid compiler warnings and potential miscompilations |
| 10399 | # because of the missing prototypes. |
| 10400 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 10402 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 10403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10404 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10405 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10406 | #include <stdio.h> |
| 10407 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10408 | int |
| 10409 | main () |
| 10410 | { |
| 10411 | void* p = ctermid_r |
| 10412 | ; |
| 10413 | return 0; |
| 10414 | } |
| 10415 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10416 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10417 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10418 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10419 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10421 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10422 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10424 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10425 | |
| 10426 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10428 | |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 10430 | $as_echo_n "checking for flock declaration... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10431 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10432 | $as_echo_n "(cached) " >&6 |
| 10433 | else |
| 10434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10435 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10436 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10437 | int |
| 10438 | main () |
| 10439 | { |
| 10440 | void* p = flock |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10441 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10442 | ; |
| 10443 | return 0; |
| 10444 | } |
| 10445 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10446 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10447 | ac_cv_flock_decl=yes |
| 10448 | else |
| 10449 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10450 | |
| 10451 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10453 | |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10454 | fi |
| 10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 10456 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 10457 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 10458 | for ac_func in flock |
| 10459 | do : |
| 10460 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10461 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10462 | cat >>confdefs.h <<_ACEOF |
| 10463 | #define HAVE_FLOCK 1 |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10464 | _ACEOF |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10465 | |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10466 | else |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10467 | { $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] | 10468 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10469 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10470 | $as_echo_n "(cached) " >&6 |
| 10471 | else |
| 10472 | ac_check_lib_save_LIBS=$LIBS |
| 10473 | LIBS="-lbsd $LIBS" |
| 10474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10475 | /* end confdefs.h. */ |
| 10476 | |
| 10477 | /* Override any GCC internal prototype to avoid an error. |
| 10478 | Use char because int might match the return type of a GCC |
| 10479 | builtin and then its argument prototype would still apply. */ |
| 10480 | #ifdef __cplusplus |
| 10481 | extern "C" |
| 10482 | #endif |
| 10483 | char flock (); |
| 10484 | int |
| 10485 | main () |
| 10486 | { |
| 10487 | return flock (); |
| 10488 | ; |
| 10489 | return 0; |
| 10490 | } |
| 10491 | _ACEOF |
| 10492 | if ac_fn_c_try_link "$LINENO"; then : |
| 10493 | ac_cv_lib_bsd_flock=yes |
| 10494 | else |
| 10495 | ac_cv_lib_bsd_flock=no |
| 10496 | fi |
| 10497 | rm -f core conftest.err conftest.$ac_objext \ |
| 10498 | conftest$ac_exeext conftest.$ac_ext |
| 10499 | LIBS=$ac_check_lib_save_LIBS |
| 10500 | fi |
| 10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 10502 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10503 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10504 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10505 | |
| 10506 | |
| 10507 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 10508 | |
| 10509 | |
| 10510 | fi |
| 10511 | |
| 10512 | |
| 10513 | fi |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10514 | done |
| 10515 | |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10516 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10517 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 10519 | $as_echo_n "checking for getpagesize... " >&6; } |
| 10520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10521 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10522 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10523 | #include <unistd.h> |
| 10524 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10525 | int |
| 10526 | main () |
| 10527 | { |
| 10528 | void* p = getpagesize |
| 10529 | ; |
| 10530 | return 0; |
| 10531 | } |
| 10532 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10533 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10534 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10535 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10536 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10538 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10539 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10541 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10542 | |
| 10543 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10544 | 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] | 10545 | |
Charles-François Natali | 93a1175 | 2011-11-27 13:01:35 +0100 | [diff] [blame] | 10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
| 10547 | $as_echo_n "checking for broken unsetenv... " >&6; } |
| 10548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10549 | /* end confdefs.h. */ |
| 10550 | |
| 10551 | #include <stdlib.h> |
| 10552 | |
| 10553 | int |
| 10554 | main () |
| 10555 | { |
| 10556 | int res = unsetenv("DUMMY") |
| 10557 | ; |
| 10558 | return 0; |
| 10559 | } |
| 10560 | _ACEOF |
| 10561 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10563 | $as_echo "no" >&6; } |
| 10564 | else |
| 10565 | |
| 10566 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
| 10567 | |
| 10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10569 | $as_echo "yes" >&6; } |
| 10570 | |
| 10571 | fi |
| 10572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10573 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10574 | for ac_prog in true |
| 10575 | do |
| 10576 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10577 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10579 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10580 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10581 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10582 | else |
| 10583 | if test -n "$TRUE"; then |
| 10584 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 10585 | else |
| 10586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10587 | for as_dir in $PATH |
| 10588 | do |
| 10589 | IFS=$as_save_IFS |
| 10590 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10591 | for ac_exec_ext in '' $ac_executable_extensions; do |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 10592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10593 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10594 | $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] | 10595 | break 2 |
| 10596 | fi |
| 10597 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10598 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10599 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10600 | |
| 10601 | fi |
| 10602 | fi |
| 10603 | TRUE=$ac_cv_prog_TRUE |
| 10604 | if test -n "$TRUE"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 10606 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10607 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10609 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10610 | fi |
| 10611 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10612 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10613 | test -n "$TRUE" && break |
| 10614 | done |
| 10615 | test -n "$TRUE" || TRUE="/bin/true" |
| 10616 | |
| 10617 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 10619 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10620 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10621 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10622 | else |
| 10623 | ac_check_lib_save_LIBS=$LIBS |
| 10624 | LIBS="-lc $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10626 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10627 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10628 | /* Override any GCC internal prototype to avoid an error. |
| 10629 | Use char because int might match the return type of a GCC |
| 10630 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10631 | #ifdef __cplusplus |
| 10632 | extern "C" |
| 10633 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10634 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10635 | int |
| 10636 | main () |
| 10637 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10638 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10639 | ; |
| 10640 | return 0; |
| 10641 | } |
| 10642 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10643 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10644 | ac_cv_lib_c_inet_aton=yes |
| 10645 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10646 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10647 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10648 | rm -f core conftest.err conftest.$ac_objext \ |
| 10649 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10650 | LIBS=$ac_check_lib_save_LIBS |
| 10651 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 10653 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10654 | 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] | 10655 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10656 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 10658 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10659 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10660 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10661 | else |
| 10662 | ac_check_lib_save_LIBS=$LIBS |
| 10663 | LIBS="-lresolv $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10665 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10666 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10667 | /* Override any GCC internal prototype to avoid an error. |
| 10668 | Use char because int might match the return type of a GCC |
| 10669 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10670 | #ifdef __cplusplus |
| 10671 | extern "C" |
| 10672 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10673 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10674 | int |
| 10675 | main () |
| 10676 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10677 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10678 | ; |
| 10679 | return 0; |
| 10680 | } |
| 10681 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10682 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10683 | ac_cv_lib_resolv_inet_aton=yes |
| 10684 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10685 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10686 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10687 | rm -f core conftest.err conftest.$ac_objext \ |
| 10688 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10689 | LIBS=$ac_check_lib_save_LIBS |
| 10690 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 10692 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10693 | 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] | 10694 | cat >>confdefs.h <<_ACEOF |
| 10695 | #define HAVE_LIBRESOLV 1 |
| 10696 | _ACEOF |
| 10697 | |
| 10698 | LIBS="-lresolv $LIBS" |
| 10699 | |
| 10700 | fi |
| 10701 | |
| 10702 | |
| 10703 | fi |
| 10704 | |
| 10705 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10706 | # On Tru64, chflags seems to be present, but calling it will |
| 10707 | # exit Python |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 10709 | $as_echo_n "checking for chflags... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10710 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10711 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10712 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10713 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10714 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10715 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10717 | /* end confdefs.h. */ |
Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10718 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10719 | #include <sys/stat.h> |
| 10720 | #include <unistd.h> |
| 10721 | int main(int argc, char*argv[]) |
| 10722 | { |
| 10723 | if(chflags(argv[0], 0) != 0) |
| 10724 | return 1; |
| 10725 | return 0; |
| 10726 | } |
Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10727 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10728 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10729 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10730 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10731 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10732 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10733 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10734 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10735 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 10736 | fi |
| 10737 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10738 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10739 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 10741 | $as_echo "$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10742 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10743 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10744 | if test "x$ac_cv_func_chflags" = xyes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10745 | ac_cv_have_chflags="yes" |
| 10746 | else |
| 10747 | ac_cv_have_chflags="no" |
| 10748 | fi |
| 10749 | |
| 10750 | fi |
| 10751 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10752 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10753 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10754 | |
| 10755 | fi |
| 10756 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 10758 | $as_echo_n "checking for lchflags... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10759 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10760 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10761 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10762 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10763 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10764 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10766 | /* end confdefs.h. */ |
Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10767 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10768 | #include <sys/stat.h> |
| 10769 | #include <unistd.h> |
| 10770 | int main(int argc, char*argv[]) |
| 10771 | { |
| 10772 | if(lchflags(argv[0], 0) != 0) |
| 10773 | return 1; |
| 10774 | return 0; |
| 10775 | } |
Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10776 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10777 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10778 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10779 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10780 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10781 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10782 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10783 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10784 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10785 | fi |
| 10786 | |
| 10787 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10788 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 10790 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10791 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10792 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10793 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10794 | ac_cv_have_lchflags="yes" |
| 10795 | else |
| 10796 | ac_cv_have_lchflags="no" |
| 10797 | fi |
| 10798 | |
| 10799 | fi |
| 10800 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10801 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10802 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10803 | |
| 10804 | fi |
| 10805 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10806 | case $ac_sys_system/$ac_sys_release in |
| 10807 | Darwin/*) |
| 10808 | _CUR_CFLAGS="${CFLAGS}" |
| 10809 | _CUR_LDFLAGS="${LDFLAGS}" |
| 10810 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 10811 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 10812 | ;; |
| 10813 | esac |
| 10814 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 10816 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10817 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10818 | $as_echo_n "(cached) " >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10819 | else |
| 10820 | ac_check_lib_save_LIBS=$LIBS |
| 10821 | LIBS="-lz $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10823 | /* end confdefs.h. */ |
| 10824 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10825 | /* Override any GCC internal prototype to avoid an error. |
| 10826 | Use char because int might match the return type of a GCC |
| 10827 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10828 | #ifdef __cplusplus |
| 10829 | extern "C" |
| 10830 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10831 | char inflateCopy (); |
| 10832 | int |
| 10833 | main () |
| 10834 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10835 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 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_link "$LINENO"; then : |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10841 | ac_cv_lib_z_inflateCopy=yes |
| 10842 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10843 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10844 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10845 | rm -f core conftest.err conftest.$ac_objext \ |
| 10846 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10847 | LIBS=$ac_check_lib_save_LIBS |
| 10848 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 10850 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10851 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10852 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10853 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10854 | |
| 10855 | fi |
| 10856 | |
| 10857 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10858 | case $ac_sys_system/$ac_sys_release in |
| 10859 | Darwin/*) |
| 10860 | CFLAGS="${_CUR_CFLAGS}" |
| 10861 | LDFLAGS="${_CUR_LDFLAGS}" |
| 10862 | ;; |
| 10863 | esac |
| 10864 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 10866 | $as_echo_n "checking for hstrerror... " >&6; } |
| 10867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10868 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10869 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10870 | #include <netdb.h> |
| 10871 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10872 | int |
| 10873 | main () |
| 10874 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10875 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10876 | ; |
| 10877 | return 0; |
| 10878 | } |
| 10879 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10880 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10881 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10882 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10883 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10885 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10886 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10888 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10889 | |
| 10890 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10891 | rm -f core conftest.err conftest.$ac_objext \ |
| 10892 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10893 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 10895 | $as_echo_n "checking for inet_aton... " >&6; } |
| 10896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10897 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10898 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10899 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10900 | #include <sys/socket.h> |
| 10901 | #include <netinet/in.h> |
| 10902 | #include <arpa/inet.h> |
| 10903 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10904 | int |
| 10905 | main () |
| 10906 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10907 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10908 | ; |
| 10909 | return 0; |
| 10910 | } |
| 10911 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10912 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10913 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10914 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10915 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10917 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10918 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10920 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10921 | |
| 10922 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10923 | rm -f core conftest.err conftest.$ac_objext \ |
| 10924 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10925 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 10927 | $as_echo_n "checking for inet_pton... " >&6; } |
| 10928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10929 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10930 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10931 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10932 | #include <sys/socket.h> |
| 10933 | #include <netinet/in.h> |
| 10934 | #include <arpa/inet.h> |
| 10935 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10936 | int |
| 10937 | main () |
| 10938 | { |
| 10939 | void* p = inet_pton |
| 10940 | ; |
| 10941 | return 0; |
| 10942 | } |
| 10943 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10944 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10945 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10946 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10947 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10949 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10950 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10952 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10953 | |
| 10954 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10955 | 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] | 10956 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10957 | # 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] | 10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 10959 | $as_echo_n "checking for setgroups... " >&6; } |
| 10960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10961 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10962 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10963 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10964 | #ifdef HAVE_GRP_H |
| 10965 | #include <grp.h> |
| 10966 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10967 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10968 | int |
| 10969 | main () |
| 10970 | { |
| 10971 | void* p = setgroups |
| 10972 | ; |
| 10973 | return 0; |
| 10974 | } |
| 10975 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10976 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10977 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10978 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10979 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10981 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10982 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10984 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10985 | |
| 10986 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10987 | 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] | 10988 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10989 | # check for openpty and forkpty |
| 10990 | |
| 10991 | for ac_func in openpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10992 | do : |
| 10993 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10994 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10995 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10996 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10997 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10998 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10999 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 11001 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11002 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11003 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11005 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11006 | LIBS="-lutil $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11008 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11009 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11010 | /* Override any GCC internal prototype to avoid an error. |
| 11011 | Use char because int might match the return type of a GCC |
| 11012 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | #ifdef __cplusplus |
| 11014 | extern "C" |
| 11015 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11016 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11017 | int |
| 11018 | main () |
| 11019 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11020 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11021 | ; |
| 11022 | return 0; |
| 11023 | } |
| 11024 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11025 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11026 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11027 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11028 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11029 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11030 | rm -f core conftest.err conftest.$ac_objext \ |
| 11031 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11033 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 11035 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11036 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11037 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11038 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11039 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 11041 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11042 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11043 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11044 | else |
| 11045 | ac_check_lib_save_LIBS=$LIBS |
| 11046 | LIBS="-lbsd $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11048 | /* end confdefs.h. */ |
| 11049 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11050 | /* Override any GCC internal prototype to avoid an error. |
| 11051 | Use char because int might match the return type of a GCC |
| 11052 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11053 | #ifdef __cplusplus |
| 11054 | extern "C" |
| 11055 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11056 | char openpty (); |
| 11057 | int |
| 11058 | main () |
| 11059 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11060 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11061 | ; |
| 11062 | return 0; |
| 11063 | } |
| 11064 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11065 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11066 | ac_cv_lib_bsd_openpty=yes |
| 11067 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11068 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11069 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11070 | rm -f core conftest.err conftest.$ac_objext \ |
| 11071 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11072 | LIBS=$ac_check_lib_save_LIBS |
| 11073 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 11075 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11076 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11077 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11078 | LIBS="$LIBS -lbsd" |
| 11079 | fi |
| 11080 | |
| 11081 | |
| 11082 | fi |
| 11083 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11084 | |
| 11085 | fi |
| 11086 | done |
| 11087 | |
| 11088 | for ac_func in forkpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11089 | do : |
| 11090 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11091 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11092 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11093 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11094 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11095 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11096 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 11098 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11099 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11100 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11102 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11103 | LIBS="-lutil $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11105 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11106 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11107 | /* Override any GCC internal prototype to avoid an error. |
| 11108 | Use char because int might match the return type of a GCC |
| 11109 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11110 | #ifdef __cplusplus |
| 11111 | extern "C" |
| 11112 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11113 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | int |
| 11115 | main () |
| 11116 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11117 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | ; |
| 11119 | return 0; |
| 11120 | } |
| 11121 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11122 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11124 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11125 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11126 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11127 | rm -f core conftest.err conftest.$ac_objext \ |
| 11128 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11129 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11130 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 11132 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11133 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11134 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11135 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11136 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 11138 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11139 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11140 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11141 | else |
| 11142 | ac_check_lib_save_LIBS=$LIBS |
| 11143 | LIBS="-lbsd $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11145 | /* end confdefs.h. */ |
| 11146 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11147 | /* Override any GCC internal prototype to avoid an error. |
| 11148 | Use char because int might match the return type of a GCC |
| 11149 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11150 | #ifdef __cplusplus |
| 11151 | extern "C" |
| 11152 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11153 | char forkpty (); |
| 11154 | int |
| 11155 | main () |
| 11156 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11157 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11158 | ; |
| 11159 | return 0; |
| 11160 | } |
| 11161 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11162 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11163 | ac_cv_lib_bsd_forkpty=yes |
| 11164 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11165 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11166 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11167 | rm -f core conftest.err conftest.$ac_objext \ |
| 11168 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11169 | LIBS=$ac_check_lib_save_LIBS |
| 11170 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 11172 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11173 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11174 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11175 | LIBS="$LIBS -lbsd" |
| 11176 | fi |
| 11177 | |
| 11178 | |
| 11179 | fi |
| 11180 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11181 | |
| 11182 | fi |
| 11183 | done |
| 11184 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11185 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11186 | # Stuff for expat. |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11187 | for ac_func in memmove |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11188 | do : |
| 11189 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11190 | if test "x$ac_cv_func_memmove" = xyes; then : |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11191 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11192 | #define HAVE_MEMMOVE 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11193 | _ACEOF |
| 11194 | |
| 11195 | fi |
| 11196 | done |
| 11197 | |
| 11198 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11199 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11200 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11201 | do : |
| 11202 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11203 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11204 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11205 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11206 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11207 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11208 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11209 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11210 | done |
| 11211 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11212 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11213 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11214 | if test "x$ac_cv_func_dup2" = xyes; then : |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11215 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11216 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11217 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11218 | case " $LIBOBJS " in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11219 | *" dup2.$ac_objext "* ) ;; |
| 11220 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11221 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11222 | esac |
| 11223 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11224 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11225 | |
| 11226 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11227 | if test "x$ac_cv_func_getcwd" = xyes; then : |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11228 | $as_echo "#define HAVE_GETCWD 1" >>confdefs.h |
| 11229 | |
| 11230 | else |
| 11231 | case " $LIBOBJS " in |
| 11232 | *" getcwd.$ac_objext "* ) ;; |
| 11233 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
| 11234 | ;; |
| 11235 | esac |
| 11236 | |
| 11237 | fi |
| 11238 | |
| 11239 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11240 | if test "x$ac_cv_func_strdup" = xyes; then : |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11241 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 11242 | |
| 11243 | else |
| 11244 | case " $LIBOBJS " in |
| 11245 | *" strdup.$ac_objext "* ) ;; |
| 11246 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 11247 | ;; |
| 11248 | esac |
| 11249 | |
| 11250 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11251 | |
| 11252 | |
| 11253 | for ac_func in getpgrp |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11254 | do : |
| 11255 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11256 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11258 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11261 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11262 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11263 | int |
| 11264 | main () |
| 11265 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11266 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | ; |
| 11268 | return 0; |
| 11269 | } |
| 11270 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11271 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11273 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11274 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11275 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11276 | 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] | 11277 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11278 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11279 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11280 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11281 | for ac_func in setpgrp |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11282 | do : |
| 11283 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11284 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11285 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11286 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11287 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11289 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11290 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11291 | int |
| 11292 | main () |
| 11293 | { |
| 11294 | setpgrp(0,0); |
| 11295 | ; |
| 11296 | return 0; |
| 11297 | } |
| 11298 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11299 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11300 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11301 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11302 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11303 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11305 | |
| 11306 | fi |
| 11307 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11308 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11309 | for ac_func in gettimeofday |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11310 | do : |
| 11311 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11312 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11314 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11317 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11318 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | int |
| 11320 | main () |
| 11321 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11322 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 | ; |
| 11324 | return 0; |
| 11325 | } |
| 11326 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11327 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11328 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11329 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11330 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11331 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11333 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11334 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11335 | 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] | 11336 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11337 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11338 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11339 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11340 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 11342 | $as_echo_n "checking for major... " >&6; } |
| 11343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11344 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11345 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11346 | #if defined(MAJOR_IN_MKDEV) |
| 11347 | #include <sys/mkdev.h> |
| 11348 | #elif defined(MAJOR_IN_SYSMACROS) |
| 11349 | #include <sys/sysmacros.h> |
| 11350 | #else |
| 11351 | #include <sys/types.h> |
| 11352 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11353 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11354 | int |
| 11355 | main () |
| 11356 | { |
| 11357 | |
| 11358 | makedev(major(0),minor(0)); |
| 11359 | |
| 11360 | ; |
| 11361 | return 0; |
| 11362 | } |
| 11363 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11364 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11365 | |
| 11366 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11367 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11368 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11370 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11371 | |
| 11372 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11373 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11375 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11376 | |
| 11377 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11378 | rm -f core conftest.err conftest.$ac_objext \ |
| 11379 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11380 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11381 | # 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] | 11382 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 11384 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 11385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11386 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11387 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11388 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11389 | #include <sys/socket.h> |
| 11390 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11391 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11393 | int |
| 11394 | main () |
| 11395 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11396 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | ; |
| 11398 | return 0; |
| 11399 | } |
| 11400 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11401 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11402 | have_getaddrinfo=yes |
| 11403 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11404 | have_getaddrinfo=no |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11405 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11406 | rm -f core conftest.err conftest.$ac_objext \ |
| 11407 | conftest$ac_exeext conftest.$ac_ext |
| 11408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 11409 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11410 | if test $have_getaddrinfo = yes |
| 11411 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 11413 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11414 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11415 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11416 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11417 | if test "$cross_compiling" = yes; then : |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11418 | |
| 11419 | if test "${enable_ipv6+set}" = set; then |
| 11420 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" |
| 11421 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11422 | ac_cv_buggy_getaddrinfo=yes |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11423 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11424 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11426 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11427 | |
Stefan Krah | 0afe4e4 | 2012-11-22 23:56:51 +0100 | [diff] [blame] | 11428 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11429 | #include <sys/types.h> |
| 11430 | #include <netdb.h> |
| 11431 | #include <string.h> |
| 11432 | #include <sys/socket.h> |
| 11433 | #include <netinet/in.h> |
| 11434 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11435 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11436 | { |
| 11437 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 11438 | struct addrinfo hints, *ai, *aitop; |
| 11439 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 11440 | |
| 11441 | for (passive = 0; passive <= 1; passive++) { |
| 11442 | memset(&hints, 0, sizeof(hints)); |
| 11443 | hints.ai_family = AF_UNSPEC; |
| 11444 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 11445 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 11446 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11447 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 11448 | (void)gai_strerror(gaierr); |
| 11449 | goto bad; |
| 11450 | } |
| 11451 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 11452 | if (ai->ai_addr == NULL || |
| 11453 | ai->ai_addrlen == 0 || |
| 11454 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 11455 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 11456 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 11457 | goto bad; |
| 11458 | } |
| 11459 | switch (ai->ai_family) { |
| 11460 | case AF_INET: |
| 11461 | if (strcmp(strport, "54321") != 0) { |
| 11462 | goto bad; |
| 11463 | } |
| 11464 | if (passive) { |
| 11465 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 11466 | goto bad; |
| 11467 | } |
| 11468 | } else { |
| 11469 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 11470 | goto bad; |
| 11471 | } |
| 11472 | } |
| 11473 | inet4++; |
| 11474 | break; |
| 11475 | case AF_INET6: |
| 11476 | if (strcmp(strport, "54321") != 0) { |
| 11477 | goto bad; |
| 11478 | } |
| 11479 | if (passive) { |
| 11480 | if (strcmp(straddr, "::") != 0) { |
| 11481 | goto bad; |
| 11482 | } |
| 11483 | } else { |
| 11484 | if (strcmp(straddr, "::1") != 0) { |
| 11485 | goto bad; |
| 11486 | } |
| 11487 | } |
| 11488 | inet6++; |
| 11489 | break; |
| 11490 | case AF_UNSPEC: |
| 11491 | goto bad; |
| 11492 | break; |
| 11493 | default: |
| 11494 | /* another family support? */ |
| 11495 | break; |
| 11496 | } |
| 11497 | } |
| 11498 | } |
| 11499 | |
| 11500 | if (!(inet4 == 0 || inet4 == 2)) |
| 11501 | goto bad; |
| 11502 | if (!(inet6 == 0 || inet6 == 2)) |
| 11503 | goto bad; |
| 11504 | |
| 11505 | if (aitop) |
| 11506 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11507 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11508 | |
| 11509 | bad: |
| 11510 | if (aitop) |
| 11511 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11512 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11513 | } |
| 11514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11516 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11517 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11518 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11519 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11520 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11521 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11522 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11523 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11524 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11525 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11526 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11527 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11528 | |
Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 11530 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } |
| 11531 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 11532 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11533 | then |
| 11534 | if test $ipv6 = yes |
| 11535 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11536 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 11537 | echo ' or you can specify "--disable-ipv6"'. |
| 11538 | exit 1 |
| 11539 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11541 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11542 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11543 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11544 | fi |
Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11545 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11546 | for ac_func in getnameinfo |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11547 | do : |
| 11548 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11549 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11551 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11552 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11553 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11554 | fi |
| 11555 | done |
| 11556 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11557 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11558 | # checks for structures |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 11560 | $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] | 11561 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11562 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11563 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11565 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11566 | #include <sys/types.h> |
| 11567 | #include <sys/time.h> |
| 11568 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11570 | int |
| 11571 | main () |
| 11572 | { |
| 11573 | if ((struct tm *) 0) |
| 11574 | return 0; |
| 11575 | ; |
| 11576 | return 0; |
| 11577 | } |
| 11578 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11579 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11580 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11581 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11582 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11583 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11585 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 11587 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11588 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11590 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11591 | |
| 11592 | fi |
| 11593 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 11595 | $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] | 11596 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11597 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11598 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11600 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11601 | #include <sys/types.h> |
| 11602 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11604 | int |
| 11605 | main () |
| 11606 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11607 | struct tm tm; |
| 11608 | int *p = &tm.tm_sec; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11609 | return !p; |
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 : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11615 | ac_cv_struct_tm=time.h |
| 11616 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11617 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11618 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11620 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 11622 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11623 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11624 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11625 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11626 | |
| 11627 | fi |
| 11628 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11629 | 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] | 11630 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11632 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11633 | 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] | 11634 | |
| 11635 | cat >>confdefs.h <<_ACEOF |
| 11636 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 11637 | _ACEOF |
| 11638 | |
| 11639 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11640 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11642 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 11643 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11644 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11645 | |
| 11646 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11647 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 11648 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11649 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11650 | ac_have_decl=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11651 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11652 | ac_have_decl=0 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11653 | fi |
| 11654 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11655 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11656 | #define HAVE_DECL_TZNAME $ac_have_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11657 | _ACEOF |
| 11658 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 11660 | $as_echo_n "checking for tzname... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11661 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11662 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11663 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11665 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11666 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11667 | #if !HAVE_DECL_TZNAME |
| 11668 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11669 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11671 | int |
| 11672 | main () |
| 11673 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11674 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11675 | ; |
| 11676 | return 0; |
| 11677 | } |
| 11678 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11679 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11680 | ac_cv_var_tzname=yes |
| 11681 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11682 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11683 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11684 | rm -f core conftest.err conftest.$ac_objext \ |
| 11685 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11686 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 11688 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11689 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11691 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11692 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11693 | fi |
| 11694 | fi |
| 11695 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11696 | 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] | 11697 | 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] | 11698 | |
| 11699 | cat >>confdefs.h <<_ACEOF |
| 11700 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 11701 | _ACEOF |
| 11702 | |
| 11703 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11704 | fi |
| 11705 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11706 | 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] | 11707 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | cat >>confdefs.h <<_ACEOF |
| 11710 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 11711 | _ACEOF |
| 11712 | |
| 11713 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11714 | fi |
| 11715 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11716 | 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] | 11717 | 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] | 11718 | |
| 11719 | cat >>confdefs.h <<_ACEOF |
| 11720 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 11721 | _ACEOF |
| 11722 | |
| 11723 | |
| 11724 | fi |
| 11725 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11726 | 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] | 11727 | 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] | 11728 | |
| 11729 | cat >>confdefs.h <<_ACEOF |
| 11730 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 11731 | _ACEOF |
| 11732 | |
| 11733 | |
| 11734 | fi |
| 11735 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11736 | 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] | 11737 | 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] | 11738 | |
| 11739 | cat >>confdefs.h <<_ACEOF |
| 11740 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 11741 | _ACEOF |
| 11742 | |
| 11743 | |
| 11744 | fi |
| 11745 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11746 | 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] | 11747 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11749 | cat >>confdefs.h <<_ACEOF |
| 11750 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 11751 | _ACEOF |
| 11752 | |
| 11753 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11754 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11755 | |
| 11756 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11757 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11758 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11759 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 11760 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11761 | esac |
| 11762 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11763 | fi |
| 11764 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11766 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 11768 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11769 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11770 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11771 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11772 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11774 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11775 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11776 | int |
| 11777 | main () |
| 11778 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11779 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11780 | ; |
| 11781 | return 0; |
| 11782 | } |
| 11783 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11784 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11785 | ac_cv_header_time_altzone=yes |
| 11786 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11787 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11788 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11790 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11791 | fi |
| 11792 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 11794 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11795 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11796 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11797 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11798 | |
| 11799 | fi |
| 11800 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11801 | was_it_defined=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 11803 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 11804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11805 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11806 | |
| 11807 | #include <sys/types.h> |
| 11808 | #include <sys/select.h> |
| 11809 | #include <sys/time.h> |
| 11810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11811 | int |
| 11812 | main () |
| 11813 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11814 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11815 | ; |
| 11816 | return 0; |
| 11817 | } |
| 11818 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11819 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11820 | |
| 11821 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11822 | $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] | 11823 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11824 | was_it_defined=yes |
| 11825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11826 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 11829 | $as_echo "$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11830 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 11832 | $as_echo_n "checking for addrinfo... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11833 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11834 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11835 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11837 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11838 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11839 | int |
| 11840 | main () |
| 11841 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11842 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11843 | ; |
| 11844 | return 0; |
| 11845 | } |
| 11846 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11847 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11848 | ac_cv_struct_addrinfo=yes |
| 11849 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11850 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11851 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11853 | fi |
| 11854 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 11856 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11857 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11859 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11860 | |
| 11861 | fi |
| 11862 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 11864 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11865 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11866 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11867 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11869 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11870 | |
| 11871 | # include <sys/types.h> |
| 11872 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11873 | int |
| 11874 | main () |
| 11875 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11876 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11877 | ; |
| 11878 | return 0; |
| 11879 | } |
| 11880 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11881 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11882 | ac_cv_struct_sockaddr_storage=yes |
| 11883 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11884 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11885 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11887 | fi |
| 11888 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 11890 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11891 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11893 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11894 | |
| 11895 | fi |
| 11896 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11897 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11898 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 11900 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11901 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11902 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11903 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11905 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11906 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11907 | int |
| 11908 | main () |
| 11909 | { |
| 11910 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11911 | test_array [0] = 0; |
| 11912 | return test_array [0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11913 | |
| 11914 | ; |
| 11915 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11916 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11918 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11919 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11920 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11921 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11922 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11924 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 11926 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11927 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11928 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11929 | |
| 11930 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11931 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 11933 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11934 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11935 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11936 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11938 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11940 | int |
| 11941 | main () |
| 11942 | { |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11944 | #ifndef __cplusplus |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11945 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11946 | typedef int charset[2]; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11947 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11949 | char const *const *pcpcc; |
| 11950 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11951 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11952 | struct point {int x, y;}; |
| 11953 | static struct point const zero = {0,0}; |
| 11954 | /* AIX XL C 1.02.0.0 rejects this. |
| 11955 | It does not let you subtract one const X* pointer from another in |
| 11956 | an arm of an if-expression whose if-part is not a constant |
| 11957 | expression */ |
| 11958 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11959 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11960 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11961 | ++pcpcc; |
| 11962 | ppc = (char**) pcpcc; |
| 11963 | pcpcc = (char const *const *) ppc; |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11964 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 11965 | char tx; |
| 11966 | char *t = &tx; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11967 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11969 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11970 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11971 | } |
| 11972 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11973 | int x[] = {25, 17}; |
| 11974 | const int *foo = &x[0]; |
| 11975 | ++foo; |
| 11976 | } |
| 11977 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11978 | typedef const int *iptr; |
| 11979 | iptr p = 0; |
| 11980 | ++p; |
| 11981 | } |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11982 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11983 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11984 | struct s { int j; const int *ap[3]; } bx; |
| 11985 | struct s *b = &bx; b->j = 5; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11986 | } |
| 11987 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11988 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11989 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11990 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11991 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11992 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11994 | ; |
| 11995 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11996 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11997 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11998 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11999 | ac_cv_c_const=yes |
| 12000 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12001 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12004 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 12006 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12007 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12008 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12009 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12010 | |
| 12011 | fi |
| 12012 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12013 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12014 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 12016 | $as_echo_n "checking for working volatile... " >&6; } |
| 12017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12018 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | int |
| 12021 | main () |
| 12022 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12023 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | ; |
| 12025 | return 0; |
| 12026 | } |
| 12027 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12028 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12029 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12030 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12031 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12032 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12033 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12034 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12035 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 12038 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12039 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12040 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 12042 | $as_echo_n "checking for working signed char... " >&6; } |
| 12043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12044 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12046 | int |
| 12047 | main () |
| 12048 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12049 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12050 | ; |
| 12051 | return 0; |
| 12052 | } |
| 12053 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12054 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12055 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12056 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12057 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12058 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12059 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12060 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12061 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 12064 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12065 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12066 | have_prototypes=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 12068 | $as_echo_n "checking for prototypes... " >&6; } |
| 12069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12070 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12071 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | int |
| 12073 | main () |
| 12074 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12075 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12076 | ; |
| 12077 | return 0; |
| 12078 | } |
| 12079 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12080 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12081 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12082 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12083 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12084 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12085 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 12088 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12089 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12090 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 12092 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 12093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12094 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12095 | |
| 12096 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12097 | int foo(int x, ...) { |
| 12098 | va_list va; |
| 12099 | va_start(va, x); |
| 12100 | va_arg(va, int); |
| 12101 | va_arg(va, char *); |
| 12102 | va_arg(va, double); |
| 12103 | return 0; |
| 12104 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12106 | int |
| 12107 | main () |
| 12108 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12109 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12110 | ; |
| 12111 | return 0; |
| 12112 | } |
| 12113 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12114 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12115 | |
| 12116 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12117 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12119 | works=yes |
| 12120 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12121 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 12124 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12125 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12126 | # check for socketpair |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 12128 | $as_echo_n "checking for socketpair... " >&6; } |
| 12129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12130 | /* end confdefs.h. */ |
| 12131 | |
| 12132 | #include <sys/types.h> |
| 12133 | #include <sys/socket.h> |
| 12134 | |
| 12135 | int |
| 12136 | main () |
| 12137 | { |
| 12138 | void *x=socketpair |
| 12139 | ; |
| 12140 | return 0; |
| 12141 | } |
| 12142 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12143 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12144 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12145 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12146 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12148 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12149 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12151 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12152 | |
| 12153 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12154 | 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] | 12155 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12156 | # check if sockaddr has sa_len member |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 12158 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 12159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12160 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12161 | #include <sys/types.h> |
| 12162 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12163 | int |
| 12164 | main () |
| 12165 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12166 | struct sockaddr x; |
| 12167 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12168 | ; |
| 12169 | return 0; |
| 12170 | } |
| 12171 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12172 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12174 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12175 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12176 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12177 | |
| 12178 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12180 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12181 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12182 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12183 | 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] | 12184 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12185 | va_list_is_array=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
| 12187 | $as_echo_n "checking whether va_list is an array... " >&6; } |
| 12188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12189 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12190 | |
| 12191 | #ifdef HAVE_STDARG_PROTOTYPES |
| 12192 | #include <stdarg.h> |
| 12193 | #else |
| 12194 | #include <varargs.h> |
| 12195 | #endif |
| 12196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12197 | int |
| 12198 | main () |
| 12199 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12200 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12201 | ; |
| 12202 | return 0; |
| 12203 | } |
| 12204 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12205 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12206 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12207 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12209 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12210 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12211 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12212 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12213 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12214 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
| 12217 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12218 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12219 | # 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] | 12220 | |
| 12221 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12222 | 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] | 12223 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12224 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12225 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12226 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 12228 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12229 | OLD_CFLAGS=$CFLAGS |
| 12230 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12232 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12233 | |
| 12234 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12236 | int |
| 12237 | main () |
| 12238 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12239 | |
| 12240 | char *name; |
| 12241 | struct hostent *he, *res; |
| 12242 | char buffer[2048]; |
| 12243 | int buflen = 2048; |
| 12244 | int h_errnop; |
| 12245 | |
| 12246 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 | |
| 12248 | ; |
| 12249 | return 0; |
| 12250 | } |
| 12251 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12252 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12253 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12254 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12257 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12258 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12260 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12262 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12263 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12265 | $as_echo "no" >&6; } |
| 12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 12267 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 12268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12269 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12270 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12271 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | int |
| 12274 | main () |
| 12275 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12276 | |
| 12277 | char *name; |
| 12278 | struct hostent *he; |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12279 | char buffer[2048]; |
| 12280 | int buflen = 2048; |
| 12281 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12282 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12283 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12284 | |
| 12285 | ; |
| 12286 | return 0; |
| 12287 | } |
| 12288 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12289 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12290 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12291 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12293 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12294 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12295 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12297 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12298 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12299 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12300 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12302 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 12304 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 12305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12306 | /* end confdefs.h. */ |
| 12307 | |
| 12308 | # include <netdb.h> |
| 12309 | |
| 12310 | int |
| 12311 | main () |
| 12312 | { |
| 12313 | |
| 12314 | char *name; |
| 12315 | struct hostent *he; |
| 12316 | struct hostent_data data; |
| 12317 | |
| 12318 | (void) gethostbyname_r(name, he, &data); |
| 12319 | |
| 12320 | ; |
| 12321 | return 0; |
| 12322 | } |
| 12323 | _ACEOF |
| 12324 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12325 | |
| 12326 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 12327 | |
| 12328 | |
| 12329 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 12330 | |
| 12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12332 | $as_echo "yes" >&6; } |
| 12333 | |
| 12334 | else |
| 12335 | |
| 12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12337 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12338 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12339 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12340 | 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] | 12341 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12342 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12343 | 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] | 12344 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12345 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12347 | CFLAGS=$OLD_CFLAGS |
| 12348 | |
| 12349 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12350 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12351 | for ac_func in gethostbyname |
| 12352 | do : |
| 12353 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12354 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12355 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12356 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12357 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12358 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12359 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12360 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12361 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12362 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12363 | fi |
| 12364 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12365 | |
| 12366 | |
| 12367 | |
| 12368 | |
| 12369 | |
| 12370 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12371 | # checks for system services |
| 12372 | # (none yet) |
| 12373 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12374 | # Linux requires this for correct f.p. operations |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12375 | 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] | 12376 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12377 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12378 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 12380 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12381 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12382 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12385 | LIBS="-lieee $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12387 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12388 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12389 | /* Override any GCC internal prototype to avoid an error. |
| 12390 | Use char because int might match the return type of a GCC |
| 12391 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | #ifdef __cplusplus |
| 12393 | extern "C" |
| 12394 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12395 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12396 | int |
| 12397 | main () |
| 12398 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12399 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12400 | ; |
| 12401 | return 0; |
| 12402 | } |
| 12403 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12404 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12406 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12407 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12408 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12409 | rm -f core conftest.err conftest.$ac_objext \ |
| 12410 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12412 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 12414 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12415 | 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] | 12416 | cat >>confdefs.h <<_ACEOF |
| 12417 | #define HAVE_LIBIEEE 1 |
| 12418 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12419 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12420 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12421 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12422 | fi |
| 12423 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12424 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12425 | fi |
| 12426 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12427 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12428 | # Check for --with-fpectl |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
| 12430 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12431 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12432 | # Check whether --with-fpectl was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12433 | if test "${with_fpectl+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12434 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12435 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12436 | then |
| 12437 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12438 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12439 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12441 | $as_echo "yes" >&6; } |
| 12442 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12443 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12444 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12445 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12447 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12448 | fi |
| 12449 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12450 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12451 | # check for --with-libm=... |
| 12452 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12453 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 12454 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12455 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12456 | *) LIBM=-lm |
| 12457 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 12459 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12460 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12461 | # Check whether --with-libm was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12462 | if test "${with_libm+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12463 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12464 | if test "$withval" = no |
| 12465 | then LIBM= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 12467 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12468 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12469 | then LIBM=$withval |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 12471 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12472 | 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] | 12473 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12474 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 12476 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12477 | fi |
| 12478 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12479 | |
| 12480 | # check for --with-libc=... |
| 12481 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 12483 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12485 | # Check whether --with-libc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12486 | if test "${with_libc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12487 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12488 | if test "$withval" = no |
| 12489 | then LIBC= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 12491 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12492 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12493 | then LIBC=$withval |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 12495 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12496 | 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] | 12497 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12498 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 12500 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12501 | fi |
| 12502 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12503 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12504 | # ************************************************** |
| 12505 | # * Check for various properties of floating point * |
| 12506 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12507 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 12509 | $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] | 12510 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12511 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12512 | else |
| 12513 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12514 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12515 | ac_cv_little_endian_double=no |
| 12516 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12518 | /* end confdefs.h. */ |
| 12519 | |
| 12520 | #include <string.h> |
| 12521 | int main() { |
| 12522 | double x = 9006104071832581.0; |
| 12523 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 12524 | return 0; |
| 12525 | else |
| 12526 | return 1; |
| 12527 | } |
| 12528 | |
| 12529 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12530 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12531 | ac_cv_little_endian_double=yes |
| 12532 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12533 | ac_cv_little_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12534 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12535 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12536 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12537 | fi |
| 12538 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12539 | fi |
| 12540 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 12542 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12543 | if test "$ac_cv_little_endian_double" = yes |
| 12544 | then |
| 12545 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12546 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12547 | |
| 12548 | fi |
| 12549 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 12551 | $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] | 12552 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12553 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12554 | else |
| 12555 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12556 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12557 | ac_cv_big_endian_double=no |
| 12558 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12560 | /* end confdefs.h. */ |
| 12561 | |
| 12562 | #include <string.h> |
| 12563 | int main() { |
| 12564 | double x = 9006104071832581.0; |
| 12565 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 12566 | return 0; |
| 12567 | else |
| 12568 | return 1; |
| 12569 | } |
| 12570 | |
| 12571 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12572 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12573 | ac_cv_big_endian_double=yes |
| 12574 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12575 | ac_cv_big_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12576 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12577 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12578 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12579 | fi |
| 12580 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12581 | fi |
| 12582 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 12584 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12585 | if test "$ac_cv_big_endian_double" = yes |
| 12586 | then |
| 12587 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12588 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12589 | |
| 12590 | fi |
| 12591 | |
| 12592 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 12593 | # While Python doesn't currently have full support for these platforms |
| 12594 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 12595 | # conversions work. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 12597 | $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] | 12598 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12599 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12600 | else |
| 12601 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12602 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12603 | ac_cv_mixed_endian_double=no |
| 12604 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12606 | /* end confdefs.h. */ |
| 12607 | |
| 12608 | #include <string.h> |
| 12609 | int main() { |
| 12610 | double x = 9006104071832581.0; |
| 12611 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 12612 | return 0; |
| 12613 | else |
| 12614 | return 1; |
| 12615 | } |
| 12616 | |
| 12617 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12618 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12619 | ac_cv_mixed_endian_double=yes |
| 12620 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12621 | ac_cv_mixed_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12622 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12624 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12625 | fi |
| 12626 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12627 | fi |
| 12628 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 12630 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12631 | if test "$ac_cv_mixed_endian_double" = yes |
| 12632 | then |
| 12633 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12634 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12635 | |
| 12636 | fi |
| 12637 | |
| 12638 | # The short float repr introduced in Python 3.1 requires the |
| 12639 | # correctly-rounded string <-> double conversion functions from |
| 12640 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 12641 | # 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] | 12642 | # 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] | 12643 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12644 | |
| 12645 | # This inline assembler syntax may also work for suncc and icc, |
| 12646 | # so we try it on all platforms. |
| 12647 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 12649 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 12650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12651 | /* end confdefs.h. */ |
| 12652 | |
| 12653 | int |
| 12654 | main () |
| 12655 | { |
| 12656 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12657 | unsigned short cw; |
| 12658 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 12659 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12660 | |
| 12661 | ; |
| 12662 | return 0; |
| 12663 | } |
| 12664 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12665 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12666 | have_gcc_asm_for_x87=yes |
| 12667 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12668 | have_gcc_asm_for_x87=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12669 | fi |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 12672 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12673 | if test "$have_gcc_asm_for_x87" = yes |
| 12674 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12675 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12676 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12677 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12678 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12679 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12680 | # Detect whether system arithmetic is subject to x87-style double |
| 12681 | # rounding issues. The result of this test has little meaning on non |
| 12682 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 12683 | # mode is round-to-nearest and double rounding issues are present, and |
| 12684 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 12686 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12687 | # $BASECFLAGS may affect the result |
| 12688 | ac_save_cc="$CC" |
| 12689 | CC="$CC $BASECFLAGS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12690 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12691 | ac_cv_x87_double_rounding=no |
| 12692 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12694 | /* end confdefs.h. */ |
| 12695 | |
| 12696 | #include <stdlib.h> |
| 12697 | #include <math.h> |
| 12698 | int main() { |
| 12699 | volatile double x, y, z; |
| 12700 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 12701 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 12702 | y = 1./x; |
| 12703 | if (y != 1.) |
| 12704 | exit(0); |
| 12705 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 12706 | x = 1e16; |
| 12707 | y = 2.99999; |
| 12708 | z = x + y; |
| 12709 | if (z != 1e16+4.) |
| 12710 | exit(0); |
| 12711 | /* both tests show evidence of double rounding */ |
| 12712 | exit(1); |
| 12713 | } |
| 12714 | |
| 12715 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12716 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12717 | ac_cv_x87_double_rounding=no |
| 12718 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12719 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12720 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12721 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12722 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12723 | fi |
| 12724 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12725 | CC="$ac_save_cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 12727 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12728 | if test "$ac_cv_x87_double_rounding" = yes |
| 12729 | then |
| 12730 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12731 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12732 | |
| 12733 | fi |
| 12734 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12735 | # ************************************ |
| 12736 | # * Check for mathematical functions * |
| 12737 | # ************************************ |
| 12738 | |
| 12739 | LIBS_SAVE=$LIBS |
| 12740 | LIBS="$LIBS $LIBM" |
| 12741 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12742 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 12743 | # -0. on some architectures. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 12745 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12746 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12747 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12748 | else |
| 12749 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12750 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12751 | ac_cv_tanh_preserves_zero_sign=no |
| 12752 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12754 | /* end confdefs.h. */ |
| 12755 | |
| 12756 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12757 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12758 | int main() { |
| 12759 | /* return 0 if either negative zeros don't exist |
| 12760 | on this platform or if negative zeros exist |
| 12761 | and tanh(-0.) == -0. */ |
| 12762 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 12763 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 12764 | else exit(1); |
| 12765 | } |
| 12766 | |
| 12767 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12768 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12769 | ac_cv_tanh_preserves_zero_sign=yes |
| 12770 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12771 | ac_cv_tanh_preserves_zero_sign=no |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12772 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12773 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12774 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12775 | fi |
| 12776 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12777 | fi |
| 12778 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 12780 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12781 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 12782 | then |
| 12783 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12784 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12785 | |
| 12786 | fi |
| 12787 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12788 | 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] | 12789 | do : |
| 12790 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12791 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12792 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12793 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12794 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12795 | _ACEOF |
| 12796 | |
| 12797 | fi |
| 12798 | done |
| 12799 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12800 | for ac_func in hypot lgamma log1p round tgamma |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12801 | do : |
| 12802 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12803 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12804 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12805 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12806 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12807 | _ACEOF |
| 12808 | |
| 12809 | fi |
| 12810 | done |
| 12811 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12812 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 12813 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12814 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12815 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12816 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12817 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12818 | fi |
| 12819 | |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12820 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12821 | #define HAVE_DECL_ISINF $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12822 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12823 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 12824 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12825 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12826 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12827 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12828 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12829 | fi |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12830 | |
| 12831 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12832 | #define HAVE_DECL_ISNAN $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12833 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12834 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 12835 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12836 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12837 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12838 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12839 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12840 | fi |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12841 | |
| 12842 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12843 | #define HAVE_DECL_ISFINITE $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12844 | _ACEOF |
| 12845 | |
| 12846 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12847 | LIBS=$LIBS_SAVE |
| 12848 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12849 | # For multiprocessing module, check that sem_open |
| 12850 | # actually works. For FreeBSD versions <= 7.2, |
| 12851 | # the kernel module that provides POSIX semaphores |
| 12852 | # isn't loaded by default, so an attempt to call |
| 12853 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 12855 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12856 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12857 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12858 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12859 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12860 | ac_cv_posix_semaphores_enabled=yes |
| 12861 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12863 | /* end confdefs.h. */ |
| 12864 | |
| 12865 | #include <unistd.h> |
| 12866 | #include <fcntl.h> |
| 12867 | #include <stdio.h> |
| 12868 | #include <semaphore.h> |
| 12869 | #include <sys/stat.h> |
| 12870 | |
| 12871 | int main(void) { |
| 12872 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 12873 | if (a == SEM_FAILED) { |
| 12874 | perror("sem_open"); |
| 12875 | return 1; |
| 12876 | } |
| 12877 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12878 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12879 | return 0; |
| 12880 | } |
| 12881 | |
| 12882 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12883 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12884 | ac_cv_posix_semaphores_enabled=yes |
| 12885 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12886 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12887 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12889 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12890 | fi |
| 12891 | |
| 12892 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12893 | fi |
| 12894 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 12896 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12897 | if test $ac_cv_posix_semaphores_enabled = no |
| 12898 | then |
| 12899 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12900 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12901 | |
| 12902 | fi |
| 12903 | |
| 12904 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 12906 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12907 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12908 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12909 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12910 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12911 | ac_cv_broken_sem_getvalue=yes |
| 12912 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12914 | /* end confdefs.h. */ |
| 12915 | |
| 12916 | #include <unistd.h> |
| 12917 | #include <fcntl.h> |
| 12918 | #include <stdio.h> |
| 12919 | #include <semaphore.h> |
| 12920 | #include <sys/stat.h> |
| 12921 | |
| 12922 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12923 | 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] | 12924 | int count; |
| 12925 | int res; |
| 12926 | if(a==SEM_FAILED){ |
| 12927 | perror("sem_open"); |
| 12928 | return 1; |
| 12929 | |
| 12930 | } |
| 12931 | res = sem_getvalue(a, &count); |
| 12932 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12933 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12934 | return res==-1 ? 1 : 0; |
| 12935 | } |
| 12936 | |
| 12937 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12938 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12939 | ac_cv_broken_sem_getvalue=no |
| 12940 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12941 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12942 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12943 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12944 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12945 | fi |
| 12946 | |
| 12947 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12948 | fi |
| 12949 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 12951 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12952 | if test $ac_cv_broken_sem_getvalue = yes |
| 12953 | then |
| 12954 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12955 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12956 | |
| 12957 | fi |
| 12958 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12959 | # determine what size digit to use for Python's longs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 12961 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12962 | # Check whether --enable-big-digits was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12963 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12964 | enableval=$enable_big_digits; case $enable_big_digits in |
| 12965 | yes) |
| 12966 | enable_big_digits=30 ;; |
| 12967 | no) |
| 12968 | enable_big_digits=15 ;; |
| 12969 | 15|30) |
| 12970 | ;; |
| 12971 | *) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12972 | 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] | 12973 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 12975 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12976 | |
| 12977 | cat >>confdefs.h <<_ACEOF |
| 12978 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 12979 | _ACEOF |
| 12980 | |
| 12981 | |
| 12982 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 12984 | $as_echo "no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12985 | fi |
| 12986 | |
| 12987 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12988 | # check for wchar.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12989 | 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] | 12990 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12991 | |
| 12992 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12993 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12994 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12995 | wchar_h="yes" |
| 12996 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12997 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12998 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12999 | |
| 13000 | fi |
| 13001 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13003 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13004 | # determine wchar_t size |
| 13005 | if test "$wchar_h" = yes |
| 13006 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13007 | # 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] | 13008 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13009 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13010 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 13012 | $as_echo_n "checking size of wchar_t... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13013 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13014 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13016 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 13017 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13019 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13020 | if test "$ac_cv_type_wchar_t" = yes; then |
| 13021 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13023 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13024 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13025 | else |
| 13026 | ac_cv_sizeof_wchar_t=0 |
| 13027 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 13032 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13033 | |
| 13034 | |
| 13035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13037 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13039 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13040 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13041 | fi |
| 13042 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 13044 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13045 | have_ucs4_tcl=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13047 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13048 | |
| 13049 | #include <tcl.h> |
| 13050 | #if TCL_UTF_MAX != 6 |
| 13051 | # error "NOT UCS4_TCL" |
| 13052 | #endif |
| 13053 | int |
| 13054 | main () |
| 13055 | { |
| 13056 | |
| 13057 | ; |
| 13058 | return 0; |
| 13059 | } |
| 13060 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13061 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13062 | |
| 13063 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13064 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13065 | |
| 13066 | have_ucs4_tcl=yes |
| 13067 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13068 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 13071 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13072 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13073 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13074 | if test "$wchar_h" = yes |
| 13075 | then |
| 13076 | # check whether wchar_t is signed or not |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 13078 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13079 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13080 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13081 | else |
| 13082 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13083 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13084 | ac_cv_wchar_t_signed=yes |
| 13085 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13087 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13088 | |
| 13089 | #include <wchar.h> |
| 13090 | int main() |
| 13091 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 13092 | /* Success: exit code 0 */ |
| 13093 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13094 | } |
| 13095 | |
| 13096 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13097 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13098 | ac_cv_wchar_t_signed=yes |
| 13099 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13100 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13101 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13102 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13103 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13104 | fi |
| 13105 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13106 | fi |
| 13107 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 13109 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13110 | fi |
| 13111 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 |
| 13113 | $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] | 13114 | # Check whether --enable-unicode was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13115 | if test "${enable_unicode+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13116 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13117 | else |
| 13118 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13119 | fi |
| 13120 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13121 | |
| 13122 | if test $enable_unicode = yes |
| 13123 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 13124 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13125 | case "$have_ucs4_tcl" in |
| 13126 | yes) enable_unicode="ucs4" |
| 13127 | ;; |
| 13128 | *) enable_unicode="ucs2" |
| 13129 | ;; |
| 13130 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13131 | fi |
| 13132 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 13133 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13134 | case "$enable_unicode" in |
| 13135 | ucs2) unicode_size="2" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13136 | $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13137 | |
| 13138 | ;; |
| 13139 | ucs4) unicode_size="4" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13140 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13141 | |
| 13142 | ;; |
Martin v. Löwis | ed11a5d | 2012-05-20 10:42:17 +0200 | [diff] [blame] | 13143 | no) ;; # To allow --disable-unicode |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13144 | *) 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] | 13145 | esac |
| 13146 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13148 | |
| 13149 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13150 | if test "$enable_unicode" = "no" |
| 13151 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13152 | UNICODE_OBJS="" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 |
| 13154 | $as_echo "not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13155 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13156 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13157 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13158 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13159 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13160 | |
| 13161 | # wchar_t is only usable if it maps to an unsigned type |
| 13162 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 13163 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13164 | then |
| 13165 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13166 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13167 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13168 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13169 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13170 | |
| 13171 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 13172 | then |
| 13173 | PY_UNICODE_TYPE="unsigned short" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13174 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13175 | |
| 13176 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 13177 | then |
| 13178 | PY_UNICODE_TYPE="unsigned long" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13179 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13180 | |
| 13181 | else |
| 13182 | PY_UNICODE_TYPE="no type found" |
| 13183 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 |
| 13185 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13186 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13187 | |
| 13188 | # check for endianness |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 13190 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13191 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13192 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13193 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13194 | ac_cv_c_bigendian=unknown |
| 13195 | # See if we're dealing with a universal compiler. |
| 13196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13197 | /* end confdefs.h. */ |
| 13198 | #ifndef __APPLE_CC__ |
| 13199 | not a universal capable compiler |
| 13200 | #endif |
| 13201 | typedef int dummy; |
| 13202 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13203 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13204 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13205 | |
| 13206 | # Check for potential -arch flags. It is not universal unless |
| 13207 | # there are at least two -arch flags with different values. |
| 13208 | ac_arch= |
| 13209 | ac_prev= |
| 13210 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 13211 | if test -n "$ac_prev"; then |
| 13212 | case $ac_word in |
| 13213 | i?86 | x86_64 | ppc | ppc64) |
| 13214 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 13215 | ac_arch=$ac_word |
| 13216 | else |
| 13217 | ac_cv_c_bigendian=universal |
| 13218 | break |
| 13219 | fi |
| 13220 | ;; |
| 13221 | esac |
| 13222 | ac_prev= |
| 13223 | elif test "x$ac_word" = "x-arch"; then |
| 13224 | ac_prev=arch |
| 13225 | fi |
| 13226 | done |
| 13227 | fi |
| 13228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13229 | if test $ac_cv_c_bigendian = unknown; then |
| 13230 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 13231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13232 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13233 | #include <sys/types.h> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13234 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13236 | int |
| 13237 | main () |
| 13238 | { |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13239 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 13240 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 13241 | && LITTLE_ENDIAN) |
| 13242 | bogus endian macros |
| 13243 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13244 | |
| 13245 | ; |
| 13246 | return 0; |
| 13247 | } |
| 13248 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13249 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13250 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13252 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13253 | #include <sys/types.h> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13254 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13256 | int |
| 13257 | main () |
| 13258 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13259 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13260 | not big endian |
| 13261 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | |
| 13263 | ; |
| 13264 | return 0; |
| 13265 | } |
| 13266 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13267 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13268 | ac_cv_c_bigendian=yes |
| 13269 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13270 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13271 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13273 | fi |
| 13274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13275 | fi |
| 13276 | if test $ac_cv_c_bigendian = unknown; then |
| 13277 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 13278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13279 | /* end confdefs.h. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13280 | #include <limits.h> |
| 13281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13282 | int |
| 13283 | main () |
| 13284 | { |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13285 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 13286 | bogus endian macros |
| 13287 | #endif |
| 13288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13289 | ; |
| 13290 | return 0; |
| 13291 | } |
| 13292 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13293 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13294 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 13295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13296 | /* end confdefs.h. */ |
| 13297 | #include <limits.h> |
| 13298 | |
| 13299 | int |
| 13300 | main () |
| 13301 | { |
| 13302 | #ifndef _BIG_ENDIAN |
| 13303 | not big endian |
| 13304 | #endif |
| 13305 | |
| 13306 | ; |
| 13307 | return 0; |
| 13308 | } |
| 13309 | _ACEOF |
| 13310 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13311 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13312 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13313 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13314 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13316 | fi |
| 13317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13318 | fi |
| 13319 | if test $ac_cv_c_bigendian = unknown; then |
| 13320 | # Compile a test program. |
| 13321 | if test "$cross_compiling" = yes; then : |
| 13322 | # Try to guess by grepping values from an object file. |
| 13323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13324 | /* end confdefs.h. */ |
| 13325 | short int ascii_mm[] = |
| 13326 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 13327 | short int ascii_ii[] = |
| 13328 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 13329 | int use_ascii (int i) { |
| 13330 | return ascii_mm[i] + ascii_ii[i]; |
| 13331 | } |
| 13332 | short int ebcdic_ii[] = |
| 13333 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 13334 | short int ebcdic_mm[] = |
| 13335 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 13336 | int use_ebcdic (int i) { |
| 13337 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 13338 | } |
| 13339 | extern int foo; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13340 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13341 | int |
| 13342 | main () |
| 13343 | { |
| 13344 | return use_ascii (foo) == use_ebcdic (foo); |
| 13345 | ; |
| 13346 | return 0; |
| 13347 | } |
| 13348 | _ACEOF |
| 13349 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13350 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 13351 | ac_cv_c_bigendian=yes |
| 13352 | fi |
| 13353 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 13354 | if test "$ac_cv_c_bigendian" = unknown; then |
| 13355 | ac_cv_c_bigendian=no |
| 13356 | else |
| 13357 | # finding both strings is unlikely to happen, but who knows? |
| 13358 | ac_cv_c_bigendian=unknown |
| 13359 | fi |
| 13360 | fi |
| 13361 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13362 | 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] | 13363 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13365 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13366 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13367 | int |
| 13368 | main () |
| 13369 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13370 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13371 | /* Are we little or big endian? From Harbison&Steele. */ |
| 13372 | union |
| 13373 | { |
| 13374 | long int l; |
| 13375 | char c[sizeof (long int)]; |
| 13376 | } u; |
| 13377 | u.l = 1; |
| 13378 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13379 | |
| 13380 | ; |
| 13381 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13382 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13383 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13384 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13385 | ac_cv_c_bigendian=no |
| 13386 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13387 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13388 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13389 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13390 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13391 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13392 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13393 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13394 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 13396 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 13397 | case $ac_cv_c_bigendian in #( |
| 13398 | yes) |
| 13399 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 13400 | ;; #( |
| 13401 | no) |
| 13402 | ;; #( |
| 13403 | universal) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13404 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13405 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13406 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13407 | ;; #( |
| 13408 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13409 | as_fn_error $? "unknown endianness |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13410 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13411 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13412 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13413 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13414 | # Check whether right shifting a negative integer extends the sign bit |
| 13415 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 13417 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13418 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13419 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13421 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13422 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13423 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13424 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13426 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13427 | |
| 13428 | int main() |
| 13429 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13430 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13431 | } |
| 13432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13434 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13435 | ac_cv_rshift_extends_sign=yes |
| 13436 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13437 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13438 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13439 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13440 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13441 | fi |
| 13442 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13443 | fi |
| 13444 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 13446 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13447 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13448 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13449 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13450 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13451 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13452 | fi |
| 13453 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13454 | # check for getc_unlocked and related locking functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 13456 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13457 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13458 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13460 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13462 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13463 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13464 | int |
| 13465 | main () |
| 13466 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13467 | |
| 13468 | FILE *f = fopen("/dev/null", "r"); |
| 13469 | flockfile(f); |
| 13470 | getc_unlocked(f); |
| 13471 | funlockfile(f); |
| 13472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13473 | ; |
| 13474 | return 0; |
| 13475 | } |
| 13476 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13477 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13478 | ac_cv_have_getc_unlocked=yes |
| 13479 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13480 | ac_cv_have_getc_unlocked=no |
| 13481 | fi |
| 13482 | rm -f core conftest.err conftest.$ac_objext \ |
| 13483 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13484 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13485 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 13487 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13488 | if test "$ac_cv_have_getc_unlocked" = yes |
| 13489 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13490 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13491 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13492 | |
| 13493 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13494 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13495 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13496 | # save the value of LIBS so we don't actually link Python with readline |
| 13497 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13498 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13499 | # On some systems we need to link readline to a termcap compatible |
| 13500 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 13501 | # with setup.py. |
| 13502 | py_cv_lib_readline=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 13504 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13505 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 13506 | if test -z "$py_libtermcap"; then |
| 13507 | READLINE_LIBS="-lreadline" |
| 13508 | else |
| 13509 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 13510 | fi |
| 13511 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13513 | /* end confdefs.h. */ |
| 13514 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13515 | /* Override any GCC internal prototype to avoid an error. |
| 13516 | Use char because int might match the return type of a GCC |
| 13517 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13518 | #ifdef __cplusplus |
| 13519 | extern "C" |
| 13520 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13521 | char readline (); |
| 13522 | int |
| 13523 | main () |
| 13524 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13525 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13526 | ; |
| 13527 | return 0; |
| 13528 | } |
| 13529 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13530 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13531 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13532 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13533 | rm -f core conftest.err conftest.$ac_objext \ |
| 13534 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13535 | if test $py_cv_lib_readline = yes; then |
| 13536 | break |
| 13537 | fi |
| 13538 | done |
| 13539 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 13540 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 13541 | if test $py_cv_lib_readline = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 13543 | $as_echo "none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13544 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 13546 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13547 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13548 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13549 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13550 | fi |
| 13551 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13552 | # check for readline 2.1 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
| 13554 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13555 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13556 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13557 | else |
| 13558 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13559 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13561 | /* end confdefs.h. */ |
| 13562 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13563 | /* Override any GCC internal prototype to avoid an error. |
| 13564 | Use char because int might match the return type of a GCC |
| 13565 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13566 | #ifdef __cplusplus |
| 13567 | extern "C" |
| 13568 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13569 | char rl_callback_handler_install (); |
| 13570 | int |
| 13571 | main () |
| 13572 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13573 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13574 | ; |
| 13575 | return 0; |
| 13576 | } |
| 13577 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13578 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13579 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 13580 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13581 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13582 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13583 | rm -f core conftest.err conftest.$ac_objext \ |
| 13584 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13585 | LIBS=$ac_check_lib_save_LIBS |
| 13586 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 13588 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13589 | 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] | 13590 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13591 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13592 | |
| 13593 | fi |
| 13594 | |
| 13595 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13596 | # check for readline 2.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13598 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13599 | #include <readline/readline.h> |
| 13600 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13601 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13602 | have_readline=yes |
| 13603 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13604 | have_readline=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13605 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13606 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13607 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13608 | if test $have_readline = yes |
| 13609 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13611 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13612 | #include <readline/readline.h> |
| 13613 | |
| 13614 | _ACEOF |
| 13615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13616 | $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] | 13617 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13618 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13619 | |
| 13620 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13621 | rm -f conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13622 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13624 | /* end confdefs.h. */ |
| 13625 | #include <readline/readline.h> |
| 13626 | |
| 13627 | _ACEOF |
| 13628 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13629 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13630 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13631 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13632 | |
| 13633 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13634 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13635 | |
| 13636 | fi |
| 13637 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13638 | # check for readline 4.0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 13640 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13641 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13642 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13644 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13645 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13647 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13648 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13649 | /* Override any GCC internal prototype to avoid an error. |
| 13650 | Use char because int might match the return type of a GCC |
| 13651 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 | #ifdef __cplusplus |
| 13653 | extern "C" |
| 13654 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13655 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13656 | int |
| 13657 | main () |
| 13658 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13659 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13660 | ; |
| 13661 | return 0; |
| 13662 | } |
| 13663 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13664 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13665 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13666 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13667 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13668 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13669 | rm -f core conftest.err conftest.$ac_objext \ |
| 13670 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 | LIBS=$ac_check_lib_save_LIBS |
| 13672 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 13674 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13675 | 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] | 13676 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13677 | $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] | 13678 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13679 | fi |
| 13680 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13681 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13682 | # also in 4.0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 13684 | $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] | 13685 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13686 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13687 | else |
| 13688 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13689 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13691 | /* end confdefs.h. */ |
| 13692 | |
| 13693 | /* Override any GCC internal prototype to avoid an error. |
| 13694 | Use char because int might match the return type of a GCC |
| 13695 | builtin and then its argument prototype would still apply. */ |
| 13696 | #ifdef __cplusplus |
| 13697 | extern "C" |
| 13698 | #endif |
| 13699 | char rl_completion_display_matches_hook (); |
| 13700 | int |
| 13701 | main () |
| 13702 | { |
| 13703 | return rl_completion_display_matches_hook (); |
| 13704 | ; |
| 13705 | return 0; |
| 13706 | } |
| 13707 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13708 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13709 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 13710 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13711 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13712 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13713 | rm -f core conftest.err conftest.$ac_objext \ |
| 13714 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13715 | LIBS=$ac_check_lib_save_LIBS |
| 13716 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 13718 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13719 | 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] | 13720 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13721 | $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] | 13722 | |
| 13723 | fi |
| 13724 | |
| 13725 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13726 | # check for readline 4.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 13728 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13729 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13730 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13732 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13733 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13736 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13737 | /* Override any GCC internal prototype to avoid an error. |
| 13738 | Use char because int might match the return type of a GCC |
| 13739 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13740 | #ifdef __cplusplus |
| 13741 | extern "C" |
| 13742 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13743 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13744 | int |
| 13745 | main () |
| 13746 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13747 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 | ; |
| 13749 | return 0; |
| 13750 | } |
| 13751 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13752 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13753 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13754 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13755 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13756 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13757 | rm -f core conftest.err conftest.$ac_objext \ |
| 13758 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13759 | LIBS=$ac_check_lib_save_LIBS |
| 13760 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 13762 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13763 | 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] | 13764 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13765 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13766 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13767 | fi |
| 13768 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13769 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13770 | # also in readline 4.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13772 | /* end confdefs.h. */ |
| 13773 | #include <readline/readline.h> |
| 13774 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13775 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13776 | have_readline=yes |
| 13777 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13778 | have_readline=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13779 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13780 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13781 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13782 | if test $have_readline = yes |
| 13783 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13785 | /* end confdefs.h. */ |
| 13786 | #include <readline/readline.h> |
| 13787 | |
| 13788 | _ACEOF |
| 13789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13790 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13791 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13792 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13793 | |
| 13794 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13795 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13796 | |
| 13797 | fi |
| 13798 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13799 | # End of readline checks: restore LIBS |
| 13800 | LIBS=$LIBS_no_readline |
| 13801 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 13803 | $as_echo_n "checking for broken nice()... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13804 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13805 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13807 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13808 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13809 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13810 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13812 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13813 | |
| 13814 | int main() |
| 13815 | { |
| 13816 | int val1 = nice(1); |
| 13817 | if (val1 != -1 && val1 == nice(2)) |
| 13818 | exit(0); |
| 13819 | exit(1); |
| 13820 | } |
| 13821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13822 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13823 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13824 | ac_cv_broken_nice=yes |
| 13825 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13826 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13827 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13828 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13829 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13830 | fi |
| 13831 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13832 | fi |
| 13833 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 13835 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13836 | if test "$ac_cv_broken_nice" = yes |
| 13837 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13838 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13839 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13840 | |
| 13841 | fi |
| 13842 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 13844 | $as_echo_n "checking for broken poll()... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13845 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13846 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13847 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13848 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13849 | ac_cv_broken_poll=no |
| 13850 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13852 | /* end confdefs.h. */ |
| 13853 | |
| 13854 | #include <poll.h> |
| 13855 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13856 | int main() |
| 13857 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13858 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13859 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13860 | |
| 13861 | close (42); |
| 13862 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13863 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13864 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13865 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13866 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13867 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13868 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13869 | return 1; |
| 13870 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13871 | |
| 13872 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13873 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13874 | ac_cv_broken_poll=yes |
| 13875 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13876 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13877 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13879 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13880 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13881 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13882 | fi |
| 13883 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 13885 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13886 | if test "$ac_cv_broken_poll" = yes |
| 13887 | then |
| 13888 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13889 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13890 | |
| 13891 | fi |
| 13892 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13893 | # 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] | 13894 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 13895 | # tzname[] |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13896 | 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] | 13897 | #include <$ac_cv_struct_tm> |
| 13898 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13899 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13900 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13901 | |
| 13902 | cat >>confdefs.h <<_ACEOF |
| 13903 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13904 | _ACEOF |
| 13905 | |
| 13906 | |
| 13907 | fi |
| 13908 | |
| 13909 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13910 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13911 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13912 | |
| 13913 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13914 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 13915 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13916 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13917 | ac_have_decl=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13918 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13919 | ac_have_decl=0 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13920 | fi |
| 13921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13922 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13923 | #define HAVE_DECL_TZNAME $ac_have_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13924 | _ACEOF |
| 13925 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 13927 | $as_echo_n "checking for tzname... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13928 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13929 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13930 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13932 | /* end confdefs.h. */ |
| 13933 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13934 | #if !HAVE_DECL_TZNAME |
| 13935 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13936 | #endif |
| 13937 | |
| 13938 | int |
| 13939 | main () |
| 13940 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13941 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13942 | ; |
| 13943 | return 0; |
| 13944 | } |
| 13945 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13946 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13947 | ac_cv_var_tzname=yes |
| 13948 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13949 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13950 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13951 | rm -f core conftest.err conftest.$ac_objext \ |
| 13952 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13953 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 13955 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13956 | if test $ac_cv_var_tzname = yes; then |
| 13957 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13958 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13959 | |
| 13960 | fi |
| 13961 | fi |
| 13962 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13963 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13964 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 13966 | $as_echo_n "checking for working tzset()... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13967 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13968 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13969 | else |
| 13970 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13971 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13972 | ac_cv_working_tzset=no |
| 13973 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13975 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13976 | |
| 13977 | #include <stdlib.h> |
| 13978 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13979 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13980 | |
| 13981 | #if HAVE_TZNAME |
| 13982 | extern char *tzname[]; |
| 13983 | #endif |
| 13984 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13985 | int main() |
| 13986 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13987 | /* Note that we need to ensure that not only does tzset(3) |
| 13988 | do 'something' with localtime, but it works as documented |
| 13989 | 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] | 13990 | This includes making sure that tzname is set properly if |
| 13991 | tm->tm_zone does not exist since it is the alternative way |
| 13992 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13993 | |
| 13994 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13995 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13996 | */ |
| 13997 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13998 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13999 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 14000 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14001 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14002 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14003 | if (localtime(&groundhogday)->tm_hour != 0) |
| 14004 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14005 | #if HAVE_TZNAME |
| 14006 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 14007 | if (strcmp(tzname[0], "UTC") || |
| 14008 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 14009 | exit(1); |
| 14010 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14011 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14012 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14013 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14014 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14015 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14016 | #if HAVE_TZNAME |
| 14017 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 14018 | exit(1); |
| 14019 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14020 | |
| 14021 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 14022 | tzset(); |
| 14023 | if (localtime(&groundhogday)->tm_hour != 11) |
| 14024 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14025 | #if HAVE_TZNAME |
| 14026 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 14027 | exit(1); |
| 14028 | #endif |
| 14029 | |
| 14030 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14031 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 14032 | exit(1); |
| 14033 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 14034 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14035 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14036 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14037 | exit(0); |
| 14038 | } |
| 14039 | |
| 14040 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14041 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14042 | ac_cv_working_tzset=yes |
| 14043 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14044 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14045 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14046 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14047 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14048 | fi |
| 14049 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14050 | fi |
| 14051 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 14053 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14054 | if test "$ac_cv_working_tzset" = yes |
| 14055 | then |
| 14056 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14057 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14058 | |
| 14059 | fi |
| 14060 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14061 | # Look for subsecond timestamps in struct stat |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 14063 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14064 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14065 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14066 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14068 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14069 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14070 | int |
| 14071 | main () |
| 14072 | { |
| 14073 | |
| 14074 | struct stat st; |
| 14075 | st.st_mtim.tv_nsec = 1; |
| 14076 | |
| 14077 | ; |
| 14078 | return 0; |
| 14079 | } |
| 14080 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14081 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 14082 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14083 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14084 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14085 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14087 | fi |
| 14088 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 14090 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14091 | if test "$ac_cv_stat_tv_nsec" = yes |
| 14092 | then |
| 14093 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14094 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14095 | |
| 14096 | fi |
| 14097 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14098 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 14100 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14101 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14102 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14103 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14105 | /* end confdefs.h. */ |
| 14106 | #include <sys/stat.h> |
| 14107 | int |
| 14108 | main () |
| 14109 | { |
| 14110 | |
| 14111 | struct stat st; |
| 14112 | st.st_mtimespec.tv_nsec = 1; |
| 14113 | |
| 14114 | ; |
| 14115 | return 0; |
| 14116 | } |
| 14117 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14118 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14119 | ac_cv_stat_tv_nsec2=yes |
| 14120 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14121 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14122 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14124 | fi |
| 14125 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 14127 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14128 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 14129 | then |
| 14130 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14131 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14132 | |
| 14133 | fi |
| 14134 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14135 | # 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] | 14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 14137 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14138 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14139 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14140 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14142 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14143 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14144 | int |
| 14145 | main () |
| 14146 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14147 | |
| 14148 | int rtn; |
| 14149 | rtn = mvwdelch(0,0,0); |
| 14150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | ; |
| 14152 | return 0; |
| 14153 | } |
| 14154 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14155 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14156 | ac_cv_mvwdelch_is_expression=yes |
| 14157 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14158 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14159 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14161 | fi |
| 14162 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 14164 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14165 | |
| 14166 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 14167 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14169 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14170 | |
| 14171 | fi |
| 14172 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 14174 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14175 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14176 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14177 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14179 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14180 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14181 | int |
| 14182 | main () |
| 14183 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14184 | |
| 14185 | WINDOW *w; |
| 14186 | w->_flags = 0; |
| 14187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14188 | ; |
| 14189 | return 0; |
| 14190 | } |
| 14191 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14192 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14193 | ac_cv_window_has_flags=yes |
| 14194 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14195 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14196 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14198 | fi |
| 14199 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 14201 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14202 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14203 | |
| 14204 | if test "$ac_cv_window_has_flags" = yes |
| 14205 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14206 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14207 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14208 | |
| 14209 | fi |
| 14210 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 14212 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 14213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14214 | /* end confdefs.h. */ |
| 14215 | #include <curses.h> |
| 14216 | int |
| 14217 | main () |
| 14218 | { |
| 14219 | void *x=is_term_resized |
| 14220 | ; |
| 14221 | return 0; |
| 14222 | } |
| 14223 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14224 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14225 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14226 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14227 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14229 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14230 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14232 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14233 | |
| 14234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14236 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 14238 | $as_echo_n "checking for resize_term... " >&6; } |
| 14239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14240 | /* end confdefs.h. */ |
| 14241 | #include <curses.h> |
| 14242 | int |
| 14243 | main () |
| 14244 | { |
| 14245 | void *x=resize_term |
| 14246 | ; |
| 14247 | return 0; |
| 14248 | } |
| 14249 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14250 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14251 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14252 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14253 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14255 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14256 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14258 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14259 | |
| 14260 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14262 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 14264 | $as_echo_n "checking for resizeterm... " >&6; } |
| 14265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14266 | /* end confdefs.h. */ |
| 14267 | #include <curses.h> |
| 14268 | int |
| 14269 | main () |
| 14270 | { |
| 14271 | void *x=resizeterm |
| 14272 | ; |
| 14273 | return 0; |
| 14274 | } |
| 14275 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14276 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14277 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14278 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14279 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14281 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14282 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14284 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14285 | |
| 14286 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14288 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
| 14290 | $as_echo "$as_me: checking for device files" >&6;} |
| 14291 | |
| 14292 | if test "x$cross_compiling" = xyes; then |
| 14293 | if test "${ac_cv_file__dev_ptmx+set}" != set; then |
| 14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 14295 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
| 14296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 14297 | $as_echo "not set" >&6; } |
| 14298 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 14299 | fi |
| 14300 | if test "${ac_cv_file__dev_ptc+set}" != set; then |
| 14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 14302 | $as_echo_n "checking for /dev/ptc... " >&6; } |
| 14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 14304 | $as_echo "not set" >&6; } |
| 14305 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 14306 | fi |
| 14307 | fi |
| 14308 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 14310 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14311 | if ${ac_cv_file__dev_ptmx+:} false; then : |
| 14312 | $as_echo_n "(cached) " >&6 |
| 14313 | else |
| 14314 | test "$cross_compiling" = yes && |
| 14315 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 14316 | if test -r "/dev/ptmx"; then |
| 14317 | ac_cv_file__dev_ptmx=yes |
| 14318 | else |
| 14319 | ac_cv_file__dev_ptmx=no |
| 14320 | fi |
| 14321 | fi |
| 14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
| 14323 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } |
| 14324 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14325 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14326 | fi |
| 14327 | |
| 14328 | if test "x$ac_cv_file__dev_ptmx" = xyes; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14329 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14330 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14331 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14332 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 14334 | $as_echo_n "checking for /dev/ptc... " >&6; } |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14335 | if ${ac_cv_file__dev_ptc+:} false; then : |
| 14336 | $as_echo_n "(cached) " >&6 |
| 14337 | else |
| 14338 | test "$cross_compiling" = yes && |
| 14339 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 14340 | if test -r "/dev/ptc"; then |
| 14341 | ac_cv_file__dev_ptc=yes |
| 14342 | else |
| 14343 | ac_cv_file__dev_ptc=no |
| 14344 | fi |
| 14345 | fi |
| 14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
| 14347 | $as_echo "$ac_cv_file__dev_ptc" >&6; } |
| 14348 | if test "x$ac_cv_file__dev_ptc" = xyes; then : |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14349 | |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14350 | fi |
| 14351 | |
| 14352 | if test "x$ac_cv_file__dev_ptc" = xyes; then |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14353 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14354 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14355 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14356 | fi |
| 14357 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14358 | if test "$have_long_long" = yes |
| 14359 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 |
| 14361 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14362 | if ${ac_cv_have_long_long_format+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14363 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14364 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14365 | if test "$cross_compiling" = yes; then : |
doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14366 | ac_cv_have_long_long_format="cross -- assuming no" |
| 14367 | if test x$GCC = xyes; then |
| 14368 | save_CFLAGS=$CFLAGS |
| 14369 | CFLAGS="$CFLAGS -Werror -Wformat" |
| 14370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14371 | /* end confdefs.h. */ |
| 14372 | |
| 14373 | #include <stdio.h> |
| 14374 | #include <stddef.h> |
| 14375 | |
| 14376 | int |
| 14377 | main () |
| 14378 | { |
| 14379 | |
| 14380 | char *buffer; |
| 14381 | sprintf(buffer, "%lld", (long long)123); |
| 14382 | sprintf(buffer, "%lld", (long long)-123); |
| 14383 | sprintf(buffer, "%llu", (unsigned long long)123); |
| 14384 | |
| 14385 | ; |
| 14386 | return 0; |
| 14387 | } |
| 14388 | _ACEOF |
| 14389 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14390 | ac_cv_have_long_long_format=yes |
| 14391 | |
| 14392 | fi |
| 14393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14394 | CFLAGS=$save_CFLAGS |
| 14395 | fi |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14396 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14398 | /* end confdefs.h. */ |
| 14399 | |
| 14400 | #include <stdio.h> |
| 14401 | #include <stddef.h> |
| 14402 | #include <string.h> |
| 14403 | |
| 14404 | #ifdef HAVE_SYS_TYPES_H |
| 14405 | #include <sys/types.h> |
| 14406 | #endif |
| 14407 | |
| 14408 | int main() |
| 14409 | { |
| 14410 | char buffer[256]; |
| 14411 | |
| 14412 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 14413 | return 1; |
| 14414 | if (strcmp(buffer, "123")) |
| 14415 | return 1; |
| 14416 | |
| 14417 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 14418 | return 1; |
| 14419 | if (strcmp(buffer, "-123")) |
| 14420 | return 1; |
| 14421 | |
| 14422 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 14423 | return 1; |
| 14424 | if (strcmp(buffer, "123")) |
| 14425 | return 1; |
| 14426 | |
| 14427 | return 0; |
| 14428 | } |
| 14429 | |
| 14430 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14431 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14432 | ac_cv_have_long_long_format=yes |
| 14433 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14434 | ac_cv_have_long_long_format=no |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14435 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14436 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14437 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14438 | fi |
| 14439 | |
| 14440 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14441 | fi |
| 14442 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 |
| 14444 | $as_echo "$ac_cv_have_long_long_format" >&6; } |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14445 | fi |
| 14446 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 14447 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14448 | then |
| 14449 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14450 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14451 | |
| 14452 | fi |
| 14453 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 14454 | if test $ac_sys_system = Darwin |
| 14455 | then |
| 14456 | LIBS="$LIBS -framework CoreFoundation" |
| 14457 | fi |
| 14458 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14459 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 14461 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14462 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14463 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14464 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14465 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14466 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 14467 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14468 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14470 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14471 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14472 | #include <stdio.h> |
| 14473 | #include <stddef.h> |
| 14474 | #include <string.h> |
| 14475 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14476 | #ifdef HAVE_SYS_TYPES_H |
| 14477 | #include <sys/types.h> |
| 14478 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14479 | |
| 14480 | #ifdef HAVE_SSIZE_T |
| 14481 | typedef ssize_t Py_ssize_t; |
| 14482 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 14483 | typedef long Py_ssize_t; |
| 14484 | #else |
| 14485 | typedef int Py_ssize_t; |
| 14486 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14487 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14488 | int main() |
| 14489 | { |
| 14490 | char buffer[256]; |
| 14491 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14492 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 14493 | return 1; |
| 14494 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14495 | if (strcmp(buffer, "123")) |
| 14496 | return 1; |
| 14497 | |
| 14498 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 14499 | return 1; |
| 14500 | |
| 14501 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14502 | return 1; |
| 14503 | |
| 14504 | return 0; |
| 14505 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14506 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14507 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14508 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14509 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14510 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14511 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14512 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14513 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14514 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 14515 | fi |
| 14516 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14517 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 14519 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14520 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14521 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14522 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14523 | |
| 14524 | fi |
| 14525 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14526 | 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] | 14527 | #ifdef HAVE_SYS_TYPES_H |
| 14528 | #include <sys/types.h> |
| 14529 | #endif |
| 14530 | #ifdef HAVE_SYS_SOCKET_H |
| 14531 | #include <sys/socket.h> |
| 14532 | #endif |
| 14533 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14534 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14535 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 14536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14537 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14538 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14539 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14540 | |
| 14541 | fi |
| 14542 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14543 | |
Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame] | 14544 | case $ac_sys_system in |
| 14545 | AIX*) |
| 14546 | |
| 14547 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
| 14548 | ;; |
| 14549 | esac |
| 14550 | |
| 14551 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14552 | |
| 14553 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 14554 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 14555 | do |
| 14556 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 14557 | done |
| 14558 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14559 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 14560 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 14562 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14563 | for dir in $SRCDIRS; do |
| 14564 | if test ! -d $dir; then |
| 14565 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 14566 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14567 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 14569 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 14570 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14571 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14572 | 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] | 14573 | |
Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14574 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 14575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14576 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14577 | # This file is a shell script that caches the results of configure |
| 14578 | # 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] | 14579 | # scripts and configure runs, see configure's option --config-cache. |
| 14580 | # It is not useful on other systems. If it contains results you don't |
| 14581 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14582 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14583 | # config.status only pays attention to the cache file if you give it |
| 14584 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14585 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14586 | # `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] | 14587 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14588 | # following values. |
| 14589 | |
| 14590 | _ACEOF |
| 14591 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14592 | # The following way of writing the cache mishandles newlines in values, |
| 14593 | # 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] | 14594 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14595 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14596 | # 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] | 14597 | ( |
| 14598 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 14599 | eval ac_val=\$$ac_var |
| 14600 | case $ac_val in #( |
| 14601 | *${as_nl}*) |
| 14602 | case $ac_var in #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14603 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 14604 | $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] | 14605 | esac |
| 14606 | case $ac_var in #( |
| 14607 | _ | IFS | as_nl) ;; #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14608 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 14609 | *) { eval $ac_var=; unset $ac_var;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14610 | esac ;; |
| 14611 | esac |
| 14612 | done |
| 14613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14615 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 14616 | *${as_nl}ac_space=\ *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14617 | # `set' does not quote correctly, so add quotes: double-quote |
| 14618 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14620 | "s/'/'\\\\''/g; |
| 14621 | 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] | 14622 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | *) |
| 14624 | # `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] | 14625 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14627 | esac | |
| 14628 | sort |
| 14629 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14631 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14633 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14635 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14636 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14637 | :end' >>confcache |
| 14638 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 14639 | if test -w "$cache_file"; then |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14640 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14641 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 14642 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14643 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 14644 | cat confcache >"$cache_file" |
| 14645 | else |
| 14646 | case $cache_file in #( |
| 14647 | */* | ?:*) |
| 14648 | mv -f confcache "$cache_file"$$ && |
| 14649 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 14650 | *) |
| 14651 | mv -f confcache "$cache_file" ;; |
| 14652 | esac |
| 14653 | fi |
| 14654 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14655 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14656 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 14657 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14658 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14659 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14660 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14661 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14662 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14663 | # Let make expand exec_prefix. |
| 14664 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14665 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14666 | DEFS=-DHAVE_CONFIG_H |
| 14667 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14668 | ac_libobjs= |
| 14669 | ac_ltlibobjs= |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14670 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14671 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14672 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14673 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14674 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14675 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 14676 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14677 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 14678 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14679 | done |
| 14680 | LIBOBJS=$ac_libobjs |
| 14681 | |
| 14682 | LTLIBOBJS=$ac_ltlibobjs |
| 14683 | |
| 14684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14685 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14686 | |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14687 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14688 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14689 | ac_clean_files_save=$ac_clean_files |
| 14690 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14691 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 14692 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 14693 | as_write_fail=0 |
| 14694 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14695 | #! $SHELL |
| 14696 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14697 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14698 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14699 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14702 | ac_cs_recheck=false |
| 14703 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14704 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14705 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 14706 | export SHELL |
| 14707 | _ASEOF |
| 14708 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 14709 | ## -------------------- ## |
| 14710 | ## M4sh Initialization. ## |
| 14711 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14712 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14713 | # Be more Bourne compatible |
| 14714 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14715 | 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] | 14716 | emulate sh |
| 14717 | NULLCMD=: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14718 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14719 | # is contrary to our usage. Disable this feature. |
| 14720 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14721 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14722 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14723 | case `(set -o) 2>/dev/null` in #( |
| 14724 | *posix*) : |
| 14725 | set -o posix ;; #( |
| 14726 | *) : |
| 14727 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14728 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14729 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14730 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14731 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14732 | as_nl=' |
| 14733 | ' |
| 14734 | export as_nl |
| 14735 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14736 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14737 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14738 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14739 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14740 | # but without wasting forks for bash or zsh. |
| 14741 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14742 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14743 | as_echo='print -r --' |
| 14744 | as_echo_n='print -rn --' |
| 14745 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14746 | as_echo='printf %s\n' |
| 14747 | as_echo_n='printf %s' |
| 14748 | else |
| 14749 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14750 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14751 | as_echo_n='/usr/ucb/echo -n' |
| 14752 | else |
| 14753 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14754 | as_echo_n_body='eval |
| 14755 | arg=$1; |
| 14756 | case $arg in #( |
| 14757 | *"$as_nl"*) |
| 14758 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14759 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14760 | esac; |
| 14761 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14762 | ' |
| 14763 | export as_echo_n_body |
| 14764 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14765 | fi |
| 14766 | export as_echo_body |
| 14767 | as_echo='sh -c $as_echo_body as_echo' |
| 14768 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14769 | |
| 14770 | # The user is always right. |
| 14771 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14772 | PATH_SEPARATOR=: |
| 14773 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14774 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14775 | PATH_SEPARATOR=';' |
| 14776 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14778 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14779 | |
| 14780 | # IFS |
| 14781 | # We need space, tab and new line, in precisely that order. Quoting is |
| 14782 | # there to prevent editors from complaining about space-tab. |
| 14783 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14784 | # splitting by setting IFS to empty value.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14785 | IFS=" "" $as_nl" |
| 14786 | |
| 14787 | # 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] | 14788 | as_myself= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14789 | case $0 in #(( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14790 | *[\\/]* ) as_myself=$0 ;; |
| 14791 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | for as_dir in $PATH |
| 14793 | do |
| 14794 | IFS=$as_save_IFS |
| 14795 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14796 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14797 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14798 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14800 | ;; |
| 14801 | esac |
| 14802 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14803 | # in which case we are not to be found in the path. |
| 14804 | if test "x$as_myself" = x; then |
| 14805 | as_myself=$0 |
| 14806 | fi |
| 14807 | if test ! -f "$as_myself"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14808 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 14809 | exit 1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14810 | fi |
| 14811 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14812 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14813 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14814 | # suppresses any "Segmentation fault" message there. '((' could |
| 14815 | # trigger a bug in pdksh 5.2.14. |
| 14816 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14817 | do eval test x\${$as_var+set} = xset \ |
| 14818 | && ( (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] | 14819 | done |
| 14820 | PS1='$ ' |
| 14821 | PS2='> ' |
| 14822 | PS4='+ ' |
| 14823 | |
| 14824 | # NLS nuisances. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14825 | LC_ALL=C |
| 14826 | export LC_ALL |
| 14827 | LANGUAGE=C |
| 14828 | export LANGUAGE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14829 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14830 | # CDPATH. |
| 14831 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14832 | |
| 14833 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14834 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14835 | # ---------------------------------------- |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14836 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14837 | # 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] | 14838 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14839 | as_fn_error () |
| 14840 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14841 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14842 | if test "$4"; then |
| 14843 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14844 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14845 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14846 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14847 | as_fn_exit $as_status |
| 14848 | } # as_fn_error |
| 14849 | |
| 14850 | |
| 14851 | # as_fn_set_status STATUS |
| 14852 | # ----------------------- |
| 14853 | # Set $? to STATUS, without forking. |
| 14854 | as_fn_set_status () |
| 14855 | { |
| 14856 | return $1 |
| 14857 | } # as_fn_set_status |
| 14858 | |
| 14859 | # as_fn_exit STATUS |
| 14860 | # ----------------- |
| 14861 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14862 | as_fn_exit () |
| 14863 | { |
| 14864 | set +e |
| 14865 | as_fn_set_status $1 |
| 14866 | exit $1 |
| 14867 | } # as_fn_exit |
| 14868 | |
| 14869 | # as_fn_unset VAR |
| 14870 | # --------------- |
| 14871 | # Portably unset VAR. |
| 14872 | as_fn_unset () |
| 14873 | { |
| 14874 | { eval $1=; unset $1;} |
| 14875 | } |
| 14876 | as_unset=as_fn_unset |
| 14877 | # as_fn_append VAR VALUE |
| 14878 | # ---------------------- |
| 14879 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14880 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14881 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14882 | # implementations. |
| 14883 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14884 | eval 'as_fn_append () |
| 14885 | { |
| 14886 | eval $1+=\$2 |
| 14887 | }' |
| 14888 | else |
| 14889 | as_fn_append () |
| 14890 | { |
| 14891 | eval $1=\$$1\$2 |
| 14892 | } |
| 14893 | fi # as_fn_append |
| 14894 | |
| 14895 | # as_fn_arith ARG... |
| 14896 | # ------------------ |
| 14897 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14898 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14899 | # must be portable across $(()) and expr. |
| 14900 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14901 | eval 'as_fn_arith () |
| 14902 | { |
| 14903 | as_val=$(( $* )) |
| 14904 | }' |
| 14905 | else |
| 14906 | as_fn_arith () |
| 14907 | { |
| 14908 | as_val=`expr "$@" || test $? -eq 1` |
| 14909 | } |
| 14910 | fi # as_fn_arith |
| 14911 | |
| 14912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14913 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14914 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14915 | as_expr=expr |
| 14916 | else |
| 14917 | as_expr=false |
| 14918 | fi |
| 14919 | |
| 14920 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14921 | as_basename=basename |
| 14922 | else |
| 14923 | as_basename=false |
| 14924 | fi |
| 14925 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14926 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14927 | as_dirname=dirname |
| 14928 | else |
| 14929 | as_dirname=false |
| 14930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14931 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14932 | as_me=`$as_basename -- "$0" || |
| 14933 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14934 | X"$0" : 'X\(//\)$' \| \ |
| 14935 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14936 | $as_echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14937 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14938 | s//\1/ |
| 14939 | q |
| 14940 | } |
| 14941 | /^X\/\(\/\/\)$/{ |
| 14942 | s//\1/ |
| 14943 | q |
| 14944 | } |
| 14945 | /^X\/\(\/\).*/{ |
| 14946 | s//\1/ |
| 14947 | q |
| 14948 | } |
| 14949 | s/.*/./; q'` |
| 14950 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14951 | # Avoid depending upon Character Ranges. |
| 14952 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14953 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14954 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14955 | as_cr_digits='0123456789' |
| 14956 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14957 | |
| 14958 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14959 | case `echo -n x` in #((((( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14960 | -n*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14961 | case `echo 'xy\c'` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14962 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14963 | xy) ECHO_C='\c';; |
| 14964 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14965 | ECHO_T=' ';; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14966 | esac;; |
| 14967 | *) |
| 14968 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14969 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14971 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14972 | if test -d conf$$.dir; then |
| 14973 | rm -f conf$$.dir/conf$$.file |
| 14974 | else |
| 14975 | rm -f conf$$.dir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14976 | mkdir conf$$.dir 2>/dev/null |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14977 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14978 | if (echo >conf$$.file) 2>/dev/null; then |
| 14979 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14980 | as_ln_s='ln -s' |
| 14981 | # ... but there are two gotchas: |
| 14982 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14983 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14984 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14985 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14986 | as_ln_s='cp -pR' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14987 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14988 | as_ln_s=ln |
| 14989 | else |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14990 | as_ln_s='cp -pR' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14992 | else |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14993 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14995 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14996 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14997 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14998 | |
| 14999 | # as_fn_mkdir_p |
| 15000 | # ------------- |
| 15001 | # Create "$as_dir" as a directory, including parents if necessary. |
| 15002 | as_fn_mkdir_p () |
| 15003 | { |
| 15004 | |
| 15005 | case $as_dir in #( |
| 15006 | -*) as_dir=./$as_dir;; |
| 15007 | esac |
| 15008 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 15009 | as_dirs= |
| 15010 | while :; do |
| 15011 | case $as_dir in #( |
| 15012 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 15013 | *) as_qdir=$as_dir;; |
| 15014 | esac |
| 15015 | as_dirs="'$as_qdir' $as_dirs" |
| 15016 | as_dir=`$as_dirname -- "$as_dir" || |
| 15017 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15018 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15019 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15020 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 15021 | $as_echo X"$as_dir" | |
| 15022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15023 | s//\1/ |
| 15024 | q |
| 15025 | } |
| 15026 | /^X\(\/\/\)[^/].*/{ |
| 15027 | s//\1/ |
| 15028 | q |
| 15029 | } |
| 15030 | /^X\(\/\/\)$/{ |
| 15031 | s//\1/ |
| 15032 | q |
| 15033 | } |
| 15034 | /^X\(\/\).*/{ |
| 15035 | s//\1/ |
| 15036 | q |
| 15037 | } |
| 15038 | s/.*/./; q'` |
| 15039 | test -d "$as_dir" && break |
| 15040 | done |
| 15041 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15042 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15043 | |
| 15044 | |
| 15045 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15046 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15047 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15048 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15049 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15050 | as_mkdir_p=false |
| 15051 | fi |
| 15052 | |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15053 | |
| 15054 | # as_fn_executable_p FILE |
| 15055 | # ----------------------- |
| 15056 | # Test if FILE is an executable regular file. |
| 15057 | as_fn_executable_p () |
| 15058 | { |
| 15059 | test -f "$1" && test -x "$1" |
| 15060 | } # as_fn_executable_p |
| 15061 | as_test_x='test -x' |
| 15062 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | |
| 15064 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15065 | 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] | 15066 | |
| 15067 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15068 | 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] | 15069 | |
| 15070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15071 | exec 6>&1 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15072 | ## ----------------------------------- ## |
| 15073 | ## Main body of $CONFIG_STATUS script. ## |
| 15074 | ## ----------------------------------- ## |
| 15075 | _ASEOF |
| 15076 | 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] | 15077 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15078 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15079 | # 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] | 15080 | # 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] | 15081 | # values after options handling. |
| 15082 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15083 | This file was extended by python $as_me 2.7, which was |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15084 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15085 | |
| 15086 | CONFIG_FILES = $CONFIG_FILES |
| 15087 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15088 | CONFIG_LINKS = $CONFIG_LINKS |
| 15089 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15090 | $ $0 $@ |
| 15091 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15092 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15093 | " |
| 15094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | _ACEOF |
| 15096 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15097 | case $ac_config_files in *" |
| 15098 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 15099 | esac |
| 15100 | |
| 15101 | case $ac_config_headers in *" |
| 15102 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 15103 | esac |
| 15104 | |
| 15105 | |
| 15106 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15107 | # Files that config.status was made for. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15108 | config_files="$ac_config_files" |
| 15109 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15111 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15114 | ac_cs_usage="\ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15115 | \`$as_me' instantiates files and other configuration actions |
| 15116 | from templates according to the current configuration. Unless the files |
| 15117 | 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] | 15118 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15119 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15120 | |
| 15121 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15122 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15123 | --config print configuration, then exit |
| 15124 | -q, --quiet, --silent |
| 15125 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | -d, --debug don't remove temporary files |
| 15127 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15128 | --file=FILE[:TEMPLATE] |
| 15129 | instantiate the configuration file FILE |
| 15130 | --header=FILE[:TEMPLATE] |
| 15131 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | |
| 15133 | Configuration files: |
| 15134 | $config_files |
| 15135 | |
| 15136 | Configuration headers: |
| 15137 | $config_headers |
| 15138 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15139 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15140 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15141 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15143 | 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] | 15144 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15145 | python config.status 2.7 |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15146 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15147 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 | |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15149 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | This config.status script is free software; the Free Software Foundation |
| 15151 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15152 | |
| 15153 | ac_pwd='$ac_pwd' |
| 15154 | srcdir='$srcdir' |
| 15155 | INSTALL='$INSTALL' |
Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15156 | MKDIR_P='$MKDIR_P' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15157 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | _ACEOF |
| 15159 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15160 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15161 | # 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] | 15162 | ac_need_defaults=: |
| 15163 | while test $# != 0 |
| 15164 | do |
| 15165 | case $1 in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15166 | --*=?*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15167 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15168 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15169 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 | ;; |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15171 | --*=) |
| 15172 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15173 | ac_optarg= |
| 15174 | ac_shift=: |
| 15175 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15176 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15177 | ac_option=$1 |
| 15178 | ac_optarg=$2 |
| 15179 | ac_shift=shift |
| 15180 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15181 | esac |
| 15182 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15183 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15185 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15186 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15187 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15188 | $as_echo "$ac_cs_version"; exit ;; |
| 15189 | --config | --confi | --conf | --con | --co | --c ) |
| 15190 | $as_echo "$ac_cs_config"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15191 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15192 | debug=: ;; |
| 15193 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15194 | $ac_shift |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15195 | case $ac_optarg in |
| 15196 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15197 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15198 | esac |
| 15199 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | ac_need_defaults=false;; |
| 15201 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15202 | $ac_shift |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15203 | case $ac_optarg in |
| 15204 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15205 | esac |
| 15206 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15207 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15208 | --he | --h) |
| 15209 | # Conflict between --help and --header |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15210 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15211 | Try \`$0 --help' for more information.";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15212 | --help | --hel | -h ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15213 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15214 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15215 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15216 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15217 | |
| 15218 | # This is an error. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15219 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15220 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15221 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15222 | *) as_fn_append ac_config_targets " $1" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15223 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | |
| 15225 | esac |
| 15226 | shift |
| 15227 | done |
| 15228 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15229 | ac_configure_extra_args= |
| 15230 | |
| 15231 | if $ac_cs_silent; then |
| 15232 | exec 6>/dev/null |
| 15233 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15234 | fi |
| 15235 | |
| 15236 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15237 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15238 | if \$ac_cs_recheck; then |
Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15239 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15240 | shift |
| 15241 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 15242 | CONFIG_SHELL='$SHELL' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15243 | export CONFIG_SHELL |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15244 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15245 | fi |
| 15246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15249 | exec 5>>config.log |
| 15250 | { |
| 15251 | echo |
| 15252 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15253 | ## Running $as_me. ## |
| 15254 | _ASBOX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15255 | $as_echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15256 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15258 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15259 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15260 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15261 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15262 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15263 | |
| 15264 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | for ac_config_target in $ac_config_targets |
| 15266 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15267 | case $ac_config_target in |
| 15268 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 15269 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 15270 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 15271 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 15272 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 15273 | "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] | 15274 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 15275 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 15276 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15277 | "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] | 15278 | |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15279 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15280 | esac |
| 15281 | done |
| 15282 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15284 | # If the user did not use the arguments to specify the items to instantiate, |
| 15285 | # then the envvar interface is used. Set only those that are not. |
| 15286 | # We use the long form for the default assignment because of an extremely |
| 15287 | # bizarre bug on SunOS 4.1.3. |
| 15288 | if $ac_need_defaults; then |
| 15289 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15290 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15291 | fi |
| 15292 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15293 | # 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] | 15294 | # 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] | 15295 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15296 | # Hook for its removal unless debugging. |
| 15297 | # Note that there is a small window in which the directory will not be cleaned: |
| 15298 | # 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] | 15299 | $debug || |
| 15300 | { |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15301 | tmp= ac_tmp= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15302 | trap 'exit_status=$? |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15303 | : "${ac_tmp:=$tmp}" |
| 15304 | { 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] | 15305 | ' 0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15306 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15307 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15310 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15311 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15312 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | } || |
| 15314 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15315 | tmp=./conf$$-$RANDOM |
| 15316 | (umask 077 && mkdir "$tmp") |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15317 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15318 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15320 | # Set up the scripts for CONFIG_FILES section. |
| 15321 | # No need to generate them if there are no CONFIG_FILES. |
| 15322 | # This happens for instance with `./config.status config.h'. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15323 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15325 | |
| 15326 | ac_cr=`echo X | tr X '\015'` |
| 15327 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 15328 | # But we know of no other shell where ac_cr would be empty at this |
| 15329 | # point, so we can use a bashism as a fallback. |
| 15330 | if test "x$ac_cr" = x; then |
| 15331 | eval ac_cr=\$\'\\r\' |
| 15332 | fi |
| 15333 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 15334 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15335 | ac_cs_awk_cr='\\r' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15336 | else |
| 15337 | ac_cs_awk_cr=$ac_cr |
| 15338 | fi |
| 15339 | |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15340 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15341 | _ACEOF |
| 15342 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15343 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15344 | { |
| 15345 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 15346 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 15347 | echo "_ACEOF" |
| 15348 | } >conf$$subs.sh || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15349 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15350 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15351 | ac_delim='%!_!# ' |
| 15352 | for ac_last_try in false false false false false :; do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15353 | . ./conf$$subs.sh || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15354 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15355 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15356 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 15357 | if test $ac_delim_n = $ac_delim_num; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15358 | break |
| 15359 | elif $ac_last_try; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15360 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15361 | else |
| 15362 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15364 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15365 | rm -f conf$$subs.sh |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15366 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15367 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15368 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15369 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15370 | sed -n ' |
| 15371 | h |
| 15372 | s/^/S["/; s/!.*/"]=/ |
| 15373 | p |
| 15374 | g |
| 15375 | s/^[^!]*!// |
| 15376 | :repl |
| 15377 | t repl |
| 15378 | s/'"$ac_delim"'$// |
| 15379 | t delim |
| 15380 | :nl |
| 15381 | h |
| 15382 | s/\(.\{148\}\)..*/\1/ |
| 15383 | t more1 |
| 15384 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 15385 | p |
| 15386 | n |
| 15387 | b repl |
| 15388 | :more1 |
| 15389 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 15390 | p |
| 15391 | g |
| 15392 | s/.\{148\}// |
| 15393 | t nl |
| 15394 | :delim |
| 15395 | h |
| 15396 | s/\(.\{148\}\)..*/\1/ |
| 15397 | t more2 |
| 15398 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 15399 | p |
| 15400 | b |
| 15401 | :more2 |
| 15402 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 15403 | p |
| 15404 | g |
| 15405 | s/.\{148\}// |
| 15406 | t delim |
| 15407 | ' <conf$$subs.awk | sed ' |
| 15408 | /^[^""]/{ |
| 15409 | N |
| 15410 | s/\n// |
| 15411 | } |
| 15412 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15413 | rm -f conf$$subs.awk |
| 15414 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15415 | _ACAWK |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15416 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15417 | for (key in S) S_is_set[key] = 1 |
| 15418 | FS = "" |
| 15419 | |
| 15420 | } |
| 15421 | { |
| 15422 | line = $ 0 |
| 15423 | nfields = split(line, field, "@") |
| 15424 | substed = 0 |
| 15425 | len = length(field[1]) |
| 15426 | for (i = 2; i < nfields; i++) { |
| 15427 | key = field[i] |
| 15428 | keylen = length(key) |
| 15429 | if (S_is_set[key]) { |
| 15430 | value = S[key] |
| 15431 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 15432 | len += length(value) + length(field[++i]) |
| 15433 | substed = 1 |
| 15434 | } else |
| 15435 | len += 1 + keylen |
| 15436 | } |
| 15437 | |
| 15438 | print line |
| 15439 | } |
| 15440 | |
| 15441 | _ACAWK |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15442 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15443 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15444 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 15445 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 15446 | else |
| 15447 | cat |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15448 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15449 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15450 | _ACEOF |
| 15451 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15452 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 15453 | # ${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] | 15454 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15455 | # (actually we leave an empty line to preserve line numbers). |
| 15456 | if test "x$srcdir" = x.; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15457 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 15458 | h |
| 15459 | s/// |
| 15460 | s/^/:/ |
| 15461 | s/[ ]*$/:/ |
| 15462 | s/:\$(srcdir):/:/g |
| 15463 | s/:\${srcdir}:/:/g |
| 15464 | s/:@srcdir@:/:/g |
| 15465 | s/^:*// |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15466 | s/:*$// |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15467 | x |
| 15468 | s/\(=[ ]*\).*/\1/ |
| 15469 | G |
| 15470 | s/\n// |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15471 | s/^[^=]*=[ ]*$// |
| 15472 | }' |
| 15473 | fi |
| 15474 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15475 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15476 | fi # test -n "$CONFIG_FILES" |
| 15477 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15478 | # Set up the scripts for CONFIG_HEADERS section. |
| 15479 | # No need to generate them if there are no CONFIG_HEADERS. |
| 15480 | # This happens for instance with `./config.status Makefile'. |
| 15481 | if test -n "$CONFIG_HEADERS"; then |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15482 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15483 | BEGIN { |
| 15484 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15485 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15486 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 15487 | # here-document in config.status, that substitutes the proper values into |
| 15488 | # config.h.in to produce config.h. |
| 15489 | |
| 15490 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 15491 | # handling of long lines. |
| 15492 | ac_delim='%!_!# ' |
| 15493 | for ac_last_try in false false :; do |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15494 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 15495 | if test -z "$ac_tt"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15496 | break |
| 15497 | elif $ac_last_try; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15498 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15499 | else |
| 15500 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15501 | fi |
| 15502 | done |
| 15503 | |
| 15504 | # For the awk script, D is an array of macro values keyed by name, |
| 15505 | # likewise P contains macro parameters if any. Preserve backslash |
| 15506 | # newline sequences. |
| 15507 | |
| 15508 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 15509 | sed -n ' |
| 15510 | s/.\{148\}/&'"$ac_delim"'/g |
| 15511 | t rset |
| 15512 | :rset |
| 15513 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 15514 | t def |
| 15515 | d |
| 15516 | :def |
| 15517 | s/\\$// |
| 15518 | t bsnl |
| 15519 | s/["\\]/\\&/g |
| 15520 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15521 | D["\1"]=" \3"/p |
| 15522 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 15523 | d |
| 15524 | :bsnl |
| 15525 | s/["\\]/\\&/g |
| 15526 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15527 | D["\1"]=" \3\\\\\\n"\\/p |
| 15528 | t cont |
| 15529 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 15530 | t cont |
| 15531 | d |
| 15532 | :cont |
| 15533 | n |
| 15534 | s/.\{148\}/&'"$ac_delim"'/g |
| 15535 | t clear |
| 15536 | :clear |
| 15537 | s/\\$// |
| 15538 | t bsnlc |
| 15539 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 15540 | d |
| 15541 | :bsnlc |
| 15542 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 15543 | b cont |
| 15544 | ' <confdefs.h | sed ' |
| 15545 | s/'"$ac_delim"'/"\\\ |
| 15546 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15547 | |
| 15548 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15549 | for (key in D) D_is_set[key] = 1 |
| 15550 | FS = "" |
| 15551 | } |
| 15552 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 15553 | line = \$ 0 |
| 15554 | split(line, arg, " ") |
| 15555 | if (arg[1] == "#") { |
| 15556 | defundef = arg[2] |
| 15557 | mac1 = arg[3] |
| 15558 | } else { |
| 15559 | defundef = substr(arg[1], 2) |
| 15560 | mac1 = arg[2] |
| 15561 | } |
| 15562 | split(mac1, mac2, "(") #) |
| 15563 | macro = mac2[1] |
| 15564 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 15565 | if (D_is_set[macro]) { |
| 15566 | # Preserve the white space surrounding the "#". |
| 15567 | print prefix "define", macro P[macro] D[macro] |
| 15568 | next |
| 15569 | } else { |
| 15570 | # Replace #undef with comments. This is necessary, for example, |
| 15571 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 15572 | # on some systems where configure will not decide to define it. |
| 15573 | if (defundef == "undef") { |
| 15574 | print "/*", prefix defundef, macro, "*/" |
| 15575 | next |
| 15576 | } |
| 15577 | } |
| 15578 | } |
| 15579 | { print } |
| 15580 | _ACAWK |
| 15581 | _ACEOF |
| 15582 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15583 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15584 | fi # test -n "$CONFIG_HEADERS" |
| 15585 | |
| 15586 | |
| 15587 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 15588 | shift |
| 15589 | for ac_tag |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15590 | do |
| 15591 | case $ac_tag in |
| 15592 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 15593 | esac |
| 15594 | case $ac_mode$ac_tag in |
| 15595 | :[FHL]*:*);; |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15596 | :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] | 15597 | :[FH]-) ac_tag=-:-;; |
| 15598 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 15599 | esac |
| 15600 | ac_save_IFS=$IFS |
| 15601 | IFS=: |
| 15602 | set x $ac_tag |
| 15603 | IFS=$ac_save_IFS |
| 15604 | shift |
| 15605 | ac_file=$1 |
| 15606 | shift |
| 15607 | |
| 15608 | case $ac_mode in |
| 15609 | :L) ac_source=$1;; |
| 15610 | :[FH]) |
| 15611 | ac_file_inputs= |
| 15612 | for ac_f |
| 15613 | do |
| 15614 | case $ac_f in |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15615 | -) ac_f="$ac_tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15616 | *) # Look for the file first in the build tree, then in the source tree |
| 15617 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 15618 | # because $ac_f cannot contain `:'. |
| 15619 | test -f "$ac_f" || |
| 15620 | case $ac_f in |
| 15621 | [\\/$]*) false;; |
| 15622 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15623 | esac || |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15624 | 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] | 15625 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15626 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 15627 | as_fn_append ac_file_inputs " '$ac_f'" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15628 | done |
| 15629 | |
| 15630 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15631 | # use $as_me), people would be surprised to read: |
| 15632 | # /* config.h. Generated by config.status. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15633 | configure_input='Generated from '` |
| 15634 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 15635 | `' by configure.' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15636 | if test x"$ac_file" != x-; then |
| 15637 | configure_input="$ac_file. $configure_input" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15638 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 15639 | $as_echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15640 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15641 | # Neutralize special characters interpreted by sed in replacement strings. |
| 15642 | case $configure_input in #( |
| 15643 | *\&* | *\|* | *\\* ) |
| 15644 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 15645 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 15646 | *) ac_sed_conf_input=$configure_input;; |
| 15647 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15648 | |
| 15649 | case $ac_tag in |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15650 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 15651 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15652 | esac |
| 15653 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15654 | esac |
| 15655 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15656 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15658 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15659 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15660 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15661 | $as_echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15662 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15663 | s//\1/ |
| 15664 | q |
| 15665 | } |
| 15666 | /^X\(\/\/\)[^/].*/{ |
| 15667 | s//\1/ |
| 15668 | q |
| 15669 | } |
| 15670 | /^X\(\/\/\)$/{ |
| 15671 | s//\1/ |
| 15672 | q |
| 15673 | } |
| 15674 | /^X\(\/\).*/{ |
| 15675 | s//\1/ |
| 15676 | q |
| 15677 | } |
| 15678 | s/.*/./; q'` |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15679 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15680 | ac_builddir=. |
| 15681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15682 | case "$ac_dir" in |
| 15683 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15684 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15685 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15686 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15687 | 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] | 15688 | case $ac_top_builddir_sub in |
| 15689 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15690 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 15691 | esac ;; |
| 15692 | esac |
| 15693 | ac_abs_top_builddir=$ac_pwd |
| 15694 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 15695 | # for backward compatibility: |
| 15696 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15697 | |
| 15698 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15699 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15701 | ac_top_srcdir=$ac_top_builddir_sub |
| 15702 | ac_abs_top_srcdir=$ac_pwd ;; |
| 15703 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15704 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15705 | ac_top_srcdir=$srcdir |
| 15706 | ac_abs_top_srcdir=$srcdir ;; |
| 15707 | *) # Relative name. |
| 15708 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 15709 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 15710 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15711 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15712 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15714 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15715 | case $ac_mode in |
| 15716 | :F) |
| 15717 | # |
| 15718 | # CONFIG_FILE |
| 15719 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15720 | |
| 15721 | case $INSTALL in |
| 15722 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15723 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15724 | esac |
Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15725 | ac_MKDIR_P=$MKDIR_P |
| 15726 | case $MKDIR_P in |
| 15727 | [\\/$]* | ?:[\\/]* ) ;; |
| 15728 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 15729 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15730 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15731 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15733 | # If the template does not know about datarootdir, expand it. |
| 15734 | # FIXME: This hack should be removed a few years after 2.60. |
| 15735 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15736 | ac_sed_dataroot=' |
| 15737 | /datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15738 | p |
| 15739 | q |
| 15740 | } |
| 15741 | /@datadir@/p |
| 15742 | /@docdir@/p |
| 15743 | /@infodir@/p |
| 15744 | /@localedir@/p |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15745 | /@mandir@/p' |
| 15746 | 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] | 15747 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 15748 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 15750 | $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] | 15751 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15752 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15753 | ac_datarootdir_hack=' |
| 15754 | s&@datadir@&$datadir&g |
| 15755 | s&@docdir@&$docdir&g |
| 15756 | s&@infodir@&$infodir&g |
| 15757 | s&@localedir@&$localedir&g |
| 15758 | s&@mandir@&$mandir&g |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15759 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15760 | esac |
| 15761 | _ACEOF |
| 15762 | |
| 15763 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15764 | # Shell code in configure.ac might set extrasub. |
| 15765 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15766 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15767 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15768 | $extrasub |
| 15769 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15770 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15771 | :t |
| 15772 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15773 | s|@configure_input@|$ac_sed_conf_input|;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15774 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15775 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15776 | s&@srcdir@&$ac_srcdir&;t t |
| 15777 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15778 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15779 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15780 | s&@builddir@&$ac_builddir&;t t |
| 15781 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15782 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15783 | s&@INSTALL@&$ac_INSTALL&;t t |
Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15784 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15785 | $ac_datarootdir_hack |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15786 | " |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15787 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 15788 | >$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] | 15789 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15790 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15791 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 15792 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 15793 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15794 | { $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] | 15795 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15796 | $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] | 15797 | 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] | 15798 | |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15799 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15800 | case $ac_file in |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15801 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 15802 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15803 | esac \ |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15804 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15805 | ;; |
| 15806 | :H) |
| 15807 | # |
| 15808 | # CONFIG_HEADER |
| 15809 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15810 | if test x"$ac_file" != x-; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15811 | { |
| 15812 | $as_echo "/* $configure_input */" \ |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15813 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 15814 | } >"$ac_tmp/config.h" \ |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15815 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15816 | 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] | 15817 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15818 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15819 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15820 | rm -f "$ac_file" |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15821 | mv "$ac_tmp/config.h" "$ac_file" \ |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15822 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15823 | fi |
| 15824 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15825 | $as_echo "/* $configure_input */" \ |
Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15826 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15827 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15829 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15831 | |
| 15832 | esac |
| 15833 | |
Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15834 | |
| 15835 | case $ac_file$ac_mode in |
| 15836 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 15837 | |
| 15838 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15839 | done # for ac_tag |
| 15840 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15841 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15842 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15843 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | ac_clean_files=$ac_clean_files_save |
| 15845 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15846 | test $ac_write_fail = 0 || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15847 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15849 | |
| 15850 | # configure is writing to config.log, and then calls config.status. |
| 15851 | # config.status does its own redirection, appending to config.log. |
| 15852 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15853 | # by configure, so config.status won't be able to write to it; its |
| 15854 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15855 | # effectively closing config.log, so it can be properly (re)opened and |
| 15856 | # appended to by config.status. When coming back to configure, we |
| 15857 | # need to make the FD available again. |
| 15858 | if test "$no_create" != yes; then |
| 15859 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15860 | ac_config_status_args= |
| 15861 | test "$silent" = yes && |
| 15862 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15864 | $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] | 15865 | exec 5>>config.log |
| 15866 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15867 | # would make configure fail if this is the last instruction. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15868 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15869 | fi |
| 15870 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 15871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 15872 | $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] | 15873 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15874 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15875 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15876 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15877 | if test ! -f Modules/Setup |
| 15878 | then |
| 15879 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 15880 | fi |
| 15881 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15882 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15883 | if test ! -f Modules/Setup.local |
| 15884 | then |
| 15885 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 15886 | fi |
| 15887 | |
| 15888 | echo "creating Makefile" |
| 15889 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 15890 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15891 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15892 | |
| 15893 | case $ac_sys_system in |
| 15894 | BeOS) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15895 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15896 | |
| 15897 | Support for BeOS is deprecated as of Python 2.6. |
| 15898 | See PEP 11 for the gory details. |
| 15899 | " >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15900 | $as_echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15901 | |
| 15902 | Support for BeOS is deprecated as of Python 2.6. |
| 15903 | See PEP 11 for the gory details. |
| 15904 | " >&2;} |
| 15905 | ;; |
| 15906 | *) ;; |
| 15907 | esac |
| 15908 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15909 | mv config.c Modules |