Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60a for Wine 0.9.18. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5 | # Report bugs to <wine-devel@winehq.org>. |
| 6 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22 | setopt NO_GLOB_SUBST |
| 23 | else |
| 24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 27 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 28 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 29 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 30 | # PATH needs CR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 31 | # Avoid depending upon Character Ranges. |
| 32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35 | as_cr_digits='0123456789' |
| 36 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 37 | |
| 38 | # The user is always right. |
| 39 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 40 | echo "#! /bin/sh" >conf$$.sh |
| 41 | echo "exit 0" >>conf$$.sh |
| 42 | chmod +x conf$$.sh |
| 43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 44 | PATH_SEPARATOR=';' |
| 45 | else |
| 46 | PATH_SEPARATOR=: |
| 47 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 48 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 49 | fi |
| 50 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 51 | # Support unset when possible. |
| 52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 53 | as_unset=unset |
| 54 | else |
| 55 | as_unset=false |
| 56 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 57 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 58 | |
| 59 | # IFS |
| 60 | # We need space, tab and new line, in precisely that order. Quoting is |
| 61 | # there to prevent editors from complaining about space-tab. |
| 62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 63 | # splitting by setting IFS to empty value.) |
| 64 | as_nl=' |
| 65 | ' |
| 66 | IFS=" "" $as_nl" |
| 67 | |
| 68 | # Find who we are. Look in the path if we contain no directory separator. |
| 69 | case $0 in |
| 70 | *[\\/]* ) as_myself=$0 ;; |
| 71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 72 | for as_dir in $PATH |
| 73 | do |
| 74 | IFS=$as_save_IFS |
| 75 | test -z "$as_dir" && as_dir=. |
| 76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 77 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 78 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 79 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 80 | ;; |
| 81 | esac |
| 82 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 83 | # in which case we are not to be found in the path. |
| 84 | if test "x$as_myself" = x; then |
| 85 | as_myself=$0 |
| 86 | fi |
| 87 | if test ! -f "$as_myself"; then |
| 88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 89 | { (exit 1); exit 1; } |
| 90 | fi |
| 91 | |
| 92 | # Work around bugs in pre-3.0 UWIN ksh. |
| 93 | for as_var in ENV MAIL MAILPATH |
| 94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 95 | done |
| 96 | PS1='$ ' |
| 97 | PS2='> ' |
| 98 | PS4='+ ' |
| 99 | |
| 100 | # NLS nuisances. |
| 101 | for as_var in \ |
| 102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 104 | LC_TELEPHONE LC_TIME |
| 105 | do |
| 106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 107 | eval $as_var=C; export $as_var |
| 108 | else |
| 109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 110 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 111 | done |
| 112 | |
| 113 | # Required to use basename. |
| 114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 116 | as_expr=expr |
| 117 | else |
| 118 | as_expr=false |
| 119 | fi |
| 120 | |
| 121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 122 | as_basename=basename |
| 123 | else |
| 124 | as_basename=false |
| 125 | fi |
| 126 | |
| 127 | |
| 128 | # Name of the executable. |
| 129 | as_me=`$as_basename -- "$0" || |
| 130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 131 | X"$0" : 'X\(//\)$' \| \ |
| 132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 133 | echo X/"$0" | |
| 134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 135 | s//\1/ |
| 136 | q |
| 137 | } |
| 138 | /^X\/\(\/\/\)$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\).*/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | s/.*/./; q'` |
| 147 | |
| 148 | # CDPATH. |
| 149 | $as_unset CDPATH |
| 150 | |
| 151 | |
| 152 | if test "x$CONFIG_SHELL" = x; then |
| 153 | if (eval ":") 2>/dev/null; then |
| 154 | as_have_required=yes |
| 155 | else |
| 156 | as_have_required=no |
| 157 | fi |
| 158 | |
| 159 | if test $as_have_required = yes && (eval ": |
| 160 | (as_func_return () { |
| 161 | (exit \$1) |
| 162 | } |
| 163 | as_func_success () { |
| 164 | as_func_return 0 |
| 165 | } |
| 166 | as_func_failure () { |
| 167 | as_func_return 1 |
| 168 | } |
| 169 | as_func_ret_success () { |
| 170 | return 0 |
| 171 | } |
| 172 | as_func_ret_failure () { |
| 173 | return 1 |
| 174 | } |
| 175 | |
| 176 | exitcode=0 |
| 177 | if as_func_success; then |
| 178 | : |
| 179 | else |
| 180 | exitcode=1 |
| 181 | echo as_func_success failed. |
| 182 | fi |
| 183 | |
| 184 | if as_func_failure; then |
| 185 | exitcode=1 |
| 186 | echo as_func_failure succeeded. |
| 187 | fi |
| 188 | |
| 189 | if as_func_ret_success; then |
| 190 | : |
| 191 | else |
| 192 | exitcode=1 |
| 193 | echo as_func_ret_success failed. |
| 194 | fi |
| 195 | |
| 196 | if as_func_ret_failure; then |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_failure succeeded. |
| 199 | fi |
| 200 | |
| 201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 202 | : |
| 203 | else |
| 204 | exitcode=1 |
| 205 | echo positional parameters were not saved. |
| 206 | fi |
| 207 | |
| 208 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 209 | |
| 210 | ( |
| 211 | as_lineno_1=\$LINENO |
| 212 | as_lineno_2=\$LINENO |
| 213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 215 | ") 2> /dev/null; then |
| 216 | : |
| 217 | else |
| 218 | as_candidate_shells= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 224 | case $as_dir in |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 225 | /*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 226 | for as_base in sh bash ksh sh5; do |
| 227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 228 | done;; |
| 229 | esac |
| 230 | done |
| 231 | IFS=$as_save_IFS |
| 232 | |
| 233 | |
| 234 | for as_shell in $as_candidate_shells $SHELL; do |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 235 | # Try only shells that exist, to save several forks. |
| 236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 237 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 238 | # Be Bourne compatible |
| 239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 240 | emulate sh |
| 241 | NULLCMD=: |
| 242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 243 | # is contrary to our usage. Disable this feature. |
| 244 | alias -g '${1+"$@"}'='"$@"' |
| 245 | setopt NO_GLOB_SUBST |
| 246 | else |
| 247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 248 | fi |
| 249 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 250 | DUALCASE=1; export DUALCASE # for MKS sh |
| 251 | |
| 252 | : |
| 253 | _ASEOF |
| 254 | }; then |
| 255 | CONFIG_SHELL=$as_shell |
| 256 | as_have_required=yes |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 258 | # Be Bourne compatible |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 268 | fi |
| 269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 270 | DUALCASE=1; export DUALCASE # for MKS sh |
| 271 | |
| 272 | : |
| 273 | (as_func_return () { |
| 274 | (exit $1) |
| 275 | } |
| 276 | as_func_success () { |
| 277 | as_func_return 0 |
| 278 | } |
| 279 | as_func_failure () { |
| 280 | as_func_return 1 |
| 281 | } |
| 282 | as_func_ret_success () { |
| 283 | return 0 |
| 284 | } |
| 285 | as_func_ret_failure () { |
| 286 | return 1 |
| 287 | } |
| 288 | |
| 289 | exitcode=0 |
| 290 | if as_func_success; then |
| 291 | : |
| 292 | else |
| 293 | exitcode=1 |
| 294 | echo as_func_success failed. |
| 295 | fi |
| 296 | |
| 297 | if as_func_failure; then |
| 298 | exitcode=1 |
| 299 | echo as_func_failure succeeded. |
| 300 | fi |
| 301 | |
| 302 | if as_func_ret_success; then |
| 303 | : |
| 304 | else |
| 305 | exitcode=1 |
| 306 | echo as_func_ret_success failed. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_failure; then |
| 310 | exitcode=1 |
| 311 | echo as_func_ret_failure succeeded. |
| 312 | fi |
| 313 | |
| 314 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 315 | : |
| 316 | else |
| 317 | exitcode=1 |
| 318 | echo positional parameters were not saved. |
| 319 | fi |
| 320 | |
| 321 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 322 | |
| 323 | ( |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 324 | as_lineno_1=$LINENO |
| 325 | as_lineno_2=$LINENO |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 328 | |
| 329 | _ASEOF |
| 330 | }; then |
| 331 | break |
| 332 | fi |
| 333 | |
| 334 | fi |
| 335 | |
| 336 | done |
| 337 | |
| 338 | if test "x$CONFIG_SHELL" != x; then |
| 339 | for as_var in BASH_ENV ENV |
| 340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 341 | done |
| 342 | export CONFIG_SHELL |
| 343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 344 | fi |
| 345 | |
| 346 | |
| 347 | if test $as_have_required = no; then |
| 348 | echo This script requires a shell more modern than all the |
| 349 | echo shells that I found on your system. Please install a |
| 350 | echo modern shell, or manually run the script under such a |
| 351 | echo shell if you do have one. |
| 352 | { (exit 1); exit 1; } |
| 353 | fi |
| 354 | |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | |
| 361 | |
| 362 | (eval "as_func_return () { |
| 363 | (exit \$1) |
| 364 | } |
| 365 | as_func_success () { |
| 366 | as_func_return 0 |
| 367 | } |
| 368 | as_func_failure () { |
| 369 | as_func_return 1 |
| 370 | } |
| 371 | as_func_ret_success () { |
| 372 | return 0 |
| 373 | } |
| 374 | as_func_ret_failure () { |
| 375 | return 1 |
| 376 | } |
| 377 | |
| 378 | exitcode=0 |
| 379 | if as_func_success; then |
| 380 | : |
| 381 | else |
| 382 | exitcode=1 |
| 383 | echo as_func_success failed. |
| 384 | fi |
| 385 | |
| 386 | if as_func_failure; then |
| 387 | exitcode=1 |
| 388 | echo as_func_failure succeeded. |
| 389 | fi |
| 390 | |
| 391 | if as_func_ret_success; then |
| 392 | : |
| 393 | else |
| 394 | exitcode=1 |
| 395 | echo as_func_ret_success failed. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_failure; then |
| 399 | exitcode=1 |
| 400 | echo as_func_ret_failure succeeded. |
| 401 | fi |
| 402 | |
| 403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 404 | : |
| 405 | else |
| 406 | exitcode=1 |
| 407 | echo positional parameters were not saved. |
| 408 | fi |
| 409 | |
| 410 | test \$exitcode = 0") || { |
| 411 | echo No shell found that supports shell functions. |
| 412 | echo Please tell autoconf@gnu.org about your system, |
| 413 | echo including any error possibly output before this |
| 414 | echo message |
| 415 | } |
| 416 | |
| 417 | |
| 418 | |
| 419 | as_lineno_1=$LINENO |
| 420 | as_lineno_2=$LINENO |
| 421 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 423 | |
| 424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 425 | # uniformly replaced by the line number. The first 'sed' inserts a |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 426 | # line-number line after each line using $LINENO; the second 'sed' |
| 427 | # does the real work. The second script uses 'N' to pair each |
| 428 | # line-number line with the line containing $LINENO, and appends |
| 429 | # trailing '-' during substitution so that $LINENO is not a special |
| 430 | # case at line end. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 433 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 434 | sed -n ' |
| 435 | p |
| 436 | /[$]LINENO/= |
| 437 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 438 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 439 | s/[$]LINENO.*/&-/ |
| 440 | t lineno |
| 441 | b |
| 442 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 443 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 444 | :loop |
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 446 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 447 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 448 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 449 | chmod +x "$as_me.lineno" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 451 | { (exit 1); exit 1; }; } |
| 452 | |
| 453 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 454 | # (the dirname of $[0] is not the place where we might find the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 455 | # original and so on. Autoconf is especially sensitive to this). |
| 456 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 457 | # Exit status is that of the last command. |
| 458 | exit |
| 459 | } |
| 460 | |
| 461 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 463 | as_dirname=dirname |
| 464 | else |
| 465 | as_dirname=false |
| 466 | fi |
| 467 | |
| 468 | ECHO_C= ECHO_N= ECHO_T= |
| 469 | case `echo -n x` in |
| 470 | -n*) |
| 471 | case `echo 'x\c'` in |
| 472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 473 | *) ECHO_C='\c';; |
| 474 | esac;; |
| 475 | *) |
| 476 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 477 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 478 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 481 | as_expr=expr |
| 482 | else |
| 483 | as_expr=false |
| 484 | fi |
| 485 | |
| 486 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 487 | if test -d conf$$.dir; then |
| 488 | rm -f conf$$.dir/conf$$.file |
| 489 | else |
| 490 | rm -f conf$$.dir |
| 491 | mkdir conf$$.dir |
| 492 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 493 | echo >conf$$.file |
| 494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 495 | as_ln_s='ln -s' |
| 496 | # ... but there are two gotchas: |
| 497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 499 | # In both cases, we have to default to `cp -p'. |
| 500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 501 | as_ln_s='cp -p' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 503 | as_ln_s=ln |
| 504 | else |
| 505 | as_ln_s='cp -p' |
| 506 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 508 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 509 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 510 | if mkdir -p . 2>/dev/null; then |
| 511 | as_mkdir_p=: |
| 512 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 513 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 514 | as_mkdir_p=false |
| 515 | fi |
| 516 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 518 | # systems may use methods other than mode bits to determine executability. |
| 519 | cat >conf$$.file <<_ASEOF |
| 520 | #! /bin/sh |
| 521 | exit 0 |
| 522 | _ASEOF |
| 523 | chmod +x conf$$.file |
| 524 | if test -x conf$$.file >/dev/null 2>&1; then |
| 525 | as_executable_p="test -x" |
| 526 | else |
| 527 | as_executable_p=: |
| 528 | fi |
| 529 | rm -f conf$$.file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 530 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 531 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 533 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 534 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 536 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 537 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 538 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 539 | exec 7<&0 </dev/null 6>&1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 540 | |
| 541 | # Name of the host. |
| 542 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 543 | # so uname gets run too. |
| 544 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 545 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 546 | # |
| 547 | # Initializations. |
| 548 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 549 | ac_default_prefix=/usr/local |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 550 | ac_clean_files= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 551 | ac_config_libobj_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 552 | LIBOBJS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 553 | cross_compiling=no |
| 554 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 555 | MFLAGS= |
| 556 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 557 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 558 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 559 | # Identity of this package. |
| 560 | PACKAGE_NAME='Wine' |
| 561 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 562 | PACKAGE_VERSION='0.9.18' |
| 563 | PACKAGE_STRING='Wine 0.9.18' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 564 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 565 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 566 | ac_unique_file="server/atom.c" |
| 567 | # Factoring default headers for most tests. |
| 568 | ac_includes_default="\ |
| 569 | #include <stdio.h> |
| 570 | #if HAVE_SYS_TYPES_H |
| 571 | # include <sys/types.h> |
| 572 | #endif |
| 573 | #if HAVE_SYS_STAT_H |
| 574 | # include <sys/stat.h> |
| 575 | #endif |
| 576 | #if STDC_HEADERS |
| 577 | # include <stdlib.h> |
| 578 | # include <stddef.h> |
| 579 | #else |
| 580 | # if HAVE_STDLIB_H |
| 581 | # include <stdlib.h> |
| 582 | # endif |
| 583 | #endif |
| 584 | #if HAVE_STRING_H |
| 585 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 586 | # include <memory.h> |
| 587 | # endif |
| 588 | # include <string.h> |
| 589 | #endif |
| 590 | #if HAVE_STRINGS_H |
| 591 | # include <strings.h> |
| 592 | #endif |
| 593 | #if HAVE_INTTYPES_H |
| 594 | # include <inttypes.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 595 | #endif |
| 596 | #if HAVE_STDINT_H |
| 597 | # include <stdint.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 598 | #endif |
| 599 | #if HAVE_UNISTD_H |
| 600 | # include <unistd.h> |
| 601 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 602 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 603 | ac_subst_vars='SHELL |
| 604 | PATH_SEPARATOR |
| 605 | PACKAGE_NAME |
| 606 | PACKAGE_TARNAME |
| 607 | PACKAGE_VERSION |
| 608 | PACKAGE_STRING |
| 609 | PACKAGE_BUGREPORT |
| 610 | exec_prefix |
| 611 | prefix |
| 612 | program_transform_name |
| 613 | bindir |
| 614 | sbindir |
| 615 | libexecdir |
| 616 | datarootdir |
| 617 | datadir |
| 618 | sysconfdir |
| 619 | sharedstatedir |
| 620 | localstatedir |
| 621 | includedir |
| 622 | oldincludedir |
| 623 | docdir |
| 624 | infodir |
| 625 | htmldir |
| 626 | dvidir |
| 627 | pdfdir |
| 628 | psdir |
| 629 | libdir |
| 630 | localedir |
| 631 | mandir |
| 632 | DEFS |
| 633 | ECHO_C |
| 634 | ECHO_N |
| 635 | ECHO_T |
| 636 | LIBS |
| 637 | build_alias |
| 638 | host_alias |
| 639 | target_alias |
| 640 | build |
| 641 | build_cpu |
| 642 | build_vendor |
| 643 | build_os |
| 644 | host |
| 645 | host_cpu |
| 646 | host_vendor |
| 647 | host_os |
| 648 | WIN16_FILES |
| 649 | WIN16_INSTALL |
| 650 | SET_MAKE |
| 651 | CC |
| 652 | CFLAGS |
| 653 | LDFLAGS |
| 654 | CPPFLAGS |
| 655 | ac_ct_CC |
| 656 | EXEEXT |
| 657 | OBJEXT |
| 658 | CXX |
| 659 | CXXFLAGS |
| 660 | ac_ct_CXX |
| 661 | CPPBIN |
| 662 | TOOLSDIR |
| 663 | XMKMF |
| 664 | CPP |
| 665 | X_CFLAGS |
| 666 | X_PRE_LIBS |
| 667 | X_LIBS |
| 668 | X_EXTRA_LIBS |
| 669 | LEX |
| 670 | LEXLIB |
| 671 | LEX_OUTPUT_ROOT |
| 672 | XLEX |
| 673 | BISON |
| 674 | AS |
| 675 | ac_ct_AS |
| 676 | LD |
| 677 | AR |
| 678 | RANLIB |
| 679 | STRIP |
| 680 | WINDRES |
| 681 | LN_S |
| 682 | LN |
| 683 | GREP |
| 684 | EGREP |
| 685 | LDCONFIG |
| 686 | INSTALL_PROGRAM |
| 687 | INSTALL_SCRIPT |
| 688 | INSTALL_DATA |
| 689 | LINT |
| 690 | LINTFLAGS |
| 691 | FONTFORGE |
| 692 | PKG_CONFIG |
| 693 | PRELINK |
| 694 | LIBPTHREAD |
| 695 | XLIB |
| 696 | XFILES |
| 697 | OPENGLFILES |
| 698 | GLU32FILES |
| 699 | OPENGL_LIBS |
| 700 | GLUT_LIBS |
| 701 | GLUT32FILES |
| 702 | NASLIBS |
| 703 | XML2LIBS |
| 704 | XML2INCL |
| 705 | XSLTLIBS |
| 706 | XSLTINCL |
| 707 | HALINCL |
| 708 | CURSESLIBS |
| 709 | sane_devel |
| 710 | SANELIBS |
| 711 | SANEINCL |
| 712 | gphoto2_devel |
| 713 | gphoto2port_devel |
| 714 | GPHOTO2LIBS |
| 715 | GPHOTO2INCL |
| 716 | ICULIBS |
| 717 | RESOLVLIBS |
| 718 | LCMSLIBS |
| 719 | LDAPLIBS |
| 720 | FREETYPELIBS |
| 721 | FREETYPEINCL |
| 722 | ft_devel |
| 723 | ft_devel2 |
| 724 | FONTSSUBDIRS |
| 725 | ARTSCCONFIG |
| 726 | ARTSLIBS |
| 727 | ARTSINCL |
| 728 | ESDCONFIG |
| 729 | ESDLIBS |
| 730 | ESDINCL |
| 731 | ALSALIBS |
| 732 | AUDIOIOLIBS |
| 733 | EXTRACFLAGS |
| 734 | BUILTINFLAG |
| 735 | DLLEXT |
| 736 | DLLFLAGS |
| 737 | DLLIBS |
| 738 | LDSHARED |
| 739 | LDDLLFLAGS |
| 740 | LIBEXT |
| 741 | IMPLIBEXT |
| 742 | DLLTOOL |
| 743 | DLLWRAP |
| 744 | LDEXECFLAGS |
| 745 | LDEXERPATH |
| 746 | LDDLLRPATH |
| 747 | COREFOUNDATIONLIB |
| 748 | IOKITLIB |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 749 | COREAUDIO |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 750 | CROSSTEST |
| 751 | CROSSCC |
| 752 | CROSSWINDRES |
| 753 | LDPATH |
| 754 | CRTLIBS |
| 755 | SOCKETLIBS |
| 756 | MAIN_BINARY |
| 757 | EXTRA_BINARIES |
| 758 | LDD |
| 759 | LIBOBJS |
| 760 | LTLIBOBJS' |
| 761 | ac_subst_files='MAKE_RULES |
| 762 | MAKE_DLL_RULES |
| 763 | MAKE_IMPLIB_RULES |
| 764 | MAKE_TEST_RULES |
| 765 | MAKE_LIB_RULES |
| 766 | MAKE_PROG_RULES' |
| 767 | ac_precious_vars='build_alias |
| 768 | host_alias |
| 769 | target_alias |
| 770 | CC |
| 771 | CFLAGS |
| 772 | LDFLAGS |
| 773 | CPPFLAGS |
| 774 | CXX |
| 775 | CXXFLAGS |
| 776 | CCC |
| 777 | XMKMF |
| 778 | CPP' |
| 779 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 780 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 781 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 782 | ac_init_help= |
| 783 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 784 | # The variables have the same names as the options, with |
| 785 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 786 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 787 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 788 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 789 | no_recursion= |
| 790 | prefix=NONE |
| 791 | program_prefix=NONE |
| 792 | program_suffix=NONE |
| 793 | program_transform_name=s,x,x, |
| 794 | silent= |
| 795 | site= |
| 796 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 797 | verbose= |
| 798 | x_includes=NONE |
| 799 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 800 | |
| 801 | # Installation directory options. |
| 802 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 803 | # and all the variables that are supposed to be based on exec_prefix |
| 804 | # by default will actually change. |
| 805 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 806 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 807 | bindir='${exec_prefix}/bin' |
| 808 | sbindir='${exec_prefix}/sbin' |
| 809 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 810 | datarootdir='${prefix}/share' |
| 811 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 812 | sysconfdir='${prefix}/etc' |
| 813 | sharedstatedir='${prefix}/com' |
| 814 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 815 | includedir='${prefix}/include' |
| 816 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 817 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 818 | infodir='${datarootdir}/info' |
| 819 | htmldir='${docdir}' |
| 820 | dvidir='${docdir}' |
| 821 | pdfdir='${docdir}' |
| 822 | psdir='${docdir}' |
| 823 | libdir='${exec_prefix}/lib' |
| 824 | localedir='${datarootdir}/locale' |
| 825 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 826 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 827 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 828 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 829 | for ac_option |
| 830 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 831 | # If the previous option needs an argument, assign it. |
| 832 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 833 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 834 | ac_prev= |
| 835 | continue |
| 836 | fi |
| 837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 838 | case $ac_option in |
| 839 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 840 | *) ac_optarg=yes ;; |
| 841 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 842 | |
| 843 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 844 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 845 | case $ac_dashdash$ac_option in |
| 846 | --) |
| 847 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 848 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 849 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 850 | ac_prev=bindir ;; |
| 851 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 852 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 853 | |
| 854 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 855 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 856 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 857 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 858 | |
| 859 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 860 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 861 | ac_prev=cache_file ;; |
| 862 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 863 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 864 | cache_file=$ac_optarg ;; |
| 865 | |
| 866 | --config-cache | -C) |
| 867 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 868 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 869 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 870 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 871 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 872 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 873 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 874 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 875 | | --dataroo | --dataro | --datar) |
| 876 | ac_prev=datarootdir ;; |
| 877 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 878 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 879 | datarootdir=$ac_optarg ;; |
| 880 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 881 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 882 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 883 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 884 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 885 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 886 | { (exit 1); exit 1; }; } |
| 887 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 888 | eval enable_$ac_feature=no ;; |
| 889 | |
| 890 | -docdir | --docdir | --docdi | --doc | --do) |
| 891 | ac_prev=docdir ;; |
| 892 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 893 | docdir=$ac_optarg ;; |
| 894 | |
| 895 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 896 | ac_prev=dvidir ;; |
| 897 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 898 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 899 | |
| 900 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 901 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 902 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 903 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 904 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 905 | { (exit 1); exit 1; }; } |
| 906 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 907 | eval enable_$ac_feature=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 908 | |
| 909 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 910 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 911 | | --exec | --exe | --ex) |
| 912 | ac_prev=exec_prefix ;; |
| 913 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 914 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 915 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 916 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 917 | |
| 918 | -gas | --gas | --ga | --g) |
| 919 | # Obsolete; use --with-gas. |
| 920 | with_gas=yes ;; |
| 921 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 922 | -help | --help | --hel | --he | -h) |
| 923 | ac_init_help=long ;; |
| 924 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 925 | ac_init_help=recursive ;; |
| 926 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 927 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 928 | |
| 929 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 930 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 931 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 932 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 933 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 934 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 935 | ac_prev=htmldir ;; |
| 936 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 937 | | --ht=*) |
| 938 | htmldir=$ac_optarg ;; |
| 939 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 940 | -includedir | --includedir | --includedi | --included | --include \ |
| 941 | | --includ | --inclu | --incl | --inc) |
| 942 | ac_prev=includedir ;; |
| 943 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 944 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 945 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 946 | |
| 947 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 948 | ac_prev=infodir ;; |
| 949 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 950 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 951 | |
| 952 | -libdir | --libdir | --libdi | --libd) |
| 953 | ac_prev=libdir ;; |
| 954 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 955 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 956 | |
| 957 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 958 | | --libexe | --libex | --libe) |
| 959 | ac_prev=libexecdir ;; |
| 960 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 961 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 962 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 963 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 964 | -localedir | --localedir | --localedi | --localed | --locale) |
| 965 | ac_prev=localedir ;; |
| 966 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 967 | localedir=$ac_optarg ;; |
| 968 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 969 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 970 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 971 | ac_prev=localstatedir ;; |
| 972 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 973 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 974 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 975 | |
| 976 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 977 | ac_prev=mandir ;; |
| 978 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 979 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 980 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 981 | -nfp | --nfp | --nf) |
| 982 | # Obsolete; use --without-fp. |
| 983 | with_fp=no ;; |
| 984 | |
| 985 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 986 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 987 | no_create=yes ;; |
| 988 | |
| 989 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 990 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 991 | no_recursion=yes ;; |
| 992 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 993 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 994 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 995 | | --oldin | --oldi | --old | --ol | --o) |
| 996 | ac_prev=oldincludedir ;; |
| 997 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 998 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 999 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1000 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1001 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1002 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1003 | ac_prev=prefix ;; |
| 1004 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1005 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1006 | |
| 1007 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1008 | | --program-pre | --program-pr | --program-p) |
| 1009 | ac_prev=program_prefix ;; |
| 1010 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1011 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1012 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1013 | |
| 1014 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1015 | | --program-suf | --program-su | --program-s) |
| 1016 | ac_prev=program_suffix ;; |
| 1017 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1018 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1019 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1020 | |
| 1021 | -program-transform-name | --program-transform-name \ |
| 1022 | | --program-transform-nam | --program-transform-na \ |
| 1023 | | --program-transform-n | --program-transform- \ |
| 1024 | | --program-transform | --program-transfor \ |
| 1025 | | --program-transfo | --program-transf \ |
| 1026 | | --program-trans | --program-tran \ |
| 1027 | | --progr-tra | --program-tr | --program-t) |
| 1028 | ac_prev=program_transform_name ;; |
| 1029 | -program-transform-name=* | --program-transform-name=* \ |
| 1030 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1031 | | --program-transform-n=* | --program-transform-=* \ |
| 1032 | | --program-transform=* | --program-transfor=* \ |
| 1033 | | --program-transfo=* | --program-transf=* \ |
| 1034 | | --program-trans=* | --program-tran=* \ |
| 1035 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1036 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1037 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1038 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1039 | ac_prev=pdfdir ;; |
| 1040 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1041 | pdfdir=$ac_optarg ;; |
| 1042 | |
| 1043 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1044 | ac_prev=psdir ;; |
| 1045 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1046 | psdir=$ac_optarg ;; |
| 1047 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1049 | | -silent | --silent | --silen | --sile | --sil) |
| 1050 | silent=yes ;; |
| 1051 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1052 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1053 | ac_prev=sbindir ;; |
| 1054 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1055 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1056 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1057 | |
| 1058 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1059 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1060 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1061 | | --sha | --sh) |
| 1062 | ac_prev=sharedstatedir ;; |
| 1063 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1064 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1065 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1066 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1067 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1068 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1069 | -site | --site | --sit) |
| 1070 | ac_prev=site ;; |
| 1071 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1072 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1073 | |
| 1074 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1075 | ac_prev=srcdir ;; |
| 1076 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1077 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1078 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1079 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1080 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1081 | ac_prev=sysconfdir ;; |
| 1082 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1083 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1084 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1085 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1086 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1087 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1088 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1089 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1090 | |
| 1091 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1092 | verbose=yes ;; |
| 1093 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1094 | -version | --version | --versio | --versi | --vers | -V) |
| 1095 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1096 | |
| 1097 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1098 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1099 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1100 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1101 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1102 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1103 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1104 | eval with_$ac_package=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1105 | |
| 1106 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1107 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1108 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1109 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1110 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1111 | { (exit 1); exit 1; }; } |
| 1112 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1113 | eval with_$ac_package=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1114 | |
| 1115 | --x) |
| 1116 | # Obsolete; use --with-x. |
| 1117 | with_x=yes ;; |
| 1118 | |
| 1119 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1120 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1121 | ac_prev=x_includes ;; |
| 1122 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1123 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1124 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1125 | |
| 1126 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1127 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1128 | ac_prev=x_libraries ;; |
| 1129 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1130 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1131 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1132 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1133 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1134 | Try \`$0 --help' for more information." >&2 |
| 1135 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1136 | ;; |
| 1137 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1138 | *=*) |
| 1139 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1140 | # Reject names that are not valid shell variable names. |
| 1141 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1142 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1143 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1144 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1145 | export $ac_envvar ;; |
| 1146 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1147 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1148 | # FIXME: should be removed in autoconf 3.0. |
| 1149 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1150 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1151 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1152 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1153 | ;; |
| 1154 | |
| 1155 | esac |
| 1156 | done |
| 1157 | |
| 1158 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1159 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1160 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1161 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1162 | fi |
| 1163 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1164 | # Be sure to have absolute directory names. |
| 1165 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1166 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1167 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1168 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1169 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1170 | eval ac_val=\$$ac_var |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1171 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1172 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1173 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1174 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1175 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1176 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1177 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1178 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1179 | # There might be people who depend on the old broken behavior: `$host' |
| 1180 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1181 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1182 | build=$build_alias |
| 1183 | host=$host_alias |
| 1184 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1185 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1186 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1187 | if test "x$host_alias" != x; then |
| 1188 | if test "x$build_alias" = x; then |
| 1189 | cross_compiling=maybe |
| 1190 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1191 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1192 | elif test "x$build_alias" != "x$host_alias"; then |
| 1193 | cross_compiling=yes |
| 1194 | fi |
| 1195 | fi |
| 1196 | |
| 1197 | ac_tool_prefix= |
| 1198 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1199 | |
| 1200 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1201 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1202 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1203 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1204 | ac_ls_di=`ls -di .` && |
| 1205 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1206 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1207 | { (exit 1); exit 1; }; } |
| 1208 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1209 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1210 | { (exit 1); exit 1; }; } |
| 1211 | |
| 1212 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1213 | # Find the source files, if location was not specified. |
| 1214 | if test -z "$srcdir"; then |
| 1215 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1216 | # Try the directory containing this script, then the parent directory. |
| 1217 | ac_confdir=`$as_dirname -- "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1218 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1219 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1220 | X"$0" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1221 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1222 | echo X"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1224 | s//\1/ |
| 1225 | q |
| 1226 | } |
| 1227 | /^X\(\/\/\)[^/].*/{ |
| 1228 | s//\1/ |
| 1229 | q |
| 1230 | } |
| 1231 | /^X\(\/\/\)$/{ |
| 1232 | s//\1/ |
| 1233 | q |
| 1234 | } |
| 1235 | /^X\(\/\).*/{ |
| 1236 | s//\1/ |
| 1237 | q |
| 1238 | } |
| 1239 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1240 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1241 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1242 | srcdir=.. |
| 1243 | fi |
| 1244 | else |
| 1245 | ac_srcdir_defaulted=no |
| 1246 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1247 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1248 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1249 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1250 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1251 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1252 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1253 | ac_abs_confdir=`( |
| 1254 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1255 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1256 | pwd)` |
| 1257 | # When building in place, set srcdir=. |
| 1258 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1259 | srcdir=. |
| 1260 | fi |
| 1261 | # Remove unnecessary trailing slashes from srcdir. |
| 1262 | # Double slashes in file names in object file debugging info |
| 1263 | # mess up M-x gdb in Emacs. |
| 1264 | case $srcdir in |
| 1265 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1266 | esac |
| 1267 | for ac_var in $ac_precious_vars; do |
| 1268 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1269 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1270 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1271 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1272 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1273 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1274 | # |
| 1275 | # Report the --help message. |
| 1276 | # |
| 1277 | if test "$ac_init_help" = "long"; then |
| 1278 | # Omit some internal or obsolete options to make the list less imposing. |
| 1279 | # This message is too long to be a string in the A/UX 3.1 sh. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1280 | cat <<_ACEOF |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 1281 | \`configure' configures Wine 0.9.18 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1282 | |
| 1283 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1284 | |
| 1285 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1286 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1287 | |
| 1288 | Defaults for the options are specified in brackets. |
| 1289 | |
| 1290 | Configuration: |
| 1291 | -h, --help display this help and exit |
| 1292 | --help=short display options specific to this package |
| 1293 | --help=recursive display the short help of all the included packages |
| 1294 | -V, --version display version information and exit |
| 1295 | -q, --quiet, --silent do not print \`checking...' messages |
| 1296 | --cache-file=FILE cache test results in FILE [disabled] |
| 1297 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1298 | -n, --no-create do not create output files |
| 1299 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1300 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1301 | Installation directories: |
| 1302 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1303 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1304 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1305 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1306 | |
| 1307 | By default, \`make install' will install all the files in |
| 1308 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1309 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1310 | for instance \`--prefix=\$HOME'. |
| 1311 | |
| 1312 | For better control, use the options below. |
| 1313 | |
| 1314 | Fine tuning of the installation directories: |
| 1315 | --bindir=DIR user executables [EPREFIX/bin] |
| 1316 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1317 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1318 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1319 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1320 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1321 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1322 | --includedir=DIR C header files [PREFIX/include] |
| 1323 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1324 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1325 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1326 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1327 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1328 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1329 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1330 | --htmldir=DIR html documentation [DOCDIR] |
| 1331 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1332 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1333 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1334 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1335 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1336 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1337 | |
| 1338 | X features: |
| 1339 | --x-includes=DIR X include files are in DIR |
| 1340 | --x-libraries=DIR X library files are in DIR |
| 1341 | |
| 1342 | System types: |
| 1343 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1344 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1345 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1346 | fi |
| 1347 | |
| 1348 | if test -n "$ac_init_help"; then |
| 1349 | case $ac_init_help in |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 1350 | short | recursive ) echo "Configuration of Wine 0.9.18:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1351 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1352 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1353 | |
| 1354 | Optional Features: |
| 1355 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1356 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1357 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1358 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1359 | binaries) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1360 | |
| 1361 | Optional Packages: |
| 1362 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1363 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1364 | --without-opengl do not use OpenGL |
| 1365 | --without-curses do not use curses |
| 1366 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1367 | --with-x use the X Window System |
| 1368 | |
| 1369 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1370 | CC C compiler command |
| 1371 | CFLAGS C compiler flags |
| 1372 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1373 | nonstandard directory <lib dir> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1374 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1375 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1376 | CXX C++ compiler command |
| 1377 | CXXFLAGS C++ compiler flags |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1378 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1379 | CPP C preprocessor |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1380 | |
| 1381 | Use these variables to override the choices made by `configure' or to help |
| 1382 | it to find libraries and programs with nonstandard names/locations. |
| 1383 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1384 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1385 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1386 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1387 | fi |
| 1388 | |
| 1389 | if test "$ac_init_help" = "recursive"; then |
| 1390 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1391 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1392 | test -d "$ac_dir" || continue |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1393 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1394 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1395 | case "$ac_dir" in |
| 1396 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1397 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1398 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1399 | # A ".." for each directory in $ac_dir_suffix. |
| 1400 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1401 | case $ac_top_builddir_sub in |
| 1402 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1403 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1404 | esac ;; |
| 1405 | esac |
| 1406 | ac_abs_top_builddir=$ac_pwd |
| 1407 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1408 | # for backward compatibility: |
| 1409 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1410 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1411 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1412 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1413 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1414 | ac_top_srcdir=$ac_top_builddir_sub |
| 1415 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1416 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1417 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1418 | ac_top_srcdir=$srcdir |
| 1419 | ac_abs_top_srcdir=$srcdir ;; |
| 1420 | *) # Relative name. |
| 1421 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1422 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1423 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1424 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1425 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1426 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1427 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1428 | # Check for guested configure. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1429 | if test -f "$ac_srcdir/configure.gnu"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1430 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1431 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1432 | elif test -f "$ac_srcdir/configure"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1433 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1434 | $SHELL "$ac_srcdir/configure" --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1435 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1436 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1437 | fi || ac_status=$? |
| 1438 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1439 | done |
| 1440 | fi |
| 1441 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1442 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1443 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1444 | cat <<\_ACEOF |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 1445 | Wine configure 0.9.18 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 1446 | generated by GNU Autoconf 2.60a |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1447 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1448 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1449 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1450 | This configure script is free software; the Free Software Foundation |
| 1451 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1452 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1453 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1454 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1455 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1456 | This file contains any messages produced by compilers while |
| 1457 | running configure, to aid debugging if configure makes a mistake. |
| 1458 | |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 1459 | It was created by Wine $as_me 0.9.18, which was |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 1460 | generated by GNU Autoconf 2.60a. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1461 | |
| 1462 | $ $0 $@ |
| 1463 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1464 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1465 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1466 | { |
| 1467 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1468 | ## --------- ## |
| 1469 | ## Platform. ## |
| 1470 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1471 | |
| 1472 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1473 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1474 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1475 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1476 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1477 | |
| 1478 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1479 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1480 | |
| 1481 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1482 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1483 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1484 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1485 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1486 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1487 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1488 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1489 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1490 | |
| 1491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1492 | for as_dir in $PATH |
| 1493 | do |
| 1494 | IFS=$as_save_IFS |
| 1495 | test -z "$as_dir" && as_dir=. |
| 1496 | echo "PATH: $as_dir" |
| 1497 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1498 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1499 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1500 | } >&5 |
| 1501 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1502 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1503 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1504 | |
| 1505 | ## ----------- ## |
| 1506 | ## Core tests. ## |
| 1507 | ## ----------- ## |
| 1508 | |
| 1509 | _ACEOF |
| 1510 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1511 | |
| 1512 | # Keep a trace of the command line. |
| 1513 | # Strip out --no-create and --no-recursion so they do not pile up. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1514 | # Strip out --silent because we don't want to record it for future runs. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1515 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1516 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1517 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1518 | ac_configure_args0= |
| 1519 | ac_configure_args1= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1520 | ac_must_keep_next=false |
| 1521 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1522 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1523 | for ac_arg |
| 1524 | do |
| 1525 | case $ac_arg in |
| 1526 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1527 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1528 | | -silent | --silent | --silen | --sile | --sil) |
| 1529 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1530 | *\'*) |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1531 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1532 | esac |
| 1533 | case $ac_pass in |
| 1534 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1535 | 2) |
| 1536 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1537 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1538 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1539 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1540 | case $ac_arg in |
| 1541 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1542 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1543 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1544 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1545 | case "$ac_configure_args0 " in |
| 1546 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1547 | esac |
| 1548 | ;; |
| 1549 | -* ) ac_must_keep_next=true ;; |
| 1550 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1551 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1552 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1553 | ;; |
| 1554 | esac |
| 1555 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1556 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1557 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1558 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1559 | |
| 1560 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1561 | # config.log. We remove comments because anyway the quotes in there |
| 1562 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1563 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1564 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1565 | trap 'exit_status=$? |
| 1566 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1567 | { |
| 1568 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1569 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1570 | cat <<\_ASBOX |
| 1571 | ## ---------------- ## |
| 1572 | ## Cache variables. ## |
| 1573 | ## ---------------- ## |
| 1574 | _ASBOX |
| 1575 | echo |
| 1576 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1577 | ( |
| 1578 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1579 | eval ac_val=\$$ac_var |
| 1580 | case $ac_val in #( |
| 1581 | *${as_nl}*) |
| 1582 | case $ac_var in #( |
| 1583 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1584 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1585 | esac |
| 1586 | case $ac_var in #( |
| 1587 | _ | IFS | as_nl) ;; #( |
| 1588 | *) $as_unset $ac_var ;; |
| 1589 | esac ;; |
| 1590 | esac |
| 1591 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1592 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1593 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1594 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1595 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1596 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1597 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1598 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1599 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1600 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1601 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1602 | esac | |
| 1603 | sort |
| 1604 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1605 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1606 | |
| 1607 | cat <<\_ASBOX |
| 1608 | ## ----------------- ## |
| 1609 | ## Output variables. ## |
| 1610 | ## ----------------- ## |
| 1611 | _ASBOX |
| 1612 | echo |
| 1613 | for ac_var in $ac_subst_vars |
| 1614 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1615 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1616 | case $ac_val in |
| 1617 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1618 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1619 | echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1620 | done | sort |
| 1621 | echo |
| 1622 | |
| 1623 | if test -n "$ac_subst_files"; then |
| 1624 | cat <<\_ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1625 | ## ------------------- ## |
| 1626 | ## File substitutions. ## |
| 1627 | ## ------------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1628 | _ASBOX |
| 1629 | echo |
| 1630 | for ac_var in $ac_subst_files |
| 1631 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1632 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1633 | case $ac_val in |
| 1634 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1635 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1636 | echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1637 | done | sort |
| 1638 | echo |
| 1639 | fi |
| 1640 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1641 | if test -s confdefs.h; then |
| 1642 | cat <<\_ASBOX |
| 1643 | ## ----------- ## |
| 1644 | ## confdefs.h. ## |
| 1645 | ## ----------- ## |
| 1646 | _ASBOX |
| 1647 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1648 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1649 | echo |
| 1650 | fi |
| 1651 | test "$ac_signal" != 0 && |
| 1652 | echo "$as_me: caught signal $ac_signal" |
| 1653 | echo "$as_me: exit $exit_status" |
| 1654 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1655 | rm -f core *.core core.conftest.* && |
| 1656 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1657 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1658 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1659 | for ac_signal in 1 2 13 15; do |
| 1660 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1661 | done |
| 1662 | ac_signal=0 |
| 1663 | |
| 1664 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1665 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1666 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1667 | # Predefined preprocessor variables. |
| 1668 | |
| 1669 | cat >>confdefs.h <<_ACEOF |
| 1670 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1671 | _ACEOF |
| 1672 | |
| 1673 | |
| 1674 | cat >>confdefs.h <<_ACEOF |
| 1675 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1676 | _ACEOF |
| 1677 | |
| 1678 | |
| 1679 | cat >>confdefs.h <<_ACEOF |
| 1680 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1681 | _ACEOF |
| 1682 | |
| 1683 | |
| 1684 | cat >>confdefs.h <<_ACEOF |
| 1685 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1686 | _ACEOF |
| 1687 | |
| 1688 | |
| 1689 | cat >>confdefs.h <<_ACEOF |
| 1690 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1691 | _ACEOF |
| 1692 | |
| 1693 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1694 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1695 | # Prefer explicitly selected file to automatically selected ones. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1696 | if test -n "$CONFIG_SITE"; then |
| 1697 | set x "$CONFIG_SITE" |
| 1698 | elif test "x$prefix" != xNONE; then |
| 1699 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1700 | else |
| 1701 | set x "$ac_default_prefix/share/config.site" \ |
| 1702 | "$ac_default_prefix/etc/config.site" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1703 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1704 | shift |
| 1705 | for ac_site_file |
| 1706 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1707 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1708 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1709 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1710 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1711 | . "$ac_site_file" |
| 1712 | fi |
| 1713 | done |
| 1714 | |
| 1715 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1716 | # Some versions of bash will fail to source /dev/null (special |
| 1717 | # files actually), so we avoid doing that. |
| 1718 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1719 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1720 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1721 | case $cache_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1722 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1723 | *) . "./$cache_file";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1724 | esac |
| 1725 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1726 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1727 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1728 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1729 | >$cache_file |
| 1730 | fi |
| 1731 | |
| 1732 | # Check that the precious variables saved in the cache have kept the same |
| 1733 | # value. |
| 1734 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1735 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1736 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1737 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1738 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1739 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1740 | case $ac_old_set,$ac_new_set in |
| 1741 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1742 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1743 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1744 | ac_cache_corrupted=: ;; |
| 1745 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1746 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1747 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1748 | ac_cache_corrupted=: ;; |
| 1749 | ,);; |
| 1750 | *) |
| 1751 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1752 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1753 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1754 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1755 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1756 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1757 | echo "$as_me: current value: $ac_new_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1758 | ac_cache_corrupted=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1759 | fi;; |
| 1760 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1761 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1762 | if test "$ac_new_set" = set; then |
| 1763 | case $ac_new_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1764 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1765 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1766 | esac |
| 1767 | case " $ac_configure_args " in |
| 1768 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1769 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1770 | esac |
| 1771 | fi |
| 1772 | done |
| 1773 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1774 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1775 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1776 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1777 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1778 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1779 | fi |
| 1780 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1805 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1806 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1810 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1811 | |
| 1812 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1813 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1814 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1815 | ac_aux_dir= |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1816 | for ac_dir in tools "$srcdir"/tools; do |
| 1817 | if test -f "$ac_dir/install-sh"; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1818 | ac_aux_dir=$ac_dir |
| 1819 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1820 | break |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1821 | elif test -f "$ac_dir/install.sh"; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1822 | ac_aux_dir=$ac_dir |
| 1823 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1824 | break |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1825 | elif test -f "$ac_dir/shtool"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1826 | ac_aux_dir=$ac_dir |
| 1827 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1828 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1829 | fi |
| 1830 | done |
| 1831 | if test -z "$ac_aux_dir"; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1832 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5 |
| 1833 | echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1834 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1835 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1836 | |
| 1837 | # These three variables are undocumented and unsupported, |
| 1838 | # and are intended to be withdrawn in a future Autoconf release. |
| 1839 | # They can cause serious problems if a builder's source tree is in a directory |
| 1840 | # whose full name contains unusual characters. |
| 1841 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1842 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1843 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1844 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1845 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1846 | |
| 1847 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1848 | # Check whether --enable-win16 was given. |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1849 | if test "${enable_win16+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1850 | enableval=$enable_win16; |
| 1851 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1852 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1853 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1854 | if test "${enable_win64+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1855 | enableval=$enable_win64; |
| 1856 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1857 | |
| 1858 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1859 | |
| 1860 | # Check whether --with-opengl was given. |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1861 | if test "${with_opengl+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1862 | withval=$with_opengl; |
| 1863 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1864 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1865 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1866 | # Check whether --with-curses was given. |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1867 | if test "${with_curses+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1868 | withval=$with_curses; |
| 1869 | fi |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1870 | |
| 1871 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1872 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1873 | if test "${with_wine_tools+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1874 | withval=$with_wine_tools; |
| 1875 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1876 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1877 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1878 | # Make sure we can run config.sub. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1879 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1880 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1881 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1882 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1883 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1884 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1885 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1886 | if test "${ac_cv_build+set}" = set; then |
| 1887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1888 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1889 | ac_build_alias=$build_alias |
| 1890 | test "x$ac_build_alias" = x && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1891 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1892 | test "x$ac_build_alias" = x && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1893 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1894 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1895 | { (exit 1); exit 1; }; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1896 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1897 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1898 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1899 | { (exit 1); exit 1; }; } |
| 1900 | |
| 1901 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1902 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1903 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1904 | case $ac_cv_build in |
| 1905 | *-*-*) ;; |
| 1906 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1907 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1908 | { (exit 1); exit 1; }; };; |
| 1909 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1910 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1911 | ac_save_IFS=$IFS; IFS='-' |
| 1912 | set x $ac_cv_build |
| 1913 | shift |
| 1914 | build_cpu=$1 |
| 1915 | build_vendor=$2 |
| 1916 | shift; shift |
| 1917 | # Remember, the first character of IFS is used to create $*, |
| 1918 | # except with old shells: |
| 1919 | build_os=$* |
| 1920 | IFS=$ac_save_IFS |
| 1921 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1922 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1923 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1924 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1925 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1926 | if test "${ac_cv_host+set}" = set; then |
| 1927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1928 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1929 | if test "x$host_alias" = x; then |
| 1930 | ac_cv_host=$ac_cv_build |
| 1931 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1932 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1933 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1934 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1935 | { (exit 1); exit 1; }; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1936 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1937 | |
| 1938 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1939 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1940 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1941 | case $ac_cv_host in |
| 1942 | *-*-*) ;; |
| 1943 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1944 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1945 | { (exit 1); exit 1; }; };; |
| 1946 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1947 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1948 | ac_save_IFS=$IFS; IFS='-' |
| 1949 | set x $ac_cv_host |
| 1950 | shift |
| 1951 | host_cpu=$1 |
| 1952 | host_vendor=$2 |
| 1953 | shift; shift |
| 1954 | # Remember, the first character of IFS is used to create $*, |
| 1955 | # except with old shells: |
| 1956 | host_os=$* |
| 1957 | IFS=$ac_save_IFS |
| 1958 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1959 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1960 | |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1961 | case $host in |
| 1962 | x86_64*linux*) |
| 1963 | if test "x$enable_win64" != "xyes" |
| 1964 | then |
| 1965 | test -n "$CC" || CC="gcc -m32" |
| 1966 | test -n "$LD" || LD="ld -m elf_i386" |
| 1967 | test -n "$AS" || AS="as --32" |
Alex Woods | bbcf986 | 2005-02-10 19:09:08 +0000 | [diff] [blame] | 1968 | host_cpu="i386" |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1969 | fi |
| 1970 | ;; |
| 1971 | esac |
| 1972 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 1973 | case $host_cpu in |
| 1974 | *i[3456789]86*) |
| 1975 | if test "x$enable_win16" != "xno" |
| 1976 | then |
| 1977 | enable_win16="yes" |
| 1978 | fi |
| 1979 | ;; |
| 1980 | esac |
| 1981 | |
| 1982 | WIN16_FILES="\$(WIN16_FILES)" |
| 1983 | |
| 1984 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1985 | |
| 1986 | if test "x$enable_win16" != "xyes" |
| 1987 | then |
| 1988 | WIN16_FILES="" |
| 1989 | WIN16_INSTALL="" |
| 1990 | fi |
| 1991 | |
| 1992 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1993 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1994 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1995 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1996 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1998 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1999 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2000 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2001 | all: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2002 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2003 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2004 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2005 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2006 | *@@@%%%=?*=@@@%%%*) |
| 2007 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2008 | *) |
| 2009 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2010 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2011 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2012 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2013 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2014 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2015 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2016 | SET_MAKE= |
| 2017 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2018 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2019 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2020 | SET_MAKE="MAKE=${MAKE-make}" |
| 2021 | fi |
| 2022 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2023 | ac_ext=c |
| 2024 | ac_cpp='$CPP $CPPFLAGS' |
| 2025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2028 | if test -n "$ac_tool_prefix"; then |
| 2029 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2030 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2033 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2035 | else |
| 2036 | if test -n "$CC"; then |
| 2037 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2038 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2040 | for as_dir in $PATH |
| 2041 | do |
| 2042 | IFS=$as_save_IFS |
| 2043 | test -z "$as_dir" && as_dir=. |
| 2044 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2046 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2048 | break 2 |
| 2049 | fi |
| 2050 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2051 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2052 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2053 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2054 | fi |
| 2055 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2056 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2057 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2058 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2059 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2060 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2061 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2062 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2063 | fi |
| 2064 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2065 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | if test -z "$ac_cv_prog_CC"; then |
| 2068 | ac_ct_CC=$CC |
| 2069 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2070 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2071 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2073 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2075 | else |
| 2076 | if test -n "$ac_ct_CC"; then |
| 2077 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2078 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2080 | for as_dir in $PATH |
| 2081 | do |
| 2082 | IFS=$as_save_IFS |
| 2083 | test -z "$as_dir" && as_dir=. |
| 2084 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2086 | ac_cv_prog_ac_ct_CC="gcc" |
| 2087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2088 | break 2 |
| 2089 | fi |
| 2090 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2091 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2092 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2093 | |
| 2094 | fi |
| 2095 | fi |
| 2096 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2097 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2098 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2099 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2100 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2101 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2102 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2103 | fi |
| 2104 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2105 | if test "x$ac_ct_CC" = x; then |
| 2106 | CC="" |
| 2107 | else |
| 2108 | case $cross_compiling:$ac_tool_warned in |
| 2109 | yes:) |
| 2110 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2111 | whose name does not start with the host triplet. If you think this |
| 2112 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2113 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2114 | whose name does not start with the host triplet. If you think this |
| 2115 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2116 | ac_tool_warned=yes ;; |
| 2117 | esac |
| 2118 | CC=$ac_ct_CC |
| 2119 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2120 | else |
| 2121 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2122 | fi |
| 2123 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2124 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2125 | if test -n "$ac_tool_prefix"; then |
| 2126 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2127 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2130 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2132 | else |
| 2133 | if test -n "$CC"; then |
| 2134 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2135 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2137 | for as_dir in $PATH |
| 2138 | do |
| 2139 | IFS=$as_save_IFS |
| 2140 | test -z "$as_dir" && as_dir=. |
| 2141 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2143 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2145 | break 2 |
| 2146 | fi |
| 2147 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2148 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2149 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2150 | |
| 2151 | fi |
| 2152 | fi |
| 2153 | CC=$ac_cv_prog_CC |
| 2154 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2155 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2156 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2157 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2158 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2159 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2160 | fi |
| 2161 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2162 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2163 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2164 | fi |
| 2165 | if test -z "$CC"; then |
| 2166 | # Extract the first word of "cc", so it can be a program name with args. |
| 2167 | set dummy cc; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2170 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2172 | else |
| 2173 | if test -n "$CC"; then |
| 2174 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2175 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2176 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2178 | for as_dir in $PATH |
| 2179 | do |
| 2180 | IFS=$as_save_IFS |
| 2181 | test -z "$as_dir" && as_dir=. |
| 2182 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2184 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2185 | ac_prog_rejected=yes |
| 2186 | continue |
| 2187 | fi |
| 2188 | ac_cv_prog_CC="cc" |
| 2189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2190 | break 2 |
| 2191 | fi |
| 2192 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2193 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2194 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2195 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2196 | if test $ac_prog_rejected = yes; then |
| 2197 | # We found a bogon in the path, so make sure we never use it. |
| 2198 | set dummy $ac_cv_prog_CC |
| 2199 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2200 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2201 | # We chose a different compiler from the bogus one. |
| 2202 | # However, it has the same basename, so the bogon will be chosen |
| 2203 | # first if we set CC to just the basename; use the full file name. |
| 2204 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2205 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2206 | fi |
| 2207 | fi |
| 2208 | fi |
| 2209 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2210 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2211 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2212 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2213 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2214 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2216 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2217 | fi |
| 2218 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2219 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2220 | fi |
| 2221 | if test -z "$CC"; then |
| 2222 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2223 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2224 | do |
| 2225 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2226 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2227 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2229 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2231 | else |
| 2232 | if test -n "$CC"; then |
| 2233 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2234 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2236 | for as_dir in $PATH |
| 2237 | do |
| 2238 | IFS=$as_save_IFS |
| 2239 | test -z "$as_dir" && as_dir=. |
| 2240 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2242 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2244 | break 2 |
| 2245 | fi |
| 2246 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2247 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2248 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2249 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2250 | fi |
| 2251 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2252 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2253 | if test -n "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2255 | echo "${ECHO_T}$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2256 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2257 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2258 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2259 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2260 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2261 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2262 | test -n "$CC" && break |
| 2263 | done |
| 2264 | fi |
| 2265 | if test -z "$CC"; then |
| 2266 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2267 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2268 | do |
| 2269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2270 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2271 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2273 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2275 | else |
| 2276 | if test -n "$ac_ct_CC"; then |
| 2277 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2278 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2280 | for as_dir in $PATH |
| 2281 | do |
| 2282 | IFS=$as_save_IFS |
| 2283 | test -z "$as_dir" && as_dir=. |
| 2284 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2286 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2288 | break 2 |
| 2289 | fi |
| 2290 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2291 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2292 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2293 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2294 | fi |
| 2295 | fi |
| 2296 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2297 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2298 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2299 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2300 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2301 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2302 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2303 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2304 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2305 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2306 | test -n "$ac_ct_CC" && break |
| 2307 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2308 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2309 | if test "x$ac_ct_CC" = x; then |
| 2310 | CC="" |
| 2311 | else |
| 2312 | case $cross_compiling:$ac_tool_warned in |
| 2313 | yes:) |
| 2314 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2315 | whose name does not start with the host triplet. If you think this |
| 2316 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2317 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2318 | whose name does not start with the host triplet. If you think this |
| 2319 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2320 | ac_tool_warned=yes ;; |
| 2321 | esac |
| 2322 | CC=$ac_ct_CC |
| 2323 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2324 | fi |
| 2325 | |
| 2326 | fi |
| 2327 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2328 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2329 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2330 | See \`config.log' for more details." >&5 |
| 2331 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2332 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2333 | { (exit 1); exit 1; }; } |
| 2334 | |
| 2335 | # Provide some information about the compiler. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2336 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2337 | ac_compiler=`set X $ac_compile; echo $2` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2338 | { (ac_try="$ac_compiler --version >&5" |
| 2339 | case "(($ac_try" in |
| 2340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2341 | *) ac_try_echo=$ac_try;; |
| 2342 | esac |
| 2343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2344 | (eval "$ac_compiler --version >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2345 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2347 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2348 | { (ac_try="$ac_compiler -v >&5" |
| 2349 | case "(($ac_try" in |
| 2350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2351 | *) ac_try_echo=$ac_try;; |
| 2352 | esac |
| 2353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2354 | (eval "$ac_compiler -v >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2355 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2357 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2358 | { (ac_try="$ac_compiler -V >&5" |
| 2359 | case "(($ac_try" in |
| 2360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2361 | *) ac_try_echo=$ac_try;; |
| 2362 | esac |
| 2363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2364 | (eval "$ac_compiler -V >&5") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2365 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2367 | (exit $ac_status); } |
| 2368 | |
| 2369 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2370 | /* confdefs.h. */ |
| 2371 | _ACEOF |
| 2372 | cat confdefs.h >>conftest.$ac_ext |
| 2373 | cat >>conftest.$ac_ext <<_ACEOF |
| 2374 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2375 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2376 | int |
| 2377 | main () |
| 2378 | { |
| 2379 | |
| 2380 | ; |
| 2381 | return 0; |
| 2382 | } |
| 2383 | _ACEOF |
| 2384 | ac_clean_files_save=$ac_clean_files |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2385 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2386 | # Try to create an executable without -o first, disregard a.out. |
| 2387 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2388 | # of exeext. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2389 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2390 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2391 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2392 | # |
| 2393 | # List of possible output files, starting from the most likely. |
| 2394 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2395 | # only as a last resort. b.out is created by i960 compilers. |
| 2396 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2397 | # |
| 2398 | # The IRIX 6 linker writes into existing files which may not be |
| 2399 | # executable, retaining their permissions. Remove them first so a |
| 2400 | # subsequent execution test works. |
| 2401 | ac_rmfiles= |
| 2402 | for ac_file in $ac_files |
| 2403 | do |
| 2404 | case $ac_file in |
| 2405 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2406 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2407 | esac |
| 2408 | done |
| 2409 | rm -f $ac_rmfiles |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2410 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2411 | if { (ac_try="$ac_link_default" |
| 2412 | case "(($ac_try" in |
| 2413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2414 | *) ac_try_echo=$ac_try;; |
| 2415 | esac |
| 2416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2417 | (eval "$ac_link_default") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2418 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2420 | (exit $ac_status); }; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2421 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2422 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2423 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2424 | # so that the user can short-circuit this test for compilers unknown to |
| 2425 | # Autoconf. |
| 2426 | for ac_file in $ac_files |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2427 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2428 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2429 | case $ac_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2430 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2431 | ;; |
| 2432 | [ab].out ) |
| 2433 | # We found the default executable, but exeext='' is most |
| 2434 | # certainly right. |
| 2435 | break;; |
| 2436 | *.* ) |
| 2437 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2438 | then :; else |
| 2439 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2440 | fi |
| 2441 | # We set ac_cv_exeext here because the later test for it is not |
| 2442 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2443 | # argument, so we may need to know it at that point already. |
| 2444 | # Even if this section looks crufty: it has the advantage of |
| 2445 | # actually working. |
| 2446 | break;; |
| 2447 | * ) |
| 2448 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2449 | esac |
| 2450 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2451 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2452 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2453 | else |
| 2454 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2456 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2457 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2458 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2459 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2460 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2461 | { (exit 77); exit 77; }; } |
| 2462 | fi |
| 2463 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2464 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2465 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2466 | echo "${ECHO_T}$ac_file" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2467 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2468 | # Check that the compiler produces executables we can run. If not, either |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2469 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2470 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2471 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2472 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2473 | # If not cross compiling, check that we can run a simple program. |
| 2474 | if test "$cross_compiling" != yes; then |
| 2475 | if { ac_try='./$ac_file' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2476 | { (case "(($ac_try" in |
| 2477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2478 | *) ac_try_echo=$ac_try;; |
| 2479 | esac |
| 2480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2481 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2482 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2484 | (exit $ac_status); }; }; then |
| 2485 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2486 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2487 | if test "$cross_compiling" = maybe; then |
| 2488 | cross_compiling=yes |
| 2489 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2490 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2491 | If you meant to cross compile, use \`--host'. |
| 2492 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2493 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2494 | If you meant to cross compile, use \`--host'. |
| 2495 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2496 | { (exit 1); exit 1; }; } |
| 2497 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2498 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2499 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2500 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2501 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2502 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2503 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2504 | ac_clean_files=$ac_clean_files_save |
| 2505 | # Check that the compiler produces executables we can run. If not, either |
| 2506 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2507 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2508 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2509 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2510 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2511 | |
| 2512 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2513 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2514 | if { (ac_try="$ac_link" |
| 2515 | case "(($ac_try" in |
| 2516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2517 | *) ac_try_echo=$ac_try;; |
| 2518 | esac |
| 2519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2520 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2521 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2523 | (exit $ac_status); }; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2524 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2525 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2526 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2527 | # `rm'. |
| 2528 | for ac_file in conftest.exe conftest conftest.*; do |
| 2529 | test -f "$ac_file" || continue |
| 2530 | case $ac_file in |
| 2531 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2532 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2533 | break;; |
| 2534 | * ) break;; |
| 2535 | esac |
| 2536 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2537 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2538 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2539 | See \`config.log' for more details." >&5 |
| 2540 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2541 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2542 | { (exit 1); exit 1; }; } |
| 2543 | fi |
| 2544 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2545 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2546 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2547 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2548 | |
| 2549 | rm -f conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2550 | EXEEXT=$ac_cv_exeext |
| 2551 | ac_exeext=$EXEEXT |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2552 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2553 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2554 | if test "${ac_cv_objext+set}" = set; then |
| 2555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2556 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2557 | cat >conftest.$ac_ext <<_ACEOF |
| 2558 | /* confdefs.h. */ |
| 2559 | _ACEOF |
| 2560 | cat confdefs.h >>conftest.$ac_ext |
| 2561 | cat >>conftest.$ac_ext <<_ACEOF |
| 2562 | /* end confdefs.h. */ |
| 2563 | |
| 2564 | int |
| 2565 | main () |
| 2566 | { |
| 2567 | |
| 2568 | ; |
| 2569 | return 0; |
| 2570 | } |
| 2571 | _ACEOF |
| 2572 | rm -f conftest.o conftest.obj |
| 2573 | if { (ac_try="$ac_compile" |
| 2574 | case "(($ac_try" in |
| 2575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2576 | *) ac_try_echo=$ac_try;; |
| 2577 | esac |
| 2578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2579 | (eval "$ac_compile") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2580 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2582 | (exit $ac_status); }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2583 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2584 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2585 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2586 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2587 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2588 | break;; |
| 2589 | esac |
| 2590 | done |
| 2591 | else |
| 2592 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2594 | |
| 2595 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2596 | See \`config.log' for more details." >&5 |
| 2597 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2598 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2599 | { (exit 1); exit 1; }; } |
| 2600 | fi |
| 2601 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2602 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2603 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2604 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2605 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2606 | OBJEXT=$ac_cv_objext |
| 2607 | ac_objext=$OBJEXT |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2608 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2609 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2610 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2612 | else |
| 2613 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2614 | /* confdefs.h. */ |
| 2615 | _ACEOF |
| 2616 | cat confdefs.h >>conftest.$ac_ext |
| 2617 | cat >>conftest.$ac_ext <<_ACEOF |
| 2618 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2619 | |
| 2620 | int |
| 2621 | main () |
| 2622 | { |
| 2623 | #ifndef __GNUC__ |
| 2624 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2625 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2626 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2627 | ; |
| 2628 | return 0; |
| 2629 | } |
| 2630 | _ACEOF |
| 2631 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2632 | if { (ac_try="$ac_compile" |
| 2633 | case "(($ac_try" in |
| 2634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2635 | *) ac_try_echo=$ac_try;; |
| 2636 | esac |
| 2637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2638 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2639 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2641 | rm -f conftest.er1 |
| 2642 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2644 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2646 | { (case "(($ac_try" in |
| 2647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2648 | *) ac_try_echo=$ac_try;; |
| 2649 | esac |
| 2650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2651 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2652 | ac_status=$? |
| 2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2654 | (exit $ac_status); }; } && |
| 2655 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2656 | { (case "(($ac_try" in |
| 2657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2658 | *) ac_try_echo=$ac_try;; |
| 2659 | esac |
| 2660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2661 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2662 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2664 | (exit $ac_status); }; }; then |
| 2665 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2666 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2667 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2669 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2670 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2671 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2672 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2674 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2675 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2676 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2677 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2678 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2679 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2680 | ac_test_CFLAGS=${CFLAGS+set} |
| 2681 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2682 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2683 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2684 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2686 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2687 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2688 | ac_c_werror_flag=yes |
| 2689 | ac_cv_prog_cc_g=no |
| 2690 | CFLAGS="-g" |
| 2691 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2692 | /* confdefs.h. */ |
| 2693 | _ACEOF |
| 2694 | cat confdefs.h >>conftest.$ac_ext |
| 2695 | cat >>conftest.$ac_ext <<_ACEOF |
| 2696 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2697 | |
| 2698 | int |
| 2699 | main () |
| 2700 | { |
| 2701 | |
| 2702 | ; |
| 2703 | return 0; |
| 2704 | } |
| 2705 | _ACEOF |
| 2706 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2707 | if { (ac_try="$ac_compile" |
| 2708 | case "(($ac_try" in |
| 2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2710 | *) ac_try_echo=$ac_try;; |
| 2711 | esac |
| 2712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2713 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2714 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2716 | rm -f conftest.er1 |
| 2717 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2719 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2721 | { (case "(($ac_try" in |
| 2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2723 | *) ac_try_echo=$ac_try;; |
| 2724 | esac |
| 2725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2726 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2727 | ac_status=$? |
| 2728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2729 | (exit $ac_status); }; } && |
| 2730 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2731 | { (case "(($ac_try" in |
| 2732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2733 | *) ac_try_echo=$ac_try;; |
| 2734 | esac |
| 2735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2736 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2737 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2739 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2740 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2741 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2742 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2744 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2745 | CFLAGS="" |
| 2746 | cat >conftest.$ac_ext <<_ACEOF |
| 2747 | /* confdefs.h. */ |
| 2748 | _ACEOF |
| 2749 | cat confdefs.h >>conftest.$ac_ext |
| 2750 | cat >>conftest.$ac_ext <<_ACEOF |
| 2751 | /* end confdefs.h. */ |
| 2752 | |
| 2753 | int |
| 2754 | main () |
| 2755 | { |
| 2756 | |
| 2757 | ; |
| 2758 | return 0; |
| 2759 | } |
| 2760 | _ACEOF |
| 2761 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2762 | if { (ac_try="$ac_compile" |
| 2763 | case "(($ac_try" in |
| 2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2765 | *) ac_try_echo=$ac_try;; |
| 2766 | esac |
| 2767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2768 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2769 | ac_status=$? |
| 2770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2771 | rm -f conftest.er1 |
| 2772 | cat conftest.err >&5 |
| 2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2774 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2776 | { (case "(($ac_try" in |
| 2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2778 | *) ac_try_echo=$ac_try;; |
| 2779 | esac |
| 2780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2781 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2782 | ac_status=$? |
| 2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2784 | (exit $ac_status); }; } && |
| 2785 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2786 | { (case "(($ac_try" in |
| 2787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2788 | *) ac_try_echo=$ac_try;; |
| 2789 | esac |
| 2790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2791 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2792 | ac_status=$? |
| 2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2794 | (exit $ac_status); }; }; then |
| 2795 | : |
| 2796 | else |
| 2797 | echo "$as_me: failed program was:" >&5 |
| 2798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2799 | |
| 2800 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2801 | CFLAGS="-g" |
| 2802 | cat >conftest.$ac_ext <<_ACEOF |
| 2803 | /* confdefs.h. */ |
| 2804 | _ACEOF |
| 2805 | cat confdefs.h >>conftest.$ac_ext |
| 2806 | cat >>conftest.$ac_ext <<_ACEOF |
| 2807 | /* end confdefs.h. */ |
| 2808 | |
| 2809 | int |
| 2810 | main () |
| 2811 | { |
| 2812 | |
| 2813 | ; |
| 2814 | return 0; |
| 2815 | } |
| 2816 | _ACEOF |
| 2817 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2818 | if { (ac_try="$ac_compile" |
| 2819 | case "(($ac_try" in |
| 2820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2821 | *) ac_try_echo=$ac_try;; |
| 2822 | esac |
| 2823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2824 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2825 | ac_status=$? |
| 2826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2827 | rm -f conftest.er1 |
| 2828 | cat conftest.err >&5 |
| 2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2830 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2832 | { (case "(($ac_try" in |
| 2833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2834 | *) ac_try_echo=$ac_try;; |
| 2835 | esac |
| 2836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2837 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2838 | ac_status=$? |
| 2839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2840 | (exit $ac_status); }; } && |
| 2841 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2842 | { (case "(($ac_try" in |
| 2843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2844 | *) ac_try_echo=$ac_try;; |
| 2845 | esac |
| 2846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2847 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2848 | ac_status=$? |
| 2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2850 | (exit $ac_status); }; }; then |
| 2851 | ac_cv_prog_cc_g=yes |
| 2852 | else |
| 2853 | echo "$as_me: failed program was:" >&5 |
| 2854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2855 | |
| 2856 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2857 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2858 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2860 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2861 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2863 | fi |
| 2864 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2866 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2867 | fi |
| 2868 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2869 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2870 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2871 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2872 | elif test $ac_cv_prog_cc_g = yes; then |
| 2873 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2874 | CFLAGS="-g -O2" |
| 2875 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2876 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2877 | fi |
| 2878 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2879 | if test "$GCC" = yes; then |
| 2880 | CFLAGS="-O2" |
| 2881 | else |
| 2882 | CFLAGS= |
| 2883 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2884 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2885 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2886 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2887 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2889 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2890 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2891 | ac_save_CC=$CC |
| 2892 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2893 | /* confdefs.h. */ |
| 2894 | _ACEOF |
| 2895 | cat confdefs.h >>conftest.$ac_ext |
| 2896 | cat >>conftest.$ac_ext <<_ACEOF |
| 2897 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2898 | #include <stdarg.h> |
| 2899 | #include <stdio.h> |
| 2900 | #include <sys/types.h> |
| 2901 | #include <sys/stat.h> |
| 2902 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2903 | struct buf { int x; }; |
| 2904 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2905 | static char *e (p, i) |
| 2906 | char **p; |
| 2907 | int i; |
| 2908 | { |
| 2909 | return p[i]; |
| 2910 | } |
| 2911 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2912 | { |
| 2913 | char *s; |
| 2914 | va_list v; |
| 2915 | va_start (v,p); |
| 2916 | s = g (p, va_arg (v,int)); |
| 2917 | va_end (v); |
| 2918 | return s; |
| 2919 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2920 | |
| 2921 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2922 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2923 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2924 | as 'x'. The following induces an error, until -std is added to get |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2925 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2926 | array size at least. It's necessary to write '\x00'==0 to get something |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2927 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2928 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2929 | |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 2930 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2931 | inside strings and character constants. */ |
| 2932 | #define FOO(x) 'x' |
| 2933 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2934 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2935 | int test (int i, double x); |
| 2936 | struct s1 {int (*f) (int a);}; |
| 2937 | struct s2 {int (*f) (double a);}; |
| 2938 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2939 | int argc; |
| 2940 | char **argv; |
| 2941 | int |
| 2942 | main () |
| 2943 | { |
| 2944 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2945 | ; |
| 2946 | return 0; |
| 2947 | } |
| 2948 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2949 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2950 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2951 | do |
| 2952 | CC="$ac_save_CC $ac_arg" |
| 2953 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2954 | if { (ac_try="$ac_compile" |
| 2955 | case "(($ac_try" in |
| 2956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2957 | *) ac_try_echo=$ac_try;; |
| 2958 | esac |
| 2959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2960 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2961 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2963 | rm -f conftest.er1 |
| 2964 | cat conftest.err >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2966 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2968 | { (case "(($ac_try" in |
| 2969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2970 | *) ac_try_echo=$ac_try;; |
| 2971 | esac |
| 2972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2973 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2974 | ac_status=$? |
| 2975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2976 | (exit $ac_status); }; } && |
| 2977 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2978 | { (case "(($ac_try" in |
| 2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2980 | *) ac_try_echo=$ac_try;; |
| 2981 | esac |
| 2982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2983 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2984 | ac_status=$? |
| 2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2986 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2987 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2988 | else |
| 2989 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2991 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2992 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2993 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2994 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2995 | rm -f core conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2996 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2997 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2998 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2999 | CC=$ac_save_CC |
| 3000 | |
| 3001 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3002 | # AC_CACHE_VAL |
| 3003 | case "x$ac_cv_prog_cc_c89" in |
| 3004 | x) |
| 3005 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3006 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3007 | xno) |
| 3008 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3009 | echo "${ECHO_T}unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3010 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3011 | CC="$CC $ac_cv_prog_cc_c89" |
| 3012 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3013 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3014 | esac |
| 3015 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3016 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3017 | ac_ext=c |
| 3018 | ac_cpp='$CPP $CPPFLAGS' |
| 3019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3022 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3023 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3024 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3025 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3026 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3027 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3028 | if test -z "$CXX"; then |
| 3029 | if test -n "$CCC"; then |
| 3030 | CXX=$CCC |
| 3031 | else |
| 3032 | if test -n "$ac_tool_prefix"; then |
| 3033 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3034 | do |
| 3035 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3036 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3039 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3041 | else |
| 3042 | if test -n "$CXX"; then |
| 3043 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3044 | else |
| 3045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3046 | for as_dir in $PATH |
| 3047 | do |
| 3048 | IFS=$as_save_IFS |
| 3049 | test -z "$as_dir" && as_dir=. |
| 3050 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3052 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3054 | break 2 |
| 3055 | fi |
| 3056 | done |
| 3057 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3058 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3059 | |
| 3060 | fi |
| 3061 | fi |
| 3062 | CXX=$ac_cv_prog_CXX |
| 3063 | if test -n "$CXX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3064 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3065 | echo "${ECHO_T}$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3066 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3067 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3068 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3069 | fi |
| 3070 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3071 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3072 | test -n "$CXX" && break |
| 3073 | done |
| 3074 | fi |
| 3075 | if test -z "$CXX"; then |
| 3076 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3077 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3078 | do |
| 3079 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3080 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3081 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3083 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3085 | else |
| 3086 | if test -n "$ac_ct_CXX"; then |
| 3087 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3088 | else |
| 3089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3090 | for as_dir in $PATH |
| 3091 | do |
| 3092 | IFS=$as_save_IFS |
| 3093 | test -z "$as_dir" && as_dir=. |
| 3094 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3096 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3098 | break 2 |
| 3099 | fi |
| 3100 | done |
| 3101 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3102 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3103 | |
| 3104 | fi |
| 3105 | fi |
| 3106 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3107 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3108 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3109 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3110 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3111 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3112 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3113 | fi |
| 3114 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3115 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3116 | test -n "$ac_ct_CXX" && break |
| 3117 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3118 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3119 | if test "x$ac_ct_CXX" = x; then |
| 3120 | CXX="g++" |
| 3121 | else |
| 3122 | case $cross_compiling:$ac_tool_warned in |
| 3123 | yes:) |
| 3124 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3125 | whose name does not start with the host triplet. If you think this |
| 3126 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3127 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3128 | whose name does not start with the host triplet. If you think this |
| 3129 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3130 | ac_tool_warned=yes ;; |
| 3131 | esac |
| 3132 | CXX=$ac_ct_CXX |
| 3133 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3134 | fi |
| 3135 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3136 | fi |
| 3137 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3138 | # Provide some information about the compiler. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3139 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3140 | ac_compiler=`set X $ac_compile; echo $2` |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3141 | { (ac_try="$ac_compiler --version >&5" |
| 3142 | case "(($ac_try" in |
| 3143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3144 | *) ac_try_echo=$ac_try;; |
| 3145 | esac |
| 3146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3147 | (eval "$ac_compiler --version >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3148 | ac_status=$? |
| 3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3150 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3151 | { (ac_try="$ac_compiler -v >&5" |
| 3152 | case "(($ac_try" in |
| 3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3154 | *) ac_try_echo=$ac_try;; |
| 3155 | esac |
| 3156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3157 | (eval "$ac_compiler -v >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3158 | ac_status=$? |
| 3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3160 | (exit $ac_status); } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3161 | { (ac_try="$ac_compiler -V >&5" |
| 3162 | case "(($ac_try" in |
| 3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3164 | *) ac_try_echo=$ac_try;; |
| 3165 | esac |
| 3166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3167 | (eval "$ac_compiler -V >&5") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3168 | ac_status=$? |
| 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3170 | (exit $ac_status); } |
| 3171 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3172 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3173 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3174 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3176 | else |
| 3177 | cat >conftest.$ac_ext <<_ACEOF |
| 3178 | /* confdefs.h. */ |
| 3179 | _ACEOF |
| 3180 | cat confdefs.h >>conftest.$ac_ext |
| 3181 | cat >>conftest.$ac_ext <<_ACEOF |
| 3182 | /* end confdefs.h. */ |
| 3183 | |
| 3184 | int |
| 3185 | main () |
| 3186 | { |
| 3187 | #ifndef __GNUC__ |
| 3188 | choke me |
| 3189 | #endif |
| 3190 | |
| 3191 | ; |
| 3192 | return 0; |
| 3193 | } |
| 3194 | _ACEOF |
| 3195 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3196 | if { (ac_try="$ac_compile" |
| 3197 | case "(($ac_try" in |
| 3198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3199 | *) ac_try_echo=$ac_try;; |
| 3200 | esac |
| 3201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3202 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3203 | ac_status=$? |
| 3204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3205 | rm -f conftest.er1 |
| 3206 | cat conftest.err >&5 |
| 3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3208 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3209 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3210 | { (case "(($ac_try" in |
| 3211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3212 | *) ac_try_echo=$ac_try;; |
| 3213 | esac |
| 3214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3215 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3216 | ac_status=$? |
| 3217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3218 | (exit $ac_status); }; } && |
| 3219 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3220 | { (case "(($ac_try" in |
| 3221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3222 | *) ac_try_echo=$ac_try;; |
| 3223 | esac |
| 3224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3225 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3226 | ac_status=$? |
| 3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3228 | (exit $ac_status); }; }; then |
| 3229 | ac_compiler_gnu=yes |
| 3230 | else |
| 3231 | echo "$as_me: failed program was:" >&5 |
| 3232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3233 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3234 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3235 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3236 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3238 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3239 | |
| 3240 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3241 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3242 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3243 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3244 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3245 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3246 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3247 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3248 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3250 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3251 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3252 | ac_cxx_werror_flag=yes |
| 3253 | ac_cv_prog_cxx_g=no |
| 3254 | CXXFLAGS="-g" |
| 3255 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3256 | /* confdefs.h. */ |
| 3257 | _ACEOF |
| 3258 | cat confdefs.h >>conftest.$ac_ext |
| 3259 | cat >>conftest.$ac_ext <<_ACEOF |
| 3260 | /* end confdefs.h. */ |
| 3261 | |
| 3262 | int |
| 3263 | main () |
| 3264 | { |
| 3265 | |
| 3266 | ; |
| 3267 | return 0; |
| 3268 | } |
| 3269 | _ACEOF |
| 3270 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3271 | if { (ac_try="$ac_compile" |
| 3272 | case "(($ac_try" in |
| 3273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3274 | *) ac_try_echo=$ac_try;; |
| 3275 | esac |
| 3276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3277 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3278 | ac_status=$? |
| 3279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3280 | rm -f conftest.er1 |
| 3281 | cat conftest.err >&5 |
| 3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3283 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3284 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3285 | { (case "(($ac_try" in |
| 3286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3287 | *) ac_try_echo=$ac_try;; |
| 3288 | esac |
| 3289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3290 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3291 | ac_status=$? |
| 3292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3293 | (exit $ac_status); }; } && |
| 3294 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3295 | { (case "(($ac_try" in |
| 3296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3297 | *) ac_try_echo=$ac_try;; |
| 3298 | esac |
| 3299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3300 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3301 | ac_status=$? |
| 3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3303 | (exit $ac_status); }; }; then |
| 3304 | ac_cv_prog_cxx_g=yes |
| 3305 | else |
| 3306 | echo "$as_me: failed program was:" >&5 |
| 3307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3308 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3309 | CXXFLAGS="" |
| 3310 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3311 | /* confdefs.h. */ |
| 3312 | _ACEOF |
| 3313 | cat confdefs.h >>conftest.$ac_ext |
| 3314 | cat >>conftest.$ac_ext <<_ACEOF |
| 3315 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3316 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3317 | int |
| 3318 | main () |
| 3319 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3320 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3321 | ; |
| 3322 | return 0; |
| 3323 | } |
| 3324 | _ACEOF |
| 3325 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3326 | if { (ac_try="$ac_compile" |
| 3327 | case "(($ac_try" in |
| 3328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3329 | *) ac_try_echo=$ac_try;; |
| 3330 | esac |
| 3331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3332 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3333 | ac_status=$? |
| 3334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3335 | rm -f conftest.er1 |
| 3336 | cat conftest.err >&5 |
| 3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3338 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3339 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3340 | { (case "(($ac_try" in |
| 3341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3342 | *) ac_try_echo=$ac_try;; |
| 3343 | esac |
| 3344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3345 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3346 | ac_status=$? |
| 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3348 | (exit $ac_status); }; } && |
| 3349 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3350 | { (case "(($ac_try" in |
| 3351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3352 | *) ac_try_echo=$ac_try;; |
| 3353 | esac |
| 3354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3355 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3356 | ac_status=$? |
| 3357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3358 | (exit $ac_status); }; }; then |
| 3359 | : |
| 3360 | else |
| 3361 | echo "$as_me: failed program was:" >&5 |
| 3362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3363 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3364 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3365 | CXXFLAGS="-g" |
| 3366 | cat >conftest.$ac_ext <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3367 | /* confdefs.h. */ |
| 3368 | _ACEOF |
| 3369 | cat confdefs.h >>conftest.$ac_ext |
| 3370 | cat >>conftest.$ac_ext <<_ACEOF |
| 3371 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3372 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3373 | int |
| 3374 | main () |
| 3375 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3376 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3377 | ; |
| 3378 | return 0; |
| 3379 | } |
| 3380 | _ACEOF |
| 3381 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3382 | if { (ac_try="$ac_compile" |
| 3383 | case "(($ac_try" in |
| 3384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3385 | *) ac_try_echo=$ac_try;; |
| 3386 | esac |
| 3387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3388 | (eval "$ac_compile") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3389 | ac_status=$? |
| 3390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3391 | rm -f conftest.er1 |
| 3392 | cat conftest.err >&5 |
| 3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3394 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3395 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3396 | { (case "(($ac_try" in |
| 3397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3398 | *) ac_try_echo=$ac_try;; |
| 3399 | esac |
| 3400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3401 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3402 | ac_status=$? |
| 3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3404 | (exit $ac_status); }; } && |
| 3405 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3406 | { (case "(($ac_try" in |
| 3407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3408 | *) ac_try_echo=$ac_try;; |
| 3409 | esac |
| 3410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3411 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3412 | ac_status=$? |
| 3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3414 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3415 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3416 | else |
| 3417 | echo "$as_me: failed program was:" >&5 |
| 3418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3419 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3420 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3421 | fi |
| 3422 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3424 | fi |
| 3425 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3427 | fi |
| 3428 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3430 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3431 | fi |
| 3432 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3433 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3434 | if test "$ac_test_CXXFLAGS" = set; then |
| 3435 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3436 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3437 | if test "$GXX" = yes; then |
| 3438 | CXXFLAGS="-g -O2" |
| 3439 | else |
| 3440 | CXXFLAGS="-g" |
| 3441 | fi |
| 3442 | else |
| 3443 | if test "$GXX" = yes; then |
| 3444 | CXXFLAGS="-O2" |
| 3445 | else |
| 3446 | CXXFLAGS= |
| 3447 | fi |
| 3448 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3449 | ac_ext=c |
| 3450 | ac_cpp='$CPP $CPPFLAGS' |
| 3451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3454 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3455 | if test -n "$ac_tool_prefix"; then |
| 3456 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3457 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3458 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3460 | if test "${ac_cv_prog_CPPBIN+set}" = set; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3462 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3463 | if test -n "$CPPBIN"; then |
| 3464 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3465 | else |
| 3466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3467 | for as_dir in $PATH |
| 3468 | do |
| 3469 | IFS=$as_save_IFS |
| 3470 | test -z "$as_dir" && as_dir=. |
| 3471 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3473 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3475 | break 2 |
| 3476 | fi |
| 3477 | done |
| 3478 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3479 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3480 | |
| 3481 | fi |
| 3482 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3483 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3484 | if test -n "$CPPBIN"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3485 | { echo "$as_me:$LINENO: result: $CPPBIN" >&5 |
| 3486 | echo "${ECHO_T}$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3487 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3489 | echo "${ECHO_T}no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3490 | fi |
| 3491 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3492 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3493 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3494 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 3495 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3496 | # Extract the first word of "cpp", so it can be a program name with args. |
| 3497 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3498 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3500 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3502 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3503 | if test -n "$ac_ct_CPPBIN"; then |
| 3504 | ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test. |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3505 | else |
| 3506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3507 | for as_dir in $PATH |
| 3508 | do |
| 3509 | IFS=$as_save_IFS |
| 3510 | test -z "$as_dir" && as_dir=. |
| 3511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3513 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3515 | break 2 |
| 3516 | fi |
| 3517 | done |
| 3518 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3519 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3520 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3521 | fi |
| 3522 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3523 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 3524 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3525 | { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5 |
| 3526 | echo "${ECHO_T}$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3527 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3528 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3529 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3530 | fi |
| 3531 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3532 | if test "x$ac_ct_CPPBIN" = x; then |
| 3533 | CPPBIN="cpp" |
| 3534 | else |
| 3535 | case $cross_compiling:$ac_tool_warned in |
| 3536 | yes:) |
| 3537 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3538 | whose name does not start with the host triplet. If you think this |
| 3539 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3540 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3541 | whose name does not start with the host triplet. If you think this |
| 3542 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3543 | ac_tool_warned=yes ;; |
| 3544 | esac |
| 3545 | CPPBIN=$ac_ct_CPPBIN |
| 3546 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3547 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3548 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3549 | fi |
| 3550 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3551 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3552 | { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 3553 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3554 | if test "${wine_cv_toolsdir+set}" = set; then |
| 3555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3556 | else |
| 3557 | if test -z "$with_wine_tools"; then |
| 3558 | if test "$cross_compiling" = "yes"; then |
| 3559 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 3560 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 3561 | { (exit 1); exit 1; }; } |
| 3562 | else |
| 3563 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 3564 | fi |
| 3565 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 3566 | case $with_wine_tools in |
| 3567 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 3568 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 3569 | esac |
| 3570 | else |
| 3571 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 3572 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 3573 | { (exit 1); exit 1; }; } |
| 3574 | fi |
| 3575 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3576 | { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 3577 | echo "${ECHO_T}$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3578 | TOOLSDIR=$wine_cv_toolsdir |
| 3579 | |
| 3580 | |
| 3581 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3582 | ac_ext=c |
| 3583 | ac_cpp='$CPP $CPPFLAGS' |
| 3584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3587 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3588 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3589 | # On Suns, sometimes $CPP names a directory. |
| 3590 | if test -n "$CPP" && test -d "$CPP"; then |
| 3591 | CPP= |
| 3592 | fi |
| 3593 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3594 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3596 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3597 | # Double quotes because CPP needs to be expanded |
| 3598 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3599 | do |
| 3600 | ac_preproc_ok=false |
| 3601 | for ac_c_preproc_warn_flag in '' yes |
| 3602 | do |
| 3603 | # Use a header file that comes with gcc, so configuring glibc |
| 3604 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3605 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3606 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3607 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3608 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3609 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3610 | /* confdefs.h. */ |
| 3611 | _ACEOF |
| 3612 | cat confdefs.h >>conftest.$ac_ext |
| 3613 | cat >>conftest.$ac_ext <<_ACEOF |
| 3614 | /* end confdefs.h. */ |
| 3615 | #ifdef __STDC__ |
| 3616 | # include <limits.h> |
| 3617 | #else |
| 3618 | # include <assert.h> |
| 3619 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3620 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3621 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3622 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3623 | case "(($ac_try" in |
| 3624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3625 | *) ac_try_echo=$ac_try;; |
| 3626 | esac |
| 3627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3628 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3629 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3630 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3631 | rm -f conftest.er1 |
| 3632 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3634 | (exit $ac_status); } >/dev/null; then |
| 3635 | if test -s conftest.err; then |
| 3636 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3637 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3638 | else |
| 3639 | ac_cpp_err= |
| 3640 | fi |
| 3641 | else |
| 3642 | ac_cpp_err=yes |
| 3643 | fi |
| 3644 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3645 | : |
| 3646 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3647 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3649 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3650 | # Broken: fails on valid input. |
| 3651 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3652 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3653 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3654 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3655 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3656 | # OK, works on sane cases. Now check whether nonexistent headers |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3657 | # can be detected and how. |
| 3658 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3659 | /* confdefs.h. */ |
| 3660 | _ACEOF |
| 3661 | cat confdefs.h >>conftest.$ac_ext |
| 3662 | cat >>conftest.$ac_ext <<_ACEOF |
| 3663 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3664 | #include <ac_nonexistent.h> |
| 3665 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3667 | case "(($ac_try" in |
| 3668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3669 | *) ac_try_echo=$ac_try;; |
| 3670 | esac |
| 3671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3672 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3673 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3674 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3675 | rm -f conftest.er1 |
| 3676 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3678 | (exit $ac_status); } >/dev/null; then |
| 3679 | if test -s conftest.err; then |
| 3680 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3682 | else |
| 3683 | ac_cpp_err= |
| 3684 | fi |
| 3685 | else |
| 3686 | ac_cpp_err=yes |
| 3687 | fi |
| 3688 | if test -z "$ac_cpp_err"; then |
| 3689 | # Broken: success on invalid input. |
| 3690 | continue |
| 3691 | else |
| 3692 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3694 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3695 | # Passes both tests. |
| 3696 | ac_preproc_ok=: |
| 3697 | break |
| 3698 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3699 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3700 | rm -f conftest.err conftest.$ac_ext |
| 3701 | |
| 3702 | done |
| 3703 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3704 | rm -f conftest.err conftest.$ac_ext |
| 3705 | if $ac_preproc_ok; then |
| 3706 | break |
| 3707 | fi |
| 3708 | |
| 3709 | done |
| 3710 | ac_cv_prog_CPP=$CPP |
| 3711 | |
| 3712 | fi |
| 3713 | CPP=$ac_cv_prog_CPP |
| 3714 | else |
| 3715 | ac_cv_prog_CPP=$CPP |
| 3716 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3717 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3718 | echo "${ECHO_T}$CPP" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3719 | ac_preproc_ok=false |
| 3720 | for ac_c_preproc_warn_flag in '' yes |
| 3721 | do |
| 3722 | # Use a header file that comes with gcc, so configuring glibc |
| 3723 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3724 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3725 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3726 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3727 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3728 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3729 | /* confdefs.h. */ |
| 3730 | _ACEOF |
| 3731 | cat confdefs.h >>conftest.$ac_ext |
| 3732 | cat >>conftest.$ac_ext <<_ACEOF |
| 3733 | /* end confdefs.h. */ |
| 3734 | #ifdef __STDC__ |
| 3735 | # include <limits.h> |
| 3736 | #else |
| 3737 | # include <assert.h> |
| 3738 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3739 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3740 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3741 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3742 | case "(($ac_try" in |
| 3743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3744 | *) ac_try_echo=$ac_try;; |
| 3745 | esac |
| 3746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3747 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3748 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3749 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3750 | rm -f conftest.er1 |
| 3751 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3753 | (exit $ac_status); } >/dev/null; then |
| 3754 | if test -s conftest.err; then |
| 3755 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3756 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3757 | else |
| 3758 | ac_cpp_err= |
| 3759 | fi |
| 3760 | else |
| 3761 | ac_cpp_err=yes |
| 3762 | fi |
| 3763 | if test -z "$ac_cpp_err"; then |
| 3764 | : |
| 3765 | else |
| 3766 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3768 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3769 | # Broken: fails on valid input. |
| 3770 | continue |
| 3771 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3772 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3773 | rm -f conftest.err conftest.$ac_ext |
| 3774 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3775 | # OK, works on sane cases. Now check whether nonexistent headers |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3776 | # can be detected and how. |
| 3777 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3778 | /* confdefs.h. */ |
| 3779 | _ACEOF |
| 3780 | cat confdefs.h >>conftest.$ac_ext |
| 3781 | cat >>conftest.$ac_ext <<_ACEOF |
| 3782 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3783 | #include <ac_nonexistent.h> |
| 3784 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3785 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3786 | case "(($ac_try" in |
| 3787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3788 | *) ac_try_echo=$ac_try;; |
| 3789 | esac |
| 3790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3791 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3792 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3793 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3794 | rm -f conftest.er1 |
| 3795 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3797 | (exit $ac_status); } >/dev/null; then |
| 3798 | if test -s conftest.err; then |
| 3799 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3800 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3801 | else |
| 3802 | ac_cpp_err= |
| 3803 | fi |
| 3804 | else |
| 3805 | ac_cpp_err=yes |
| 3806 | fi |
| 3807 | if test -z "$ac_cpp_err"; then |
| 3808 | # Broken: success on invalid input. |
| 3809 | continue |
| 3810 | else |
| 3811 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3813 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3814 | # Passes both tests. |
| 3815 | ac_preproc_ok=: |
| 3816 | break |
| 3817 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3818 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3819 | rm -f conftest.err conftest.$ac_ext |
| 3820 | |
| 3821 | done |
| 3822 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3823 | rm -f conftest.err conftest.$ac_ext |
| 3824 | if $ac_preproc_ok; then |
| 3825 | : |
| 3826 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3827 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3828 | See \`config.log' for more details." >&5 |
| 3829 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3830 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3831 | { (exit 1); exit 1; }; } |
| 3832 | fi |
| 3833 | |
| 3834 | ac_ext=c |
| 3835 | ac_cpp='$CPP $CPPFLAGS' |
| 3836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3839 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3840 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3841 | { echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3842 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3843 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3844 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3845 | # Check whether --with-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3846 | if test "${with_x+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3847 | withval=$with_x; |
| 3848 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3849 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3850 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3851 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3852 | # The user explicitly disabled X. |
| 3853 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3854 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3855 | case $x_includes,$x_libraries in #( |
| 3856 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
| 3857 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
| 3858 | { (exit 1); exit 1; }; };; #( |
| 3859 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3861 | else |
| 3862 | # One or both of the vars are not set, and there is no cached value. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3863 | ac_x_includes=no ac_x_libraries=no |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3864 | rm -f -r conftest.dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3865 | if mkdir conftest.dir; then |
| 3866 | cd conftest.dir |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3867 | cat >Imakefile <<'_ACEOF' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3868 | incroot: |
| 3869 | @echo incroot='${INCROOT}' |
| 3870 | usrlibdir: |
| 3871 | @echo usrlibdir='${USRLIBDIR}' |
| 3872 | libdir: |
| 3873 | @echo libdir='${LIBDIR}' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3874 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3875 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3876 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3877 | for ac_var in incroot usrlibdir libdir; do |
| 3878 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 3879 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3880 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3881 | for ac_extension in a so sl; do |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3882 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 3883 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3884 | ac_im_usrlibdir=$ac_im_libdir; break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3885 | fi |
| 3886 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3887 | # Screen out bogus values from the imake configuration. They are |
| 3888 | # bogus both because they are the default anyway, and because |
| 3889 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3890 | case $ac_im_incroot in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3891 | /usr/include) ac_x_includes= ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3892 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3893 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3894 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3895 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3896 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3897 | esac |
| 3898 | fi |
| 3899 | cd .. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3900 | rm -f -r conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3901 | fi |
| 3902 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3903 | # Standard set of common directories for X headers. |
| 3904 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3905 | ac_x_header_dirs=' |
| 3906 | /usr/X11/include |
| 3907 | /usr/X11R6/include |
| 3908 | /usr/X11R5/include |
| 3909 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3910 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3911 | /usr/include/X11 |
| 3912 | /usr/include/X11R6 |
| 3913 | /usr/include/X11R5 |
| 3914 | /usr/include/X11R4 |
| 3915 | |
| 3916 | /usr/local/X11/include |
| 3917 | /usr/local/X11R6/include |
| 3918 | /usr/local/X11R5/include |
| 3919 | /usr/local/X11R4/include |
| 3920 | |
| 3921 | /usr/local/include/X11 |
| 3922 | /usr/local/include/X11R6 |
| 3923 | /usr/local/include/X11R5 |
| 3924 | /usr/local/include/X11R4 |
| 3925 | |
| 3926 | /usr/X386/include |
| 3927 | /usr/x386/include |
| 3928 | /usr/XFree86/include/X11 |
| 3929 | |
| 3930 | /usr/include |
| 3931 | /usr/local/include |
| 3932 | /usr/unsupported/include |
| 3933 | /usr/athena/include |
| 3934 | /usr/local/x11r5/include |
| 3935 | /usr/lpp/Xamples/include |
| 3936 | |
| 3937 | /usr/openwin/include |
| 3938 | /usr/openwin/share/include' |
| 3939 | |
| 3940 | if test "$ac_x_includes" = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3941 | # Guess where to find include files, by looking for Xlib.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3942 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3943 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3944 | /* confdefs.h. */ |
| 3945 | _ACEOF |
| 3946 | cat confdefs.h >>conftest.$ac_ext |
| 3947 | cat >>conftest.$ac_ext <<_ACEOF |
| 3948 | /* end confdefs.h. */ |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3949 | #include <X11/Xlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3950 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3951 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3952 | case "(($ac_try" in |
| 3953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3954 | *) ac_try_echo=$ac_try;; |
| 3955 | esac |
| 3956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3957 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3958 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3959 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3960 | rm -f conftest.er1 |
| 3961 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3963 | (exit $ac_status); } >/dev/null; then |
| 3964 | if test -s conftest.err; then |
| 3965 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3966 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3967 | else |
| 3968 | ac_cpp_err= |
| 3969 | fi |
| 3970 | else |
| 3971 | ac_cpp_err=yes |
| 3972 | fi |
| 3973 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3974 | # We can compile using X headers with no special include directory. |
| 3975 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3976 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3977 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3979 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3980 | for ac_dir in $ac_x_header_dirs; do |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 3981 | if test -r "$ac_dir/X11/Xlib.h"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3982 | ac_x_includes=$ac_dir |
| 3983 | break |
| 3984 | fi |
| 3985 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3986 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3987 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3988 | rm -f conftest.err conftest.$ac_ext |
| 3989 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3990 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3991 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3992 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3993 | # See if we find them without any special options. |
| 3994 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3995 | ac_save_LIBS=$LIBS |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 3996 | LIBS="-lX11 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3997 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3998 | /* confdefs.h. */ |
| 3999 | _ACEOF |
| 4000 | cat confdefs.h >>conftest.$ac_ext |
| 4001 | cat >>conftest.$ac_ext <<_ACEOF |
| 4002 | /* end confdefs.h. */ |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 4003 | #include <X11/Xlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4004 | int |
| 4005 | main () |
| 4006 | { |
Alexandre Julliard | d7d3169 | 2005-10-25 12:04:17 +0000 | [diff] [blame] | 4007 | XrmInitialize () |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4008 | ; |
| 4009 | return 0; |
| 4010 | } |
| 4011 | _ACEOF |
| 4012 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4013 | if { (ac_try="$ac_link" |
| 4014 | case "(($ac_try" in |
| 4015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4016 | *) ac_try_echo=$ac_try;; |
| 4017 | esac |
| 4018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4019 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4020 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4022 | rm -f conftest.er1 |
| 4023 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4025 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4027 | { (case "(($ac_try" in |
| 4028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4029 | *) ac_try_echo=$ac_try;; |
| 4030 | esac |
| 4031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4032 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4033 | ac_status=$? |
| 4034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4035 | (exit $ac_status); }; } && |
| 4036 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4037 | { (case "(($ac_try" in |
| 4038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4039 | *) ac_try_echo=$ac_try;; |
| 4040 | esac |
| 4041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4042 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4043 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4045 | (exit $ac_status); }; }; then |
| 4046 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4047 | # We can link X programs with no special library path. |
| 4048 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4049 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4050 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4052 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4053 | LIBS=$ac_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4054 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4055 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4056 | # Don't even attempt the hair of trying to link an X program! |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4057 | for ac_extension in a so sl; do |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 4058 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4059 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4060 | break 2 |
| 4061 | fi |
| 4062 | done |
| 4063 | done |
| 4064 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4065 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4066 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4067 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4068 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4069 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4070 | case $ac_x_includes,$ac_x_libraries in #( |
| 4071 | no,* | *,no | *\'*) |
| 4072 | # Didn't find X, or a directory has "'" in its name. |
| 4073 | ac_cv_have_x="have_x=no";; #( |
| 4074 | *) |
| 4075 | # Record where we found X for the cache. |
| 4076 | ac_cv_have_x="have_x=yes\ |
| 4077 | ac_x_includes='$ac_x_includes'\ |
| 4078 | ac_x_libraries='$ac_x_libraries'" |
| 4079 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4080 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4081 | ;; #( |
| 4082 | *) have_x=yes;; |
| 4083 | esac |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4084 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4085 | fi # $with_x != no |
| 4086 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4087 | if test "$have_x" != yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4088 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
| 4089 | echo "${ECHO_T}$have_x" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4090 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4091 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4092 | # If each of the values was on the command line, it overrides each guess. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4093 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 4094 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4095 | # Update the cache value to reflect the command line values. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4096 | ac_cv_have_x="have_x=yes\ |
| 4097 | ac_x_includes='$x_includes'\ |
| 4098 | ac_x_libraries='$x_libraries'" |
| 4099 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 4100 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4101 | fi |
| 4102 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4103 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4104 | # Not all programs may use this symbol, but it does not hurt to define it. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4105 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4106 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4107 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4108 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4109 | |
| 4110 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4111 | else |
| 4112 | if test -n "$x_includes"; then |
| 4113 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 4114 | fi |
| 4115 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4116 | # It would also be nice to do this for all -L options, not just this one. |
| 4117 | if test -n "$x_libraries"; then |
| 4118 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4119 | # For Solaris; some versions of Sun CC require a space after -R and |
| 4120 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4121 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4122 | "SunOS 5"*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4123 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 4124 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4125 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 4126 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4127 | /* confdefs.h. */ |
| 4128 | _ACEOF |
| 4129 | cat confdefs.h >>conftest.$ac_ext |
| 4130 | cat >>conftest.$ac_ext <<_ACEOF |
| 4131 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4132 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4133 | int |
| 4134 | main () |
| 4135 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4136 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4137 | ; |
| 4138 | return 0; |
| 4139 | } |
| 4140 | _ACEOF |
| 4141 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4142 | if { (ac_try="$ac_link" |
| 4143 | case "(($ac_try" in |
| 4144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4145 | *) ac_try_echo=$ac_try;; |
| 4146 | esac |
| 4147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4148 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4149 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4151 | rm -f conftest.er1 |
| 4152 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4154 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4156 | { (case "(($ac_try" in |
| 4157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4158 | *) ac_try_echo=$ac_try;; |
| 4159 | esac |
| 4160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4161 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4162 | ac_status=$? |
| 4163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4164 | (exit $ac_status); }; } && |
| 4165 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4166 | { (case "(($ac_try" in |
| 4167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4168 | *) ac_try_echo=$ac_try;; |
| 4169 | esac |
| 4170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4171 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4172 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4174 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4175 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4176 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4177 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4179 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4180 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4181 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4182 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4183 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4184 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4185 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4186 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4187 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4188 | X_LIBS="$X_LIBS -R$x_libraries" |
| 4189 | else |
| 4190 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4191 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4192 | /* confdefs.h. */ |
| 4193 | _ACEOF |
| 4194 | cat confdefs.h >>conftest.$ac_ext |
| 4195 | cat >>conftest.$ac_ext <<_ACEOF |
| 4196 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4197 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4198 | int |
| 4199 | main () |
| 4200 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4201 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4202 | ; |
| 4203 | return 0; |
| 4204 | } |
| 4205 | _ACEOF |
| 4206 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4207 | if { (ac_try="$ac_link" |
| 4208 | case "(($ac_try" in |
| 4209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4210 | *) ac_try_echo=$ac_try;; |
| 4211 | esac |
| 4212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4213 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4214 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4216 | rm -f conftest.er1 |
| 4217 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4219 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4221 | { (case "(($ac_try" in |
| 4222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4223 | *) ac_try_echo=$ac_try;; |
| 4224 | esac |
| 4225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4226 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4227 | ac_status=$? |
| 4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4229 | (exit $ac_status); }; } && |
| 4230 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4231 | { (case "(($ac_try" in |
| 4232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4233 | *) ac_try_echo=$ac_try;; |
| 4234 | esac |
| 4235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4236 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4237 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4239 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4240 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4241 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4242 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4244 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4245 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4246 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4247 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4248 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4249 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4250 | if test $ac_R_space = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4251 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4252 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4253 | X_LIBS="$X_LIBS -R $x_libraries" |
| 4254 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4255 | { echo "$as_me:$LINENO: result: neither works" >&5 |
| 4256 | echo "${ECHO_T}neither works" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4257 | fi |
| 4258 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4259 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4260 | esac |
| 4261 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4262 | |
| 4263 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4264 | # Do this before checking for the system-independent R6 libraries |
| 4265 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4266 | |
| 4267 | if test "$ISC" = yes; then |
| 4268 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 4269 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4270 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 4271 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4272 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4273 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 4274 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4275 | /* confdefs.h. */ |
| 4276 | _ACEOF |
| 4277 | cat confdefs.h >>conftest.$ac_ext |
| 4278 | cat >>conftest.$ac_ext <<_ACEOF |
| 4279 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4280 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4281 | /* Override any GCC internal prototype to avoid an error. |
| 4282 | Use char because int might match the return type of a GCC |
| 4283 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4284 | #ifdef __cplusplus |
| 4285 | extern "C" |
| 4286 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4287 | char XOpenDisplay (); |
| 4288 | int |
| 4289 | main () |
| 4290 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4291 | return XOpenDisplay (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4292 | ; |
| 4293 | return 0; |
| 4294 | } |
| 4295 | _ACEOF |
| 4296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4297 | if { (ac_try="$ac_link" |
| 4298 | case "(($ac_try" in |
| 4299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4300 | *) ac_try_echo=$ac_try;; |
| 4301 | esac |
| 4302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4303 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4304 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4306 | rm -f conftest.er1 |
| 4307 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4309 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4311 | { (case "(($ac_try" in |
| 4312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4313 | *) ac_try_echo=$ac_try;; |
| 4314 | esac |
| 4315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4316 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4317 | ac_status=$? |
| 4318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4319 | (exit $ac_status); }; } && |
| 4320 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4321 | { (case "(($ac_try" in |
| 4322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4323 | *) ac_try_echo=$ac_try;; |
| 4324 | esac |
| 4325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4326 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4327 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4329 | (exit $ac_status); }; }; then |
| 4330 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4331 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4332 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4334 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4335 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 4336 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4337 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 4338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4339 | else |
| 4340 | ac_check_lib_save_LIBS=$LIBS |
| 4341 | LIBS="-ldnet $LIBS" |
| 4342 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4343 | /* confdefs.h. */ |
| 4344 | _ACEOF |
| 4345 | cat confdefs.h >>conftest.$ac_ext |
| 4346 | cat >>conftest.$ac_ext <<_ACEOF |
| 4347 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4348 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4349 | /* Override any GCC internal prototype to avoid an error. |
| 4350 | Use char because int might match the return type of a GCC |
| 4351 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4352 | #ifdef __cplusplus |
| 4353 | extern "C" |
| 4354 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4355 | char dnet_ntoa (); |
| 4356 | int |
| 4357 | main () |
| 4358 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4359 | return dnet_ntoa (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4360 | ; |
| 4361 | return 0; |
| 4362 | } |
| 4363 | _ACEOF |
| 4364 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4365 | if { (ac_try="$ac_link" |
| 4366 | case "(($ac_try" in |
| 4367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4368 | *) ac_try_echo=$ac_try;; |
| 4369 | esac |
| 4370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4371 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4372 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4374 | rm -f conftest.er1 |
| 4375 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4377 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4379 | { (case "(($ac_try" in |
| 4380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4381 | *) ac_try_echo=$ac_try;; |
| 4382 | esac |
| 4383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4384 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4385 | ac_status=$? |
| 4386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4387 | (exit $ac_status); }; } && |
| 4388 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4389 | { (case "(($ac_try" in |
| 4390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4391 | *) ac_try_echo=$ac_try;; |
| 4392 | esac |
| 4393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4394 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4395 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4397 | (exit $ac_status); }; }; then |
| 4398 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 4399 | else |
| 4400 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4402 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4403 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4404 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4405 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4406 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4407 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4408 | LIBS=$ac_check_lib_save_LIBS |
| 4409 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4410 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 4411 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4412 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4413 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4414 | fi |
| 4415 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4416 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4417 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 4418 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4419 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 4420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4421 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4422 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4423 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4424 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4425 | /* confdefs.h. */ |
| 4426 | _ACEOF |
| 4427 | cat confdefs.h >>conftest.$ac_ext |
| 4428 | cat >>conftest.$ac_ext <<_ACEOF |
| 4429 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4430 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4431 | /* Override any GCC internal prototype to avoid an error. |
| 4432 | Use char because int might match the return type of a GCC |
| 4433 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4434 | #ifdef __cplusplus |
| 4435 | extern "C" |
| 4436 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4437 | char dnet_ntoa (); |
| 4438 | int |
| 4439 | main () |
| 4440 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4441 | return dnet_ntoa (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4442 | ; |
| 4443 | return 0; |
| 4444 | } |
| 4445 | _ACEOF |
| 4446 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4447 | if { (ac_try="$ac_link" |
| 4448 | case "(($ac_try" in |
| 4449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4450 | *) ac_try_echo=$ac_try;; |
| 4451 | esac |
| 4452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4453 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4454 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4456 | rm -f conftest.er1 |
| 4457 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4459 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4461 | { (case "(($ac_try" in |
| 4462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4463 | *) ac_try_echo=$ac_try;; |
| 4464 | esac |
| 4465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4466 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4467 | ac_status=$? |
| 4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4469 | (exit $ac_status); }; } && |
| 4470 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4471 | { (case "(($ac_try" in |
| 4472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4473 | *) ac_try_echo=$ac_try;; |
| 4474 | esac |
| 4475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4476 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4477 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4479 | (exit $ac_status); }; }; then |
| 4480 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4481 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4482 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4484 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4485 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4486 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4487 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4488 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4489 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4490 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4491 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4492 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 4493 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4494 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4495 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4496 | fi |
| 4497 | |
| 4498 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4499 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4500 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4501 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4502 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4503 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4504 | |
| 4505 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 4506 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4507 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4508 | # needs -lnsl. |
| 4509 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4510 | # on Irix 5.2, according to T.E. Dickey. |
| 4511 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 4512 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4513 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 4514 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4515 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4517 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4518 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4519 | /* confdefs.h. */ |
| 4520 | _ACEOF |
| 4521 | cat confdefs.h >>conftest.$ac_ext |
| 4522 | cat >>conftest.$ac_ext <<_ACEOF |
| 4523 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4524 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 4525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4526 | #define gethostbyname innocuous_gethostbyname |
| 4527 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4528 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4529 | which can conflict with char gethostbyname (); below. |
| 4530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4531 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4532 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4533 | #ifdef __STDC__ |
| 4534 | # include <limits.h> |
| 4535 | #else |
| 4536 | # include <assert.h> |
| 4537 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4538 | |
| 4539 | #undef gethostbyname |
| 4540 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4541 | /* Override any GCC internal prototype to avoid an error. |
| 4542 | Use char because int might match the return type of a GCC |
| 4543 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4544 | #ifdef __cplusplus |
| 4545 | extern "C" |
| 4546 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4547 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4548 | /* The GNU C library defines this for functions which it implements |
| 4549 | to always fail with ENOSYS. Some functions are actually named |
| 4550 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4551 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4552 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4553 | #endif |
| 4554 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4555 | int |
| 4556 | main () |
| 4557 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4558 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4559 | ; |
| 4560 | return 0; |
| 4561 | } |
| 4562 | _ACEOF |
| 4563 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4564 | if { (ac_try="$ac_link" |
| 4565 | case "(($ac_try" in |
| 4566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4567 | *) ac_try_echo=$ac_try;; |
| 4568 | esac |
| 4569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4570 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4571 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4573 | rm -f conftest.er1 |
| 4574 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4576 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4578 | { (case "(($ac_try" in |
| 4579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4580 | *) ac_try_echo=$ac_try;; |
| 4581 | esac |
| 4582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4583 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4584 | ac_status=$? |
| 4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4586 | (exit $ac_status); }; } && |
| 4587 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4588 | { (case "(($ac_try" in |
| 4589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4590 | *) ac_try_echo=$ac_try;; |
| 4591 | esac |
| 4592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4593 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4594 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4596 | (exit $ac_status); }; }; then |
| 4597 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4598 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4599 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4601 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4602 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4603 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4604 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4605 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4606 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4607 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4608 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 4609 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4610 | |
| 4611 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4612 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4613 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4614 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4616 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4617 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4618 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4619 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4620 | /* confdefs.h. */ |
| 4621 | _ACEOF |
| 4622 | cat confdefs.h >>conftest.$ac_ext |
| 4623 | cat >>conftest.$ac_ext <<_ACEOF |
| 4624 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4625 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4626 | /* Override any GCC internal prototype to avoid an error. |
| 4627 | Use char because int might match the return type of a GCC |
| 4628 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4629 | #ifdef __cplusplus |
| 4630 | extern "C" |
| 4631 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4632 | char gethostbyname (); |
| 4633 | int |
| 4634 | main () |
| 4635 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4636 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4637 | ; |
| 4638 | return 0; |
| 4639 | } |
| 4640 | _ACEOF |
| 4641 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4642 | if { (ac_try="$ac_link" |
| 4643 | case "(($ac_try" in |
| 4644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4645 | *) ac_try_echo=$ac_try;; |
| 4646 | esac |
| 4647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4648 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4649 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4651 | rm -f conftest.er1 |
| 4652 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4654 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4656 | { (case "(($ac_try" in |
| 4657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4658 | *) ac_try_echo=$ac_try;; |
| 4659 | esac |
| 4660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4661 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4662 | ac_status=$? |
| 4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4664 | (exit $ac_status); }; } && |
| 4665 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4666 | { (case "(($ac_try" in |
| 4667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4668 | *) ac_try_echo=$ac_try;; |
| 4669 | esac |
| 4670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4671 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4672 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4674 | (exit $ac_status); }; }; then |
| 4675 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4676 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4677 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4679 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4680 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4681 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4682 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4683 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4684 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4685 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4686 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4687 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4688 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4689 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4690 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4691 | fi |
| 4692 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4693 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4694 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 4695 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4696 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 4697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4698 | else |
| 4699 | ac_check_lib_save_LIBS=$LIBS |
| 4700 | LIBS="-lbsd $LIBS" |
| 4701 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4702 | /* confdefs.h. */ |
| 4703 | _ACEOF |
| 4704 | cat confdefs.h >>conftest.$ac_ext |
| 4705 | cat >>conftest.$ac_ext <<_ACEOF |
| 4706 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4707 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4708 | /* Override any GCC internal prototype to avoid an error. |
| 4709 | Use char because int might match the return type of a GCC |
| 4710 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4711 | #ifdef __cplusplus |
| 4712 | extern "C" |
| 4713 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4714 | char gethostbyname (); |
| 4715 | int |
| 4716 | main () |
| 4717 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4718 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4719 | ; |
| 4720 | return 0; |
| 4721 | } |
| 4722 | _ACEOF |
| 4723 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4724 | if { (ac_try="$ac_link" |
| 4725 | case "(($ac_try" in |
| 4726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4727 | *) ac_try_echo=$ac_try;; |
| 4728 | esac |
| 4729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4730 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4731 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4733 | rm -f conftest.er1 |
| 4734 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4736 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4738 | { (case "(($ac_try" in |
| 4739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4740 | *) ac_try_echo=$ac_try;; |
| 4741 | esac |
| 4742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4743 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4744 | ac_status=$? |
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4746 | (exit $ac_status); }; } && |
| 4747 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4748 | { (case "(($ac_try" in |
| 4749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4750 | *) ac_try_echo=$ac_try;; |
| 4751 | esac |
| 4752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4753 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4754 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4756 | (exit $ac_status); }; }; then |
| 4757 | ac_cv_lib_bsd_gethostbyname=yes |
| 4758 | else |
| 4759 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4761 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4762 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4763 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4764 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4765 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4766 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4767 | LIBS=$ac_check_lib_save_LIBS |
| 4768 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4769 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 4770 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4771 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 4772 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 4773 | fi |
| 4774 | |
| 4775 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4776 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4777 | |
| 4778 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4779 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 4780 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4781 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 4782 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4783 | # must be given before -lnsl if both are needed. We assume that |
| 4784 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4785 | { echo "$as_me:$LINENO: checking for connect" >&5 |
| 4786 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4787 | if test "${ac_cv_func_connect+set}" = set; then |
| 4788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4789 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4790 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4791 | /* confdefs.h. */ |
| 4792 | _ACEOF |
| 4793 | cat confdefs.h >>conftest.$ac_ext |
| 4794 | cat >>conftest.$ac_ext <<_ACEOF |
| 4795 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4796 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 4797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4798 | #define connect innocuous_connect |
| 4799 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4800 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4801 | which can conflict with char connect (); below. |
| 4802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4803 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4804 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4805 | #ifdef __STDC__ |
| 4806 | # include <limits.h> |
| 4807 | #else |
| 4808 | # include <assert.h> |
| 4809 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4810 | |
| 4811 | #undef connect |
| 4812 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4813 | /* Override any GCC internal prototype to avoid an error. |
| 4814 | Use char because int might match the return type of a GCC |
| 4815 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4816 | #ifdef __cplusplus |
| 4817 | extern "C" |
| 4818 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4819 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4820 | /* The GNU C library defines this for functions which it implements |
| 4821 | to always fail with ENOSYS. Some functions are actually named |
| 4822 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4823 | #if defined __stub_connect || defined __stub___connect |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4824 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4825 | #endif |
| 4826 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4827 | int |
| 4828 | main () |
| 4829 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4830 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4831 | ; |
| 4832 | return 0; |
| 4833 | } |
| 4834 | _ACEOF |
| 4835 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4836 | if { (ac_try="$ac_link" |
| 4837 | case "(($ac_try" in |
| 4838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4839 | *) ac_try_echo=$ac_try;; |
| 4840 | esac |
| 4841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4842 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4843 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4845 | rm -f conftest.er1 |
| 4846 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4848 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4850 | { (case "(($ac_try" in |
| 4851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4852 | *) ac_try_echo=$ac_try;; |
| 4853 | esac |
| 4854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4855 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4856 | ac_status=$? |
| 4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4858 | (exit $ac_status); }; } && |
| 4859 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4860 | { (case "(($ac_try" in |
| 4861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4862 | *) ac_try_echo=$ac_try;; |
| 4863 | esac |
| 4864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4865 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4866 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4868 | (exit $ac_status); }; }; then |
| 4869 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4870 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4871 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4873 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4874 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4875 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4876 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4877 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4878 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4879 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4880 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 4881 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4882 | |
| 4883 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4884 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 4885 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4886 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4888 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4889 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4890 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4891 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4892 | /* confdefs.h. */ |
| 4893 | _ACEOF |
| 4894 | cat confdefs.h >>conftest.$ac_ext |
| 4895 | cat >>conftest.$ac_ext <<_ACEOF |
| 4896 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4897 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4898 | /* Override any GCC internal prototype to avoid an error. |
| 4899 | Use char because int might match the return type of a GCC |
| 4900 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4901 | #ifdef __cplusplus |
| 4902 | extern "C" |
| 4903 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4904 | char connect (); |
| 4905 | int |
| 4906 | main () |
| 4907 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4908 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4909 | ; |
| 4910 | return 0; |
| 4911 | } |
| 4912 | _ACEOF |
| 4913 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4914 | if { (ac_try="$ac_link" |
| 4915 | case "(($ac_try" in |
| 4916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4917 | *) ac_try_echo=$ac_try;; |
| 4918 | esac |
| 4919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4920 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4921 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4923 | rm -f conftest.er1 |
| 4924 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4926 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4928 | { (case "(($ac_try" in |
| 4929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4930 | *) ac_try_echo=$ac_try;; |
| 4931 | esac |
| 4932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4933 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4934 | ac_status=$? |
| 4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4936 | (exit $ac_status); }; } && |
| 4937 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4938 | { (case "(($ac_try" in |
| 4939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4940 | *) ac_try_echo=$ac_try;; |
| 4941 | esac |
| 4942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4943 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4944 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4946 | (exit $ac_status); }; }; then |
| 4947 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4948 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4949 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4951 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4952 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4953 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4954 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4955 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4956 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4957 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4958 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4959 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 4960 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4961 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4962 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4963 | fi |
| 4964 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4965 | fi |
| 4966 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4967 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4968 | { echo "$as_me:$LINENO: checking for remove" >&5 |
| 4969 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4970 | if test "${ac_cv_func_remove+set}" = set; then |
| 4971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4972 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4973 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4974 | /* confdefs.h. */ |
| 4975 | _ACEOF |
| 4976 | cat confdefs.h >>conftest.$ac_ext |
| 4977 | cat >>conftest.$ac_ext <<_ACEOF |
| 4978 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4979 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4980 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4981 | #define remove innocuous_remove |
| 4982 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4983 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4984 | which can conflict with char remove (); below. |
| 4985 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4986 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4987 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4988 | #ifdef __STDC__ |
| 4989 | # include <limits.h> |
| 4990 | #else |
| 4991 | # include <assert.h> |
| 4992 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4993 | |
| 4994 | #undef remove |
| 4995 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4996 | /* Override any GCC internal prototype to avoid an error. |
| 4997 | Use char because int might match the return type of a GCC |
| 4998 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4999 | #ifdef __cplusplus |
| 5000 | extern "C" |
| 5001 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5002 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5003 | /* The GNU C library defines this for functions which it implements |
| 5004 | to always fail with ENOSYS. Some functions are actually named |
| 5005 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5006 | #if defined __stub_remove || defined __stub___remove |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5007 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5008 | #endif |
| 5009 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5010 | int |
| 5011 | main () |
| 5012 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5013 | return remove (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5014 | ; |
| 5015 | return 0; |
| 5016 | } |
| 5017 | _ACEOF |
| 5018 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5019 | if { (ac_try="$ac_link" |
| 5020 | case "(($ac_try" in |
| 5021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5022 | *) ac_try_echo=$ac_try;; |
| 5023 | esac |
| 5024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5025 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5026 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5028 | rm -f conftest.er1 |
| 5029 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5031 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5033 | { (case "(($ac_try" in |
| 5034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5035 | *) ac_try_echo=$ac_try;; |
| 5036 | esac |
| 5037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5038 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5039 | ac_status=$? |
| 5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5041 | (exit $ac_status); }; } && |
| 5042 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5043 | { (case "(($ac_try" in |
| 5044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5045 | *) ac_try_echo=$ac_try;; |
| 5046 | esac |
| 5047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5048 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5049 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5051 | (exit $ac_status); }; }; then |
| 5052 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5053 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5054 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5056 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5057 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5058 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5059 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5060 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5061 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5062 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5063 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 5064 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5065 | |
| 5066 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5067 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 5068 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5069 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 5070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5071 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5072 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5073 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5074 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5075 | /* confdefs.h. */ |
| 5076 | _ACEOF |
| 5077 | cat confdefs.h >>conftest.$ac_ext |
| 5078 | cat >>conftest.$ac_ext <<_ACEOF |
| 5079 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5080 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5081 | /* Override any GCC internal prototype to avoid an error. |
| 5082 | Use char because int might match the return type of a GCC |
| 5083 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5084 | #ifdef __cplusplus |
| 5085 | extern "C" |
| 5086 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5087 | char remove (); |
| 5088 | int |
| 5089 | main () |
| 5090 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5091 | return remove (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5092 | ; |
| 5093 | return 0; |
| 5094 | } |
| 5095 | _ACEOF |
| 5096 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5097 | if { (ac_try="$ac_link" |
| 5098 | case "(($ac_try" in |
| 5099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5100 | *) ac_try_echo=$ac_try;; |
| 5101 | esac |
| 5102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5103 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5104 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5106 | rm -f conftest.er1 |
| 5107 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5109 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5111 | { (case "(($ac_try" in |
| 5112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5113 | *) ac_try_echo=$ac_try;; |
| 5114 | esac |
| 5115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5116 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5117 | ac_status=$? |
| 5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5119 | (exit $ac_status); }; } && |
| 5120 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5121 | { (case "(($ac_try" in |
| 5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5123 | *) ac_try_echo=$ac_try;; |
| 5124 | esac |
| 5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5126 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5127 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5129 | (exit $ac_status); }; }; then |
| 5130 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5131 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5132 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5134 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5135 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5136 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5137 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5138 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5139 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5140 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5141 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5142 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 5143 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5144 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5145 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5146 | fi |
| 5147 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5148 | fi |
| 5149 | |
| 5150 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5151 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
| 5152 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5153 | if test "${ac_cv_func_shmat+set}" = set; then |
| 5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5155 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5156 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5157 | /* confdefs.h. */ |
| 5158 | _ACEOF |
| 5159 | cat confdefs.h >>conftest.$ac_ext |
| 5160 | cat >>conftest.$ac_ext <<_ACEOF |
| 5161 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5162 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 5163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5164 | #define shmat innocuous_shmat |
| 5165 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5166 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5167 | which can conflict with char shmat (); below. |
| 5168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5169 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5170 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5171 | #ifdef __STDC__ |
| 5172 | # include <limits.h> |
| 5173 | #else |
| 5174 | # include <assert.h> |
| 5175 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5176 | |
| 5177 | #undef shmat |
| 5178 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5179 | /* Override any GCC internal prototype to avoid an error. |
| 5180 | Use char because int might match the return type of a GCC |
| 5181 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5182 | #ifdef __cplusplus |
| 5183 | extern "C" |
| 5184 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5185 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5186 | /* The GNU C library defines this for functions which it implements |
| 5187 | to always fail with ENOSYS. Some functions are actually named |
| 5188 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5189 | #if defined __stub_shmat || defined __stub___shmat |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5190 | choke me |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5191 | #endif |
| 5192 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5193 | int |
| 5194 | main () |
| 5195 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5196 | return shmat (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5197 | ; |
| 5198 | return 0; |
| 5199 | } |
| 5200 | _ACEOF |
| 5201 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5202 | if { (ac_try="$ac_link" |
| 5203 | case "(($ac_try" in |
| 5204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5205 | *) ac_try_echo=$ac_try;; |
| 5206 | esac |
| 5207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5208 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5209 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5211 | rm -f conftest.er1 |
| 5212 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5214 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5216 | { (case "(($ac_try" in |
| 5217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5218 | *) ac_try_echo=$ac_try;; |
| 5219 | esac |
| 5220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5221 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5222 | ac_status=$? |
| 5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5224 | (exit $ac_status); }; } && |
| 5225 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5226 | { (case "(($ac_try" in |
| 5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5228 | *) ac_try_echo=$ac_try;; |
| 5229 | esac |
| 5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5231 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5232 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5234 | (exit $ac_status); }; }; then |
| 5235 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5236 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5237 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5239 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5240 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5241 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5242 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5243 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5244 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5245 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5246 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 5247 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5248 | |
| 5249 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5250 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 5251 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5252 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5254 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5255 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5256 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5257 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5258 | /* confdefs.h. */ |
| 5259 | _ACEOF |
| 5260 | cat confdefs.h >>conftest.$ac_ext |
| 5261 | cat >>conftest.$ac_ext <<_ACEOF |
| 5262 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5263 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5264 | /* Override any GCC internal prototype to avoid an error. |
| 5265 | Use char because int might match the return type of a GCC |
| 5266 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5267 | #ifdef __cplusplus |
| 5268 | extern "C" |
| 5269 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5270 | char shmat (); |
| 5271 | int |
| 5272 | main () |
| 5273 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5274 | return shmat (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5275 | ; |
| 5276 | return 0; |
| 5277 | } |
| 5278 | _ACEOF |
| 5279 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5280 | if { (ac_try="$ac_link" |
| 5281 | case "(($ac_try" in |
| 5282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5283 | *) ac_try_echo=$ac_try;; |
| 5284 | esac |
| 5285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5286 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5287 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5289 | rm -f conftest.er1 |
| 5290 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5292 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5294 | { (case "(($ac_try" in |
| 5295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5296 | *) ac_try_echo=$ac_try;; |
| 5297 | esac |
| 5298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5299 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5300 | ac_status=$? |
| 5301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5302 | (exit $ac_status); }; } && |
| 5303 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5304 | { (case "(($ac_try" in |
| 5305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5306 | *) ac_try_echo=$ac_try;; |
| 5307 | esac |
| 5308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5309 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5310 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5312 | (exit $ac_status); }; }; then |
| 5313 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5314 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5315 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5317 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5318 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5319 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5320 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5321 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5322 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5323 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5324 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5325 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 5326 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5327 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5328 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5329 | fi |
| 5330 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5331 | fi |
| 5332 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5333 | |
| 5334 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5335 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5336 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 5337 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 5338 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 5339 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 5340 | # These have to be linked with before -lX11, unlike the other |
| 5341 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5342 | # John Interrante, Karl Berry |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5343 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 5344 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5345 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 5346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5347 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5348 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5349 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5350 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5351 | /* confdefs.h. */ |
| 5352 | _ACEOF |
| 5353 | cat confdefs.h >>conftest.$ac_ext |
| 5354 | cat >>conftest.$ac_ext <<_ACEOF |
| 5355 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5356 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5357 | /* Override any GCC internal prototype to avoid an error. |
| 5358 | Use char because int might match the return type of a GCC |
| 5359 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5360 | #ifdef __cplusplus |
| 5361 | extern "C" |
| 5362 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5363 | char IceConnectionNumber (); |
| 5364 | int |
| 5365 | main () |
| 5366 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5367 | return IceConnectionNumber (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5368 | ; |
| 5369 | return 0; |
| 5370 | } |
| 5371 | _ACEOF |
| 5372 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5373 | if { (ac_try="$ac_link" |
| 5374 | case "(($ac_try" in |
| 5375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5376 | *) ac_try_echo=$ac_try;; |
| 5377 | esac |
| 5378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5379 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5380 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5382 | rm -f conftest.er1 |
| 5383 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5385 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5387 | { (case "(($ac_try" in |
| 5388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5389 | *) ac_try_echo=$ac_try;; |
| 5390 | esac |
| 5391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5392 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5393 | ac_status=$? |
| 5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5395 | (exit $ac_status); }; } && |
| 5396 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5397 | { (case "(($ac_try" in |
| 5398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5399 | *) ac_try_echo=$ac_try;; |
| 5400 | esac |
| 5401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5402 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5403 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5405 | (exit $ac_status); }; }; then |
| 5406 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5407 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5408 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5410 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5411 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5412 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5413 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5414 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5415 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5416 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5417 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5418 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 5419 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5420 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5421 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5422 | fi |
| 5423 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5424 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5425 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5426 | fi |
| 5427 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5428 | for ac_prog in flex lex |
| 5429 | do |
| 5430 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5431 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5432 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5434 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 5435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5436 | else |
| 5437 | if test -n "$LEX"; then |
| 5438 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5439 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5441 | for as_dir in $PATH |
| 5442 | do |
| 5443 | IFS=$as_save_IFS |
| 5444 | test -z "$as_dir" && as_dir=. |
| 5445 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5447 | ac_cv_prog_LEX="$ac_prog" |
| 5448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5449 | break 2 |
| 5450 | fi |
| 5451 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5452 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5453 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5454 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5455 | fi |
| 5456 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5457 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5458 | if test -n "$LEX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5459 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 5460 | echo "${ECHO_T}$LEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5461 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5462 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5463 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5464 | fi |
| 5465 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5466 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5467 | test -n "$LEX" && break |
| 5468 | done |
| 5469 | test -n "$LEX" || LEX=":" |
| 5470 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5471 | if test -z "$LEXLIB" |
| 5472 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5473 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 5474 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5475 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 5476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5477 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5478 | ac_check_lib_save_LIBS=$LIBS |
| 5479 | LIBS="-lfl $LIBS" |
| 5480 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5481 | /* confdefs.h. */ |
| 5482 | _ACEOF |
| 5483 | cat confdefs.h >>conftest.$ac_ext |
| 5484 | cat >>conftest.$ac_ext <<_ACEOF |
| 5485 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5486 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5487 | /* Override any GCC internal prototype to avoid an error. |
| 5488 | Use char because int might match the return type of a GCC |
| 5489 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5490 | #ifdef __cplusplus |
| 5491 | extern "C" |
| 5492 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5493 | char yywrap (); |
| 5494 | int |
| 5495 | main () |
| 5496 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5497 | return yywrap (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5498 | ; |
| 5499 | return 0; |
| 5500 | } |
| 5501 | _ACEOF |
| 5502 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5503 | if { (ac_try="$ac_link" |
| 5504 | case "(($ac_try" in |
| 5505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5506 | *) ac_try_echo=$ac_try;; |
| 5507 | esac |
| 5508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5509 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5510 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5512 | rm -f conftest.er1 |
| 5513 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5515 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5517 | { (case "(($ac_try" in |
| 5518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5519 | *) ac_try_echo=$ac_try;; |
| 5520 | esac |
| 5521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5522 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5523 | ac_status=$? |
| 5524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5525 | (exit $ac_status); }; } && |
| 5526 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5527 | { (case "(($ac_try" in |
| 5528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5529 | *) ac_try_echo=$ac_try;; |
| 5530 | esac |
| 5531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5532 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5533 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5535 | (exit $ac_status); }; }; then |
| 5536 | ac_cv_lib_fl_yywrap=yes |
| 5537 | else |
| 5538 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5540 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5541 | ac_cv_lib_fl_yywrap=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5542 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5543 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5544 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5545 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5546 | LIBS=$ac_check_lib_save_LIBS |
| 5547 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5548 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 5549 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5550 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 5551 | LEXLIB="-lfl" |
| 5552 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5553 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 5554 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5555 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 5556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5557 | else |
| 5558 | ac_check_lib_save_LIBS=$LIBS |
| 5559 | LIBS="-ll $LIBS" |
| 5560 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5561 | /* confdefs.h. */ |
| 5562 | _ACEOF |
| 5563 | cat confdefs.h >>conftest.$ac_ext |
| 5564 | cat >>conftest.$ac_ext <<_ACEOF |
| 5565 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5566 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5567 | /* Override any GCC internal prototype to avoid an error. |
| 5568 | Use char because int might match the return type of a GCC |
| 5569 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5570 | #ifdef __cplusplus |
| 5571 | extern "C" |
| 5572 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5573 | char yywrap (); |
| 5574 | int |
| 5575 | main () |
| 5576 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5577 | return yywrap (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5578 | ; |
| 5579 | return 0; |
| 5580 | } |
| 5581 | _ACEOF |
| 5582 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5583 | if { (ac_try="$ac_link" |
| 5584 | case "(($ac_try" in |
| 5585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5586 | *) ac_try_echo=$ac_try;; |
| 5587 | esac |
| 5588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5589 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5590 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5592 | rm -f conftest.er1 |
| 5593 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5595 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5597 | { (case "(($ac_try" in |
| 5598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5599 | *) ac_try_echo=$ac_try;; |
| 5600 | esac |
| 5601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5602 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5603 | ac_status=$? |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); }; } && |
| 5606 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5607 | { (case "(($ac_try" in |
| 5608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5609 | *) ac_try_echo=$ac_try;; |
| 5610 | esac |
| 5611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5612 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5613 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5615 | (exit $ac_status); }; }; then |
| 5616 | ac_cv_lib_l_yywrap=yes |
| 5617 | else |
| 5618 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5620 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5621 | ac_cv_lib_l_yywrap=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5622 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5623 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5624 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5625 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5626 | LIBS=$ac_check_lib_save_LIBS |
| 5627 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5628 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 5629 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5630 | if test $ac_cv_lib_l_yywrap = yes; then |
| 5631 | LEXLIB="-ll" |
| 5632 | fi |
| 5633 | |
| 5634 | fi |
| 5635 | |
| 5636 | fi |
| 5637 | |
| 5638 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5639 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 5640 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5641 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 5642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5643 | else |
| 5644 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 5645 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5646 | cat >conftest.l <<_ACEOF |
| 5647 | %% |
| 5648 | %% |
| 5649 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5650 | { (ac_try="$LEX conftest.l" |
| 5651 | case "(($ac_try" in |
| 5652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5653 | *) ac_try_echo=$ac_try;; |
| 5654 | esac |
| 5655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5656 | (eval "$LEX conftest.l") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5657 | ac_status=$? |
| 5658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5659 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5660 | if test -f lex.yy.c; then |
| 5661 | ac_cv_prog_lex_root=lex.yy |
| 5662 | elif test -f lexyy.c; then |
| 5663 | ac_cv_prog_lex_root=lexyy |
| 5664 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5665 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5666 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 5667 | { (exit 1); exit 1; }; } |
| 5668 | fi |
| 5669 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5670 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 5671 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5672 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5673 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 5674 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5675 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 5676 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5677 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 5678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5679 | else |
| 5680 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 5681 | # default is implementation-dependent. Figure out which it is, since |
| 5682 | # not all implementations provide the %pointer and %array declarations. |
| 5683 | ac_cv_prog_lex_yytext_pointer=no |
| 5684 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 5685 | ac_save_LIBS=$LIBS |
| 5686 | LIBS="$LIBS $LEXLIB" |
| 5687 | cat >conftest.$ac_ext <<_ACEOF |
| 5688 | `cat $LEX_OUTPUT_ROOT.c` |
| 5689 | _ACEOF |
| 5690 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5691 | if { (ac_try="$ac_link" |
| 5692 | case "(($ac_try" in |
| 5693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5694 | *) ac_try_echo=$ac_try;; |
| 5695 | esac |
| 5696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5697 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5698 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5700 | rm -f conftest.er1 |
| 5701 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5703 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5705 | { (case "(($ac_try" in |
| 5706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5707 | *) ac_try_echo=$ac_try;; |
| 5708 | esac |
| 5709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5710 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5711 | ac_status=$? |
| 5712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5713 | (exit $ac_status); }; } && |
| 5714 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5715 | { (case "(($ac_try" in |
| 5716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5717 | *) ac_try_echo=$ac_try;; |
| 5718 | esac |
| 5719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5720 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5721 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5723 | (exit $ac_status); }; }; then |
| 5724 | ac_cv_prog_lex_yytext_pointer=yes |
| 5725 | else |
| 5726 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5728 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5729 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5730 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5731 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5732 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5733 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5734 | LIBS=$ac_save_LIBS |
| 5735 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 5736 | |
| 5737 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5738 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 5739 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5740 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 5741 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5742 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5743 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5744 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5745 | |
| 5746 | fi |
| 5747 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5748 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 5749 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5750 | for ac_prog in $LEX flex lex |
| 5751 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5752 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5753 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5754 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5756 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 5757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5758 | else |
| 5759 | if test -n "$XLEX"; then |
| 5760 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 5761 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5763 | for as_dir in $PATH |
| 5764 | do |
| 5765 | IFS=$as_save_IFS |
| 5766 | test -z "$as_dir" && as_dir=. |
| 5767 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5769 | ac_cv_prog_XLEX="$ac_prog" |
| 5770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5771 | break 2 |
| 5772 | fi |
| 5773 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5774 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5775 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5776 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5777 | fi |
| 5778 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5779 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5780 | if test -n "$XLEX"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5781 | { echo "$as_me:$LINENO: result: $XLEX" >&5 |
| 5782 | echo "${ECHO_T}$XLEX" >&6; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5783 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5784 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5785 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5786 | fi |
| 5787 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5788 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5789 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5790 | done |
| 5791 | test -n "$XLEX" || XLEX="none" |
| 5792 | |
| 5793 | if test "$XLEX" = "none" |
| 5794 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5795 | { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5796 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 5797 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 5798 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5799 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5800 | for ac_prog in bison |
| 5801 | do |
| 5802 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5803 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5804 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5806 | if test "${ac_cv_prog_BISON+set}" = set; then |
| 5807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5808 | else |
| 5809 | if test -n "$BISON"; then |
| 5810 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 5811 | else |
| 5812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5813 | for as_dir in $PATH |
| 5814 | do |
| 5815 | IFS=$as_save_IFS |
| 5816 | test -z "$as_dir" && as_dir=. |
| 5817 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5819 | ac_cv_prog_BISON="$ac_prog" |
| 5820 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5821 | break 2 |
| 5822 | fi |
| 5823 | done |
| 5824 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5825 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5826 | |
| 5827 | fi |
| 5828 | fi |
| 5829 | BISON=$ac_cv_prog_BISON |
| 5830 | if test -n "$BISON"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5831 | { echo "$as_me:$LINENO: result: $BISON" >&5 |
| 5832 | echo "${ECHO_T}$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5833 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5834 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5835 | echo "${ECHO_T}no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5836 | fi |
| 5837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5838 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 5839 | test -n "$BISON" && break |
| 5840 | done |
| 5841 | test -n "$BISON" || BISON="none" |
| 5842 | |
| 5843 | if test "$BISON" = "none" |
| 5844 | then |
| 5845 | { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5 |
| 5846 | echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;} |
| 5847 | { (exit 1); exit 1; }; } |
| 5848 | fi |
| 5849 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5850 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5851 | for ac_prog in gas as |
| 5852 | do |
| 5853 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5854 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5855 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5857 | if test "${ac_cv_prog_AS+set}" = set; then |
| 5858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5859 | else |
| 5860 | if test -n "$AS"; then |
| 5861 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 5862 | else |
| 5863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5864 | for as_dir in $PATH |
| 5865 | do |
| 5866 | IFS=$as_save_IFS |
| 5867 | test -z "$as_dir" && as_dir=. |
| 5868 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5870 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5872 | break 2 |
| 5873 | fi |
| 5874 | done |
| 5875 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5876 | IFS=$as_save_IFS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5877 | |
| 5878 | fi |
| 5879 | fi |
| 5880 | AS=$ac_cv_prog_AS |
| 5881 | if test -n "$AS"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5882 | { echo "$as_me:$LINENO: result: $AS" >&5 |
| 5883 | echo "${ECHO_T}$AS" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5884 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5885 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5886 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5887 | fi |
| 5888 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5889 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5890 | test -n "$AS" && break |
| 5891 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5892 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5893 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5894 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5895 | for ac_prog in gas as |
| 5896 | do |
| 5897 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5898 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5899 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5900 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5901 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 5902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5903 | else |
| 5904 | if test -n "$ac_ct_AS"; then |
| 5905 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 5906 | else |
| 5907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5908 | for as_dir in $PATH |
| 5909 | do |
| 5910 | IFS=$as_save_IFS |
| 5911 | test -z "$as_dir" && as_dir=. |
| 5912 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5914 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5915 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5916 | break 2 |
| 5917 | fi |
| 5918 | done |
| 5919 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5920 | IFS=$as_save_IFS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5921 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5922 | fi |
| 5923 | fi |
| 5924 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 5925 | if test -n "$ac_ct_AS"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5926 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 5927 | echo "${ECHO_T}$ac_ct_AS" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5928 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5929 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5930 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5931 | fi |
| 5932 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5933 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5934 | test -n "$ac_ct_AS" && break |
| 5935 | done |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 5936 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5937 | if test "x$ac_ct_AS" = x; then |
| 5938 | AS="as" |
| 5939 | else |
| 5940 | case $cross_compiling:$ac_tool_warned in |
| 5941 | yes:) |
| 5942 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5943 | whose name does not start with the host triplet. If you think this |
| 5944 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5945 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5946 | whose name does not start with the host triplet. If you think this |
| 5947 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5948 | ac_tool_warned=yes ;; |
| 5949 | esac |
| 5950 | AS=$ac_ct_AS |
| 5951 | fi |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 5952 | fi |
| 5953 | |
| 5954 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5955 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 5956 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5957 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5959 | if test "${ac_cv_prog_LD+set}" = set; then |
| 5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5961 | else |
| 5962 | if test -n "$LD"; then |
| 5963 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 5964 | else |
| 5965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5966 | for as_dir in $PATH |
| 5967 | do |
| 5968 | IFS=$as_save_IFS |
| 5969 | test -z "$as_dir" && as_dir=. |
| 5970 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5972 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 5973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5974 | break 2 |
| 5975 | fi |
| 5976 | done |
| 5977 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5978 | IFS=$as_save_IFS |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5979 | |
| 5980 | fi |
| 5981 | fi |
| 5982 | LD=$ac_cv_prog_LD |
| 5983 | if test -n "$LD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5984 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 5985 | echo "${ECHO_T}$LD" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5986 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5987 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5988 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5989 | fi |
| 5990 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5991 | |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5992 | fi |
| 5993 | if test -z "$ac_cv_prog_LD"; then |
| 5994 | ac_ct_LD=$LD |
| 5995 | # Extract the first word of "ld", so it can be a program name with args. |
| 5996 | set dummy ld; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5997 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 5999 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 6000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6001 | else |
| 6002 | if test -n "$ac_ct_LD"; then |
| 6003 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 6004 | else |
| 6005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6006 | for as_dir in $PATH |
| 6007 | do |
| 6008 | IFS=$as_save_IFS |
| 6009 | test -z "$as_dir" && as_dir=. |
| 6010 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6012 | ac_cv_prog_ac_ct_LD="ld" |
| 6013 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6014 | break 2 |
| 6015 | fi |
| 6016 | done |
| 6017 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6018 | IFS=$as_save_IFS |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6019 | |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6020 | fi |
| 6021 | fi |
| 6022 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 6023 | if test -n "$ac_ct_LD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6024 | { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 6025 | echo "${ECHO_T}$ac_ct_LD" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6026 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6027 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6028 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6029 | fi |
| 6030 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6031 | if test "x$ac_ct_LD" = x; then |
| 6032 | LD="ld" |
| 6033 | else |
| 6034 | case $cross_compiling:$ac_tool_warned in |
| 6035 | yes:) |
| 6036 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6037 | whose name does not start with the host triplet. If you think this |
| 6038 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6039 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6040 | whose name does not start with the host triplet. If you think this |
| 6041 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6042 | ac_tool_warned=yes ;; |
| 6043 | esac |
| 6044 | LD=$ac_ct_LD |
| 6045 | fi |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 6046 | else |
| 6047 | LD="$ac_cv_prog_LD" |
| 6048 | fi |
| 6049 | |
| 6050 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6051 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6052 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6053 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6055 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6057 | else |
| 6058 | if test -n "$AR"; then |
| 6059 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6060 | else |
| 6061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6062 | for as_dir in $PATH |
| 6063 | do |
| 6064 | IFS=$as_save_IFS |
| 6065 | test -z "$as_dir" && as_dir=. |
| 6066 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6068 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6070 | break 2 |
| 6071 | fi |
| 6072 | done |
| 6073 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6074 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6075 | |
| 6076 | fi |
| 6077 | fi |
| 6078 | AR=$ac_cv_prog_AR |
| 6079 | if test -n "$AR"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6080 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6081 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6082 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6083 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6084 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6085 | fi |
| 6086 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6087 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6088 | fi |
| 6089 | if test -z "$ac_cv_prog_AR"; then |
| 6090 | ac_ct_AR=$AR |
| 6091 | # Extract the first word of "ar", so it can be a program name with args. |
| 6092 | set dummy ar; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6093 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6095 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6097 | else |
| 6098 | if test -n "$ac_ct_AR"; then |
| 6099 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6100 | else |
| 6101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6102 | for as_dir in $PATH |
| 6103 | do |
| 6104 | IFS=$as_save_IFS |
| 6105 | test -z "$as_dir" && as_dir=. |
| 6106 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6108 | ac_cv_prog_ac_ct_AR="ar" |
| 6109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6110 | break 2 |
| 6111 | fi |
| 6112 | done |
| 6113 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6114 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6115 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6116 | fi |
| 6117 | fi |
| 6118 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6119 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6120 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6121 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6122 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6123 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6124 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6125 | fi |
| 6126 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6127 | if test "x$ac_ct_AR" = x; then |
| 6128 | AR="ar" |
| 6129 | else |
| 6130 | case $cross_compiling:$ac_tool_warned in |
| 6131 | yes:) |
| 6132 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6133 | whose name does not start with the host triplet. If you think this |
| 6134 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6135 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6136 | whose name does not start with the host triplet. If you think this |
| 6137 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6138 | ac_tool_warned=yes ;; |
| 6139 | esac |
| 6140 | AR=$ac_ct_AR |
| 6141 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6142 | else |
| 6143 | AR="$ac_cv_prog_AR" |
| 6144 | fi |
| 6145 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6146 | if test -n "$ac_tool_prefix"; then |
| 6147 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6148 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6151 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6153 | else |
| 6154 | if test -n "$RANLIB"; then |
| 6155 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6156 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6158 | for as_dir in $PATH |
| 6159 | do |
| 6160 | IFS=$as_save_IFS |
| 6161 | test -z "$as_dir" && as_dir=. |
| 6162 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6164 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6166 | break 2 |
| 6167 | fi |
| 6168 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6169 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6170 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6171 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6172 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6173 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6174 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6175 | if test -n "$RANLIB"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6176 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6177 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6178 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6179 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6180 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6181 | fi |
| 6182 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6183 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6184 | fi |
| 6185 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6186 | ac_ct_RANLIB=$RANLIB |
| 6187 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6188 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6189 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6191 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6193 | else |
| 6194 | if test -n "$ac_ct_RANLIB"; then |
| 6195 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6196 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6198 | for as_dir in $PATH |
| 6199 | do |
| 6200 | IFS=$as_save_IFS |
| 6201 | test -z "$as_dir" && as_dir=. |
| 6202 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6204 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6206 | break 2 |
| 6207 | fi |
| 6208 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6209 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6210 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6211 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6212 | fi |
| 6213 | fi |
| 6214 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6215 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6216 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6217 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6218 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6219 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6220 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6221 | fi |
| 6222 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6223 | if test "x$ac_ct_RANLIB" = x; then |
| 6224 | RANLIB=":" |
| 6225 | else |
| 6226 | case $cross_compiling:$ac_tool_warned in |
| 6227 | yes:) |
| 6228 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6229 | whose name does not start with the host triplet. If you think this |
| 6230 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6231 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6232 | whose name does not start with the host triplet. If you think this |
| 6233 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6234 | ac_tool_warned=yes ;; |
| 6235 | esac |
| 6236 | RANLIB=$ac_ct_RANLIB |
| 6237 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6238 | else |
| 6239 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 6240 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6241 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6242 | if test -n "$ac_tool_prefix"; then |
| 6243 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6244 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6247 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6249 | else |
| 6250 | if test -n "$STRIP"; then |
| 6251 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6252 | else |
| 6253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6254 | for as_dir in $PATH |
| 6255 | do |
| 6256 | IFS=$as_save_IFS |
| 6257 | test -z "$as_dir" && as_dir=. |
| 6258 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6260 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6262 | break 2 |
| 6263 | fi |
| 6264 | done |
| 6265 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6266 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6267 | |
| 6268 | fi |
| 6269 | fi |
| 6270 | STRIP=$ac_cv_prog_STRIP |
| 6271 | if test -n "$STRIP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6272 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6273 | echo "${ECHO_T}$STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6274 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6275 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6276 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6277 | fi |
| 6278 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6279 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6280 | fi |
| 6281 | if test -z "$ac_cv_prog_STRIP"; then |
| 6282 | ac_ct_STRIP=$STRIP |
| 6283 | # Extract the first word of "strip", so it can be a program name with args. |
| 6284 | set dummy strip; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6285 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6287 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6289 | else |
| 6290 | if test -n "$ac_ct_STRIP"; then |
| 6291 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6292 | else |
| 6293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6294 | for as_dir in $PATH |
| 6295 | do |
| 6296 | IFS=$as_save_IFS |
| 6297 | test -z "$as_dir" && as_dir=. |
| 6298 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6300 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6302 | break 2 |
| 6303 | fi |
| 6304 | done |
| 6305 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6306 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6307 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6308 | fi |
| 6309 | fi |
| 6310 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6311 | if test -n "$ac_ct_STRIP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6312 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6313 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6314 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6315 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6316 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6317 | fi |
| 6318 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6319 | if test "x$ac_ct_STRIP" = x; then |
| 6320 | STRIP="strip" |
| 6321 | else |
| 6322 | case $cross_compiling:$ac_tool_warned in |
| 6323 | yes:) |
| 6324 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6325 | whose name does not start with the host triplet. If you think this |
| 6326 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6327 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6328 | whose name does not start with the host triplet. If you think this |
| 6329 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6330 | ac_tool_warned=yes ;; |
| 6331 | esac |
| 6332 | STRIP=$ac_ct_STRIP |
| 6333 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6334 | else |
| 6335 | STRIP="$ac_cv_prog_STRIP" |
| 6336 | fi |
| 6337 | |
| 6338 | if test -n "$ac_tool_prefix"; then |
| 6339 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 6340 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6343 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 6344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6345 | else |
| 6346 | if test -n "$WINDRES"; then |
| 6347 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 6348 | else |
| 6349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6350 | for as_dir in $PATH |
| 6351 | do |
| 6352 | IFS=$as_save_IFS |
| 6353 | test -z "$as_dir" && as_dir=. |
| 6354 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6356 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 6357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6358 | break 2 |
| 6359 | fi |
| 6360 | done |
| 6361 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6362 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6363 | |
| 6364 | fi |
| 6365 | fi |
| 6366 | WINDRES=$ac_cv_prog_WINDRES |
| 6367 | if test -n "$WINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6368 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 6369 | echo "${ECHO_T}$WINDRES" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6370 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6371 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6372 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6373 | fi |
| 6374 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6375 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6376 | fi |
| 6377 | if test -z "$ac_cv_prog_WINDRES"; then |
| 6378 | ac_ct_WINDRES=$WINDRES |
| 6379 | # Extract the first word of "windres", so it can be a program name with args. |
| 6380 | set dummy windres; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6383 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 6384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6385 | else |
| 6386 | if test -n "$ac_ct_WINDRES"; then |
| 6387 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 6388 | else |
| 6389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6390 | for as_dir in $PATH |
| 6391 | do |
| 6392 | IFS=$as_save_IFS |
| 6393 | test -z "$as_dir" && as_dir=. |
| 6394 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6396 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 6397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6398 | break 2 |
| 6399 | fi |
| 6400 | done |
| 6401 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6402 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6403 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6404 | fi |
| 6405 | fi |
| 6406 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 6407 | if test -n "$ac_ct_WINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6408 | { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 6409 | echo "${ECHO_T}$ac_ct_WINDRES" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6410 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6412 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6413 | fi |
| 6414 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6415 | if test "x$ac_ct_WINDRES" = x; then |
| 6416 | WINDRES="false" |
| 6417 | else |
| 6418 | case $cross_compiling:$ac_tool_warned in |
| 6419 | yes:) |
| 6420 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6421 | whose name does not start with the host triplet. If you think this |
| 6422 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6423 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6424 | whose name does not start with the host triplet. If you think this |
| 6425 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6426 | ac_tool_warned=yes ;; |
| 6427 | esac |
| 6428 | WINDRES=$ac_ct_WINDRES |
| 6429 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 6430 | else |
| 6431 | WINDRES="$ac_cv_prog_WINDRES" |
| 6432 | fi |
| 6433 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6434 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6435 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6436 | LN_S=$as_ln_s |
| 6437 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6438 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6439 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 6440 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6441 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6442 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 6443 | fi |
| 6444 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6445 | { echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 6446 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6447 | rm -f conf$$ conf$$.file |
| 6448 | echo >conf$$.file |
| 6449 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 6450 | LN=ln |
| 6451 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6452 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6453 | echo "${ECHO_T}yes" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6454 | else |
| 6455 | LN="cp -p" |
| 6456 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6457 | { echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 6458 | echo "${ECHO_T}no, using $LN" >&6; } |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 6459 | fi |
| 6460 | rm -f conf$$ conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6461 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 6462 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 6463 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6465 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6466 | # Extract the first word of "grep ggrep" to use in msg output |
| 6467 | if test -z "$GREP"; then |
| 6468 | set dummy grep ggrep; ac_prog_name=$2 |
| 6469 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6471 | else |
| 6472 | ac_path_GREP_found=false |
| 6473 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6475 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6476 | do |
| 6477 | IFS=$as_save_IFS |
| 6478 | test -z "$as_dir" && as_dir=. |
| 6479 | for ac_prog in grep ggrep; do |
| 6480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6481 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6482 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 6483 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6484 | # Check for GNU $ac_path_GREP |
| 6485 | case `"$ac_path_GREP" --version 2>&1` in |
| 6486 | *GNU*) |
| 6487 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6488 | *) |
| 6489 | ac_count=0 |
| 6490 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 6491 | while : |
| 6492 | do |
| 6493 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6494 | mv "conftest.tmp" "conftest.in" |
| 6495 | cp "conftest.in" "conftest.nl" |
| 6496 | echo 'GREP' >> "conftest.nl" |
| 6497 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6498 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6499 | ac_count=`expr $ac_count + 1` |
| 6500 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6501 | # Best one so far, save it but keep looking for a better one |
| 6502 | ac_cv_path_GREP="$ac_path_GREP" |
| 6503 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6504 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6505 | # 10*(2^10) chars as input seems more than enough |
| 6506 | test $ac_count -gt 10 && break |
| 6507 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6508 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6509 | esac |
| 6510 | |
| 6511 | |
| 6512 | $ac_path_GREP_found && break 3 |
| 6513 | done |
| 6514 | done |
| 6515 | |
| 6516 | done |
| 6517 | IFS=$as_save_IFS |
| 6518 | |
| 6519 | |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6520 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6521 | |
| 6522 | GREP="$ac_cv_path_GREP" |
| 6523 | if test -z "$GREP"; then |
| 6524 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 6525 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 6526 | { (exit 1); exit 1; }; } |
| 6527 | fi |
| 6528 | |
| 6529 | else |
| 6530 | ac_cv_path_GREP=$GREP |
| 6531 | fi |
| 6532 | |
| 6533 | |
| 6534 | fi |
| 6535 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 6536 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 6537 | GREP="$ac_cv_path_GREP" |
| 6538 | |
| 6539 | |
| 6540 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 6541 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 6542 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 6543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6544 | else |
| 6545 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6546 | then ac_cv_path_EGREP="$GREP -E" |
| 6547 | else |
| 6548 | # Extract the first word of "egrep" to use in msg output |
| 6549 | if test -z "$EGREP"; then |
| 6550 | set dummy egrep; ac_prog_name=$2 |
| 6551 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 6552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6553 | else |
| 6554 | ac_path_EGREP_found=false |
| 6555 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6557 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6558 | do |
| 6559 | IFS=$as_save_IFS |
| 6560 | test -z "$as_dir" && as_dir=. |
| 6561 | for ac_prog in egrep; do |
| 6562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6563 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6564 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 6565 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6566 | # Check for GNU $ac_path_EGREP |
| 6567 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6568 | *GNU*) |
| 6569 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6570 | *) |
| 6571 | ac_count=0 |
| 6572 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 6573 | while : |
| 6574 | do |
| 6575 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6576 | mv "conftest.tmp" "conftest.in" |
| 6577 | cp "conftest.in" "conftest.nl" |
| 6578 | echo 'EGREP' >> "conftest.nl" |
| 6579 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6580 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6581 | ac_count=`expr $ac_count + 1` |
| 6582 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6583 | # Best one so far, save it but keep looking for a better one |
| 6584 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6585 | ac_path_EGREP_max=$ac_count |
| 6586 | fi |
| 6587 | # 10*(2^10) chars as input seems more than enough |
| 6588 | test $ac_count -gt 10 && break |
| 6589 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6590 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6591 | esac |
| 6592 | |
| 6593 | |
| 6594 | $ac_path_EGREP_found && break 3 |
| 6595 | done |
| 6596 | done |
| 6597 | |
| 6598 | done |
| 6599 | IFS=$as_save_IFS |
| 6600 | |
| 6601 | |
| 6602 | fi |
| 6603 | |
| 6604 | EGREP="$ac_cv_path_EGREP" |
| 6605 | if test -z "$EGREP"; then |
| 6606 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 6607 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 6608 | { (exit 1); exit 1; }; } |
| 6609 | fi |
| 6610 | |
| 6611 | else |
| 6612 | ac_cv_path_EGREP=$EGREP |
| 6613 | fi |
| 6614 | |
| 6615 | |
| 6616 | fi |
| 6617 | fi |
| 6618 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 6619 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 6620 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6621 | |
| 6622 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6623 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 6624 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6625 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6627 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 6628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6629 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6630 | case $LDCONFIG in |
| 6631 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6632 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 6633 | ;; |
| 6634 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 6636 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6637 | do |
| 6638 | IFS=$as_save_IFS |
| 6639 | test -z "$as_dir" && as_dir=. |
| 6640 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6642 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6644 | break 2 |
| 6645 | fi |
| 6646 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6647 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6648 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6649 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 6650 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6651 | ;; |
| 6652 | esac |
| 6653 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6654 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6655 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6656 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 6657 | echo "${ECHO_T}$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6658 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6659 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6660 | echo "${ECHO_T}no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 6661 | fi |
| 6662 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6663 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6664 | # Find a good install program. We prefer a C program (faster), |
| 6665 | # so one script is as good as another. But avoid the broken or |
| 6666 | # incompatible versions: |
| 6667 | # SysV /etc/install, /usr/sbin/install |
| 6668 | # SunOS /usr/etc/install |
| 6669 | # IRIX /sbin/install |
| 6670 | # AIX /bin/install |
| 6671 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6672 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6673 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6674 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6675 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6676 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6677 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6678 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6679 | if test -z "$INSTALL"; then |
| 6680 | if test "${ac_cv_path_install+set}" = set; then |
| 6681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6682 | else |
| 6683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6684 | for as_dir in $PATH |
| 6685 | do |
| 6686 | IFS=$as_save_IFS |
| 6687 | test -z "$as_dir" && as_dir=. |
| 6688 | # Account for people who put trailing slashes in PATH elements. |
| 6689 | case $as_dir/ in |
| 6690 | ./ | .// | /cC/* | \ |
| 6691 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6692 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6693 | /usr/ucb/* ) ;; |
| 6694 | *) |
| 6695 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6696 | # Don't use installbsd from OSF since it installs stuff as root |
| 6697 | # by default. |
| 6698 | for ac_prog in ginstall scoinst install; do |
| 6699 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6700 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6701 | if test $ac_prog = install && |
| 6702 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6703 | # AIX install. It has an incompatible calling convention. |
| 6704 | : |
| 6705 | elif test $ac_prog = install && |
| 6706 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6707 | # program-specific install script used by HP pwplus--don't use. |
| 6708 | : |
| 6709 | else |
| 6710 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6711 | break 3 |
| 6712 | fi |
| 6713 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6714 | done |
| 6715 | done |
| 6716 | ;; |
| 6717 | esac |
| 6718 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6719 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6720 | |
| 6721 | |
| 6722 | fi |
| 6723 | if test "${ac_cv_path_install+set}" = set; then |
| 6724 | INSTALL=$ac_cv_path_install |
| 6725 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6726 | # As a last resort, use the slow shell script. Don't cache a |
| 6727 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6728 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6729 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6730 | INSTALL=$ac_install_sh |
| 6731 | fi |
| 6732 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6733 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 6734 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6735 | |
| 6736 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6737 | # It thinks the first close brace ends the variable substitution. |
| 6738 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6739 | |
| 6740 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6741 | |
| 6742 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6743 | |
| 6744 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 6745 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6746 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 6747 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6748 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6749 | for ac_prog in lclint lint |
| 6750 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6751 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6752 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6753 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6755 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 6756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6757 | else |
| 6758 | if test -n "$LINT"; then |
| 6759 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 6760 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6762 | for as_dir in $PATH |
| 6763 | do |
| 6764 | IFS=$as_save_IFS |
| 6765 | test -z "$as_dir" && as_dir=. |
| 6766 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6768 | ac_cv_prog_LINT="$ac_prog" |
| 6769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6770 | break 2 |
| 6771 | fi |
| 6772 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6773 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6774 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6775 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6776 | fi |
| 6777 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6778 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6779 | if test -n "$LINT"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6780 | { echo "$as_me:$LINENO: result: $LINT" >&5 |
| 6781 | echo "${ECHO_T}$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6782 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6783 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6784 | echo "${ECHO_T}no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6785 | fi |
| 6786 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6787 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6788 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6789 | done |
| 6790 | |
| 6791 | if test "$LINT" = "lint" |
| 6792 | then |
| 6793 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 6794 | fi |
| 6795 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6796 | |
| 6797 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6798 | for ac_prog in fontforge |
| 6799 | do |
| 6800 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6801 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6802 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6804 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then |
| 6805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6806 | else |
| 6807 | if test -n "$FONTFORGE"; then |
| 6808 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 6809 | else |
| 6810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6811 | for as_dir in $PATH |
| 6812 | do |
| 6813 | IFS=$as_save_IFS |
| 6814 | test -z "$as_dir" && as_dir=. |
| 6815 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6817 | ac_cv_prog_FONTFORGE="$ac_prog" |
| 6818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6819 | break 2 |
| 6820 | fi |
| 6821 | done |
| 6822 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6823 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6824 | |
| 6825 | fi |
| 6826 | fi |
| 6827 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 6828 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6829 | { echo "$as_me:$LINENO: result: $FONTFORGE" >&5 |
| 6830 | echo "${ECHO_T}$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6831 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6832 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6833 | echo "${ECHO_T}no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6834 | fi |
| 6835 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6836 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 6837 | test -n "$FONTFORGE" && break |
| 6838 | done |
| 6839 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 6840 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6841 | for ac_prog in pkg-config |
| 6842 | do |
| 6843 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6844 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6845 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6847 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then |
| 6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6849 | else |
| 6850 | if test -n "$PKG_CONFIG"; then |
| 6851 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 6852 | else |
| 6853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6854 | for as_dir in $PATH |
| 6855 | do |
| 6856 | IFS=$as_save_IFS |
| 6857 | test -z "$as_dir" && as_dir=. |
| 6858 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6860 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
| 6861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6862 | break 2 |
| 6863 | fi |
| 6864 | done |
| 6865 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6866 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6867 | |
| 6868 | fi |
| 6869 | fi |
| 6870 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 6871 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6872 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 6873 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6874 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6875 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6876 | echo "${ECHO_T}no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6877 | fi |
| 6878 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6879 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 6880 | test -n "$PKG_CONFIG" && break |
| 6881 | done |
| 6882 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 6883 | |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 6884 | |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6885 | case $host_cpu in |
| 6886 | *i[3456789]86*) |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6887 | # Extract the first word of "prelink", so it can be a program name with args. |
| 6888 | set dummy prelink; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6891 | if test "${ac_cv_path_PRELINK+set}" = set; then |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6893 | else |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6894 | case $PRELINK in |
| 6895 | [\\/]* | ?:[\\/]*) |
| 6896 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. |
| 6897 | ;; |
| 6898 | *) |
| 6899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6900 | for as_dir in /sbin /usr/sbin $PATH |
| 6901 | do |
| 6902 | IFS=$as_save_IFS |
| 6903 | test -z "$as_dir" && as_dir=. |
| 6904 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6906 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6908 | break 2 |
| 6909 | fi |
| 6910 | done |
| 6911 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6912 | IFS=$as_save_IFS |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6913 | |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6914 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
| 6915 | ;; |
| 6916 | esac |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6917 | fi |
Alexandre Julliard | 3d08f5d | 2006-07-18 10:12:20 +0200 | [diff] [blame] | 6918 | PRELINK=$ac_cv_path_PRELINK |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6919 | if test -n "$PRELINK"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6920 | { echo "$as_me:$LINENO: result: $PRELINK" >&5 |
| 6921 | echo "${ECHO_T}$PRELINK" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6922 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6923 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6924 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6925 | fi |
| 6926 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6927 | |
Alexandre Julliard | adbb098 | 2005-08-09 11:12:29 +0000 | [diff] [blame] | 6928 | ;; |
| 6929 | esac |
| 6930 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6931 | |
| 6932 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6933 | { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
| 6934 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6935 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 6936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6937 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6938 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6939 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6940 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6941 | /* confdefs.h. */ |
| 6942 | _ACEOF |
| 6943 | cat confdefs.h >>conftest.$ac_ext |
| 6944 | cat >>conftest.$ac_ext <<_ACEOF |
| 6945 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6946 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6947 | /* Override any GCC internal prototype to avoid an error. |
| 6948 | Use char because int might match the return type of a GCC |
| 6949 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6950 | #ifdef __cplusplus |
| 6951 | extern "C" |
| 6952 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6953 | char i386_set_ldt (); |
| 6954 | int |
| 6955 | main () |
| 6956 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 6957 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6958 | ; |
| 6959 | return 0; |
| 6960 | } |
| 6961 | _ACEOF |
| 6962 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6963 | if { (ac_try="$ac_link" |
| 6964 | case "(($ac_try" in |
| 6965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6966 | *) ac_try_echo=$ac_try;; |
| 6967 | esac |
| 6968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6969 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6970 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6972 | rm -f conftest.er1 |
| 6973 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6975 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6977 | { (case "(($ac_try" in |
| 6978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6979 | *) ac_try_echo=$ac_try;; |
| 6980 | esac |
| 6981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6982 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6983 | ac_status=$? |
| 6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6985 | (exit $ac_status); }; } && |
| 6986 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 6987 | { (case "(($ac_try" in |
| 6988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6989 | *) ac_try_echo=$ac_try;; |
| 6990 | esac |
| 6991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6992 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6993 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6995 | (exit $ac_status); }; }; then |
| 6996 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6997 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6998 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7000 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7001 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 7002 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7003 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7004 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7005 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7006 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 7007 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7008 | { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
| 7009 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7010 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7011 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7012 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7013 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 7014 | |
| 7015 | LIBS="-li386 $LIBS" |
| 7016 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 7017 | fi |
| 7018 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7019 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7020 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
| 7021 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7022 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 7023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7024 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7025 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7026 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7027 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7028 | /* confdefs.h. */ |
| 7029 | _ACEOF |
| 7030 | cat confdefs.h >>conftest.$ac_ext |
| 7031 | cat >>conftest.$ac_ext <<_ACEOF |
| 7032 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7033 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7034 | /* Override any GCC internal prototype to avoid an error. |
| 7035 | Use char because int might match the return type of a GCC |
| 7036 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7037 | #ifdef __cplusplus |
| 7038 | extern "C" |
| 7039 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7040 | char _oss_ioctl (); |
| 7041 | int |
| 7042 | main () |
| 7043 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7044 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7045 | ; |
| 7046 | return 0; |
| 7047 | } |
| 7048 | _ACEOF |
| 7049 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7050 | if { (ac_try="$ac_link" |
| 7051 | case "(($ac_try" in |
| 7052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7053 | *) ac_try_echo=$ac_try;; |
| 7054 | esac |
| 7055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7056 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7057 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7059 | rm -f conftest.er1 |
| 7060 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7062 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7064 | { (case "(($ac_try" in |
| 7065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7066 | *) ac_try_echo=$ac_try;; |
| 7067 | esac |
| 7068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7069 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7070 | ac_status=$? |
| 7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7072 | (exit $ac_status); }; } && |
| 7073 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7074 | { (case "(($ac_try" in |
| 7075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7076 | *) ac_try_echo=$ac_try;; |
| 7077 | esac |
| 7078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7079 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7080 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7082 | (exit $ac_status); }; }; then |
| 7083 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7084 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7085 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7087 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7088 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7089 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7090 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7091 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7092 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7093 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7094 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7095 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 7096 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7097 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7098 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7099 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7100 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7101 | |
| 7102 | LIBS="-lossaudio $LIBS" |
| 7103 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 7104 | fi |
| 7105 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7106 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7107 | for ac_func in gethostbyname |
| 7108 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7109 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7110 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7111 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 7112 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7114 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7115 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7116 | /* confdefs.h. */ |
| 7117 | _ACEOF |
| 7118 | cat confdefs.h >>conftest.$ac_ext |
| 7119 | cat >>conftest.$ac_ext <<_ACEOF |
| 7120 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7121 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7122 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7123 | #define $ac_func innocuous_$ac_func |
| 7124 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7125 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7126 | which can conflict with char $ac_func (); below. |
| 7127 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7128 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7129 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7130 | #ifdef __STDC__ |
| 7131 | # include <limits.h> |
| 7132 | #else |
| 7133 | # include <assert.h> |
| 7134 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7135 | |
| 7136 | #undef $ac_func |
| 7137 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7138 | /* Override any GCC internal prototype to avoid an error. |
| 7139 | Use char because int might match the return type of a GCC |
| 7140 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7141 | #ifdef __cplusplus |
| 7142 | extern "C" |
| 7143 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7144 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7145 | /* The GNU C library defines this for functions which it implements |
| 7146 | to always fail with ENOSYS. Some functions are actually named |
| 7147 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7148 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7149 | choke me |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7150 | #endif |
| 7151 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7152 | int |
| 7153 | main () |
| 7154 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7155 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7156 | ; |
| 7157 | return 0; |
| 7158 | } |
| 7159 | _ACEOF |
| 7160 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7161 | if { (ac_try="$ac_link" |
| 7162 | case "(($ac_try" in |
| 7163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7164 | *) ac_try_echo=$ac_try;; |
| 7165 | esac |
| 7166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7167 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7168 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7170 | rm -f conftest.er1 |
| 7171 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7173 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7174 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7175 | { (case "(($ac_try" in |
| 7176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7177 | *) ac_try_echo=$ac_try;; |
| 7178 | esac |
| 7179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7180 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7181 | ac_status=$? |
| 7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7183 | (exit $ac_status); }; } && |
| 7184 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7185 | { (case "(($ac_try" in |
| 7186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7187 | *) ac_try_echo=$ac_try;; |
| 7188 | esac |
| 7189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7190 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7191 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7193 | (exit $ac_status); }; }; then |
| 7194 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7195 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7196 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7198 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7199 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7200 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7201 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7202 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7203 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7204 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7205 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7206 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7207 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7208 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7209 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7210 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7211 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7212 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7213 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7214 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7215 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 7216 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7217 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 7218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7219 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7220 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7221 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7222 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7223 | /* confdefs.h. */ |
| 7224 | _ACEOF |
| 7225 | cat confdefs.h >>conftest.$ac_ext |
| 7226 | cat >>conftest.$ac_ext <<_ACEOF |
| 7227 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7228 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7229 | /* Override any GCC internal prototype to avoid an error. |
| 7230 | Use char because int might match the return type of a GCC |
| 7231 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7232 | #ifdef __cplusplus |
| 7233 | extern "C" |
| 7234 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7235 | char gethostbyname (); |
| 7236 | int |
| 7237 | main () |
| 7238 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7239 | return gethostbyname (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7240 | ; |
| 7241 | return 0; |
| 7242 | } |
| 7243 | _ACEOF |
| 7244 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7245 | if { (ac_try="$ac_link" |
| 7246 | case "(($ac_try" in |
| 7247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7248 | *) ac_try_echo=$ac_try;; |
| 7249 | esac |
| 7250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7251 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7252 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7254 | rm -f conftest.er1 |
| 7255 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7257 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7259 | { (case "(($ac_try" in |
| 7260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7261 | *) ac_try_echo=$ac_try;; |
| 7262 | esac |
| 7263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7264 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7265 | ac_status=$? |
| 7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7267 | (exit $ac_status); }; } && |
| 7268 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7269 | { (case "(($ac_try" in |
| 7270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7271 | *) ac_try_echo=$ac_try;; |
| 7272 | esac |
| 7273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7274 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7275 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7277 | (exit $ac_status); }; }; then |
| 7278 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7279 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7280 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7282 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7283 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7284 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7285 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7286 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7287 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7288 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7289 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7290 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 7291 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7292 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7293 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7294 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7295 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7296 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 7297 | LIBS="-lnsl $LIBS" |
| 7298 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7299 | fi |
| 7300 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7301 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 7302 | done |
| 7303 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7304 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7305 | for ac_func in connect |
| 7306 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7307 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7308 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7309 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 7310 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7312 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7313 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7314 | /* confdefs.h. */ |
| 7315 | _ACEOF |
| 7316 | cat confdefs.h >>conftest.$ac_ext |
| 7317 | cat >>conftest.$ac_ext <<_ACEOF |
| 7318 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7319 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7321 | #define $ac_func innocuous_$ac_func |
| 7322 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7323 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7324 | which can conflict with char $ac_func (); below. |
| 7325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7326 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7327 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7328 | #ifdef __STDC__ |
| 7329 | # include <limits.h> |
| 7330 | #else |
| 7331 | # include <assert.h> |
| 7332 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7333 | |
| 7334 | #undef $ac_func |
| 7335 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7336 | /* Override any GCC internal prototype to avoid an error. |
| 7337 | Use char because int might match the return type of a GCC |
| 7338 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7339 | #ifdef __cplusplus |
| 7340 | extern "C" |
| 7341 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7342 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7343 | /* The GNU C library defines this for functions which it implements |
| 7344 | to always fail with ENOSYS. Some functions are actually named |
| 7345 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7346 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7347 | choke me |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7348 | #endif |
| 7349 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7350 | int |
| 7351 | main () |
| 7352 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7353 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7354 | ; |
| 7355 | return 0; |
| 7356 | } |
| 7357 | _ACEOF |
| 7358 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7359 | if { (ac_try="$ac_link" |
| 7360 | case "(($ac_try" in |
| 7361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7362 | *) ac_try_echo=$ac_try;; |
| 7363 | esac |
| 7364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7365 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7366 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7368 | rm -f conftest.er1 |
| 7369 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7371 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7372 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7373 | { (case "(($ac_try" in |
| 7374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7375 | *) ac_try_echo=$ac_try;; |
| 7376 | esac |
| 7377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7378 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7379 | ac_status=$? |
| 7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7381 | (exit $ac_status); }; } && |
| 7382 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7383 | { (case "(($ac_try" in |
| 7384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7385 | *) ac_try_echo=$ac_try;; |
| 7386 | esac |
| 7387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7388 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7389 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7391 | (exit $ac_status); }; }; then |
| 7392 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7393 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7394 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7396 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7397 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7398 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7399 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7400 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7401 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7402 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7403 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7404 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7405 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7406 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7407 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7409 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7410 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7411 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7412 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7413 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7414 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7415 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 7416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7417 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7418 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7419 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7420 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7421 | /* confdefs.h. */ |
| 7422 | _ACEOF |
| 7423 | cat confdefs.h >>conftest.$ac_ext |
| 7424 | cat >>conftest.$ac_ext <<_ACEOF |
| 7425 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7426 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7427 | /* Override any GCC internal prototype to avoid an error. |
| 7428 | Use char because int might match the return type of a GCC |
| 7429 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7430 | #ifdef __cplusplus |
| 7431 | extern "C" |
| 7432 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7433 | char connect (); |
| 7434 | int |
| 7435 | main () |
| 7436 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7437 | return connect (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7438 | ; |
| 7439 | return 0; |
| 7440 | } |
| 7441 | _ACEOF |
| 7442 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7443 | if { (ac_try="$ac_link" |
| 7444 | case "(($ac_try" in |
| 7445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7446 | *) ac_try_echo=$ac_try;; |
| 7447 | esac |
| 7448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7449 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7450 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7452 | rm -f conftest.er1 |
| 7453 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7455 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7457 | { (case "(($ac_try" in |
| 7458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7459 | *) ac_try_echo=$ac_try;; |
| 7460 | esac |
| 7461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7462 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7463 | ac_status=$? |
| 7464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7465 | (exit $ac_status); }; } && |
| 7466 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7467 | { (case "(($ac_try" in |
| 7468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7469 | *) ac_try_echo=$ac_try;; |
| 7470 | esac |
| 7471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7472 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7473 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7475 | (exit $ac_status); }; }; then |
| 7476 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7477 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7478 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7480 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7481 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7482 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7483 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7484 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7485 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7486 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7487 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7488 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7489 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7490 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7491 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7492 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7493 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7494 | |
| 7495 | LIBS="-lsocket $LIBS" |
| 7496 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7497 | fi |
| 7498 | |
| 7499 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 7500 | done |
| 7501 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7502 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7503 | for ac_func in inet_aton |
| 7504 | do |
| 7505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7506 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 7508 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7510 | else |
| 7511 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7512 | /* confdefs.h. */ |
| 7513 | _ACEOF |
| 7514 | cat confdefs.h >>conftest.$ac_ext |
| 7515 | cat >>conftest.$ac_ext <<_ACEOF |
| 7516 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7517 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7519 | #define $ac_func innocuous_$ac_func |
| 7520 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7521 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7522 | which can conflict with char $ac_func (); below. |
| 7523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7524 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7525 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7526 | #ifdef __STDC__ |
| 7527 | # include <limits.h> |
| 7528 | #else |
| 7529 | # include <assert.h> |
| 7530 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7531 | |
| 7532 | #undef $ac_func |
| 7533 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7534 | /* Override any GCC internal prototype to avoid an error. |
| 7535 | Use char because int might match the return type of a GCC |
| 7536 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7537 | #ifdef __cplusplus |
| 7538 | extern "C" |
| 7539 | #endif |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7540 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7541 | /* The GNU C library defines this for functions which it implements |
| 7542 | to always fail with ENOSYS. Some functions are actually named |
| 7543 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7544 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7545 | choke me |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7546 | #endif |
| 7547 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7548 | int |
| 7549 | main () |
| 7550 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7551 | return $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7552 | ; |
| 7553 | return 0; |
| 7554 | } |
| 7555 | _ACEOF |
| 7556 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7557 | if { (ac_try="$ac_link" |
| 7558 | case "(($ac_try" in |
| 7559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7560 | *) ac_try_echo=$ac_try;; |
| 7561 | esac |
| 7562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7563 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7564 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7566 | rm -f conftest.er1 |
| 7567 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7569 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7571 | { (case "(($ac_try" in |
| 7572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7573 | *) ac_try_echo=$ac_try;; |
| 7574 | esac |
| 7575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7576 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7577 | ac_status=$? |
| 7578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7579 | (exit $ac_status); }; } && |
| 7580 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7581 | { (case "(($ac_try" in |
| 7582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7583 | *) ac_try_echo=$ac_try;; |
| 7584 | esac |
| 7585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7586 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7587 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7589 | (exit $ac_status); }; }; then |
| 7590 | eval "$as_ac_var=yes" |
| 7591 | else |
| 7592 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7594 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7595 | eval "$as_ac_var=no" |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7596 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7597 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7598 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7599 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7600 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7601 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 7602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7603 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7604 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7605 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7607 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7608 | |
| 7609 | else |
| 7610 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7611 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 7612 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7613 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 7614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7615 | else |
| 7616 | ac_check_lib_save_LIBS=$LIBS |
| 7617 | LIBS="-lresolv $LIBS" |
| 7618 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7619 | /* confdefs.h. */ |
| 7620 | _ACEOF |
| 7621 | cat confdefs.h >>conftest.$ac_ext |
| 7622 | cat >>conftest.$ac_ext <<_ACEOF |
| 7623 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7624 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7625 | /* Override any GCC internal prototype to avoid an error. |
| 7626 | Use char because int might match the return type of a GCC |
| 7627 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7628 | #ifdef __cplusplus |
| 7629 | extern "C" |
| 7630 | #endif |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7631 | char inet_aton (); |
| 7632 | int |
| 7633 | main () |
| 7634 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7635 | return inet_aton (); |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7636 | ; |
| 7637 | return 0; |
| 7638 | } |
| 7639 | _ACEOF |
| 7640 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7641 | if { (ac_try="$ac_link" |
| 7642 | case "(($ac_try" in |
| 7643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7644 | *) ac_try_echo=$ac_try;; |
| 7645 | esac |
| 7646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7647 | (eval "$ac_link") 2>conftest.er1 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7648 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7650 | rm -f conftest.er1 |
| 7651 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7653 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7654 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7655 | { (case "(($ac_try" in |
| 7656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7657 | *) ac_try_echo=$ac_try;; |
| 7658 | esac |
| 7659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7660 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7661 | ac_status=$? |
| 7662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7663 | (exit $ac_status); }; } && |
| 7664 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7665 | { (case "(($ac_try" in |
| 7666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7667 | *) ac_try_echo=$ac_try;; |
| 7668 | esac |
| 7669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7670 | (eval "$ac_try") 2>&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7671 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7673 | (exit $ac_status); }; }; then |
| 7674 | ac_cv_lib_resolv_inet_aton=yes |
| 7675 | else |
| 7676 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7678 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7679 | ac_cv_lib_resolv_inet_aton=no |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7680 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7681 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7682 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7683 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7684 | LIBS=$ac_check_lib_save_LIBS |
| 7685 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7686 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 7687 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7688 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7689 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7690 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7691 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 7692 | |
| 7693 | LIBS="-lresolv $LIBS" |
| 7694 | |
| 7695 | fi |
| 7696 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 7697 | fi |
| 7698 | done |
| 7699 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7700 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7701 | { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 7702 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7703 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 7704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7705 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7706 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7707 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7708 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7709 | /* confdefs.h. */ |
| 7710 | _ACEOF |
| 7711 | cat confdefs.h >>conftest.$ac_ext |
| 7712 | cat >>conftest.$ac_ext <<_ACEOF |
| 7713 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7714 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7715 | /* Override any GCC internal prototype to avoid an error. |
| 7716 | Use char because int might match the return type of a GCC |
| 7717 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7718 | #ifdef __cplusplus |
| 7719 | extern "C" |
| 7720 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7721 | char _xpg4_setrunelocale (); |
| 7722 | int |
| 7723 | main () |
| 7724 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7725 | return _xpg4_setrunelocale (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7726 | ; |
| 7727 | return 0; |
| 7728 | } |
| 7729 | _ACEOF |
| 7730 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7731 | if { (ac_try="$ac_link" |
| 7732 | case "(($ac_try" in |
| 7733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7734 | *) ac_try_echo=$ac_try;; |
| 7735 | esac |
| 7736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7737 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7738 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7740 | rm -f conftest.er1 |
| 7741 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7743 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7745 | { (case "(($ac_try" in |
| 7746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7747 | *) ac_try_echo=$ac_try;; |
| 7748 | esac |
| 7749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7750 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7751 | ac_status=$? |
| 7752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7753 | (exit $ac_status); }; } && |
| 7754 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7755 | { (case "(($ac_try" in |
| 7756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7757 | *) ac_try_echo=$ac_try;; |
| 7758 | esac |
| 7759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7760 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7761 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7763 | (exit $ac_status); }; }; then |
| 7764 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7765 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7766 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7768 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7769 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7770 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7771 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7772 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7773 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7774 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7775 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7776 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 7777 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7778 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7779 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7780 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7781 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7782 | |
| 7783 | LIBS="-lxpg4 $LIBS" |
| 7784 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7785 | fi |
| 7786 | |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7787 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7788 | { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 |
| 7789 | echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7790 | if test "${ac_cv_lib_poll_poll+set}" = set; then |
| 7791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7792 | else |
| 7793 | ac_check_lib_save_LIBS=$LIBS |
| 7794 | LIBS="-lpoll $LIBS" |
| 7795 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7796 | /* confdefs.h. */ |
| 7797 | _ACEOF |
| 7798 | cat confdefs.h >>conftest.$ac_ext |
| 7799 | cat >>conftest.$ac_ext <<_ACEOF |
| 7800 | /* end confdefs.h. */ |
| 7801 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7802 | /* Override any GCC internal prototype to avoid an error. |
| 7803 | Use char because int might match the return type of a GCC |
| 7804 | builtin and then its argument prototype would still apply. */ |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7805 | #ifdef __cplusplus |
| 7806 | extern "C" |
| 7807 | #endif |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7808 | char poll (); |
| 7809 | int |
| 7810 | main () |
| 7811 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7812 | return poll (); |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7813 | ; |
| 7814 | return 0; |
| 7815 | } |
| 7816 | _ACEOF |
| 7817 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7818 | if { (ac_try="$ac_link" |
| 7819 | case "(($ac_try" in |
| 7820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7821 | *) ac_try_echo=$ac_try;; |
| 7822 | esac |
| 7823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7824 | (eval "$ac_link") 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7825 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7827 | rm -f conftest.er1 |
| 7828 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7830 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7832 | { (case "(($ac_try" in |
| 7833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7834 | *) ac_try_echo=$ac_try;; |
| 7835 | esac |
| 7836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7837 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7838 | ac_status=$? |
| 7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7840 | (exit $ac_status); }; } && |
| 7841 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7842 | { (case "(($ac_try" in |
| 7843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7844 | *) ac_try_echo=$ac_try;; |
| 7845 | esac |
| 7846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7847 | (eval "$ac_try") 2>&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7848 | ac_status=$? |
| 7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7850 | (exit $ac_status); }; }; then |
| 7851 | ac_cv_lib_poll_poll=yes |
| 7852 | else |
| 7853 | echo "$as_me: failed program was:" >&5 |
| 7854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7855 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7856 | ac_cv_lib_poll_poll=no |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7857 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7858 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7859 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7860 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7861 | LIBS=$ac_check_lib_save_LIBS |
| 7862 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7863 | { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
| 7864 | echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 7865 | if test $ac_cv_lib_poll_poll = yes; then |
| 7866 | cat >>confdefs.h <<_ACEOF |
| 7867 | #define HAVE_LIBPOLL 1 |
| 7868 | _ACEOF |
| 7869 | |
| 7870 | LIBS="-lpoll $LIBS" |
| 7871 | |
| 7872 | fi |
| 7873 | |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7874 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7875 | { echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5 |
| 7876 | echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; } |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7877 | if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then |
| 7878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7879 | else |
| 7880 | ac_check_lib_save_LIBS=$LIBS |
| 7881 | LIBS="-lresolv $LIBS" |
| 7882 | cat >conftest.$ac_ext <<_ACEOF |
| 7883 | /* confdefs.h. */ |
| 7884 | _ACEOF |
| 7885 | cat confdefs.h >>conftest.$ac_ext |
| 7886 | cat >>conftest.$ac_ext <<_ACEOF |
| 7887 | /* end confdefs.h. */ |
| 7888 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7889 | /* Override any GCC internal prototype to avoid an error. |
| 7890 | Use char because int might match the return type of a GCC |
| 7891 | builtin and then its argument prototype would still apply. */ |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7892 | #ifdef __cplusplus |
| 7893 | extern "C" |
| 7894 | #endif |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7895 | char res_9_init (); |
| 7896 | int |
| 7897 | main () |
| 7898 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7899 | return res_9_init (); |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7900 | ; |
| 7901 | return 0; |
| 7902 | } |
| 7903 | _ACEOF |
| 7904 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7905 | if { (ac_try="$ac_link" |
| 7906 | case "(($ac_try" in |
| 7907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7908 | *) ac_try_echo=$ac_try;; |
| 7909 | esac |
| 7910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7911 | (eval "$ac_link") 2>conftest.er1 |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7912 | ac_status=$? |
| 7913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7914 | rm -f conftest.er1 |
| 7915 | cat conftest.err >&5 |
| 7916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7917 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7919 | { (case "(($ac_try" in |
| 7920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7921 | *) ac_try_echo=$ac_try;; |
| 7922 | esac |
| 7923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7924 | (eval "$ac_try") 2>&5 |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7925 | ac_status=$? |
| 7926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7927 | (exit $ac_status); }; } && |
| 7928 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7929 | { (case "(($ac_try" in |
| 7930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7931 | *) ac_try_echo=$ac_try;; |
| 7932 | esac |
| 7933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7934 | (eval "$ac_try") 2>&5 |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7935 | ac_status=$? |
| 7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7937 | (exit $ac_status); }; }; then |
| 7938 | ac_cv_lib_resolv_res_9_init=yes |
| 7939 | else |
| 7940 | echo "$as_me: failed program was:" >&5 |
| 7941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7942 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7943 | ac_cv_lib_resolv_res_9_init=no |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7944 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7945 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7946 | rm -f core conftest.err conftest.$ac_objext \ |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7947 | conftest$ac_exeext conftest.$ac_ext |
| 7948 | LIBS=$ac_check_lib_save_LIBS |
| 7949 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7950 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5 |
| 7951 | echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; } |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 7952 | if test $ac_cv_lib_resolv_res_9_init = yes; then |
| 7953 | cat >>confdefs.h <<_ACEOF |
| 7954 | #define HAVE_LIBRESOLV 1 |
| 7955 | _ACEOF |
| 7956 | |
| 7957 | LIBS="-lresolv $LIBS" |
| 7958 | |
| 7959 | fi |
| 7960 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7961 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 7962 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7963 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 7965 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7966 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7967 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7968 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7969 | /* confdefs.h. */ |
| 7970 | _ACEOF |
| 7971 | cat confdefs.h >>conftest.$ac_ext |
| 7972 | cat >>conftest.$ac_ext <<_ACEOF |
| 7973 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7974 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7975 | /* Override any GCC internal prototype to avoid an error. |
| 7976 | Use char because int might match the return type of a GCC |
| 7977 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7978 | #ifdef __cplusplus |
| 7979 | extern "C" |
| 7980 | #endif |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 7981 | char pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7982 | int |
| 7983 | main () |
| 7984 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7985 | return pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7986 | ; |
| 7987 | return 0; |
| 7988 | } |
| 7989 | _ACEOF |
| 7990 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 7991 | if { (ac_try="$ac_link" |
| 7992 | case "(($ac_try" in |
| 7993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7994 | *) ac_try_echo=$ac_try;; |
| 7995 | esac |
| 7996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7997 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7998 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8000 | rm -f conftest.er1 |
| 8001 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8003 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8005 | { (case "(($ac_try" in |
| 8006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8007 | *) ac_try_echo=$ac_try;; |
| 8008 | esac |
| 8009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8010 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8011 | ac_status=$? |
| 8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8013 | (exit $ac_status); }; } && |
| 8014 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8015 | { (case "(($ac_try" in |
| 8016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8017 | *) ac_try_echo=$ac_try;; |
| 8018 | esac |
| 8019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8020 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8021 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8023 | (exit $ac_status); }; }; then |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 8024 | ac_cv_lib_pthread_pthread_create=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 8025 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8026 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8028 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8029 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 8030 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8031 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8032 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8033 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8034 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 8035 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8036 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 8037 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 8038 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 8039 | LIBPTHREAD="-lpthread" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 8040 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 8041 | fi |
| 8042 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8043 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 8044 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 8045 | |
| 8046 | XFILES="" |
| 8047 | |
| 8048 | OPENGLFILES="" |
| 8049 | |
| 8050 | GLU32FILES="" |
| 8051 | |
| 8052 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 8053 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8054 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 8055 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8056 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 8057 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8058 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 8060 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8061 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8062 | /* confdefs.h. */ |
| 8063 | _ACEOF |
| 8064 | cat confdefs.h >>conftest.$ac_ext |
| 8065 | cat >>conftest.$ac_ext <<_ACEOF |
| 8066 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8067 | #include <stdlib.h> |
| 8068 | #include <stdarg.h> |
| 8069 | #include <string.h> |
| 8070 | #include <float.h> |
| 8071 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8072 | int |
| 8073 | main () |
| 8074 | { |
| 8075 | |
| 8076 | ; |
| 8077 | return 0; |
| 8078 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8079 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8080 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8081 | if { (ac_try="$ac_compile" |
| 8082 | case "(($ac_try" in |
| 8083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8084 | *) ac_try_echo=$ac_try;; |
| 8085 | esac |
| 8086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8087 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8088 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8090 | rm -f conftest.er1 |
| 8091 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8093 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8094 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8095 | { (case "(($ac_try" in |
| 8096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8097 | *) ac_try_echo=$ac_try;; |
| 8098 | esac |
| 8099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8100 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8101 | ac_status=$? |
| 8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8103 | (exit $ac_status); }; } && |
| 8104 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8105 | { (case "(($ac_try" in |
| 8106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8107 | *) ac_try_echo=$ac_try;; |
| 8108 | esac |
| 8109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8110 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8111 | ac_status=$? |
| 8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8113 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8114 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8115 | else |
| 8116 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8118 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8119 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 8120 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8121 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8123 | |
| 8124 | if test $ac_cv_header_stdc = yes; then |
| 8125 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 8126 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8127 | /* confdefs.h. */ |
| 8128 | _ACEOF |
| 8129 | cat confdefs.h >>conftest.$ac_ext |
| 8130 | cat >>conftest.$ac_ext <<_ACEOF |
| 8131 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8132 | #include <string.h> |
| 8133 | |
| 8134 | _ACEOF |
| 8135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8136 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8137 | : |
| 8138 | else |
| 8139 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 8140 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8141 | rm -f conftest* |
| 8142 | |
| 8143 | fi |
| 8144 | |
| 8145 | if test $ac_cv_header_stdc = yes; then |
| 8146 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 8147 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8148 | /* confdefs.h. */ |
| 8149 | _ACEOF |
| 8150 | cat confdefs.h >>conftest.$ac_ext |
| 8151 | cat >>conftest.$ac_ext <<_ACEOF |
| 8152 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8153 | #include <stdlib.h> |
| 8154 | |
| 8155 | _ACEOF |
| 8156 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8157 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8158 | : |
| 8159 | else |
| 8160 | ac_cv_header_stdc=no |
| 8161 | fi |
| 8162 | rm -f conftest* |
| 8163 | |
| 8164 | fi |
| 8165 | |
| 8166 | if test $ac_cv_header_stdc = yes; then |
| 8167 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 8168 | if test "$cross_compiling" = yes; then |
| 8169 | : |
| 8170 | else |
| 8171 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8172 | /* confdefs.h. */ |
| 8173 | _ACEOF |
| 8174 | cat confdefs.h >>conftest.$ac_ext |
| 8175 | cat >>conftest.$ac_ext <<_ACEOF |
| 8176 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8177 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8178 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8179 | #if ((' ' & 0x0FF) == 0x020) |
| 8180 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 8181 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 8182 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8183 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8184 | (('a' <= (c) && (c) <= 'i') \ |
| 8185 | || ('j' <= (c) && (c) <= 'r') \ |
| 8186 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8187 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 8188 | #endif |
| 8189 | |
| 8190 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 8191 | int |
| 8192 | main () |
| 8193 | { |
| 8194 | int i; |
| 8195 | for (i = 0; i < 256; i++) |
| 8196 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8197 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8198 | return 2; |
| 8199 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8200 | } |
| 8201 | _ACEOF |
| 8202 | rm -f conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8203 | if { (ac_try="$ac_link" |
| 8204 | case "(($ac_try" in |
| 8205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8206 | *) ac_try_echo=$ac_try;; |
| 8207 | esac |
| 8208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8209 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8210 | ac_status=$? |
| 8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8212 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8213 | { (case "(($ac_try" in |
| 8214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8215 | *) ac_try_echo=$ac_try;; |
| 8216 | esac |
| 8217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8218 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8219 | ac_status=$? |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); }; }; then |
| 8222 | : |
| 8223 | else |
| 8224 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8225 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8227 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8228 | ( exit $ac_status ) |
| 8229 | ac_cv_header_stdc=no |
| 8230 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8231 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8232 | fi |
| 8233 | |
| 8234 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8235 | fi |
| 8236 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8237 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 8238 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8239 | if test $ac_cv_header_stdc = yes; then |
| 8240 | |
| 8241 | cat >>confdefs.h <<\_ACEOF |
| 8242 | #define STDC_HEADERS 1 |
| 8243 | _ACEOF |
| 8244 | |
| 8245 | fi |
| 8246 | |
| 8247 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 8248 | |
| 8249 | |
| 8250 | |
| 8251 | |
| 8252 | |
| 8253 | |
| 8254 | |
| 8255 | |
| 8256 | |
| 8257 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8258 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8259 | do |
| 8260 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8261 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8262 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8263 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8265 | else |
| 8266 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8267 | /* confdefs.h. */ |
| 8268 | _ACEOF |
| 8269 | cat confdefs.h >>conftest.$ac_ext |
| 8270 | cat >>conftest.$ac_ext <<_ACEOF |
| 8271 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8272 | $ac_includes_default |
| 8273 | |
| 8274 | #include <$ac_header> |
| 8275 | _ACEOF |
| 8276 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8277 | if { (ac_try="$ac_compile" |
| 8278 | case "(($ac_try" in |
| 8279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8280 | *) ac_try_echo=$ac_try;; |
| 8281 | esac |
| 8282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8283 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8284 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8286 | rm -f conftest.er1 |
| 8287 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8289 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8291 | { (case "(($ac_try" in |
| 8292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8293 | *) ac_try_echo=$ac_try;; |
| 8294 | esac |
| 8295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8296 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8297 | ac_status=$? |
| 8298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8299 | (exit $ac_status); }; } && |
| 8300 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8301 | { (case "(($ac_try" in |
| 8302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8303 | *) ac_try_echo=$ac_try;; |
| 8304 | esac |
| 8305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8306 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8307 | ac_status=$? |
| 8308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8309 | (exit $ac_status); }; }; then |
| 8310 | eval "$as_ac_Header=yes" |
| 8311 | else |
| 8312 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8314 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8315 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8316 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8317 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8319 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8320 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8321 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8322 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8323 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8324 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8325 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8326 | _ACEOF |
| 8327 | |
| 8328 | fi |
| 8329 | |
| 8330 | done |
| 8331 | |
| 8332 | |
| 8333 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | |
| 8347 | |
| 8348 | |
| 8349 | |
| 8350 | |
| 8351 | |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 | |
| 8414 | |
| 8415 | |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 8416 | |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 8417 | |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 8418 | |
| 8419 | |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 8420 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 8421 | |
| 8422 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8423 | |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 8433 | |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 8434 | |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 8435 | |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 8436 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 8437 | |
| 8438 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8439 | for ac_header in \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 8440 | AudioUnit/AudioUnit.h \ |
| 8441 | CoreAudio/CoreAudio.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 8442 | IOKit/IOKitLib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8443 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8444 | arpa/inet.h \ |
| 8445 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 8446 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8447 | capi20.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8448 | cups/cups.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8449 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8450 | direct.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8451 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8452 | elf.h \ |
| 8453 | float.h \ |
| 8454 | fontconfig/fontconfig.h \ |
| 8455 | getopt.h \ |
| 8456 | gif_lib.h \ |
| 8457 | ieeefp.h \ |
| 8458 | io.h \ |
| 8459 | jack/jack.h \ |
| 8460 | jpeglib.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 8461 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8462 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8463 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 8464 | ldap.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8465 | libaudioio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8466 | link.h \ |
| 8467 | linux/cdrom.h \ |
| 8468 | linux/compiler.h \ |
| 8469 | linux/hdreg.h \ |
| 8470 | linux/input.h \ |
| 8471 | linux/ioctl.h \ |
| 8472 | linux/joystick.h \ |
| 8473 | linux/major.h \ |
| 8474 | linux/param.h \ |
| 8475 | linux/serial.h \ |
| 8476 | linux/ucdrom.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 8477 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8478 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 8479 | machine/limits.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8480 | machine/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8481 | mntent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8482 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8483 | netdb.h \ |
| 8484 | netinet/in.h \ |
| 8485 | netinet/in_systm.h \ |
| 8486 | netinet/tcp.h \ |
| 8487 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 8488 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8489 | openssl/ssl.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 8490 | poll.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8491 | process.h \ |
| 8492 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8493 | pwd.h \ |
| 8494 | regex.h \ |
| 8495 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8496 | scsi/scsi.h \ |
| 8497 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8498 | scsi/sg.h \ |
| 8499 | soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8500 | stdint.h \ |
| 8501 | strings.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8502 | sys/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8503 | sys/cdio.h \ |
| 8504 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8505 | sys/epoll.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8506 | sys/errno.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8507 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8508 | sys/filio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8509 | sys/ioctl.h \ |
| 8510 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 8511 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8512 | sys/link.h \ |
| 8513 | sys/lwp.h \ |
| 8514 | sys/mman.h \ |
| 8515 | sys/modem.h \ |
| 8516 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 8517 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8518 | sys/param.h \ |
| 8519 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 8520 | sys/prctl.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8521 | sys/ptrace.h \ |
| 8522 | sys/reg.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 8523 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8524 | sys/scsiio.h \ |
| 8525 | sys/shm.h \ |
| 8526 | sys/signal.h \ |
| 8527 | sys/socket.h \ |
| 8528 | sys/sockio.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8529 | sys/soundcard.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8530 | sys/statvfs.h \ |
| 8531 | sys/strtio.h \ |
| 8532 | sys/syscall.h \ |
| 8533 | sys/sysctl.h \ |
| 8534 | sys/time.h \ |
| 8535 | sys/times.h \ |
| 8536 | sys/uio.h \ |
| 8537 | sys/un.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8538 | sys/vm86.h \ |
| 8539 | sys/wait.h \ |
| 8540 | syscall.h \ |
| 8541 | termios.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8542 | unicode/ubidi.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8543 | unistd.h \ |
| 8544 | utime.h \ |
| 8545 | valgrind/memcheck.h |
| 8546 | |
| 8547 | do |
| 8548 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8550 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8554 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8555 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8556 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8557 | echo "${ECHO_T}$ac_res" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8558 | else |
| 8559 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8560 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8561 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8562 | cat >conftest.$ac_ext <<_ACEOF |
| 8563 | /* confdefs.h. */ |
| 8564 | _ACEOF |
| 8565 | cat confdefs.h >>conftest.$ac_ext |
| 8566 | cat >>conftest.$ac_ext <<_ACEOF |
| 8567 | /* end confdefs.h. */ |
| 8568 | $ac_includes_default |
| 8569 | #include <$ac_header> |
| 8570 | _ACEOF |
| 8571 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8572 | if { (ac_try="$ac_compile" |
| 8573 | case "(($ac_try" in |
| 8574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8575 | *) ac_try_echo=$ac_try;; |
| 8576 | esac |
| 8577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8578 | (eval "$ac_compile") 2>conftest.er1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8579 | ac_status=$? |
| 8580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8581 | rm -f conftest.er1 |
| 8582 | cat conftest.err >&5 |
| 8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8584 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8586 | { (case "(($ac_try" in |
| 8587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8588 | *) ac_try_echo=$ac_try;; |
| 8589 | esac |
| 8590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8591 | (eval "$ac_try") 2>&5 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8592 | ac_status=$? |
| 8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8594 | (exit $ac_status); }; } && |
| 8595 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8596 | { (case "(($ac_try" in |
| 8597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8598 | *) ac_try_echo=$ac_try;; |
| 8599 | esac |
| 8600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8601 | (eval "$ac_try") 2>&5 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8602 | ac_status=$? |
| 8603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8604 | (exit $ac_status); }; }; then |
| 8605 | ac_header_compiler=yes |
| 8606 | else |
| 8607 | echo "$as_me: failed program was:" >&5 |
| 8608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8609 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8610 | ac_header_compiler=no |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8611 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8612 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8614 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8615 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8616 | |
| 8617 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8618 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8619 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8620 | cat >conftest.$ac_ext <<_ACEOF |
| 8621 | /* confdefs.h. */ |
| 8622 | _ACEOF |
| 8623 | cat confdefs.h >>conftest.$ac_ext |
| 8624 | cat >>conftest.$ac_ext <<_ACEOF |
| 8625 | /* end confdefs.h. */ |
| 8626 | #include <$ac_header> |
| 8627 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8628 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8629 | case "(($ac_try" in |
| 8630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8631 | *) ac_try_echo=$ac_try;; |
| 8632 | esac |
| 8633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8634 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8635 | ac_status=$? |
| 8636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8637 | rm -f conftest.er1 |
| 8638 | cat conftest.err >&5 |
| 8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8640 | (exit $ac_status); } >/dev/null; then |
| 8641 | if test -s conftest.err; then |
| 8642 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8643 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8644 | else |
| 8645 | ac_cpp_err= |
| 8646 | fi |
| 8647 | else |
| 8648 | ac_cpp_err=yes |
| 8649 | fi |
| 8650 | if test -z "$ac_cpp_err"; then |
| 8651 | ac_header_preproc=yes |
| 8652 | else |
| 8653 | echo "$as_me: failed program was:" >&5 |
| 8654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8655 | |
| 8656 | ac_header_preproc=no |
| 8657 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8658 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8659 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8660 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8661 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8662 | |
| 8663 | # So? What about this header? |
| 8664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8665 | yes:no: ) |
| 8666 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8667 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8668 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8669 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8670 | ac_header_preproc=yes |
| 8671 | ;; |
| 8672 | no:yes:* ) |
| 8673 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8674 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8675 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8676 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8677 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8678 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8679 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8680 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8682 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8683 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8684 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8685 | ( cat <<\_ASBOX |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8686 | ## ------------------------------------ ## |
| 8687 | ## Report this to wine-devel@winehq.org ## |
| 8688 | ## ------------------------------------ ## |
| 8689 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8690 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8691 | ;; |
| 8692 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8693 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8695 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8697 | else |
| 8698 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8699 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8700 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8701 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8702 | echo "${ECHO_T}$ac_res" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8703 | |
| 8704 | fi |
| 8705 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8706 | cat >>confdefs.h <<_ACEOF |
| 8707 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8708 | _ACEOF |
| 8709 | |
| 8710 | fi |
| 8711 | |
| 8712 | done |
| 8713 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8714 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 8715 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8716 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 8717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8718 | else |
| 8719 | cat >conftest.$ac_ext <<_ACEOF |
| 8720 | /* confdefs.h. */ |
| 8721 | _ACEOF |
| 8722 | cat confdefs.h >>conftest.$ac_ext |
| 8723 | cat >>conftest.$ac_ext <<_ACEOF |
| 8724 | /* end confdefs.h. */ |
| 8725 | #include <sys/types.h> |
| 8726 | #include <sys/stat.h> |
| 8727 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8728 | #if defined S_ISBLK && defined S_IFDIR |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8729 | # if S_ISBLK (S_IFDIR) |
| 8730 | You lose. |
| 8731 | # endif |
| 8732 | #endif |
| 8733 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8734 | #if defined S_ISBLK && defined S_IFCHR |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8735 | # if S_ISBLK (S_IFCHR) |
| 8736 | You lose. |
| 8737 | # endif |
| 8738 | #endif |
| 8739 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8740 | #if defined S_ISLNK && defined S_IFREG |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8741 | # if S_ISLNK (S_IFREG) |
| 8742 | You lose. |
| 8743 | # endif |
| 8744 | #endif |
| 8745 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8746 | #if defined S_ISSOCK && defined S_IFREG |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8747 | # if S_ISSOCK (S_IFREG) |
| 8748 | You lose. |
| 8749 | # endif |
| 8750 | #endif |
| 8751 | |
| 8752 | _ACEOF |
| 8753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8754 | $EGREP "You lose" >/dev/null 2>&1; then |
| 8755 | ac_cv_header_stat_broken=yes |
| 8756 | else |
| 8757 | ac_cv_header_stat_broken=no |
| 8758 | fi |
| 8759 | rm -f conftest* |
| 8760 | |
| 8761 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8762 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 8763 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 8764 | if test $ac_cv_header_stat_broken = yes; then |
| 8765 | |
| 8766 | cat >>confdefs.h <<\_ACEOF |
| 8767 | #define STAT_MACROS_BROKEN 1 |
| 8768 | _ACEOF |
| 8769 | |
| 8770 | fi |
| 8771 | |
| 8772 | |
| 8773 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8774 | |
| 8775 | |
| 8776 | |
| 8777 | |
| 8778 | for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h |
| 8779 | do |
| 8780 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8781 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8783 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8785 | else |
| 8786 | cat >conftest.$ac_ext <<_ACEOF |
| 8787 | /* confdefs.h. */ |
| 8788 | _ACEOF |
| 8789 | cat confdefs.h >>conftest.$ac_ext |
| 8790 | cat >>conftest.$ac_ext <<_ACEOF |
| 8791 | /* end confdefs.h. */ |
| 8792 | #include <sys/types.h> |
| 8793 | #if HAVE_SYS_PARAM_H |
| 8794 | # include <sys/param.h> |
| 8795 | #endif |
| 8796 | |
| 8797 | #include <$ac_header> |
| 8798 | _ACEOF |
| 8799 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8800 | if { (ac_try="$ac_compile" |
| 8801 | case "(($ac_try" in |
| 8802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8803 | *) ac_try_echo=$ac_try;; |
| 8804 | esac |
| 8805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8806 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8807 | ac_status=$? |
| 8808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8809 | rm -f conftest.er1 |
| 8810 | cat conftest.err >&5 |
| 8811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8812 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8814 | { (case "(($ac_try" in |
| 8815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8816 | *) ac_try_echo=$ac_try;; |
| 8817 | esac |
| 8818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8819 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8820 | ac_status=$? |
| 8821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8822 | (exit $ac_status); }; } && |
| 8823 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8824 | { (case "(($ac_try" in |
| 8825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8826 | *) ac_try_echo=$ac_try;; |
| 8827 | esac |
| 8828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8829 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8830 | ac_status=$? |
| 8831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8832 | (exit $ac_status); }; }; then |
| 8833 | eval "$as_ac_Header=yes" |
| 8834 | else |
| 8835 | echo "$as_me: failed program was:" >&5 |
| 8836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8838 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8839 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8840 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8842 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8843 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8844 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8845 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8846 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8847 | cat >>confdefs.h <<_ACEOF |
| 8848 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8849 | _ACEOF |
| 8850 | |
| 8851 | fi |
| 8852 | |
| 8853 | done |
| 8854 | |
| 8855 | |
| 8856 | |
| 8857 | |
| 8858 | |
| 8859 | |
| 8860 | |
| 8861 | |
| 8862 | for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h |
| 8863 | do |
| 8864 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8865 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8866 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8867 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8869 | else |
| 8870 | cat >conftest.$ac_ext <<_ACEOF |
| 8871 | /* confdefs.h. */ |
| 8872 | _ACEOF |
| 8873 | cat confdefs.h >>conftest.$ac_ext |
| 8874 | cat >>conftest.$ac_ext <<_ACEOF |
| 8875 | /* end confdefs.h. */ |
| 8876 | #include <sys/types.h> |
| 8877 | #if HAVE_SYS_SOCKET_H |
| 8878 | # include <sys/socket.h> |
| 8879 | #endif |
| 8880 | |
| 8881 | #include <$ac_header> |
| 8882 | _ACEOF |
| 8883 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8884 | if { (ac_try="$ac_compile" |
| 8885 | case "(($ac_try" in |
| 8886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8887 | *) ac_try_echo=$ac_try;; |
| 8888 | esac |
| 8889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8890 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8891 | ac_status=$? |
| 8892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8893 | rm -f conftest.er1 |
| 8894 | cat conftest.err >&5 |
| 8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8896 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8898 | { (case "(($ac_try" in |
| 8899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8900 | *) ac_try_echo=$ac_try;; |
| 8901 | esac |
| 8902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8903 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8904 | ac_status=$? |
| 8905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8906 | (exit $ac_status); }; } && |
| 8907 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8908 | { (case "(($ac_try" in |
| 8909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8910 | *) ac_try_echo=$ac_try;; |
| 8911 | esac |
| 8912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8913 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8914 | ac_status=$? |
| 8915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8916 | (exit $ac_status); }; }; then |
| 8917 | eval "$as_ac_Header=yes" |
| 8918 | else |
| 8919 | echo "$as_me: failed program was:" >&5 |
| 8920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8921 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8922 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8923 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8924 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8926 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8927 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8928 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8929 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8931 | cat >>confdefs.h <<_ACEOF |
| 8932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8933 | _ACEOF |
| 8934 | |
| 8935 | fi |
| 8936 | |
| 8937 | done |
| 8938 | |
| 8939 | |
| 8940 | |
| 8941 | for ac_header in resolv.h |
| 8942 | do |
| 8943 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8944 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8946 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8948 | else |
| 8949 | cat >conftest.$ac_ext <<_ACEOF |
| 8950 | /* confdefs.h. */ |
| 8951 | _ACEOF |
| 8952 | cat confdefs.h >>conftest.$ac_ext |
| 8953 | cat >>conftest.$ac_ext <<_ACEOF |
| 8954 | /* end confdefs.h. */ |
| 8955 | #include <sys/types.h> |
| 8956 | #if HAVE_SYS_SOCKET_H |
| 8957 | # include <sys/socket.h> |
| 8958 | #endif |
| 8959 | #if HAVE_NETINET_IN_H |
| 8960 | # include <netinet/in.h> |
| 8961 | #endif |
| 8962 | #if HAVE_ARPA_NAMESER_H |
| 8963 | # include <arpa/nameser.h> |
| 8964 | #endif |
| 8965 | |
| 8966 | #include <$ac_header> |
| 8967 | _ACEOF |
| 8968 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8969 | if { (ac_try="$ac_compile" |
| 8970 | case "(($ac_try" in |
| 8971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8972 | *) ac_try_echo=$ac_try;; |
| 8973 | esac |
| 8974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8975 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8976 | ac_status=$? |
| 8977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8978 | rm -f conftest.er1 |
| 8979 | cat conftest.err >&5 |
| 8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8981 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8983 | { (case "(($ac_try" in |
| 8984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8985 | *) ac_try_echo=$ac_try;; |
| 8986 | esac |
| 8987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8988 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8989 | ac_status=$? |
| 8990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8991 | (exit $ac_status); }; } && |
| 8992 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8993 | { (case "(($ac_try" in |
| 8994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8995 | *) ac_try_echo=$ac_try;; |
| 8996 | esac |
| 8997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8998 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 8999 | ac_status=$? |
| 9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9001 | (exit $ac_status); }; }; then |
| 9002 | eval "$as_ac_Header=yes" |
| 9003 | else |
| 9004 | echo "$as_me: failed program was:" >&5 |
| 9005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9006 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9007 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9008 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9009 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9011 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9012 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9013 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9014 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9015 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9016 | cat >>confdefs.h <<_ACEOF |
| 9017 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9018 | _ACEOF |
| 9019 | |
| 9020 | fi |
| 9021 | |
| 9022 | done |
| 9023 | |
| 9024 | |
| 9025 | |
| 9026 | for ac_header in ucontext.h |
| 9027 | do |
| 9028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9029 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9033 | else |
| 9034 | cat >conftest.$ac_ext <<_ACEOF |
| 9035 | /* confdefs.h. */ |
| 9036 | _ACEOF |
| 9037 | cat confdefs.h >>conftest.$ac_ext |
| 9038 | cat >>conftest.$ac_ext <<_ACEOF |
| 9039 | /* end confdefs.h. */ |
| 9040 | #include <signal.h> |
| 9041 | |
| 9042 | #include <$ac_header> |
| 9043 | _ACEOF |
| 9044 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9045 | if { (ac_try="$ac_compile" |
| 9046 | case "(($ac_try" in |
| 9047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9048 | *) ac_try_echo=$ac_try;; |
| 9049 | esac |
| 9050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9051 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9052 | ac_status=$? |
| 9053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9054 | rm -f conftest.er1 |
| 9055 | cat conftest.err >&5 |
| 9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9057 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9059 | { (case "(($ac_try" in |
| 9060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9061 | *) ac_try_echo=$ac_try;; |
| 9062 | esac |
| 9063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9064 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9065 | ac_status=$? |
| 9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9067 | (exit $ac_status); }; } && |
| 9068 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9069 | { (case "(($ac_try" in |
| 9070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9071 | *) ac_try_echo=$ac_try;; |
| 9072 | esac |
| 9073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9074 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9075 | ac_status=$? |
| 9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9077 | (exit $ac_status); }; }; then |
| 9078 | eval "$as_ac_Header=yes" |
| 9079 | else |
| 9080 | echo "$as_me: failed program was:" >&5 |
| 9081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9082 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9083 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9084 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9085 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9087 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9088 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9089 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9090 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9091 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9092 | cat >>confdefs.h <<_ACEOF |
| 9093 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9094 | _ACEOF |
| 9095 | |
| 9096 | fi |
| 9097 | |
| 9098 | done |
| 9099 | |
| 9100 | |
| 9101 | |
| 9102 | |
| 9103 | for ac_header in linux/ipx.h linux/videodev.h |
| 9104 | do |
| 9105 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9106 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9108 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9110 | else |
| 9111 | cat >conftest.$ac_ext <<_ACEOF |
| 9112 | /* confdefs.h. */ |
| 9113 | _ACEOF |
| 9114 | cat confdefs.h >>conftest.$ac_ext |
| 9115 | cat >>conftest.$ac_ext <<_ACEOF |
| 9116 | /* end confdefs.h. */ |
| 9117 | #ifdef HAVE_SYS_TIME_H |
| 9118 | #include <sys/time.h> |
| 9119 | #endif |
| 9120 | #include <sys/types.h> |
| 9121 | #ifdef HAVE_ASM_TYPES_H |
| 9122 | #include <asm/types.h> |
| 9123 | #endif |
| 9124 | |
| 9125 | #include <$ac_header> |
| 9126 | _ACEOF |
| 9127 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9128 | if { (ac_try="$ac_compile" |
| 9129 | case "(($ac_try" in |
| 9130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9131 | *) ac_try_echo=$ac_try;; |
| 9132 | esac |
| 9133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9134 | (eval "$ac_compile") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9135 | ac_status=$? |
| 9136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9137 | rm -f conftest.er1 |
| 9138 | cat conftest.err >&5 |
| 9139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9140 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9142 | { (case "(($ac_try" in |
| 9143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9144 | *) ac_try_echo=$ac_try;; |
| 9145 | esac |
| 9146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9147 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9148 | ac_status=$? |
| 9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9150 | (exit $ac_status); }; } && |
| 9151 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9152 | { (case "(($ac_try" in |
| 9153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9154 | *) ac_try_echo=$ac_try;; |
| 9155 | esac |
| 9156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9157 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9158 | ac_status=$? |
| 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9160 | (exit $ac_status); }; }; then |
| 9161 | eval "$as_ac_Header=yes" |
| 9162 | else |
| 9163 | echo "$as_me: failed program was:" >&5 |
| 9164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9165 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9166 | eval "$as_ac_Header=no" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9167 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9168 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9170 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9171 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9172 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9173 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 9174 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9175 | cat >>confdefs.h <<_ACEOF |
| 9176 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9177 | _ACEOF |
| 9178 | |
| 9179 | fi |
| 9180 | |
| 9181 | done |
| 9182 | |
| 9183 | |
| 9184 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9185 | for ac_header in linux/capi.h |
| 9186 | do |
| 9187 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9188 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9192 | else |
| 9193 | cat >conftest.$ac_ext <<_ACEOF |
| 9194 | /* confdefs.h. */ |
| 9195 | _ACEOF |
| 9196 | cat confdefs.h >>conftest.$ac_ext |
| 9197 | cat >>conftest.$ac_ext <<_ACEOF |
| 9198 | /* end confdefs.h. */ |
| 9199 | #define __user |
| 9200 | |
| 9201 | #include <$ac_header> |
| 9202 | _ACEOF |
| 9203 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9204 | if { (ac_try="$ac_compile" |
| 9205 | case "(($ac_try" in |
| 9206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9207 | *) ac_try_echo=$ac_try;; |
| 9208 | esac |
| 9209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9210 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9211 | ac_status=$? |
| 9212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9213 | rm -f conftest.er1 |
| 9214 | cat conftest.err >&5 |
| 9215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9216 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9218 | { (case "(($ac_try" in |
| 9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9220 | *) ac_try_echo=$ac_try;; |
| 9221 | esac |
| 9222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9223 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9224 | ac_status=$? |
| 9225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9226 | (exit $ac_status); }; } && |
| 9227 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9228 | { (case "(($ac_try" in |
| 9229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9230 | *) ac_try_echo=$ac_try;; |
| 9231 | esac |
| 9232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9233 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9234 | ac_status=$? |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); }; }; then |
| 9237 | eval "$as_ac_Header=yes" |
| 9238 | else |
| 9239 | echo "$as_me: failed program was:" >&5 |
| 9240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9241 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9242 | eval "$as_ac_Header=no" |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9243 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9244 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9246 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9247 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9248 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9249 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 9250 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9251 | cat >>confdefs.h <<_ACEOF |
| 9252 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9253 | _ACEOF |
| 9254 | |
| 9255 | fi |
| 9256 | |
| 9257 | done |
| 9258 | |
| 9259 | |
| 9260 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 9261 | if test "$have_x" = "yes" |
| 9262 | then |
| 9263 | XLIB="-lXext -lX11" |
| 9264 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9265 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 9266 | |
| 9267 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9268 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9269 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9270 | |
| 9271 | |
| 9272 | |
| 9273 | |
| 9274 | |
| 9275 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9276 | for ac_header in X11/Xlib.h \ |
| 9277 | X11/XKBlib.h \ |
| 9278 | X11/Xutil.h \ |
| 9279 | X11/extensions/shape.h \ |
| 9280 | X11/extensions/XInput.h \ |
| 9281 | X11/extensions/XShm.h \ |
| 9282 | X11/extensions/Xrandr.h \ |
| 9283 | X11/extensions/Xrender.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9284 | X11/extensions/xf86vmode.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 9285 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9286 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9287 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9289 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9291 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 9292 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9293 | /* confdefs.h. */ |
| 9294 | _ACEOF |
| 9295 | cat confdefs.h >>conftest.$ac_ext |
| 9296 | cat >>conftest.$ac_ext <<_ACEOF |
| 9297 | /* end confdefs.h. */ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9298 | #ifdef HAVE_X11_XLIB_H |
| 9299 | # include <X11/Xlib.h> |
| 9300 | #endif |
| 9301 | #ifdef HAVE_X11_XUTIL_H |
| 9302 | # include <X11/Xutil.h> |
| 9303 | #endif |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 9304 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9305 | #include <$ac_header> |
| 9306 | _ACEOF |
| 9307 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9308 | if { (ac_try="$ac_compile" |
| 9309 | case "(($ac_try" in |
| 9310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9311 | *) ac_try_echo=$ac_try;; |
| 9312 | esac |
| 9313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9314 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9315 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9317 | rm -f conftest.er1 |
| 9318 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9320 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9322 | { (case "(($ac_try" in |
| 9323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9324 | *) ac_try_echo=$ac_try;; |
| 9325 | esac |
| 9326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9327 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9328 | ac_status=$? |
| 9329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9330 | (exit $ac_status); }; } && |
| 9331 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9332 | { (case "(($ac_try" in |
| 9333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9334 | *) ac_try_echo=$ac_try;; |
| 9335 | esac |
| 9336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9337 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9338 | ac_status=$? |
| 9339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9340 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 9341 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9342 | else |
| 9343 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9345 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9346 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9347 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9348 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 9350 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9351 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9352 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9353 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9354 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9355 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9356 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9357 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9358 | |
| 9359 | fi |
| 9360 | |
| 9361 | done |
| 9362 | |
| 9363 | |
| 9364 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 9365 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9366 | { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
| 9367 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9368 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 9369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9370 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9371 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9372 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9373 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9374 | /* confdefs.h. */ |
| 9375 | _ACEOF |
| 9376 | cat confdefs.h >>conftest.$ac_ext |
| 9377 | cat >>conftest.$ac_ext <<_ACEOF |
| 9378 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9379 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9380 | /* Override any GCC internal prototype to avoid an error. |
| 9381 | Use char because int might match the return type of a GCC |
| 9382 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9383 | #ifdef __cplusplus |
| 9384 | extern "C" |
| 9385 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9386 | char XkbQueryExtension (); |
| 9387 | int |
| 9388 | main () |
| 9389 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9390 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9391 | ; |
| 9392 | return 0; |
| 9393 | } |
| 9394 | _ACEOF |
| 9395 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9396 | if { (ac_try="$ac_link" |
| 9397 | case "(($ac_try" in |
| 9398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9399 | *) ac_try_echo=$ac_try;; |
| 9400 | esac |
| 9401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9402 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9403 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9405 | rm -f conftest.er1 |
| 9406 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9408 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9410 | { (case "(($ac_try" in |
| 9411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9412 | *) ac_try_echo=$ac_try;; |
| 9413 | esac |
| 9414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9415 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9416 | ac_status=$? |
| 9417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9418 | (exit $ac_status); }; } && |
| 9419 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9420 | { (case "(($ac_try" in |
| 9421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9422 | *) ac_try_echo=$ac_try;; |
| 9423 | esac |
| 9424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9425 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9426 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9428 | (exit $ac_status); }; }; then |
| 9429 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9430 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9431 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9433 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9434 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9435 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9436 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9437 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9438 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9439 | LIBS=$ac_check_lib_save_LIBS |
| 9440 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9441 | { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
| 9442 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9443 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9444 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9445 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9446 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9447 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9448 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9449 | fi |
| 9450 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9451 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9452 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9453 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 9454 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9455 | { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
| 9456 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9457 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 9458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9459 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9460 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9461 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9462 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9463 | /* confdefs.h. */ |
| 9464 | _ACEOF |
| 9465 | cat confdefs.h >>conftest.$ac_ext |
| 9466 | cat >>conftest.$ac_ext <<_ACEOF |
| 9467 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9468 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9469 | /* Override any GCC internal prototype to avoid an error. |
| 9470 | Use char because int might match the return type of a GCC |
| 9471 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9472 | #ifdef __cplusplus |
| 9473 | extern "C" |
| 9474 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9475 | char XShmQueryExtension (); |
| 9476 | int |
| 9477 | main () |
| 9478 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9479 | return XShmQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9480 | ; |
| 9481 | return 0; |
| 9482 | } |
| 9483 | _ACEOF |
| 9484 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9485 | if { (ac_try="$ac_link" |
| 9486 | case "(($ac_try" in |
| 9487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9488 | *) ac_try_echo=$ac_try;; |
| 9489 | esac |
| 9490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9491 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9492 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9494 | rm -f conftest.er1 |
| 9495 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9497 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9498 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9499 | { (case "(($ac_try" in |
| 9500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9501 | *) ac_try_echo=$ac_try;; |
| 9502 | esac |
| 9503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9504 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9505 | ac_status=$? |
| 9506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9507 | (exit $ac_status); }; } && |
| 9508 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9509 | { (case "(($ac_try" in |
| 9510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9511 | *) ac_try_echo=$ac_try;; |
| 9512 | esac |
| 9513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9514 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9515 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9517 | (exit $ac_status); }; }; then |
| 9518 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9519 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9520 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9522 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9523 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9524 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9525 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9526 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9527 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9528 | LIBS=$ac_check_lib_save_LIBS |
| 9529 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9530 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
| 9531 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9532 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9533 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9534 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9535 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9536 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9537 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 9538 | fi |
| 9539 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9540 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9541 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9542 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 9543 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9544 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9545 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9546 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 9547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9548 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9549 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9550 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9551 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9552 | /* confdefs.h. */ |
| 9553 | _ACEOF |
| 9554 | cat confdefs.h >>conftest.$ac_ext |
| 9555 | cat >>conftest.$ac_ext <<_ACEOF |
| 9556 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9557 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9558 | /* Override any GCC internal prototype to avoid an error. |
| 9559 | Use char because int might match the return type of a GCC |
| 9560 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9561 | #ifdef __cplusplus |
| 9562 | extern "C" |
| 9563 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9564 | char XShapeQueryExtension (); |
| 9565 | int |
| 9566 | main () |
| 9567 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9568 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9569 | ; |
| 9570 | return 0; |
| 9571 | } |
| 9572 | _ACEOF |
| 9573 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9574 | if { (ac_try="$ac_link" |
| 9575 | case "(($ac_try" in |
| 9576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9577 | *) ac_try_echo=$ac_try;; |
| 9578 | esac |
| 9579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9580 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9581 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9583 | rm -f conftest.er1 |
| 9584 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9586 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9588 | { (case "(($ac_try" in |
| 9589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9590 | *) ac_try_echo=$ac_try;; |
| 9591 | esac |
| 9592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9593 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9594 | ac_status=$? |
| 9595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9596 | (exit $ac_status); }; } && |
| 9597 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9598 | { (case "(($ac_try" in |
| 9599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9600 | *) ac_try_echo=$ac_try;; |
| 9601 | esac |
| 9602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9603 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9604 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9606 | (exit $ac_status); }; }; then |
| 9607 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9608 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9609 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9611 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9612 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9613 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9614 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9615 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9616 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9617 | LIBS=$ac_check_lib_save_LIBS |
| 9618 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9619 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9620 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9621 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9622 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9623 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9624 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9625 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9626 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 9627 | fi |
| 9628 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9629 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9630 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9631 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 9632 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9633 | { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
| 9634 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9635 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 9636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9637 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9638 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9639 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9640 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9641 | /* confdefs.h. */ |
| 9642 | _ACEOF |
| 9643 | cat confdefs.h >>conftest.$ac_ext |
| 9644 | cat >>conftest.$ac_ext <<_ACEOF |
| 9645 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9646 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9647 | /* Override any GCC internal prototype to avoid an error. |
| 9648 | Use char because int might match the return type of a GCC |
| 9649 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9650 | #ifdef __cplusplus |
| 9651 | extern "C" |
| 9652 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9653 | char XF86VidModeQueryExtension (); |
| 9654 | int |
| 9655 | main () |
| 9656 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9657 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9658 | ; |
| 9659 | return 0; |
| 9660 | } |
| 9661 | _ACEOF |
| 9662 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9663 | if { (ac_try="$ac_link" |
| 9664 | case "(($ac_try" in |
| 9665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9666 | *) ac_try_echo=$ac_try;; |
| 9667 | esac |
| 9668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9669 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9670 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9672 | rm -f conftest.er1 |
| 9673 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9675 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9677 | { (case "(($ac_try" in |
| 9678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9679 | *) ac_try_echo=$ac_try;; |
| 9680 | esac |
| 9681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9682 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9683 | ac_status=$? |
| 9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9685 | (exit $ac_status); }; } && |
| 9686 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9687 | { (case "(($ac_try" in |
| 9688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9689 | *) ac_try_echo=$ac_try;; |
| 9690 | esac |
| 9691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9692 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9693 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9695 | (exit $ac_status); }; }; then |
| 9696 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9697 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9698 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9700 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9701 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9702 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9703 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9704 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9705 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9706 | LIBS=$ac_check_lib_save_LIBS |
| 9707 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9708 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
| 9709 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9710 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9711 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9712 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9713 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9714 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 9715 | |
| 9716 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9717 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9718 | fi |
| 9719 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9720 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9721 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9722 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" |
| 9723 | then |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9724 | cat >conftest.$ac_ext <<_ACEOF |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9725 | /* confdefs.h. */ |
| 9726 | _ACEOF |
| 9727 | cat confdefs.h >>conftest.$ac_ext |
| 9728 | cat >>conftest.$ac_ext <<_ACEOF |
| 9729 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9730 | #include <X11/Xlib.h> |
| 9731 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9732 | int |
| 9733 | main () |
| 9734 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9735 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9736 | ; |
| 9737 | return 0; |
| 9738 | } |
| 9739 | _ACEOF |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9740 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9741 | if { (ac_try="$ac_compile" |
| 9742 | case "(($ac_try" in |
| 9743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9744 | *) ac_try_echo=$ac_try;; |
| 9745 | esac |
| 9746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9747 | (eval "$ac_compile") 2>conftest.er1 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9748 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9750 | rm -f conftest.er1 |
| 9751 | cat conftest.err >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9753 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9755 | { (case "(($ac_try" in |
| 9756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9757 | *) ac_try_echo=$ac_try;; |
| 9758 | esac |
| 9759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9760 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9761 | ac_status=$? |
| 9762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9763 | (exit $ac_status); }; } && |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9764 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9765 | { (case "(($ac_try" in |
| 9766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9767 | *) ac_try_echo=$ac_try;; |
| 9768 | esac |
| 9769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9770 | (eval "$ac_try") 2>&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9771 | ac_status=$? |
| 9772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9773 | (exit $ac_status); }; }; then |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9774 | |
| 9775 | cat >>confdefs.h <<\_ACEOF |
| 9776 | #define HAVE_LIBXRANDR 1 |
| 9777 | _ACEOF |
| 9778 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 9779 | else |
| 9780 | echo "$as_me: failed program was:" >&5 |
| 9781 | sed 's/^/| /' conftest.$ac_ext >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9782 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9783 | |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9784 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9785 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 9787 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 9788 | |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9789 | if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" |
| 9790 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9791 | { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5 |
| 9792 | echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; } |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9793 | if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then |
| 9794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9795 | else |
| 9796 | ac_check_lib_save_LIBS=$LIBS |
| 9797 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9798 | cat >conftest.$ac_ext <<_ACEOF |
| 9799 | /* confdefs.h. */ |
| 9800 | _ACEOF |
| 9801 | cat confdefs.h >>conftest.$ac_ext |
| 9802 | cat >>conftest.$ac_ext <<_ACEOF |
| 9803 | /* end confdefs.h. */ |
| 9804 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9805 | /* Override any GCC internal prototype to avoid an error. |
| 9806 | Use char because int might match the return type of a GCC |
| 9807 | builtin and then its argument prototype would still apply. */ |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9808 | #ifdef __cplusplus |
| 9809 | extern "C" |
| 9810 | #endif |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9811 | char XRenderSetPictureTransform (); |
| 9812 | int |
| 9813 | main () |
| 9814 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9815 | return XRenderSetPictureTransform (); |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9816 | ; |
| 9817 | return 0; |
| 9818 | } |
| 9819 | _ACEOF |
| 9820 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9821 | if { (ac_try="$ac_link" |
| 9822 | case "(($ac_try" in |
| 9823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9824 | *) ac_try_echo=$ac_try;; |
| 9825 | esac |
| 9826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9827 | (eval "$ac_link") 2>conftest.er1 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9828 | ac_status=$? |
| 9829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9830 | rm -f conftest.er1 |
| 9831 | cat conftest.err >&5 |
| 9832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9833 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9835 | { (case "(($ac_try" in |
| 9836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9837 | *) ac_try_echo=$ac_try;; |
| 9838 | esac |
| 9839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9840 | (eval "$ac_try") 2>&5 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9841 | ac_status=$? |
| 9842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9843 | (exit $ac_status); }; } && |
| 9844 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9845 | { (case "(($ac_try" in |
| 9846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9847 | *) ac_try_echo=$ac_try;; |
| 9848 | esac |
| 9849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9850 | (eval "$ac_try") 2>&5 |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9851 | ac_status=$? |
| 9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9853 | (exit $ac_status); }; }; then |
| 9854 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 9855 | else |
| 9856 | echo "$as_me: failed program was:" >&5 |
| 9857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9858 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9859 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9860 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9861 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9862 | rm -f core conftest.err conftest.$ac_objext \ |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9863 | conftest$ac_exeext conftest.$ac_ext |
| 9864 | LIBS=$ac_check_lib_save_LIBS |
| 9865 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9866 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5 |
| 9867 | echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 9868 | if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then |
| 9869 | |
| 9870 | cat >>confdefs.h <<\_ACEOF |
| 9871 | #define HAVE_XRENDERSETPICTURETRANSFORM 1 |
| 9872 | _ACEOF |
| 9873 | |
| 9874 | fi |
| 9875 | |
| 9876 | fi |
| 9877 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 9878 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9879 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9880 | |
| 9881 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9882 | |
Huw Davies | 4eb4546 | 2006-03-07 13:55:35 +0000 | [diff] [blame] | 9883 | |
| 9884 | for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9885 | do |
| 9886 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9887 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9888 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9891 | else |
| 9892 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9893 | /* confdefs.h. */ |
| 9894 | _ACEOF |
| 9895 | cat confdefs.h >>conftest.$ac_ext |
| 9896 | cat >>conftest.$ac_ext <<_ACEOF |
| 9897 | /* end confdefs.h. */ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9898 | #ifdef HAVE_GL_GLX_H |
| 9899 | # include <GL/glx.h> |
| 9900 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9901 | |
| 9902 | #include <$ac_header> |
| 9903 | _ACEOF |
| 9904 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9905 | if { (ac_try="$ac_compile" |
| 9906 | case "(($ac_try" in |
| 9907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9908 | *) ac_try_echo=$ac_try;; |
| 9909 | esac |
| 9910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9911 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9912 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9914 | rm -f conftest.er1 |
| 9915 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9917 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9919 | { (case "(($ac_try" in |
| 9920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9921 | *) ac_try_echo=$ac_try;; |
| 9922 | esac |
| 9923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9924 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9925 | ac_status=$? |
| 9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9927 | (exit $ac_status); }; } && |
| 9928 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9929 | { (case "(($ac_try" in |
| 9930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9931 | *) ac_try_echo=$ac_try;; |
| 9932 | esac |
| 9933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9934 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9935 | ac_status=$? |
| 9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9937 | (exit $ac_status); }; }; then |
| 9938 | eval "$as_ac_Header=yes" |
| 9939 | else |
| 9940 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9942 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9943 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9944 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9945 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9947 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9948 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9949 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9950 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9952 | cat >>confdefs.h <<_ACEOF |
| 9953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9954 | _ACEOF |
| 9955 | |
| 9956 | fi |
| 9957 | |
| 9958 | done |
| 9959 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 9960 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 9961 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9962 | { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
| 9963 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9964 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 9965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9966 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9967 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9968 | /* confdefs.h. */ |
| 9969 | _ACEOF |
| 9970 | cat confdefs.h >>conftest.$ac_ext |
| 9971 | cat >>conftest.$ac_ext <<_ACEOF |
| 9972 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9973 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9974 | int |
| 9975 | main () |
| 9976 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 9977 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9978 | ; |
| 9979 | return 0; |
| 9980 | } |
| 9981 | _ACEOF |
| 9982 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9983 | if { (ac_try="$ac_compile" |
| 9984 | case "(($ac_try" in |
| 9985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9986 | *) ac_try_echo=$ac_try;; |
| 9987 | esac |
| 9988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9989 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9990 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9992 | rm -f conftest.er1 |
| 9993 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9995 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 9996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9997 | { (case "(($ac_try" in |
| 9998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9999 | *) ac_try_echo=$ac_try;; |
| 10000 | esac |
| 10001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10002 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10003 | ac_status=$? |
| 10004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10005 | (exit $ac_status); }; } && |
| 10006 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10007 | { (case "(($ac_try" in |
| 10008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10009 | *) ac_try_echo=$ac_try;; |
| 10010 | esac |
| 10011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10012 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10013 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10015 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 10016 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 10017 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10018 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10020 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10021 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 10022 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10023 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10024 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 10026 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10027 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10028 | { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
| 10029 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10030 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 10031 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10032 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10033 | { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
| 10034 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10035 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 10036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10037 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10038 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 10039 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10040 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10041 | /* confdefs.h. */ |
| 10042 | _ACEOF |
| 10043 | cat confdefs.h >>conftest.$ac_ext |
| 10044 | cat >>conftest.$ac_ext <<_ACEOF |
| 10045 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10046 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10047 | /* Override any GCC internal prototype to avoid an error. |
| 10048 | Use char because int might match the return type of a GCC |
| 10049 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10050 | #ifdef __cplusplus |
| 10051 | extern "C" |
| 10052 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10053 | char glXCreateContext (); |
| 10054 | int |
| 10055 | main () |
| 10056 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10057 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10058 | ; |
| 10059 | return 0; |
| 10060 | } |
| 10061 | _ACEOF |
| 10062 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10063 | if { (ac_try="$ac_link" |
| 10064 | case "(($ac_try" in |
| 10065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10066 | *) ac_try_echo=$ac_try;; |
| 10067 | esac |
| 10068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10069 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10070 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10072 | rm -f conftest.er1 |
| 10073 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10075 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10077 | { (case "(($ac_try" in |
| 10078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10079 | *) ac_try_echo=$ac_try;; |
| 10080 | esac |
| 10081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10082 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10083 | ac_status=$? |
| 10084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10085 | (exit $ac_status); }; } && |
| 10086 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10087 | { (case "(($ac_try" in |
| 10088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10089 | *) ac_try_echo=$ac_try;; |
| 10090 | esac |
| 10091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10092 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10093 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10095 | (exit $ac_status); }; }; then |
| 10096 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10097 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10098 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10100 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10101 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10102 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10103 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10104 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10105 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10106 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10107 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10108 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
| 10109 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10110 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 10111 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10112 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10113 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10114 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10115 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 10116 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 10117 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 10118 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10119 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10120 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 10121 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10122 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 10123 | |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 10124 | else |
| 10125 | if test -f /usr/X11R6/lib/libGL.a |
| 10126 | then |
| 10127 | { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 10128 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 10129 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 10130 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 10131 | { (exit 1); exit 1; }; } |
| 10132 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10133 | fi |
Anderson Lizardo | 5a2da4e | 2005-07-25 11:12:11 +0000 | [diff] [blame] | 10134 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10135 | { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
| 10136 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10137 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 10138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10139 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10140 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 10141 | LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10142 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10143 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10144 | /* confdefs.h. */ |
| 10145 | _ACEOF |
| 10146 | cat confdefs.h >>conftest.$ac_ext |
| 10147 | cat >>conftest.$ac_ext <<_ACEOF |
| 10148 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10149 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10150 | /* Override any GCC internal prototype to avoid an error. |
| 10151 | Use char because int might match the return type of a GCC |
| 10152 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10153 | #ifdef __cplusplus |
| 10154 | extern "C" |
| 10155 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10156 | char gluLookAt (); |
| 10157 | int |
| 10158 | main () |
| 10159 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10160 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10161 | ; |
| 10162 | return 0; |
| 10163 | } |
| 10164 | _ACEOF |
| 10165 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10166 | if { (ac_try="$ac_link" |
| 10167 | case "(($ac_try" in |
| 10168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10169 | *) ac_try_echo=$ac_try;; |
| 10170 | esac |
| 10171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10172 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10173 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10175 | rm -f conftest.er1 |
| 10176 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10178 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10180 | { (case "(($ac_try" in |
| 10181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10182 | *) ac_try_echo=$ac_try;; |
| 10183 | esac |
| 10184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10185 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10186 | ac_status=$? |
| 10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10188 | (exit $ac_status); }; } && |
| 10189 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10190 | { (case "(($ac_try" in |
| 10191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10192 | *) ac_try_echo=$ac_try;; |
| 10193 | esac |
| 10194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10195 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10196 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10198 | (exit $ac_status); }; }; then |
| 10199 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10200 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10201 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10203 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10204 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10205 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10206 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10207 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10208 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10209 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10210 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10211 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
| 10212 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10213 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 10214 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10215 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10216 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 10217 | fi |
| 10218 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10219 | fi |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10220 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10221 | { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 |
| 10222 | echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; } |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10223 | if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then |
| 10224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10225 | else |
| 10226 | ac_check_lib_save_LIBS=$LIBS |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 10227 | LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10228 | cat >conftest.$ac_ext <<_ACEOF |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10229 | /* confdefs.h. */ |
| 10230 | _ACEOF |
| 10231 | cat confdefs.h >>conftest.$ac_ext |
| 10232 | cat >>conftest.$ac_ext <<_ACEOF |
| 10233 | /* end confdefs.h. */ |
| 10234 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10235 | /* Override any GCC internal prototype to avoid an error. |
| 10236 | Use char because int might match the return type of a GCC |
| 10237 | builtin and then its argument prototype would still apply. */ |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10238 | #ifdef __cplusplus |
| 10239 | extern "C" |
| 10240 | #endif |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10241 | char glutMainLoop (); |
| 10242 | int |
| 10243 | main () |
| 10244 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10245 | return glutMainLoop (); |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10246 | ; |
| 10247 | return 0; |
| 10248 | } |
| 10249 | _ACEOF |
| 10250 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10251 | if { (ac_try="$ac_link" |
| 10252 | case "(($ac_try" in |
| 10253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10254 | *) ac_try_echo=$ac_try;; |
| 10255 | esac |
| 10256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10257 | (eval "$ac_link") 2>conftest.er1 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10258 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10260 | rm -f conftest.er1 |
| 10261 | cat conftest.err >&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10263 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10265 | { (case "(($ac_try" in |
| 10266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10267 | *) ac_try_echo=$ac_try;; |
| 10268 | esac |
| 10269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10270 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10271 | ac_status=$? |
| 10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10273 | (exit $ac_status); }; } && |
| 10274 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10275 | { (case "(($ac_try" in |
| 10276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10277 | *) ac_try_echo=$ac_try;; |
| 10278 | esac |
| 10279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10280 | (eval "$ac_try") 2>&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10281 | ac_status=$? |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10283 | (exit $ac_status); }; }; then |
| 10284 | ac_cv_lib_glut_glutMainLoop=yes |
| 10285 | else |
| 10286 | echo "$as_me: failed program was:" >&5 |
| 10287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10288 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10289 | ac_cv_lib_glut_glutMainLoop=no |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10290 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10291 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10292 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10293 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10294 | LIBS=$ac_check_lib_save_LIBS |
| 10295 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10296 | { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 |
| 10297 | echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; } |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10298 | if test $ac_cv_lib_glut_glutMainLoop = yes; then |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 10299 | GLUT_LIBS="-lglut -lXmu -lXi" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 10300 | |
| 10301 | GLUT32FILES='$(GLUT32FILES)' |
| 10302 | |
| 10303 | fi |
| 10304 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 10305 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 10306 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 10307 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10308 | NASLIBS="" |
| 10309 | |
| 10310 | |
| 10311 | for ac_header in audio/audiolib.h |
| 10312 | do |
| 10313 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10315 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10317 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10319 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10320 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10321 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10322 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10323 | else |
| 10324 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10325 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10326 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10327 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10328 | /* confdefs.h. */ |
| 10329 | _ACEOF |
| 10330 | cat confdefs.h >>conftest.$ac_ext |
| 10331 | cat >>conftest.$ac_ext <<_ACEOF |
| 10332 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10333 | $ac_includes_default |
| 10334 | #include <$ac_header> |
| 10335 | _ACEOF |
| 10336 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10337 | if { (ac_try="$ac_compile" |
| 10338 | case "(($ac_try" in |
| 10339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10340 | *) ac_try_echo=$ac_try;; |
| 10341 | esac |
| 10342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10343 | (eval "$ac_compile") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10344 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10346 | rm -f conftest.er1 |
| 10347 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10349 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10351 | { (case "(($ac_try" in |
| 10352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10353 | *) ac_try_echo=$ac_try;; |
| 10354 | esac |
| 10355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10356 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10357 | ac_status=$? |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); }; } && |
| 10360 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10361 | { (case "(($ac_try" in |
| 10362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10363 | *) ac_try_echo=$ac_try;; |
| 10364 | esac |
| 10365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10366 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10367 | ac_status=$? |
| 10368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10369 | (exit $ac_status); }; }; then |
| 10370 | ac_header_compiler=yes |
| 10371 | else |
| 10372 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10374 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10375 | ac_header_compiler=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10376 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10377 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10379 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10380 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10381 | |
| 10382 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10383 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10384 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10385 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10386 | /* confdefs.h. */ |
| 10387 | _ACEOF |
| 10388 | cat confdefs.h >>conftest.$ac_ext |
| 10389 | cat >>conftest.$ac_ext <<_ACEOF |
| 10390 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10391 | #include <$ac_header> |
| 10392 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10393 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10394 | case "(($ac_try" in |
| 10395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10396 | *) ac_try_echo=$ac_try;; |
| 10397 | esac |
| 10398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10399 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10400 | ac_status=$? |
| 10401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10402 | rm -f conftest.er1 |
| 10403 | cat conftest.err >&5 |
| 10404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10405 | (exit $ac_status); } >/dev/null; then |
| 10406 | if test -s conftest.err; then |
| 10407 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10409 | else |
| 10410 | ac_cpp_err= |
| 10411 | fi |
| 10412 | else |
| 10413 | ac_cpp_err=yes |
| 10414 | fi |
| 10415 | if test -z "$ac_cpp_err"; then |
| 10416 | ac_header_preproc=yes |
| 10417 | else |
| 10418 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10420 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10421 | ac_header_preproc=no |
| 10422 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10423 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10424 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10425 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10426 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10427 | |
| 10428 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10429 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10430 | yes:no: ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10431 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10432 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10433 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10434 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10435 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10436 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10437 | no:yes:* ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10438 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10439 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10440 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10441 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10442 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10443 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10444 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10445 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10446 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10447 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10448 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10449 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10450 | ( cat <<\_ASBOX |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10451 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10452 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10453 | ## ------------------------------------ ## |
| 10454 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10455 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10456 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10457 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10458 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10460 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10462 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10463 | eval "$as_ac_Header=\$ac_header_preproc" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10464 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10465 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10466 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10467 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10468 | |
| 10469 | fi |
| 10470 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10471 | cat >>confdefs.h <<_ACEOF |
| 10472 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10473 | _ACEOF |
| 10474 | |
| 10475 | for ac_header in audio/soundlib.h |
| 10476 | do |
| 10477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10478 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10480 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10482 | else |
| 10483 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10484 | /* confdefs.h. */ |
| 10485 | _ACEOF |
| 10486 | cat confdefs.h >>conftest.$ac_ext |
| 10487 | cat >>conftest.$ac_ext <<_ACEOF |
| 10488 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10489 | #include <audio/audiolib.h> |
| 10490 | |
| 10491 | #include <$ac_header> |
| 10492 | _ACEOF |
| 10493 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10494 | if { (ac_try="$ac_compile" |
| 10495 | case "(($ac_try" in |
| 10496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10497 | *) ac_try_echo=$ac_try;; |
| 10498 | esac |
| 10499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10500 | (eval "$ac_compile") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10501 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10503 | rm -f conftest.er1 |
| 10504 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10506 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10507 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10508 | { (case "(($ac_try" in |
| 10509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10510 | *) ac_try_echo=$ac_try;; |
| 10511 | esac |
| 10512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10513 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10514 | ac_status=$? |
| 10515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10516 | (exit $ac_status); }; } && |
| 10517 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10518 | { (case "(($ac_try" in |
| 10519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10520 | *) ac_try_echo=$ac_try;; |
| 10521 | esac |
| 10522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10523 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10524 | ac_status=$? |
| 10525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10526 | (exit $ac_status); }; }; then |
| 10527 | eval "$as_ac_Header=yes" |
| 10528 | else |
| 10529 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10531 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10532 | eval "$as_ac_Header=no" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10533 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10534 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10536 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10537 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10538 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10539 | echo "${ECHO_T}$ac_res" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10540 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10541 | cat >>confdefs.h <<_ACEOF |
| 10542 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10543 | _ACEOF |
| 10544 | |
| 10545 | fi |
| 10546 | |
| 10547 | done |
| 10548 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10549 | { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 10550 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10551 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 10552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10553 | else |
| 10554 | ac_check_lib_save_LIBS=$LIBS |
| 10555 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 10556 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10557 | /* confdefs.h. */ |
| 10558 | _ACEOF |
| 10559 | cat confdefs.h >>conftest.$ac_ext |
| 10560 | cat >>conftest.$ac_ext <<_ACEOF |
| 10561 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10562 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10563 | /* Override any GCC internal prototype to avoid an error. |
| 10564 | Use char because int might match the return type of a GCC |
| 10565 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10566 | #ifdef __cplusplus |
| 10567 | extern "C" |
| 10568 | #endif |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10569 | char AuCreateFlow (); |
| 10570 | int |
| 10571 | main () |
| 10572 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10573 | return AuCreateFlow (); |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10574 | ; |
| 10575 | return 0; |
| 10576 | } |
| 10577 | _ACEOF |
| 10578 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10579 | if { (ac_try="$ac_link" |
| 10580 | case "(($ac_try" in |
| 10581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10582 | *) ac_try_echo=$ac_try;; |
| 10583 | esac |
| 10584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10585 | (eval "$ac_link") 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10586 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10588 | rm -f conftest.er1 |
| 10589 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10591 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10593 | { (case "(($ac_try" in |
| 10594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10595 | *) ac_try_echo=$ac_try;; |
| 10596 | esac |
| 10597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10598 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10599 | ac_status=$? |
| 10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10601 | (exit $ac_status); }; } && |
| 10602 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10603 | { (case "(($ac_try" in |
| 10604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10605 | *) ac_try_echo=$ac_try;; |
| 10606 | esac |
| 10607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10608 | (eval "$ac_try") 2>&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10609 | ac_status=$? |
| 10610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10611 | (exit $ac_status); }; }; then |
| 10612 | ac_cv_lib_audio_AuCreateFlow=yes |
| 10613 | else |
| 10614 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10616 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10617 | ac_cv_lib_audio_AuCreateFlow=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10618 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10619 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10620 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10621 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10622 | LIBS=$ac_check_lib_save_LIBS |
| 10623 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10624 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 10625 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; } |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 10626 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 10627 | |
| 10628 | cat >>confdefs.h <<\_ACEOF |
| 10629 | #define HAVE_NAS 1 |
| 10630 | _ACEOF |
| 10631 | |
| 10632 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 10633 | fi |
| 10634 | |
| 10635 | fi |
| 10636 | |
| 10637 | done |
| 10638 | |
| 10639 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 10640 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 10641 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 10642 | else |
| 10643 | XLIB="" |
| 10644 | X_CFLAGS="" |
| 10645 | X_LIBS="" |
| 10646 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 10647 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10648 | |
| 10649 | XML2LIBS="" |
| 10650 | |
| 10651 | XML2INCL="" |
| 10652 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10653 | XSLTLIBS="" |
| 10654 | |
| 10655 | XSLTINCL="" |
| 10656 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10657 | if test "$PKG_CONFIG" != "false" |
| 10658 | then |
| 10659 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 10660 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
| 10661 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10662 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10663 | |
| 10664 | for ac_header in libxml/parser.h |
| 10665 | do |
| 10666 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10668 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10672 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10673 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10674 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10675 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10676 | else |
| 10677 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10678 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10679 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10680 | cat >conftest.$ac_ext <<_ACEOF |
| 10681 | /* confdefs.h. */ |
| 10682 | _ACEOF |
| 10683 | cat confdefs.h >>conftest.$ac_ext |
| 10684 | cat >>conftest.$ac_ext <<_ACEOF |
| 10685 | /* end confdefs.h. */ |
| 10686 | $ac_includes_default |
| 10687 | #include <$ac_header> |
| 10688 | _ACEOF |
| 10689 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10690 | if { (ac_try="$ac_compile" |
| 10691 | case "(($ac_try" in |
| 10692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10693 | *) ac_try_echo=$ac_try;; |
| 10694 | esac |
| 10695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10696 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10697 | ac_status=$? |
| 10698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10699 | rm -f conftest.er1 |
| 10700 | cat conftest.err >&5 |
| 10701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10702 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10704 | { (case "(($ac_try" in |
| 10705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10706 | *) ac_try_echo=$ac_try;; |
| 10707 | esac |
| 10708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10709 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10710 | ac_status=$? |
| 10711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10712 | (exit $ac_status); }; } && |
| 10713 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10714 | { (case "(($ac_try" in |
| 10715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10716 | *) ac_try_echo=$ac_try;; |
| 10717 | esac |
| 10718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10719 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10720 | ac_status=$? |
| 10721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10722 | (exit $ac_status); }; }; then |
| 10723 | ac_header_compiler=yes |
| 10724 | else |
| 10725 | echo "$as_me: failed program was:" >&5 |
| 10726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10727 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10728 | ac_header_compiler=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10729 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10730 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10732 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10733 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10734 | |
| 10735 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10736 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10737 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10738 | cat >conftest.$ac_ext <<_ACEOF |
| 10739 | /* confdefs.h. */ |
| 10740 | _ACEOF |
| 10741 | cat confdefs.h >>conftest.$ac_ext |
| 10742 | cat >>conftest.$ac_ext <<_ACEOF |
| 10743 | /* end confdefs.h. */ |
| 10744 | #include <$ac_header> |
| 10745 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10746 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10747 | case "(($ac_try" in |
| 10748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10749 | *) ac_try_echo=$ac_try;; |
| 10750 | esac |
| 10751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10752 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10753 | ac_status=$? |
| 10754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10755 | rm -f conftest.er1 |
| 10756 | cat conftest.err >&5 |
| 10757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10758 | (exit $ac_status); } >/dev/null; then |
| 10759 | if test -s conftest.err; then |
| 10760 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10761 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10762 | else |
| 10763 | ac_cpp_err= |
| 10764 | fi |
| 10765 | else |
| 10766 | ac_cpp_err=yes |
| 10767 | fi |
| 10768 | if test -z "$ac_cpp_err"; then |
| 10769 | ac_header_preproc=yes |
| 10770 | else |
| 10771 | echo "$as_me: failed program was:" >&5 |
| 10772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10773 | |
| 10774 | ac_header_preproc=no |
| 10775 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10776 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10777 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10778 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10779 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10780 | |
| 10781 | # So? What about this header? |
| 10782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10783 | yes:no: ) |
| 10784 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10785 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10787 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10788 | ac_header_preproc=yes |
| 10789 | ;; |
| 10790 | no:yes:* ) |
| 10791 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10792 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10793 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10794 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10795 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10796 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10797 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10798 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10800 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10801 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10802 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10803 | ( cat <<\_ASBOX |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10804 | ## ------------------------------------ ## |
| 10805 | ## Report this to wine-devel@winehq.org ## |
| 10806 | ## ------------------------------------ ## |
| 10807 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10808 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10809 | ;; |
| 10810 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10811 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10813 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10815 | else |
| 10816 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10817 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10818 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10820 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10821 | |
| 10822 | fi |
| 10823 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10824 | cat >>confdefs.h <<_ACEOF |
| 10825 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10826 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10827 | { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5 |
| 10828 | echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10829 | if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10831 | else |
| 10832 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10833 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10834 | cat >conftest.$ac_ext <<_ACEOF |
| 10835 | /* confdefs.h. */ |
| 10836 | _ACEOF |
| 10837 | cat confdefs.h >>conftest.$ac_ext |
| 10838 | cat >>conftest.$ac_ext <<_ACEOF |
| 10839 | /* end confdefs.h. */ |
| 10840 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10841 | /* Override any GCC internal prototype to avoid an error. |
| 10842 | Use char because int might match the return type of a GCC |
| 10843 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10844 | #ifdef __cplusplus |
| 10845 | extern "C" |
| 10846 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10847 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10848 | int |
| 10849 | main () |
| 10850 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10851 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10852 | ; |
| 10853 | return 0; |
| 10854 | } |
| 10855 | _ACEOF |
| 10856 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10857 | if { (ac_try="$ac_link" |
| 10858 | case "(($ac_try" in |
| 10859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10860 | *) ac_try_echo=$ac_try;; |
| 10861 | esac |
| 10862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10863 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10864 | ac_status=$? |
| 10865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10866 | rm -f conftest.er1 |
| 10867 | cat conftest.err >&5 |
| 10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10869 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10871 | { (case "(($ac_try" in |
| 10872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10873 | *) ac_try_echo=$ac_try;; |
| 10874 | esac |
| 10875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10876 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10877 | ac_status=$? |
| 10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10879 | (exit $ac_status); }; } && |
| 10880 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10881 | { (case "(($ac_try" in |
| 10882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10883 | *) ac_try_echo=$ac_try;; |
| 10884 | esac |
| 10885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10886 | (eval "$ac_try") 2>&5 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10887 | ac_status=$? |
| 10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10889 | (exit $ac_status); }; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10890 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10891 | else |
| 10892 | echo "$as_me: failed program was:" >&5 |
| 10893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10894 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10895 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10896 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10897 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10898 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10899 | conftest$ac_exeext conftest.$ac_ext |
| 10900 | LIBS=$ac_check_lib_save_LIBS |
| 10901 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10902 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5 |
| 10903 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10904 | if test $ac_cv_lib_xml2_xmlParseMemory = yes; then |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10905 | |
| 10906 | cat >>confdefs.h <<\_ACEOF |
| 10907 | #define HAVE_LIBXML2 1 |
| 10908 | _ACEOF |
| 10909 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 10910 | XML2LIBS="$ac_xml_libs" |
| 10911 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 10912 | fi |
| 10913 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10914 | { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5 |
| 10915 | echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; } |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10916 | if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then |
| 10917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10918 | else |
| 10919 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 10920 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10921 | cat >conftest.$ac_ext <<_ACEOF |
| 10922 | /* confdefs.h. */ |
| 10923 | _ACEOF |
| 10924 | cat confdefs.h >>conftest.$ac_ext |
| 10925 | cat >>conftest.$ac_ext <<_ACEOF |
| 10926 | /* end confdefs.h. */ |
| 10927 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10928 | /* Override any GCC internal prototype to avoid an error. |
| 10929 | Use char because int might match the return type of a GCC |
| 10930 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10931 | #ifdef __cplusplus |
| 10932 | extern "C" |
| 10933 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10934 | char xmlReadMemory (); |
| 10935 | int |
| 10936 | main () |
| 10937 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10938 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10939 | ; |
| 10940 | return 0; |
| 10941 | } |
| 10942 | _ACEOF |
| 10943 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10944 | if { (ac_try="$ac_link" |
| 10945 | case "(($ac_try" in |
| 10946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10947 | *) ac_try_echo=$ac_try;; |
| 10948 | esac |
| 10949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10950 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10951 | ac_status=$? |
| 10952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10953 | rm -f conftest.er1 |
| 10954 | cat conftest.err >&5 |
| 10955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10956 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10958 | { (case "(($ac_try" in |
| 10959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10960 | *) ac_try_echo=$ac_try;; |
| 10961 | esac |
| 10962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10963 | (eval "$ac_try") 2>&5 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10964 | ac_status=$? |
| 10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10966 | (exit $ac_status); }; } && |
| 10967 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10968 | { (case "(($ac_try" in |
| 10969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10970 | *) ac_try_echo=$ac_try;; |
| 10971 | esac |
| 10972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10973 | (eval "$ac_try") 2>&5 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10974 | ac_status=$? |
| 10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10976 | (exit $ac_status); }; }; then |
| 10977 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 10978 | else |
| 10979 | echo "$as_me: failed program was:" >&5 |
| 10980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10981 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10982 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10983 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10984 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10985 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10986 | conftest$ac_exeext conftest.$ac_ext |
| 10987 | LIBS=$ac_check_lib_save_LIBS |
| 10988 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10989 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5 |
| 10990 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 10991 | if test $ac_cv_lib_xml2_xmlReadMemory = yes; then |
| 10992 | |
| 10993 | cat >>confdefs.h <<\_ACEOF |
| 10994 | #define HAVE_XMLREADMEMORY 1 |
| 10995 | _ACEOF |
| 10996 | |
| 10997 | fi |
| 10998 | |
| 10999 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 11000 | fi |
| 11001 | |
| 11002 | done |
| 11003 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 11004 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 11005 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
| 11006 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11007 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
| 11008 | |
| 11009 | |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 11010 | for ac_header in libxslt/pattern.h libxslt/transform.h |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11011 | do |
| 11012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11013 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11017 | else |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 11018 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11019 | /* confdefs.h. */ |
| 11020 | _ACEOF |
| 11021 | cat confdefs.h >>conftest.$ac_ext |
| 11022 | cat >>conftest.$ac_ext <<_ACEOF |
| 11023 | /* end confdefs.h. */ |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 11024 | #ifdef HAVE_LIBXSLT_PATTERN_H |
| 11025 | # include <libxslt/pattern.h> |
| 11026 | #endif |
| 11027 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11028 | #include <$ac_header> |
| 11029 | _ACEOF |
| 11030 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11031 | if { (ac_try="$ac_compile" |
| 11032 | case "(($ac_try" in |
| 11033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11034 | *) ac_try_echo=$ac_try;; |
| 11035 | esac |
| 11036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11037 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11038 | ac_status=$? |
| 11039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11040 | rm -f conftest.er1 |
| 11041 | cat conftest.err >&5 |
| 11042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11043 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11045 | { (case "(($ac_try" in |
| 11046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11047 | *) ac_try_echo=$ac_try;; |
| 11048 | esac |
| 11049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11050 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11051 | ac_status=$? |
| 11052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11053 | (exit $ac_status); }; } && |
| 11054 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11055 | { (case "(($ac_try" in |
| 11056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11057 | *) ac_try_echo=$ac_try;; |
| 11058 | esac |
| 11059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11060 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11061 | ac_status=$? |
| 11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11063 | (exit $ac_status); }; }; then |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 11064 | eval "$as_ac_Header=yes" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11065 | else |
| 11066 | echo "$as_me: failed program was:" >&5 |
| 11067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11068 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11069 | eval "$as_ac_Header=no" |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11070 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11071 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11073 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11074 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11075 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11076 | echo "${ECHO_T}$ac_res" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11077 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11078 | cat >>confdefs.h <<_ACEOF |
| 11079 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11080 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11081 | { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5 |
| 11082 | echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11083 | if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then |
| 11084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11085 | else |
| 11086 | ac_check_lib_save_LIBS=$LIBS |
| 11087 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
| 11088 | cat >conftest.$ac_ext <<_ACEOF |
| 11089 | /* confdefs.h. */ |
| 11090 | _ACEOF |
| 11091 | cat confdefs.h >>conftest.$ac_ext |
| 11092 | cat >>conftest.$ac_ext <<_ACEOF |
| 11093 | /* end confdefs.h. */ |
| 11094 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11095 | /* Override any GCC internal prototype to avoid an error. |
| 11096 | Use char because int might match the return type of a GCC |
| 11097 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11098 | #ifdef __cplusplus |
| 11099 | extern "C" |
| 11100 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11101 | char xsltCompilePattern (); |
| 11102 | int |
| 11103 | main () |
| 11104 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11105 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11106 | ; |
| 11107 | return 0; |
| 11108 | } |
| 11109 | _ACEOF |
| 11110 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11111 | if { (ac_try="$ac_link" |
| 11112 | case "(($ac_try" in |
| 11113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11114 | *) ac_try_echo=$ac_try;; |
| 11115 | esac |
| 11116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11117 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11118 | ac_status=$? |
| 11119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11120 | rm -f conftest.er1 |
| 11121 | cat conftest.err >&5 |
| 11122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11123 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11125 | { (case "(($ac_try" in |
| 11126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11127 | *) ac_try_echo=$ac_try;; |
| 11128 | esac |
| 11129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11130 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11131 | ac_status=$? |
| 11132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11133 | (exit $ac_status); }; } && |
| 11134 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11135 | { (case "(($ac_try" in |
| 11136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11137 | *) ac_try_echo=$ac_try;; |
| 11138 | esac |
| 11139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11140 | (eval "$ac_try") 2>&5 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11141 | ac_status=$? |
| 11142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11143 | (exit $ac_status); }; }; then |
| 11144 | ac_cv_lib_xslt_xsltCompilePattern=yes |
| 11145 | else |
| 11146 | echo "$as_me: failed program was:" >&5 |
| 11147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11148 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11149 | ac_cv_lib_xslt_xsltCompilePattern=no |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11150 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11151 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11152 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11153 | conftest$ac_exeext conftest.$ac_ext |
| 11154 | LIBS=$ac_check_lib_save_LIBS |
| 11155 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11156 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5 |
| 11157 | echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 11158 | if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then |
| 11159 | |
| 11160 | cat >>confdefs.h <<\_ACEOF |
| 11161 | #define HAVE_LIBXSLT 1 |
| 11162 | _ACEOF |
| 11163 | |
| 11164 | XSLTLIBS="$ac_xslt_libs" |
| 11165 | XSLTINCL="$ac_xslt_cflags" |
| 11166 | fi |
| 11167 | |
| 11168 | |
| 11169 | fi |
| 11170 | |
| 11171 | done |
| 11172 | |
| 11173 | CPPFLAGS="$ac_save_CPPFLAGS" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 11174 | fi |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 11175 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11176 | HALINCL="" |
| 11177 | |
| 11178 | if test "$PKG_CONFIG" != "false" |
| 11179 | then |
| 11180 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | d01063e | 2006-06-22 12:07:57 +0200 | [diff] [blame] | 11181 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
| 11182 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11183 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 11184 | |
| 11185 | |
| 11186 | for ac_header in dbus/dbus.h hal/libhal.h |
| 11187 | do |
| 11188 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11189 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11190 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11192 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11194 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11195 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11196 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11197 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11198 | else |
| 11199 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11200 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11201 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11202 | cat >conftest.$ac_ext <<_ACEOF |
| 11203 | /* confdefs.h. */ |
| 11204 | _ACEOF |
| 11205 | cat confdefs.h >>conftest.$ac_ext |
| 11206 | cat >>conftest.$ac_ext <<_ACEOF |
| 11207 | /* end confdefs.h. */ |
| 11208 | $ac_includes_default |
| 11209 | #include <$ac_header> |
| 11210 | _ACEOF |
| 11211 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11212 | if { (ac_try="$ac_compile" |
| 11213 | case "(($ac_try" in |
| 11214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11215 | *) ac_try_echo=$ac_try;; |
| 11216 | esac |
| 11217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11218 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11219 | ac_status=$? |
| 11220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11221 | rm -f conftest.er1 |
| 11222 | cat conftest.err >&5 |
| 11223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11224 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11226 | { (case "(($ac_try" in |
| 11227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11228 | *) ac_try_echo=$ac_try;; |
| 11229 | esac |
| 11230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11231 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11232 | ac_status=$? |
| 11233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11234 | (exit $ac_status); }; } && |
| 11235 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11236 | { (case "(($ac_try" in |
| 11237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11238 | *) ac_try_echo=$ac_try;; |
| 11239 | esac |
| 11240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11241 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11242 | ac_status=$? |
| 11243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11244 | (exit $ac_status); }; }; then |
| 11245 | ac_header_compiler=yes |
| 11246 | else |
| 11247 | echo "$as_me: failed program was:" >&5 |
| 11248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11249 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11250 | ac_header_compiler=no |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11251 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11252 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11254 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11255 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11256 | |
| 11257 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11258 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11259 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11260 | cat >conftest.$ac_ext <<_ACEOF |
| 11261 | /* confdefs.h. */ |
| 11262 | _ACEOF |
| 11263 | cat confdefs.h >>conftest.$ac_ext |
| 11264 | cat >>conftest.$ac_ext <<_ACEOF |
| 11265 | /* end confdefs.h. */ |
| 11266 | #include <$ac_header> |
| 11267 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11268 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11269 | case "(($ac_try" in |
| 11270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11271 | *) ac_try_echo=$ac_try;; |
| 11272 | esac |
| 11273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11274 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11275 | ac_status=$? |
| 11276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11277 | rm -f conftest.er1 |
| 11278 | cat conftest.err >&5 |
| 11279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11280 | (exit $ac_status); } >/dev/null; then |
| 11281 | if test -s conftest.err; then |
| 11282 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11284 | else |
| 11285 | ac_cpp_err= |
| 11286 | fi |
| 11287 | else |
| 11288 | ac_cpp_err=yes |
| 11289 | fi |
| 11290 | if test -z "$ac_cpp_err"; then |
| 11291 | ac_header_preproc=yes |
| 11292 | else |
| 11293 | echo "$as_me: failed program was:" >&5 |
| 11294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11295 | |
| 11296 | ac_header_preproc=no |
| 11297 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11298 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11299 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11300 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11301 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11302 | |
| 11303 | # So? What about this header? |
| 11304 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11305 | yes:no: ) |
| 11306 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11307 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11308 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11309 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11310 | ac_header_preproc=yes |
| 11311 | ;; |
| 11312 | no:yes:* ) |
| 11313 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11314 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11315 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11316 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11317 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11318 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11319 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11320 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11321 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11322 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11323 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11324 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11325 | ( cat <<\_ASBOX |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11326 | ## ------------------------------------ ## |
| 11327 | ## Report this to wine-devel@winehq.org ## |
| 11328 | ## ------------------------------------ ## |
| 11329 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11330 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11331 | ;; |
| 11332 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11333 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11337 | else |
| 11338 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11339 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11340 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11341 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11342 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11343 | |
| 11344 | fi |
| 11345 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11346 | cat >>confdefs.h <<_ACEOF |
| 11347 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11348 | _ACEOF |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11349 | |
| 11350 | fi |
| 11351 | |
| 11352 | done |
| 11353 | |
| 11354 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" |
| 11355 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11356 | { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5 |
| 11357 | echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11358 | if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then |
| 11359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11360 | else |
| 11361 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11362 | LIBS="-lhal $LIBS" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11363 | cat >conftest.$ac_ext <<_ACEOF |
| 11364 | /* confdefs.h. */ |
| 11365 | _ACEOF |
| 11366 | cat confdefs.h >>conftest.$ac_ext |
| 11367 | cat >>conftest.$ac_ext <<_ACEOF |
| 11368 | /* end confdefs.h. */ |
| 11369 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11370 | /* Override any GCC internal prototype to avoid an error. |
| 11371 | Use char because int might match the return type of a GCC |
| 11372 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11373 | #ifdef __cplusplus |
| 11374 | extern "C" |
| 11375 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11376 | char libhal_ctx_new (); |
| 11377 | int |
| 11378 | main () |
| 11379 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11380 | return libhal_ctx_new (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11381 | ; |
| 11382 | return 0; |
| 11383 | } |
| 11384 | _ACEOF |
| 11385 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11386 | if { (ac_try="$ac_link" |
| 11387 | case "(($ac_try" in |
| 11388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11389 | *) ac_try_echo=$ac_try;; |
| 11390 | esac |
| 11391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11392 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11393 | ac_status=$? |
| 11394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11395 | rm -f conftest.er1 |
| 11396 | cat conftest.err >&5 |
| 11397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11398 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11400 | { (case "(($ac_try" in |
| 11401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11402 | *) ac_try_echo=$ac_try;; |
| 11403 | esac |
| 11404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11405 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11406 | ac_status=$? |
| 11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11408 | (exit $ac_status); }; } && |
| 11409 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11410 | { (case "(($ac_try" in |
| 11411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11412 | *) ac_try_echo=$ac_try;; |
| 11413 | esac |
| 11414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11415 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11416 | ac_status=$? |
| 11417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11418 | (exit $ac_status); }; }; then |
| 11419 | ac_cv_lib_hal_libhal_ctx_new=yes |
| 11420 | else |
| 11421 | echo "$as_me: failed program was:" >&5 |
| 11422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11423 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11424 | ac_cv_lib_hal_libhal_ctx_new=no |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11425 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11426 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11427 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11428 | conftest$ac_exeext conftest.$ac_ext |
| 11429 | LIBS=$ac_check_lib_save_LIBS |
| 11430 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11431 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5 |
| 11432 | echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11433 | if test $ac_cv_lib_hal_libhal_ctx_new = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11434 | { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5 |
| 11435 | echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; } |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11436 | if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then |
| 11437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11438 | else |
| 11439 | ac_check_lib_save_LIBS=$LIBS |
| 11440 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" |
| 11441 | cat >conftest.$ac_ext <<_ACEOF |
| 11442 | /* confdefs.h. */ |
| 11443 | _ACEOF |
| 11444 | cat confdefs.h >>conftest.$ac_ext |
| 11445 | cat >>conftest.$ac_ext <<_ACEOF |
| 11446 | /* end confdefs.h. */ |
| 11447 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11448 | /* Override any GCC internal prototype to avoid an error. |
| 11449 | Use char because int might match the return type of a GCC |
| 11450 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11451 | #ifdef __cplusplus |
| 11452 | extern "C" |
| 11453 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11454 | char dbus_connection_close (); |
| 11455 | int |
| 11456 | main () |
| 11457 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11458 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11459 | ; |
| 11460 | return 0; |
| 11461 | } |
| 11462 | _ACEOF |
| 11463 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11464 | if { (ac_try="$ac_link" |
| 11465 | case "(($ac_try" in |
| 11466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11467 | *) ac_try_echo=$ac_try;; |
| 11468 | esac |
| 11469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11470 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11471 | ac_status=$? |
| 11472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11473 | rm -f conftest.er1 |
| 11474 | cat conftest.err >&5 |
| 11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11476 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11478 | { (case "(($ac_try" in |
| 11479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11480 | *) ac_try_echo=$ac_try;; |
| 11481 | esac |
| 11482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11483 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11484 | ac_status=$? |
| 11485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11486 | (exit $ac_status); }; } && |
| 11487 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11488 | { (case "(($ac_try" in |
| 11489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11490 | *) ac_try_echo=$ac_try;; |
| 11491 | esac |
| 11492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11493 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11494 | ac_status=$? |
| 11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11496 | (exit $ac_status); }; }; then |
| 11497 | ac_cv_lib_dbus_1_dbus_connection_close=yes |
| 11498 | else |
| 11499 | echo "$as_me: failed program was:" >&5 |
| 11500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11501 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11502 | ac_cv_lib_dbus_1_dbus_connection_close=no |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11503 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11504 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11505 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11506 | conftest$ac_exeext conftest.$ac_ext |
| 11507 | LIBS=$ac_check_lib_save_LIBS |
| 11508 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11509 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5 |
| 11510 | echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11511 | if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11512 | |
| 11513 | cat >>confdefs.h <<\_ACEOF |
| 11514 | #define HAVE_LIBHAL 1 |
| 11515 | _ACEOF |
| 11516 | |
| 11517 | HALINCL="$ac_hal_cflags" |
| 11518 | fi |
| 11519 | |
| 11520 | fi |
| 11521 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 11522 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 11523 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11524 | fi |
| 11525 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11526 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11527 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 11528 | then |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11529 | if test "$ac_cv_header_ncurses_h" = "yes" |
| 11530 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11531 | { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
| 11532 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11533 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 11534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11535 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11536 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11537 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11538 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11539 | /* confdefs.h. */ |
| 11540 | _ACEOF |
| 11541 | cat confdefs.h >>conftest.$ac_ext |
| 11542 | cat >>conftest.$ac_ext <<_ACEOF |
| 11543 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11544 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11545 | /* Override any GCC internal prototype to avoid an error. |
| 11546 | Use char because int might match the return type of a GCC |
| 11547 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11548 | #ifdef __cplusplus |
| 11549 | extern "C" |
| 11550 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11551 | char waddch (); |
| 11552 | int |
| 11553 | main () |
| 11554 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11555 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11556 | ; |
| 11557 | return 0; |
| 11558 | } |
| 11559 | _ACEOF |
| 11560 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11561 | if { (ac_try="$ac_link" |
| 11562 | case "(($ac_try" in |
| 11563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11564 | *) ac_try_echo=$ac_try;; |
| 11565 | esac |
| 11566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11567 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11568 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11570 | rm -f conftest.er1 |
| 11571 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11573 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11575 | { (case "(($ac_try" in |
| 11576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11577 | *) ac_try_echo=$ac_try;; |
| 11578 | esac |
| 11579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11580 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11581 | ac_status=$? |
| 11582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11583 | (exit $ac_status); }; } && |
| 11584 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11585 | { (case "(($ac_try" in |
| 11586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11587 | *) ac_try_echo=$ac_try;; |
| 11588 | esac |
| 11589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11590 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11591 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11593 | (exit $ac_status); }; }; then |
| 11594 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11595 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11596 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11598 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11599 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11600 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11601 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11602 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11603 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11604 | LIBS=$ac_check_lib_save_LIBS |
| 11605 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11606 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
| 11607 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11608 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11609 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11610 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11611 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11612 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11613 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11614 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11615 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11616 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11617 | elif test "$ac_cv_header_curses_h" = "yes" |
| 11618 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11619 | { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
| 11620 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11621 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 11622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11623 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11624 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11625 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11626 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11627 | /* confdefs.h. */ |
| 11628 | _ACEOF |
| 11629 | cat confdefs.h >>conftest.$ac_ext |
| 11630 | cat >>conftest.$ac_ext <<_ACEOF |
| 11631 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11632 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11633 | /* Override any GCC internal prototype to avoid an error. |
| 11634 | Use char because int might match the return type of a GCC |
| 11635 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11636 | #ifdef __cplusplus |
| 11637 | extern "C" |
| 11638 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11639 | char waddch (); |
| 11640 | int |
| 11641 | main () |
| 11642 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11643 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11644 | ; |
| 11645 | return 0; |
| 11646 | } |
| 11647 | _ACEOF |
| 11648 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11649 | if { (ac_try="$ac_link" |
| 11650 | case "(($ac_try" in |
| 11651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11652 | *) ac_try_echo=$ac_try;; |
| 11653 | esac |
| 11654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11655 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11656 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11658 | rm -f conftest.er1 |
| 11659 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11661 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11663 | { (case "(($ac_try" in |
| 11664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11665 | *) ac_try_echo=$ac_try;; |
| 11666 | esac |
| 11667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11668 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11669 | ac_status=$? |
| 11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11671 | (exit $ac_status); }; } && |
| 11672 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11673 | { (case "(($ac_try" in |
| 11674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11675 | *) ac_try_echo=$ac_try;; |
| 11676 | esac |
| 11677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11678 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11679 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11681 | (exit $ac_status); }; }; then |
| 11682 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11683 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11684 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11686 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11687 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11688 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11689 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11690 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11691 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11692 | LIBS=$ac_check_lib_save_LIBS |
| 11693 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11694 | { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
| 11695 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11696 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11697 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11698 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 11699 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11700 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11701 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11702 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11703 | fi |
| 11704 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 11705 | fi |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 11706 | ac_save_LIBS="$LIBS" |
| 11707 | LIBS="$LIBS $CURSESLIBS" |
| 11708 | |
| 11709 | for ac_func in mousemask |
| 11710 | do |
| 11711 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11712 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11713 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11714 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11716 | else |
| 11717 | cat >conftest.$ac_ext <<_ACEOF |
| 11718 | /* confdefs.h. */ |
| 11719 | _ACEOF |
| 11720 | cat confdefs.h >>conftest.$ac_ext |
| 11721 | cat >>conftest.$ac_ext <<_ACEOF |
| 11722 | /* end confdefs.h. */ |
| 11723 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11725 | #define $ac_func innocuous_$ac_func |
| 11726 | |
| 11727 | /* System header to define __stub macros and hopefully few prototypes, |
| 11728 | which can conflict with char $ac_func (); below. |
| 11729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11730 | <limits.h> exists even on freestanding compilers. */ |
| 11731 | |
| 11732 | #ifdef __STDC__ |
| 11733 | # include <limits.h> |
| 11734 | #else |
| 11735 | # include <assert.h> |
| 11736 | #endif |
| 11737 | |
| 11738 | #undef $ac_func |
| 11739 | |
| 11740 | /* Override any GCC internal prototype to avoid an error. |
| 11741 | Use char because int might match the return type of a GCC |
| 11742 | builtin and then its argument prototype would still apply. */ |
| 11743 | #ifdef __cplusplus |
| 11744 | extern "C" |
| 11745 | #endif |
| 11746 | char $ac_func (); |
| 11747 | /* The GNU C library defines this for functions which it implements |
| 11748 | to always fail with ENOSYS. Some functions are actually named |
| 11749 | something starting with __ and the normal name is an alias. */ |
| 11750 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11751 | choke me |
| 11752 | #endif |
| 11753 | |
| 11754 | int |
| 11755 | main () |
| 11756 | { |
| 11757 | return $ac_func (); |
| 11758 | ; |
| 11759 | return 0; |
| 11760 | } |
| 11761 | _ACEOF |
| 11762 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11763 | if { (ac_try="$ac_link" |
| 11764 | case "(($ac_try" in |
| 11765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11766 | *) ac_try_echo=$ac_try;; |
| 11767 | esac |
| 11768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11769 | (eval "$ac_link") 2>conftest.er1 |
| 11770 | ac_status=$? |
| 11771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11772 | rm -f conftest.er1 |
| 11773 | cat conftest.err >&5 |
| 11774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11775 | (exit $ac_status); } && |
| 11776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11777 | { (case "(($ac_try" in |
| 11778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11779 | *) ac_try_echo=$ac_try;; |
| 11780 | esac |
| 11781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11782 | (eval "$ac_try") 2>&5 |
| 11783 | ac_status=$? |
| 11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11785 | (exit $ac_status); }; } && |
| 11786 | { ac_try='test -s conftest$ac_exeext' |
| 11787 | { (case "(($ac_try" in |
| 11788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11789 | *) ac_try_echo=$ac_try;; |
| 11790 | esac |
| 11791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11792 | (eval "$ac_try") 2>&5 |
| 11793 | ac_status=$? |
| 11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11795 | (exit $ac_status); }; }; then |
| 11796 | eval "$as_ac_var=yes" |
| 11797 | else |
| 11798 | echo "$as_me: failed program was:" >&5 |
| 11799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11800 | |
| 11801 | eval "$as_ac_var=no" |
| 11802 | fi |
| 11803 | |
| 11804 | rm -f core conftest.err conftest.$ac_objext \ |
| 11805 | conftest$ac_exeext conftest.$ac_ext |
| 11806 | fi |
| 11807 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11808 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11809 | echo "${ECHO_T}$ac_res" >&6; } |
| 11810 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11811 | cat >>confdefs.h <<_ACEOF |
| 11812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11813 | _ACEOF |
| 11814 | |
| 11815 | fi |
| 11816 | done |
| 11817 | |
| 11818 | LIBS="$ac_save_LIBS" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 11819 | fi |
| 11820 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11821 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11822 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 11823 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11826 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 11827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11828 | else |
| 11829 | if test -n "$sane_devel"; then |
| 11830 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 11831 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11833 | for as_dir in $PATH |
| 11834 | do |
| 11835 | IFS=$as_save_IFS |
| 11836 | test -z "$as_dir" && as_dir=. |
| 11837 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11839 | ac_cv_prog_sane_devel="sane-config" |
| 11840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11841 | break 2 |
| 11842 | fi |
| 11843 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11844 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11845 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11846 | |
| 11847 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 11848 | fi |
| 11849 | fi |
| 11850 | sane_devel=$ac_cv_prog_sane_devel |
| 11851 | if test -n "$sane_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11852 | { echo "$as_me:$LINENO: result: $sane_devel" >&5 |
| 11853 | echo "${ECHO_T}$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11854 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11855 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11856 | echo "${ECHO_T}no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11857 | fi |
| 11858 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11859 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 11860 | SANELIBS="" |
| 11861 | |
| 11862 | SANEINCL="" |
| 11863 | |
| 11864 | if test "$sane_devel" != "no" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11865 | then |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11866 | SANELIBS="`$sane_devel --libs`" |
| 11867 | SANEINCL="`$sane_devel --cflags`" |
| 11868 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11869 | ac_save_LIBS="$LIBS" |
| 11870 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 11871 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11872 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11873 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 11874 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11875 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 11876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11877 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11878 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 11879 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11880 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11881 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11882 | { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 11883 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11884 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11885 | /* confdefs.h. */ |
| 11886 | _ACEOF |
| 11887 | cat confdefs.h >>conftest.$ac_ext |
| 11888 | cat >>conftest.$ac_ext <<_ACEOF |
| 11889 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11890 | $ac_includes_default |
| 11891 | #include <sane/sane.h> |
| 11892 | _ACEOF |
| 11893 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11894 | if { (ac_try="$ac_compile" |
| 11895 | case "(($ac_try" in |
| 11896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11897 | *) ac_try_echo=$ac_try;; |
| 11898 | esac |
| 11899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11900 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11901 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11903 | rm -f conftest.er1 |
| 11904 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11906 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11908 | { (case "(($ac_try" in |
| 11909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11910 | *) ac_try_echo=$ac_try;; |
| 11911 | esac |
| 11912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11913 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11914 | ac_status=$? |
| 11915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11916 | (exit $ac_status); }; } && |
| 11917 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11918 | { (case "(($ac_try" in |
| 11919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11920 | *) ac_try_echo=$ac_try;; |
| 11921 | esac |
| 11922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11923 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11924 | ac_status=$? |
| 11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11926 | (exit $ac_status); }; }; then |
| 11927 | ac_header_compiler=yes |
| 11928 | else |
| 11929 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11931 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11932 | ac_header_compiler=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11933 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11934 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11936 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11937 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11938 | |
| 11939 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11940 | { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 11941 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11942 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11943 | /* confdefs.h. */ |
| 11944 | _ACEOF |
| 11945 | cat confdefs.h >>conftest.$ac_ext |
| 11946 | cat >>conftest.$ac_ext <<_ACEOF |
| 11947 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11948 | #include <sane/sane.h> |
| 11949 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 11950 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11951 | case "(($ac_try" in |
| 11952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11953 | *) ac_try_echo=$ac_try;; |
| 11954 | esac |
| 11955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11956 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11957 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11958 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11959 | rm -f conftest.er1 |
| 11960 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11962 | (exit $ac_status); } >/dev/null; then |
| 11963 | if test -s conftest.err; then |
| 11964 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11965 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11966 | else |
| 11967 | ac_cpp_err= |
| 11968 | fi |
| 11969 | else |
| 11970 | ac_cpp_err=yes |
| 11971 | fi |
| 11972 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11973 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11974 | else |
| 11975 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11977 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11978 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11979 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11980 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 11981 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 11982 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11983 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11984 | |
| 11985 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11986 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11987 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11988 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11989 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11990 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5 |
| 11991 | echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;} |
| 11992 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11993 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11994 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11995 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 11996 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11997 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 11998 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 11999 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5 |
| 12000 | echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;} |
| 12001 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12002 | echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12003 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12004 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12005 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5 |
| 12006 | echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12007 | ( cat <<\_ASBOX |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12008 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12009 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12010 | ## ------------------------------------ ## |
| 12011 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12012 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12013 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12014 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12015 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 12016 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12017 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 12018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12019 | else |
| 12020 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12021 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12022 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 12023 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12024 | |
| 12025 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12026 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12027 | { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
| 12028 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12029 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 12030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12031 | else |
| 12032 | ac_check_lib_save_LIBS=$LIBS |
| 12033 | LIBS="-lsane $LIBS" |
| 12034 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12035 | /* confdefs.h. */ |
| 12036 | _ACEOF |
| 12037 | cat confdefs.h >>conftest.$ac_ext |
| 12038 | cat >>conftest.$ac_ext <<_ACEOF |
| 12039 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12040 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12041 | /* Override any GCC internal prototype to avoid an error. |
| 12042 | Use char because int might match the return type of a GCC |
| 12043 | builtin and then its argument prototype would still apply. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12044 | #ifdef __cplusplus |
| 12045 | extern "C" |
| 12046 | #endif |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12047 | char sane_open (); |
| 12048 | int |
| 12049 | main () |
| 12050 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12051 | return sane_open (); |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12052 | ; |
| 12053 | return 0; |
| 12054 | } |
| 12055 | _ACEOF |
| 12056 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12057 | if { (ac_try="$ac_link" |
| 12058 | case "(($ac_try" in |
| 12059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12060 | *) ac_try_echo=$ac_try;; |
| 12061 | esac |
| 12062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12063 | (eval "$ac_link") 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12064 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12066 | rm -f conftest.er1 |
| 12067 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12069 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12071 | { (case "(($ac_try" in |
| 12072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12073 | *) ac_try_echo=$ac_try;; |
| 12074 | esac |
| 12075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12076 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12077 | ac_status=$? |
| 12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12079 | (exit $ac_status); }; } && |
| 12080 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12081 | { (case "(($ac_try" in |
| 12082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12083 | *) ac_try_echo=$ac_try;; |
| 12084 | esac |
| 12085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12086 | (eval "$ac_try") 2>&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12087 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12089 | (exit $ac_status); }; }; then |
| 12090 | ac_cv_lib_sane_sane_open=yes |
| 12091 | else |
| 12092 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12094 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12095 | ac_cv_lib_sane_sane_open=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12096 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12097 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12098 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12099 | conftest$ac_exeext conftest.$ac_ext |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12100 | LIBS=$ac_check_lib_save_LIBS |
| 12101 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12102 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5 |
| 12103 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12104 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 12105 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12106 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12107 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12108 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12109 | |
| 12110 | else |
| 12111 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 12112 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12113 | fi |
| 12114 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 12115 | else |
| 12116 | SANELIBS="" |
| 12117 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12118 | fi |
| 12119 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12120 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 12121 | LIBS="$ac_save_LIBS" |
| 12122 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 12123 | fi |
| 12124 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12125 | # Extract the first word of "gphoto2-config", so it can be a program name with args. |
| 12126 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12127 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12129 | if test "${ac_cv_prog_gphoto2_devel+set}" = set; then |
| 12130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12131 | else |
| 12132 | if test -n "$gphoto2_devel"; then |
| 12133 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 12134 | else |
| 12135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12136 | for as_dir in $PATH |
| 12137 | do |
| 12138 | IFS=$as_save_IFS |
| 12139 | test -z "$as_dir" && as_dir=. |
| 12140 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12142 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
| 12143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12144 | break 2 |
| 12145 | fi |
| 12146 | done |
| 12147 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12148 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12149 | |
| 12150 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 12151 | fi |
| 12152 | fi |
| 12153 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 12154 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12155 | { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5 |
| 12156 | echo "${ECHO_T}$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12157 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12158 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12159 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12160 | fi |
| 12161 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12162 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12163 | # Extract the first word of "gphoto2-port-config", so it can be a program name with args. |
| 12164 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12165 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12167 | if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then |
| 12168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12169 | else |
| 12170 | if test -n "$gphoto2port_devel"; then |
| 12171 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 12172 | else |
| 12173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12174 | for as_dir in $PATH |
| 12175 | do |
| 12176 | IFS=$as_save_IFS |
| 12177 | test -z "$as_dir" && as_dir=. |
| 12178 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12180 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
| 12181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12182 | break 2 |
| 12183 | fi |
| 12184 | done |
| 12185 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12186 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12187 | |
| 12188 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 12189 | fi |
| 12190 | fi |
| 12191 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 12192 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12193 | { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5 |
| 12194 | echo "${ECHO_T}$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12195 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12196 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12197 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12198 | fi |
| 12199 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12200 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12201 | GPHOTO2LIBS="" |
| 12202 | |
| 12203 | GPHOTO2INCL="" |
| 12204 | |
| 12205 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 12206 | then |
| 12207 | GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 12208 | GPHOTO2LIBS="" |
| 12209 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 12210 | do |
| 12211 | case "$i" in |
| 12212 | -L/usr/lib|-L/usr/lib64) ;; |
| 12213 | -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";; |
| 12214 | esac |
| 12215 | done |
| 12216 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 12217 | ac_save_LIBS="$LIBS" |
| 12218 | CPPFLAGS="$CPPFLAGS $GPHOTO2INCL" |
| 12219 | LIBS="$LIBS $GPHOTO2LIBS" |
| 12220 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12221 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
| 12222 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12223 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
| 12224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12225 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12226 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
| 12227 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12228 | else |
| 12229 | # Is the header compilable? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12230 | { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5 |
| 12231 | echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12232 | cat >conftest.$ac_ext <<_ACEOF |
| 12233 | /* confdefs.h. */ |
| 12234 | _ACEOF |
| 12235 | cat confdefs.h >>conftest.$ac_ext |
| 12236 | cat >>conftest.$ac_ext <<_ACEOF |
| 12237 | /* end confdefs.h. */ |
| 12238 | $ac_includes_default |
| 12239 | #include <gphoto2-camera.h> |
| 12240 | _ACEOF |
| 12241 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12242 | if { (ac_try="$ac_compile" |
| 12243 | case "(($ac_try" in |
| 12244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12245 | *) ac_try_echo=$ac_try;; |
| 12246 | esac |
| 12247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12248 | (eval "$ac_compile") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12249 | ac_status=$? |
| 12250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12251 | rm -f conftest.er1 |
| 12252 | cat conftest.err >&5 |
| 12253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12254 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12256 | { (case "(($ac_try" in |
| 12257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12258 | *) ac_try_echo=$ac_try;; |
| 12259 | esac |
| 12260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12261 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12262 | ac_status=$? |
| 12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12264 | (exit $ac_status); }; } && |
| 12265 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12266 | { (case "(($ac_try" in |
| 12267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12268 | *) ac_try_echo=$ac_try;; |
| 12269 | esac |
| 12270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12271 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12272 | ac_status=$? |
| 12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12274 | (exit $ac_status); }; }; then |
| 12275 | ac_header_compiler=yes |
| 12276 | else |
| 12277 | echo "$as_me: failed program was:" >&5 |
| 12278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12279 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12280 | ac_header_compiler=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12281 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12282 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12284 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12285 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12286 | |
| 12287 | # Is the header present? |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12288 | { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5 |
| 12289 | echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12290 | cat >conftest.$ac_ext <<_ACEOF |
| 12291 | /* confdefs.h. */ |
| 12292 | _ACEOF |
| 12293 | cat confdefs.h >>conftest.$ac_ext |
| 12294 | cat >>conftest.$ac_ext <<_ACEOF |
| 12295 | /* end confdefs.h. */ |
| 12296 | #include <gphoto2-camera.h> |
| 12297 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12298 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12299 | case "(($ac_try" in |
| 12300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12301 | *) ac_try_echo=$ac_try;; |
| 12302 | esac |
| 12303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12304 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12305 | ac_status=$? |
| 12306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12307 | rm -f conftest.er1 |
| 12308 | cat conftest.err >&5 |
| 12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12310 | (exit $ac_status); } >/dev/null; then |
| 12311 | if test -s conftest.err; then |
| 12312 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12313 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12314 | else |
| 12315 | ac_cpp_err= |
| 12316 | fi |
| 12317 | else |
| 12318 | ac_cpp_err=yes |
| 12319 | fi |
| 12320 | if test -z "$ac_cpp_err"; then |
| 12321 | ac_header_preproc=yes |
| 12322 | else |
| 12323 | echo "$as_me: failed program was:" >&5 |
| 12324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12325 | |
| 12326 | ac_header_preproc=no |
| 12327 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12328 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12329 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12330 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12331 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12332 | |
| 12333 | # So? What about this header? |
| 12334 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12335 | yes:no: ) |
| 12336 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12337 | echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12338 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5 |
| 12339 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;} |
| 12340 | ac_header_preproc=yes |
| 12341 | ;; |
| 12342 | no:yes:* ) |
| 12343 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5 |
| 12344 | echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;} |
| 12345 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5 |
| 12346 | echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;} |
| 12347 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5 |
| 12348 | echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;} |
| 12349 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12350 | echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12351 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5 |
| 12352 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;} |
| 12353 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5 |
| 12354 | echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12355 | ( cat <<\_ASBOX |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12356 | ## ------------------------------------ ## |
| 12357 | ## Report this to wine-devel@winehq.org ## |
| 12358 | ## ------------------------------------ ## |
| 12359 | _ASBOX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12360 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12361 | ;; |
| 12362 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12363 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
| 12364 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12365 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
| 12366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12367 | else |
| 12368 | ac_cv_header_gphoto2_camera_h=$ac_header_preproc |
| 12369 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12370 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
| 12371 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12372 | |
| 12373 | fi |
| 12374 | if test $ac_cv_header_gphoto2_camera_h = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12375 | { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5 |
| 12376 | echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12377 | if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then |
| 12378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12379 | else |
| 12380 | ac_check_lib_save_LIBS=$LIBS |
| 12381 | LIBS="-lgphoto2 $LIBS" |
| 12382 | cat >conftest.$ac_ext <<_ACEOF |
| 12383 | /* confdefs.h. */ |
| 12384 | _ACEOF |
| 12385 | cat confdefs.h >>conftest.$ac_ext |
| 12386 | cat >>conftest.$ac_ext <<_ACEOF |
| 12387 | /* end confdefs.h. */ |
| 12388 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [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. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12392 | #ifdef __cplusplus |
| 12393 | extern "C" |
| 12394 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12395 | char gp_camera_new (); |
| 12396 | int |
| 12397 | main () |
| 12398 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12399 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12400 | ; |
| 12401 | return 0; |
| 12402 | } |
| 12403 | _ACEOF |
| 12404 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12405 | if { (ac_try="$ac_link" |
| 12406 | case "(($ac_try" in |
| 12407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12408 | *) ac_try_echo=$ac_try;; |
| 12409 | esac |
| 12410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12411 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12412 | ac_status=$? |
| 12413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12414 | rm -f conftest.er1 |
| 12415 | cat conftest.err >&5 |
| 12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12417 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12419 | { (case "(($ac_try" in |
| 12420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12421 | *) ac_try_echo=$ac_try;; |
| 12422 | esac |
| 12423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12424 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12425 | ac_status=$? |
| 12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12427 | (exit $ac_status); }; } && |
| 12428 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12429 | { (case "(($ac_try" in |
| 12430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12431 | *) ac_try_echo=$ac_try;; |
| 12432 | esac |
| 12433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12434 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12435 | ac_status=$? |
| 12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12437 | (exit $ac_status); }; }; then |
| 12438 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 12439 | else |
| 12440 | echo "$as_me: failed program was:" >&5 |
| 12441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12442 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12443 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12444 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12445 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12446 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12447 | conftest$ac_exeext conftest.$ac_ext |
| 12448 | LIBS=$ac_check_lib_save_LIBS |
| 12449 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12450 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5 |
| 12451 | echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 12452 | if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then |
| 12453 | |
| 12454 | cat >>confdefs.h <<\_ACEOF |
| 12455 | #define HAVE_GPHOTO2 1 |
| 12456 | _ACEOF |
| 12457 | |
| 12458 | else |
| 12459 | GPHOTO2LIBS="" |
| 12460 | GPHOTO2INCL="" |
| 12461 | fi |
| 12462 | |
| 12463 | else |
| 12464 | GPHOTO2LIBS="" |
| 12465 | GPHOTO2INCL="" |
| 12466 | fi |
| 12467 | |
| 12468 | |
| 12469 | LIBS="$ac_save_LIBS" |
| 12470 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 12471 | fi |
| 12472 | |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12473 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
| 12474 | then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12475 | saved_libs="$LIBS" |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 12476 | for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu |
| 12477 | do |
| 12478 | TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}" |
| 12479 | TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}" |
| 12480 | { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5 |
| 12481 | echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; } |
| 12482 | LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s" |
| 12483 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12484 | /* confdefs.h. */ |
| 12485 | _ACEOF |
| 12486 | cat confdefs.h >>conftest.$ac_ext |
| 12487 | cat >>conftest.$ac_ext <<_ACEOF |
| 12488 | /* end confdefs.h. */ |
| 12489 | #include <unicode/ubidi.h> |
| 12490 | int |
| 12491 | main () |
| 12492 | { |
| 12493 | ubidi_open() |
| 12494 | ; |
| 12495 | return 0; |
| 12496 | } |
| 12497 | _ACEOF |
| 12498 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12499 | if { (ac_try="$ac_link" |
| 12500 | case "(($ac_try" in |
| 12501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12502 | *) ac_try_echo=$ac_try;; |
| 12503 | esac |
| 12504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12505 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12506 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12508 | rm -f conftest.er1 |
| 12509 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12511 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12513 | { (case "(($ac_try" in |
| 12514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12515 | *) ac_try_echo=$ac_try;; |
| 12516 | esac |
| 12517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12518 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12519 | ac_status=$? |
| 12520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12521 | (exit $ac_status); }; } && |
| 12522 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12523 | { (case "(($ac_try" in |
| 12524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12525 | *) ac_try_echo=$ac_try;; |
| 12526 | esac |
| 12527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12528 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12529 | ac_status=$? |
| 12530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12531 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12532 | |
| 12533 | cat >>confdefs.h <<\_ACEOF |
| 12534 | #define HAVE_ICU 1 |
| 12535 | _ACEOF |
| 12536 | |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 12537 | ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12538 | |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 12539 | { echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12540 | echo "${ECHO_T}yes" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12541 | else |
| 12542 | echo "$as_me: failed program was:" >&5 |
| 12543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12544 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12546 | echo "${ECHO_T}no" >&6; } |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12547 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12548 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12549 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12550 | conftest$ac_exeext conftest.$ac_ext |
Scott Bambrough | ee112fc | 2006-06-16 10:42:20 -0400 | [diff] [blame] | 12551 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 12552 | LIBS="$saved_libs" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 12553 | fi |
| 12554 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12555 | RESOLVLIBS="" |
| 12556 | |
| 12557 | if test "$ac_cv_header_resolv_h" = "yes" |
| 12558 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12559 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 |
| 12560 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12561 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then |
| 12562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12563 | else |
| 12564 | ac_check_lib_save_LIBS=$LIBS |
| 12565 | LIBS="-lresolv $LIBS" |
| 12566 | cat >conftest.$ac_ext <<_ACEOF |
| 12567 | /* confdefs.h. */ |
| 12568 | _ACEOF |
| 12569 | cat confdefs.h >>conftest.$ac_ext |
| 12570 | cat >>conftest.$ac_ext <<_ACEOF |
| 12571 | /* end confdefs.h. */ |
| 12572 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12573 | /* Override any GCC internal prototype to avoid an error. |
| 12574 | Use char because int might match the return type of a GCC |
| 12575 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12576 | #ifdef __cplusplus |
| 12577 | extern "C" |
| 12578 | #endif |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12579 | char res_query (); |
| 12580 | int |
| 12581 | main () |
| 12582 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12583 | return res_query (); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12584 | ; |
| 12585 | return 0; |
| 12586 | } |
| 12587 | _ACEOF |
| 12588 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12589 | if { (ac_try="$ac_link" |
| 12590 | case "(($ac_try" in |
| 12591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12592 | *) ac_try_echo=$ac_try;; |
| 12593 | esac |
| 12594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12595 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12596 | ac_status=$? |
| 12597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12598 | rm -f conftest.er1 |
| 12599 | cat conftest.err >&5 |
| 12600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12601 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12603 | { (case "(($ac_try" in |
| 12604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12605 | *) ac_try_echo=$ac_try;; |
| 12606 | esac |
| 12607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12608 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12609 | ac_status=$? |
| 12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12611 | (exit $ac_status); }; } && |
| 12612 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12613 | { (case "(($ac_try" in |
| 12614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12615 | *) ac_try_echo=$ac_try;; |
| 12616 | esac |
| 12617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12618 | (eval "$ac_try") 2>&5 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12619 | ac_status=$? |
| 12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12621 | (exit $ac_status); }; }; then |
| 12622 | ac_cv_lib_resolv_res_query=yes |
| 12623 | else |
| 12624 | echo "$as_me: failed program was:" >&5 |
| 12625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12626 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12627 | ac_cv_lib_resolv_res_query=no |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12628 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12629 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12630 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12631 | conftest$ac_exeext conftest.$ac_ext |
| 12632 | LIBS=$ac_check_lib_save_LIBS |
| 12633 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12634 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 |
| 12635 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 12636 | if test $ac_cv_lib_resolv_res_query = yes; then |
| 12637 | |
| 12638 | cat >>confdefs.h <<\_ACEOF |
| 12639 | #define HAVE_RESOLV 1 |
| 12640 | _ACEOF |
| 12641 | |
| 12642 | RESOLVLIBS="-lresolv" |
| 12643 | fi |
| 12644 | |
| 12645 | fi |
| 12646 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12647 | LCMSLIBS="" |
| 12648 | |
| 12649 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 12650 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12651 | { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5 |
| 12652 | echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; } |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12653 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then |
| 12654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12655 | else |
| 12656 | ac_check_lib_save_LIBS=$LIBS |
| 12657 | LIBS="-llcms $LIBS" |
| 12658 | cat >conftest.$ac_ext <<_ACEOF |
| 12659 | /* confdefs.h. */ |
| 12660 | _ACEOF |
| 12661 | cat confdefs.h >>conftest.$ac_ext |
| 12662 | cat >>conftest.$ac_ext <<_ACEOF |
| 12663 | /* end confdefs.h. */ |
| 12664 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12665 | /* Override any GCC internal prototype to avoid an error. |
| 12666 | Use char because int might match the return type of a GCC |
| 12667 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12668 | #ifdef __cplusplus |
| 12669 | extern "C" |
| 12670 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12671 | char cmsOpenProfileFromFile (); |
| 12672 | int |
| 12673 | main () |
| 12674 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12675 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12676 | ; |
| 12677 | return 0; |
| 12678 | } |
| 12679 | _ACEOF |
| 12680 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12681 | if { (ac_try="$ac_link" |
| 12682 | case "(($ac_try" in |
| 12683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12684 | *) ac_try_echo=$ac_try;; |
| 12685 | esac |
| 12686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12687 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12688 | ac_status=$? |
| 12689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12690 | rm -f conftest.er1 |
| 12691 | cat conftest.err >&5 |
| 12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12693 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12694 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12695 | { (case "(($ac_try" in |
| 12696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12697 | *) ac_try_echo=$ac_try;; |
| 12698 | esac |
| 12699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12700 | (eval "$ac_try") 2>&5 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12701 | ac_status=$? |
| 12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12703 | (exit $ac_status); }; } && |
| 12704 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12705 | { (case "(($ac_try" in |
| 12706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12707 | *) ac_try_echo=$ac_try;; |
| 12708 | esac |
| 12709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12710 | (eval "$ac_try") 2>&5 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12711 | ac_status=$? |
| 12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12713 | (exit $ac_status); }; }; then |
| 12714 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 12715 | else |
| 12716 | echo "$as_me: failed program was:" >&5 |
| 12717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12718 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12719 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12720 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12721 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12722 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12723 | conftest$ac_exeext conftest.$ac_ext |
| 12724 | LIBS=$ac_check_lib_save_LIBS |
| 12725 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12726 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 |
| 12727 | echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 12728 | if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then |
| 12729 | |
| 12730 | cat >>confdefs.h <<\_ACEOF |
| 12731 | #define HAVE_LCMS 1 |
| 12732 | _ACEOF |
| 12733 | |
| 12734 | LCMSLIBS="-llcms" |
| 12735 | fi |
| 12736 | |
| 12737 | fi |
| 12738 | |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12739 | LDAPLIBS="" |
| 12740 | |
| 12741 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 12742 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12743 | { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5 |
| 12744 | echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; } |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12745 | if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12747 | else |
| 12748 | ac_check_lib_save_LIBS=$LIBS |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12749 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12750 | cat >conftest.$ac_ext <<_ACEOF |
| 12751 | /* confdefs.h. */ |
| 12752 | _ACEOF |
| 12753 | cat confdefs.h >>conftest.$ac_ext |
| 12754 | cat >>conftest.$ac_ext <<_ACEOF |
| 12755 | /* end confdefs.h. */ |
| 12756 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12757 | /* Override any GCC internal prototype to avoid an error. |
| 12758 | Use char because int might match the return type of a GCC |
| 12759 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12760 | #ifdef __cplusplus |
| 12761 | extern "C" |
| 12762 | #endif |
Hans Leidekker | 20d0e80 | 2005-11-18 16:56:44 +0000 | [diff] [blame] | 12763 | char ldap_initialize (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12764 | int |
| 12765 | main () |
| 12766 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12767 | return ldap_initialize (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12768 | ; |
| 12769 | return 0; |
| 12770 | } |
| 12771 | _ACEOF |
| 12772 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12773 | if { (ac_try="$ac_link" |
| 12774 | case "(($ac_try" in |
| 12775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12776 | *) ac_try_echo=$ac_try;; |
| 12777 | esac |
| 12778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12779 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12780 | ac_status=$? |
| 12781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12782 | rm -f conftest.er1 |
| 12783 | cat conftest.err >&5 |
| 12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12785 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12787 | { (case "(($ac_try" in |
| 12788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12789 | *) ac_try_echo=$ac_try;; |
| 12790 | esac |
| 12791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12792 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12793 | ac_status=$? |
| 12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12795 | (exit $ac_status); }; } && |
| 12796 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12797 | { (case "(($ac_try" in |
| 12798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12799 | *) ac_try_echo=$ac_try;; |
| 12800 | esac |
| 12801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12802 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12803 | ac_status=$? |
| 12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12805 | (exit $ac_status); }; }; then |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12806 | ac_cv_lib_ldap_r_ldap_initialize=yes |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12807 | else |
| 12808 | echo "$as_me: failed program was:" >&5 |
| 12809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12810 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12811 | ac_cv_lib_ldap_r_ldap_initialize=no |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12812 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12813 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12814 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12815 | conftest$ac_exeext conftest.$ac_ext |
| 12816 | LIBS=$ac_check_lib_save_LIBS |
| 12817 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12818 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5 |
| 12819 | echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12820 | if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12821 | { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5 |
| 12822 | echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; } |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12823 | if test "${ac_cv_lib_lber_ber_init+set}" = set; then |
| 12824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12825 | else |
| 12826 | ac_check_lib_save_LIBS=$LIBS |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12827 | LIBS="-llber $LIBPTHREAD $LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12828 | cat >conftest.$ac_ext <<_ACEOF |
| 12829 | /* confdefs.h. */ |
| 12830 | _ACEOF |
| 12831 | cat confdefs.h >>conftest.$ac_ext |
| 12832 | cat >>conftest.$ac_ext <<_ACEOF |
| 12833 | /* end confdefs.h. */ |
| 12834 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12835 | /* Override any GCC internal prototype to avoid an error. |
| 12836 | Use char because int might match the return type of a GCC |
| 12837 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12838 | #ifdef __cplusplus |
| 12839 | extern "C" |
| 12840 | #endif |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12841 | char ber_init (); |
| 12842 | int |
| 12843 | main () |
| 12844 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12845 | return ber_init (); |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12846 | ; |
| 12847 | return 0; |
| 12848 | } |
| 12849 | _ACEOF |
| 12850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12851 | if { (ac_try="$ac_link" |
| 12852 | case "(($ac_try" in |
| 12853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12854 | *) ac_try_echo=$ac_try;; |
| 12855 | esac |
| 12856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12857 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12858 | ac_status=$? |
| 12859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12860 | rm -f conftest.er1 |
| 12861 | cat conftest.err >&5 |
| 12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12863 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12864 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12865 | { (case "(($ac_try" in |
| 12866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12867 | *) ac_try_echo=$ac_try;; |
| 12868 | esac |
| 12869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12870 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12871 | ac_status=$? |
| 12872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12873 | (exit $ac_status); }; } && |
| 12874 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12875 | { (case "(($ac_try" in |
| 12876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12877 | *) ac_try_echo=$ac_try;; |
| 12878 | esac |
| 12879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12880 | (eval "$ac_try") 2>&5 |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12881 | ac_status=$? |
| 12882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12883 | (exit $ac_status); }; }; then |
| 12884 | ac_cv_lib_lber_ber_init=yes |
| 12885 | else |
| 12886 | echo "$as_me: failed program was:" >&5 |
| 12887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12888 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12889 | ac_cv_lib_lber_ber_init=no |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12890 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12891 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12892 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12893 | conftest$ac_exeext conftest.$ac_ext |
| 12894 | LIBS=$ac_check_lib_save_LIBS |
| 12895 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12896 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5 |
| 12897 | echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; } |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12898 | if test $ac_cv_lib_lber_ber_init = yes; then |
| 12899 | |
| 12900 | cat >>confdefs.h <<\_ACEOF |
| 12901 | #define HAVE_LDAP 1 |
| 12902 | _ACEOF |
| 12903 | |
Hans Leidekker | ecfc2c1 | 2005-11-29 17:35:09 +0100 | [diff] [blame] | 12904 | LDAPLIBS="-lldap_r -llber" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 12905 | fi |
| 12906 | |
| 12907 | fi |
| 12908 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 12909 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 12910 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12911 | |
| 12912 | |
| 12913 | |
| 12914 | |
| 12915 | for ac_func in \ |
| 12916 | ldap_count_references \ |
| 12917 | ldap_first_reference \ |
| 12918 | ldap_next_reference \ |
| 12919 | ldap_parse_reference |
| 12920 | do |
| 12921 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12922 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12923 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12924 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12926 | else |
| 12927 | cat >conftest.$ac_ext <<_ACEOF |
| 12928 | /* confdefs.h. */ |
| 12929 | _ACEOF |
| 12930 | cat confdefs.h >>conftest.$ac_ext |
| 12931 | cat >>conftest.$ac_ext <<_ACEOF |
| 12932 | /* end confdefs.h. */ |
| 12933 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12935 | #define $ac_func innocuous_$ac_func |
| 12936 | |
| 12937 | /* System header to define __stub macros and hopefully few prototypes, |
| 12938 | which can conflict with char $ac_func (); below. |
| 12939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12940 | <limits.h> exists even on freestanding compilers. */ |
| 12941 | |
| 12942 | #ifdef __STDC__ |
| 12943 | # include <limits.h> |
| 12944 | #else |
| 12945 | # include <assert.h> |
| 12946 | #endif |
| 12947 | |
| 12948 | #undef $ac_func |
| 12949 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12950 | /* Override any GCC internal prototype to avoid an error. |
| 12951 | Use char because int might match the return type of a GCC |
| 12952 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12953 | #ifdef __cplusplus |
| 12954 | extern "C" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12955 | #endif |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12956 | char $ac_func (); |
| 12957 | /* The GNU C library defines this for functions which it implements |
| 12958 | to always fail with ENOSYS. Some functions are actually named |
| 12959 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12960 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12961 | choke me |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12962 | #endif |
| 12963 | |
| 12964 | int |
| 12965 | main () |
| 12966 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12967 | return $ac_func (); |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12968 | ; |
| 12969 | return 0; |
| 12970 | } |
| 12971 | _ACEOF |
| 12972 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12973 | if { (ac_try="$ac_link" |
| 12974 | case "(($ac_try" in |
| 12975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12976 | *) ac_try_echo=$ac_try;; |
| 12977 | esac |
| 12978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12979 | (eval "$ac_link") 2>conftest.er1 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12980 | ac_status=$? |
| 12981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12982 | rm -f conftest.er1 |
| 12983 | cat conftest.err >&5 |
| 12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12985 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12987 | { (case "(($ac_try" in |
| 12988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12989 | *) ac_try_echo=$ac_try;; |
| 12990 | esac |
| 12991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12992 | (eval "$ac_try") 2>&5 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 12993 | ac_status=$? |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); }; } && |
| 12996 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12997 | { (case "(($ac_try" in |
| 12998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12999 | *) ac_try_echo=$ac_try;; |
| 13000 | esac |
| 13001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13002 | (eval "$ac_try") 2>&5 |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 13003 | ac_status=$? |
| 13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13005 | (exit $ac_status); }; }; then |
| 13006 | eval "$as_ac_var=yes" |
| 13007 | else |
| 13008 | echo "$as_me: failed program was:" >&5 |
| 13009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13010 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13011 | eval "$as_ac_var=no" |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 13012 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13013 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13014 | rm -f core conftest.err conftest.$ac_objext \ |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 13015 | conftest$ac_exeext conftest.$ac_ext |
| 13016 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13017 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13018 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13019 | echo "${ECHO_T}$ac_res" >&6; } |
Hans Leidekker | b2c62c9 | 2005-12-21 18:42:00 +0100 | [diff] [blame] | 13020 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13021 | cat >>confdefs.h <<_ACEOF |
| 13022 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13023 | _ACEOF |
| 13024 | |
| 13025 | fi |
| 13026 | done |
| 13027 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 13028 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 13029 | fi |
| 13030 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 13031 | FREETYPELIBS="" |
| 13032 | |
| 13033 | FREETYPEINCL="" |
| 13034 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 13035 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 13036 | set dummy freetype-config; ac_word=$2 |
| 13037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13039 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 13040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13041 | else |
| 13042 | if test -n "$ft_devel"; then |
| 13043 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 13044 | else |
| 13045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13046 | for as_dir in $PATH |
| 13047 | do |
| 13048 | IFS=$as_save_IFS |
| 13049 | test -z "$as_dir" && as_dir=. |
| 13050 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 13052 | ac_cv_prog_ft_devel="freetype-config" |
| 13053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13054 | break 2 |
| 13055 | fi |
| 13056 | done |
| 13057 | done |
| 13058 | IFS=$as_save_IFS |
| 13059 | |
| 13060 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 13061 | fi |
| 13062 | fi |
| 13063 | ft_devel=$ac_cv_prog_ft_devel |
| 13064 | if test -n "$ft_devel"; then |
| 13065 | { echo "$as_me:$LINENO: result: $ft_devel" >&5 |
| 13066 | echo "${ECHO_T}$ft_devel" >&6; } |
| 13067 | else |
| 13068 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13069 | echo "${ECHO_T}no" >&6; } |
| 13070 | fi |
| 13071 | |
| 13072 | |
| 13073 | if test "$ft_devel" = "no" |
| 13074 | then |
| 13075 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 13076 | set dummy freetype2-config; ac_word=$2 |
| 13077 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13078 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13079 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 13080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13081 | else |
| 13082 | if test -n "$ft_devel2"; then |
| 13083 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 13084 | else |
| 13085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13086 | for as_dir in $PATH |
| 13087 | do |
| 13088 | IFS=$as_save_IFS |
| 13089 | test -z "$as_dir" && as_dir=. |
| 13090 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 13092 | ac_cv_prog_ft_devel2="freetype2-config" |
| 13093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13094 | break 2 |
| 13095 | fi |
| 13096 | done |
| 13097 | done |
| 13098 | IFS=$as_save_IFS |
| 13099 | |
| 13100 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 13101 | fi |
| 13102 | fi |
| 13103 | ft_devel2=$ac_cv_prog_ft_devel2 |
| 13104 | if test -n "$ft_devel2"; then |
| 13105 | { echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
| 13106 | echo "${ECHO_T}$ft_devel2" >&6; } |
| 13107 | else |
| 13108 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13109 | echo "${ECHO_T}no" >&6; } |
| 13110 | fi |
| 13111 | |
| 13112 | |
| 13113 | if test "$ft_devel2" = "freetype2-config" |
| 13114 | then |
| 13115 | ft_devel=$ft_devel2 |
| 13116 | fi |
| 13117 | fi |
| 13118 | |
| 13119 | if test "$ft_devel" = "no" |
| 13120 | then |
| 13121 | wine_cv_msg_freetype=yes |
| 13122 | else |
| 13123 | FREETYPELIBS=`$ft_devel --libs` |
| 13124 | FREETYPEINCL=`$ft_devel --cflags` |
| 13125 | { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13126 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13127 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 13128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13129 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13130 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 13131 | LIBS="-lfreetype $FREETYPELIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13132 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13133 | /* confdefs.h. */ |
| 13134 | _ACEOF |
| 13135 | cat confdefs.h >>conftest.$ac_ext |
| 13136 | cat >>conftest.$ac_ext <<_ACEOF |
| 13137 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13138 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13139 | /* Override any GCC internal prototype to avoid an error. |
| 13140 | Use char because int might match the return type of a GCC |
| 13141 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13142 | #ifdef __cplusplus |
| 13143 | extern "C" |
| 13144 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13145 | char FT_Init_FreeType (); |
| 13146 | int |
| 13147 | main () |
| 13148 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13149 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13150 | ; |
| 13151 | return 0; |
| 13152 | } |
| 13153 | _ACEOF |
| 13154 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13155 | if { (ac_try="$ac_link" |
| 13156 | case "(($ac_try" in |
| 13157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13158 | *) ac_try_echo=$ac_try;; |
| 13159 | esac |
| 13160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13161 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13162 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13164 | rm -f conftest.er1 |
| 13165 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13167 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13169 | { (case "(($ac_try" in |
| 13170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13171 | *) ac_try_echo=$ac_try;; |
| 13172 | esac |
| 13173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13174 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13175 | ac_status=$? |
| 13176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13177 | (exit $ac_status); }; } && |
| 13178 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13179 | { (case "(($ac_try" in |
| 13180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13181 | *) ac_try_echo=$ac_try;; |
| 13182 | esac |
| 13183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13184 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13185 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13187 | (exit $ac_status); }; }; then |
| 13188 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13189 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13190 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13192 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13193 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13194 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13195 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13196 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13197 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13198 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13199 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13200 | { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 13201 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13202 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13203 | ft_lib=yes |
| 13204 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13205 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13206 | fi |
| 13207 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 13208 | if test "$ft_lib" = "no" |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 13209 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13210 | wine_cv_msg_freetype=yes |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 13211 | FREETYPELIBS="" |
| 13212 | FREETYPEINCL="" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13213 | else |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13214 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 13215 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13216 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13217 | |
| 13218 | |
| 13219 | |
| 13220 | |
| 13221 | |
| 13222 | |
| 13223 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 13224 | |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 13225 | |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 13226 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 13227 | for ac_header in ft2build.h \ |
| 13228 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13229 | freetype/ftglyph.h \ |
| 13230 | freetype/tttables.h \ |
| 13231 | freetype/ftnames.h \ |
| 13232 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 13233 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 13234 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 13235 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 13236 | freetype/ftmodapi.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 13237 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13238 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13239 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13240 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 13242 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13244 | else |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 13245 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13246 | /* confdefs.h. */ |
| 13247 | _ACEOF |
| 13248 | cat confdefs.h >>conftest.$ac_ext |
| 13249 | cat >>conftest.$ac_ext <<_ACEOF |
| 13250 | /* end confdefs.h. */ |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 13251 | #if HAVE_FT2BUILD_H |
| 13252 | #include <ft2build.h> |
| 13253 | #endif |
| 13254 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13255 | #include <$ac_header> |
| 13256 | _ACEOF |
| 13257 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13258 | if { (ac_try="$ac_compile" |
| 13259 | case "(($ac_try" in |
| 13260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13261 | *) ac_try_echo=$ac_try;; |
| 13262 | esac |
| 13263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13264 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13265 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13267 | rm -f conftest.er1 |
| 13268 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13270 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13272 | { (case "(($ac_try" in |
| 13273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13274 | *) ac_try_echo=$ac_try;; |
| 13275 | esac |
| 13276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13277 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13278 | ac_status=$? |
| 13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13280 | (exit $ac_status); }; } && |
| 13281 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13282 | { (case "(($ac_try" in |
| 13283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13284 | *) ac_try_echo=$ac_try;; |
| 13285 | esac |
| 13286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13287 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13288 | ac_status=$? |
| 13289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13290 | (exit $ac_status); }; }; then |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 13291 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13292 | else |
| 13293 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13295 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13296 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13297 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13298 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13300 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13301 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 13302 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13303 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13305 | cat >>confdefs.h <<_ACEOF |
| 13306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13307 | _ACEOF |
| 13308 | |
| 13309 | fi |
| 13310 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13311 | done |
| 13312 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13313 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13314 | /* confdefs.h. */ |
| 13315 | _ACEOF |
| 13316 | cat confdefs.h >>conftest.$ac_ext |
| 13317 | cat >>conftest.$ac_ext <<_ACEOF |
| 13318 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13319 | #include <ft2build.h> |
| 13320 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13321 | _ACEOF |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13322 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13323 | case "(($ac_try" in |
| 13324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13325 | *) ac_try_echo=$ac_try;; |
| 13326 | esac |
| 13327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13328 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13329 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13330 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13331 | rm -f conftest.er1 |
| 13332 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13334 | (exit $ac_status); } >/dev/null; then |
| 13335 | if test -s conftest.err; then |
| 13336 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13338 | else |
| 13339 | ac_cpp_err= |
| 13340 | fi |
| 13341 | else |
| 13342 | ac_cpp_err=yes |
| 13343 | fi |
| 13344 | if test -z "$ac_cpp_err"; then |
| 13345 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13346 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13347 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13348 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13349 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 13350 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13351 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13352 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13354 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 13355 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 13356 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13357 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13358 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13359 | { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5 |
| 13360 | echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; } |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13361 | if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then |
| 13362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13363 | else |
| 13364 | cat >conftest.$ac_ext <<_ACEOF |
| 13365 | /* confdefs.h. */ |
| 13366 | _ACEOF |
| 13367 | cat confdefs.h >>conftest.$ac_ext |
| 13368 | cat >>conftest.$ac_ext <<_ACEOF |
| 13369 | /* end confdefs.h. */ |
| 13370 | #include <freetype/ftmodapi.h> |
| 13371 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13372 | typedef FT_TrueTypeEngineType ac__type_new_; |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13373 | int |
| 13374 | main () |
| 13375 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13376 | if ((ac__type_new_ *) 0) |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13377 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13378 | if (sizeof (ac__type_new_)) |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13379 | return 0; |
| 13380 | ; |
| 13381 | return 0; |
| 13382 | } |
| 13383 | _ACEOF |
| 13384 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13385 | if { (ac_try="$ac_compile" |
| 13386 | case "(($ac_try" in |
| 13387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13388 | *) ac_try_echo=$ac_try;; |
| 13389 | esac |
| 13390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13391 | (eval "$ac_compile") 2>conftest.er1 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13392 | ac_status=$? |
| 13393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13394 | rm -f conftest.er1 |
| 13395 | cat conftest.err >&5 |
| 13396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13397 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13399 | { (case "(($ac_try" in |
| 13400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13401 | *) ac_try_echo=$ac_try;; |
| 13402 | esac |
| 13403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13404 | (eval "$ac_try") 2>&5 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13405 | ac_status=$? |
| 13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13407 | (exit $ac_status); }; } && |
| 13408 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13409 | { (case "(($ac_try" in |
| 13410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13411 | *) ac_try_echo=$ac_try;; |
| 13412 | esac |
| 13413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13414 | (eval "$ac_try") 2>&5 |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13415 | ac_status=$? |
| 13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13417 | (exit $ac_status); }; }; then |
| 13418 | ac_cv_type_FT_TrueTypeEngineType=yes |
| 13419 | else |
| 13420 | echo "$as_me: failed program was:" >&5 |
| 13421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13422 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13423 | ac_cv_type_FT_TrueTypeEngineType=no |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13424 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13425 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13427 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13428 | { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5 |
| 13429 | echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; } |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 13430 | if test $ac_cv_type_FT_TrueTypeEngineType = yes; then |
| 13431 | |
| 13432 | cat >>confdefs.h <<_ACEOF |
| 13433 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 13434 | _ACEOF |
| 13435 | |
| 13436 | |
| 13437 | fi |
| 13438 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13439 | ac_save_CFLAGS="$CFLAGS" |
| 13440 | CFLAGS="$CFLAGS $FREETYPELIBS" |
| 13441 | |
| 13442 | for ac_func in FT_Load_Sfnt_Table |
| 13443 | do |
| 13444 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13445 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13446 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13447 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13449 | else |
| 13450 | cat >conftest.$ac_ext <<_ACEOF |
| 13451 | /* confdefs.h. */ |
| 13452 | _ACEOF |
| 13453 | cat confdefs.h >>conftest.$ac_ext |
| 13454 | cat >>conftest.$ac_ext <<_ACEOF |
| 13455 | /* end confdefs.h. */ |
| 13456 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13457 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13458 | #define $ac_func innocuous_$ac_func |
| 13459 | |
| 13460 | /* System header to define __stub macros and hopefully few prototypes, |
| 13461 | which can conflict with char $ac_func (); below. |
| 13462 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13463 | <limits.h> exists even on freestanding compilers. */ |
| 13464 | |
| 13465 | #ifdef __STDC__ |
| 13466 | # include <limits.h> |
| 13467 | #else |
| 13468 | # include <assert.h> |
| 13469 | #endif |
| 13470 | |
| 13471 | #undef $ac_func |
| 13472 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13473 | /* Override any GCC internal prototype to avoid an error. |
| 13474 | Use char because int might match the return type of a GCC |
| 13475 | builtin and then its argument prototype would still apply. */ |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13476 | #ifdef __cplusplus |
| 13477 | extern "C" |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13478 | #endif |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13479 | char $ac_func (); |
| 13480 | /* The GNU C library defines this for functions which it implements |
| 13481 | to always fail with ENOSYS. Some functions are actually named |
| 13482 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13483 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13484 | choke me |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13485 | #endif |
| 13486 | |
| 13487 | int |
| 13488 | main () |
| 13489 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13490 | return $ac_func (); |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13491 | ; |
| 13492 | return 0; |
| 13493 | } |
| 13494 | _ACEOF |
| 13495 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13496 | if { (ac_try="$ac_link" |
| 13497 | case "(($ac_try" in |
| 13498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13499 | *) ac_try_echo=$ac_try;; |
| 13500 | esac |
| 13501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13502 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13503 | ac_status=$? |
| 13504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13505 | rm -f conftest.er1 |
| 13506 | cat conftest.err >&5 |
| 13507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13508 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13510 | { (case "(($ac_try" in |
| 13511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13512 | *) ac_try_echo=$ac_try;; |
| 13513 | esac |
| 13514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13515 | (eval "$ac_try") 2>&5 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13516 | ac_status=$? |
| 13517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13518 | (exit $ac_status); }; } && |
| 13519 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13520 | { (case "(($ac_try" in |
| 13521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13522 | *) ac_try_echo=$ac_try;; |
| 13523 | esac |
| 13524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13525 | (eval "$ac_try") 2>&5 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13526 | ac_status=$? |
| 13527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13528 | (exit $ac_status); }; }; then |
| 13529 | eval "$as_ac_var=yes" |
| 13530 | else |
| 13531 | echo "$as_me: failed program was:" >&5 |
| 13532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13533 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13534 | eval "$as_ac_var=no" |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13535 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13536 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13537 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13538 | conftest$ac_exeext conftest.$ac_ext |
| 13539 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13540 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13541 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13542 | echo "${ECHO_T}$ac_res" >&6; } |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 13543 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13544 | cat >>confdefs.h <<_ACEOF |
| 13545 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13546 | _ACEOF |
| 13547 | |
| 13548 | fi |
| 13549 | done |
| 13550 | |
| 13551 | CFLAGS="$ac_save_CFLAGS" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 13552 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 13553 | if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 13554 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13555 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13556 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 13557 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13558 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 13559 | |
| 13560 | wine_cv_msg_freetype=no |
| 13561 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 13562 | FREETYPELIBS="" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 13563 | FREETYPEINCL="" |
| 13564 | wine_cv_msg_freetype=yes |
| 13565 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 13566 | fi |
| 13567 | fi |
| 13568 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 13569 | if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS" |
| 13570 | then |
| 13571 | FONTSSUBDIRS="fonts" |
| 13572 | |
| 13573 | fi |
| 13574 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13575 | { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
| 13576 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13577 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 13578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 13579 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13580 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13581 | /* confdefs.h. */ |
| 13582 | _ACEOF |
| 13583 | cat confdefs.h >>conftest.$ac_ext |
| 13584 | cat >>conftest.$ac_ext <<_ACEOF |
| 13585 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13586 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13587 | int |
| 13588 | main () |
| 13589 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13590 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13591 | ; |
| 13592 | return 0; |
| 13593 | } |
| 13594 | _ACEOF |
| 13595 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13596 | if { (ac_try="$ac_compile" |
| 13597 | case "(($ac_try" in |
| 13598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13599 | *) ac_try_echo=$ac_try;; |
| 13600 | esac |
| 13601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13602 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13603 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13605 | rm -f conftest.er1 |
| 13606 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13608 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13610 | { (case "(($ac_try" in |
| 13611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13612 | *) ac_try_echo=$ac_try;; |
| 13613 | esac |
| 13614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13615 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13616 | ac_status=$? |
| 13617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13618 | (exit $ac_status); }; } && |
| 13619 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13620 | { (case "(($ac_try" in |
| 13621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13622 | *) ac_try_echo=$ac_try;; |
| 13623 | esac |
| 13624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13625 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13626 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13628 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13629 | ac_cv_c_ppdev="yes" |
| 13630 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13631 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13633 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13634 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13635 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13636 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13638 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13639 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13640 | { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
| 13641 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13642 | if test "$ac_cv_c_ppdev" = "yes" |
| 13643 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13644 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13645 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13646 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13647 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 13648 | |
| 13649 | fi |
| 13650 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13651 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 13652 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13653 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 13654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13655 | else |
| 13656 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13657 | /* confdefs.h. */ |
| 13658 | _ACEOF |
| 13659 | cat confdefs.h >>conftest.$ac_ext |
| 13660 | cat >>conftest.$ac_ext <<_ACEOF |
| 13661 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13662 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13663 | int |
| 13664 | main () |
| 13665 | { |
| 13666 | va_list ap1, ap2; |
| 13667 | va_copy(ap1,ap2); |
| 13668 | |
| 13669 | ; |
| 13670 | return 0; |
| 13671 | } |
| 13672 | _ACEOF |
| 13673 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13674 | if { (ac_try="$ac_link" |
| 13675 | case "(($ac_try" in |
| 13676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13677 | *) ac_try_echo=$ac_try;; |
| 13678 | esac |
| 13679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13680 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13681 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13683 | rm -f conftest.er1 |
| 13684 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13686 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13688 | { (case "(($ac_try" in |
| 13689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13690 | *) ac_try_echo=$ac_try;; |
| 13691 | esac |
| 13692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13693 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13694 | ac_status=$? |
| 13695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13696 | (exit $ac_status); }; } && |
| 13697 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13698 | { (case "(($ac_try" in |
| 13699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13700 | *) ac_try_echo=$ac_try;; |
| 13701 | esac |
| 13702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13703 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13704 | ac_status=$? |
| 13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13706 | (exit $ac_status); }; }; then |
| 13707 | ac_cv_c_va_copy="yes" |
| 13708 | else |
| 13709 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13711 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13712 | ac_cv_c_va_copy="no" |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13713 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13714 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13715 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13716 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13717 | |
| 13718 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13719 | { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 13720 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13721 | if test "$ac_cv_c_va_copy" = "yes" |
| 13722 | then |
| 13723 | |
| 13724 | cat >>confdefs.h <<\_ACEOF |
| 13725 | #define HAVE_VA_COPY 1 |
| 13726 | _ACEOF |
| 13727 | |
| 13728 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13729 | { echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 13730 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13731 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 13732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13733 | else |
| 13734 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13735 | /* confdefs.h. */ |
| 13736 | _ACEOF |
| 13737 | cat confdefs.h >>conftest.$ac_ext |
| 13738 | cat >>conftest.$ac_ext <<_ACEOF |
| 13739 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13740 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13741 | int |
| 13742 | main () |
| 13743 | { |
| 13744 | va_list ap1, ap2; |
| 13745 | __va_copy(ap1,ap2); |
| 13746 | |
| 13747 | ; |
| 13748 | return 0; |
| 13749 | } |
| 13750 | _ACEOF |
| 13751 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13752 | if { (ac_try="$ac_link" |
| 13753 | case "(($ac_try" in |
| 13754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13755 | *) ac_try_echo=$ac_try;; |
| 13756 | esac |
| 13757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13758 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13759 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13761 | rm -f conftest.er1 |
| 13762 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13764 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13766 | { (case "(($ac_try" in |
| 13767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13768 | *) ac_try_echo=$ac_try;; |
| 13769 | esac |
| 13770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13771 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13772 | ac_status=$? |
| 13773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13774 | (exit $ac_status); }; } && |
| 13775 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13776 | { (case "(($ac_try" in |
| 13777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13778 | *) ac_try_echo=$ac_try;; |
| 13779 | esac |
| 13780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13781 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13782 | ac_status=$? |
| 13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13784 | (exit $ac_status); }; }; then |
| 13785 | ac_cv_c___va_copy="yes" |
| 13786 | else |
| 13787 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13789 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13790 | ac_cv_c___va_copy="no" |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13791 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13792 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13793 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13794 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13795 | |
| 13796 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13797 | { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 13798 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6; } |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 13799 | if test "$ac_cv_c___va_copy" = "yes" |
| 13800 | then |
| 13801 | |
| 13802 | cat >>confdefs.h <<\_ACEOF |
| 13803 | #define HAVE___VA_COPY 1 |
| 13804 | _ACEOF |
| 13805 | |
| 13806 | fi |
| 13807 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13808 | { echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 13809 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; } |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13810 | if test "${ac_cv_c_sigsetjmp+set}" = set; then |
| 13811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13812 | else |
| 13813 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13814 | /* confdefs.h. */ |
| 13815 | _ACEOF |
| 13816 | cat confdefs.h >>conftest.$ac_ext |
| 13817 | cat >>conftest.$ac_ext <<_ACEOF |
| 13818 | /* end confdefs.h. */ |
| 13819 | #include <setjmp.h> |
| 13820 | int |
| 13821 | main () |
| 13822 | { |
| 13823 | sigjmp_buf buf; |
| 13824 | sigsetjmp( buf, 1 ); |
| 13825 | siglongjmp( buf, 1 ); |
| 13826 | ; |
| 13827 | return 0; |
| 13828 | } |
| 13829 | _ACEOF |
| 13830 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13831 | if { (ac_try="$ac_link" |
| 13832 | case "(($ac_try" in |
| 13833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13834 | *) ac_try_echo=$ac_try;; |
| 13835 | esac |
| 13836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13837 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13838 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13840 | rm -f conftest.er1 |
| 13841 | cat conftest.err >&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13843 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13845 | { (case "(($ac_try" in |
| 13846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13847 | *) ac_try_echo=$ac_try;; |
| 13848 | esac |
| 13849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13850 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13851 | ac_status=$? |
| 13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13853 | (exit $ac_status); }; } && |
| 13854 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13855 | { (case "(($ac_try" in |
| 13856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13857 | *) ac_try_echo=$ac_try;; |
| 13858 | esac |
| 13859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13860 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13861 | ac_status=$? |
| 13862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13863 | (exit $ac_status); }; }; then |
| 13864 | ac_cv_c_sigsetjmp="yes" |
| 13865 | else |
| 13866 | echo "$as_me: failed program was:" >&5 |
| 13867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13868 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13869 | ac_cv_c_sigsetjmp="no" |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13870 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13871 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13872 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13873 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13874 | |
| 13875 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13876 | { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5 |
| 13877 | echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; } |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 13878 | if test "$ac_cv_c_sigsetjmp" = "yes" |
| 13879 | then |
| 13880 | |
| 13881 | cat >>confdefs.h <<\_ACEOF |
| 13882 | #define HAVE_SIGSETJMP 1 |
| 13883 | _ACEOF |
| 13884 | |
| 13885 | fi |
| 13886 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13887 | { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
| 13888 | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13889 | if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then |
| 13890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13891 | else |
| 13892 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13893 | /* confdefs.h. */ |
| 13894 | _ACEOF |
| 13895 | cat confdefs.h >>conftest.$ac_ext |
| 13896 | cat >>conftest.$ac_ext <<_ACEOF |
| 13897 | /* end confdefs.h. */ |
| 13898 | #define _GNU_SOURCE |
| 13899 | #include <pthread.h> |
| 13900 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13901 | typedef pthread_rwlock_t ac__type_new_; |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13902 | int |
| 13903 | main () |
| 13904 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13905 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13906 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13907 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13908 | return 0; |
| 13909 | ; |
| 13910 | return 0; |
| 13911 | } |
| 13912 | _ACEOF |
| 13913 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13914 | if { (ac_try="$ac_compile" |
| 13915 | case "(($ac_try" in |
| 13916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13917 | *) ac_try_echo=$ac_try;; |
| 13918 | esac |
| 13919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13920 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13921 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13923 | rm -f conftest.er1 |
| 13924 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13926 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13928 | { (case "(($ac_try" in |
| 13929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13930 | *) ac_try_echo=$ac_try;; |
| 13931 | esac |
| 13932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13933 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13934 | ac_status=$? |
| 13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13936 | (exit $ac_status); }; } && |
| 13937 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13938 | { (case "(($ac_try" in |
| 13939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13940 | *) ac_try_echo=$ac_try;; |
| 13941 | esac |
| 13942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13943 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13944 | ac_status=$? |
| 13945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13946 | (exit $ac_status); }; }; then |
| 13947 | ac_cv_type_pthread_rwlock_t=yes |
| 13948 | else |
| 13949 | echo "$as_me: failed program was:" >&5 |
| 13950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13951 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13952 | ac_cv_type_pthread_rwlock_t=no |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13953 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13954 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13956 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13957 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 |
| 13958 | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13959 | if test $ac_cv_type_pthread_rwlock_t = yes; then |
| 13960 | |
| 13961 | cat >>confdefs.h <<_ACEOF |
| 13962 | #define HAVE_PTHREAD_RWLOCK_T 1 |
| 13963 | _ACEOF |
| 13964 | |
| 13965 | |
| 13966 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13967 | { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 |
| 13968 | echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13969 | if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then |
| 13970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13971 | else |
| 13972 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13973 | /* confdefs.h. */ |
| 13974 | _ACEOF |
| 13975 | cat confdefs.h >>conftest.$ac_ext |
| 13976 | cat >>conftest.$ac_ext <<_ACEOF |
| 13977 | /* end confdefs.h. */ |
| 13978 | #define _GNU_SOURCE |
| 13979 | #include <pthread.h> |
| 13980 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13981 | typedef pthread_rwlockattr_t ac__type_new_; |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13982 | int |
| 13983 | main () |
| 13984 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13985 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13986 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13987 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 13988 | return 0; |
| 13989 | ; |
| 13990 | return 0; |
| 13991 | } |
| 13992 | _ACEOF |
| 13993 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13994 | if { (ac_try="$ac_compile" |
| 13995 | case "(($ac_try" in |
| 13996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13997 | *) ac_try_echo=$ac_try;; |
| 13998 | esac |
| 13999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14000 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 14001 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14003 | rm -f conftest.er1 |
| 14004 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14006 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14008 | { (case "(($ac_try" in |
| 14009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14010 | *) ac_try_echo=$ac_try;; |
| 14011 | esac |
| 14012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14013 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14014 | ac_status=$? |
| 14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14016 | (exit $ac_status); }; } && |
| 14017 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14018 | { (case "(($ac_try" in |
| 14019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14020 | *) ac_try_echo=$ac_try;; |
| 14021 | esac |
| 14022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14023 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 14024 | ac_status=$? |
| 14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14026 | (exit $ac_status); }; }; then |
| 14027 | ac_cv_type_pthread_rwlockattr_t=yes |
| 14028 | else |
| 14029 | echo "$as_me: failed program was:" >&5 |
| 14030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14031 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14032 | ac_cv_type_pthread_rwlockattr_t=no |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 14033 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14034 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 14036 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14037 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 |
| 14038 | echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; } |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 14039 | if test $ac_cv_type_pthread_rwlockattr_t = yes; then |
| 14040 | |
| 14041 | cat >>confdefs.h <<_ACEOF |
| 14042 | #define HAVE_PTHREAD_RWLOCKATTR_T 1 |
| 14043 | _ACEOF |
| 14044 | |
| 14045 | |
| 14046 | fi |
| 14047 | |
| 14048 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 14049 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14050 | LIBS="$LIBS $LIBPTHREAD" |
| 14051 | |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 14052 | |
| 14053 | |
| 14054 | for ac_func in \ |
| 14055 | pthread_getattr_np \ |
| 14056 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 14057 | pthread_get_stacksize_np |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14058 | do |
| 14059 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14060 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14061 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14062 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14064 | else |
| 14065 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14066 | /* confdefs.h. */ |
| 14067 | _ACEOF |
| 14068 | cat confdefs.h >>conftest.$ac_ext |
| 14069 | cat >>conftest.$ac_ext <<_ACEOF |
| 14070 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14071 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14072 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14073 | #define $ac_func innocuous_$ac_func |
| 14074 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14075 | /* System header to define __stub macros and hopefully few prototypes, |
| 14076 | which can conflict with char $ac_func (); below. |
| 14077 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14078 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14079 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14080 | #ifdef __STDC__ |
| 14081 | # include <limits.h> |
| 14082 | #else |
| 14083 | # include <assert.h> |
| 14084 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14085 | |
| 14086 | #undef $ac_func |
| 14087 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14088 | /* Override any GCC internal prototype to avoid an error. |
| 14089 | Use char because int might match the return type of a GCC |
| 14090 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14091 | #ifdef __cplusplus |
| 14092 | extern "C" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14093 | #endif |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14094 | char $ac_func (); |
| 14095 | /* The GNU C library defines this for functions which it implements |
| 14096 | to always fail with ENOSYS. Some functions are actually named |
| 14097 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14098 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14099 | choke me |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14100 | #endif |
| 14101 | |
| 14102 | int |
| 14103 | main () |
| 14104 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14105 | return $ac_func (); |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14106 | ; |
| 14107 | return 0; |
| 14108 | } |
| 14109 | _ACEOF |
| 14110 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14111 | if { (ac_try="$ac_link" |
| 14112 | case "(($ac_try" in |
| 14113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14114 | *) ac_try_echo=$ac_try;; |
| 14115 | esac |
| 14116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14117 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14118 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14120 | rm -f conftest.er1 |
| 14121 | cat conftest.err >&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14123 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14125 | { (case "(($ac_try" in |
| 14126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14127 | *) ac_try_echo=$ac_try;; |
| 14128 | esac |
| 14129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14130 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14131 | ac_status=$? |
| 14132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14133 | (exit $ac_status); }; } && |
| 14134 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14135 | { (case "(($ac_try" in |
| 14136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14137 | *) ac_try_echo=$ac_try;; |
| 14138 | esac |
| 14139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14140 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14141 | ac_status=$? |
| 14142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14143 | (exit $ac_status); }; }; then |
| 14144 | eval "$as_ac_var=yes" |
| 14145 | else |
| 14146 | echo "$as_me: failed program was:" >&5 |
| 14147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14148 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14149 | eval "$as_ac_var=no" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14150 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14151 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14152 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14153 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14154 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14155 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14156 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14157 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14158 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14159 | cat >>confdefs.h <<_ACEOF |
| 14160 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14161 | _ACEOF |
| 14162 | |
| 14163 | fi |
| 14164 | done |
| 14165 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 14166 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 14167 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14168 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 14169 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14172 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 14173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14174 | else |
| 14175 | case $ARTSCCONFIG in |
| 14176 | [\\/]* | ?:[\\/]*) |
| 14177 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 14178 | ;; |
| 14179 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14181 | for as_dir in $PATH |
| 14182 | do |
| 14183 | IFS=$as_save_IFS |
| 14184 | test -z "$as_dir" && as_dir=. |
| 14185 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14187 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 14188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14189 | break 2 |
| 14190 | fi |
| 14191 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14192 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14193 | IFS=$as_save_IFS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14194 | |
| 14195 | ;; |
| 14196 | esac |
| 14197 | fi |
| 14198 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14199 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14200 | { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
| 14201 | echo "${ECHO_T}$ARTSCCONFIG" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14202 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14204 | echo "${ECHO_T}no" >&6; } |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14205 | fi |
| 14206 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14207 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14208 | if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; |
| 14209 | then |
Alexandre Julliard | b3b12cf | 2004-02-24 01:24:20 +0000 | [diff] [blame] | 14210 | ARTSC_CFLAGS="" |
| 14211 | for i in `$ARTSCCONFIG --cflags` |
| 14212 | do |
| 14213 | case "$i" in |
| 14214 | -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; |
| 14215 | esac |
| 14216 | done |
Alexandre Julliard | 197a7d0 | 2006-04-04 12:08:30 +0200 | [diff] [blame] | 14217 | ARTSC_LIBS="" |
| 14218 | for i in `$ARTSCCONFIG --libs` |
| 14219 | do |
| 14220 | case "$i" in |
| 14221 | -L/usr/lib|-L/usr/lib64) ;; |
| 14222 | -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";; |
| 14223 | esac |
| 14224 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14225 | save_CFLAGS="$CFLAGS" |
| 14226 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14227 | { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5 |
| 14228 | echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; } |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14229 | if test "${ac_cv_lib_artsc_arts_init+set}" = set; then |
| 14230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14231 | else |
| 14232 | ac_check_lib_save_LIBS=$LIBS |
Vitaliy Margolen | 80816e9 | 2005-06-30 20:46:59 +0000 | [diff] [blame] | 14233 | LIBS="-lartsc $ARTSC_LIBS $LIBS" |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14234 | cat >conftest.$ac_ext <<_ACEOF |
| 14235 | /* confdefs.h. */ |
| 14236 | _ACEOF |
| 14237 | cat confdefs.h >>conftest.$ac_ext |
| 14238 | cat >>conftest.$ac_ext <<_ACEOF |
| 14239 | /* end confdefs.h. */ |
| 14240 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14241 | /* Override any GCC internal prototype to avoid an error. |
| 14242 | Use char because int might match the return type of a GCC |
| 14243 | builtin and then its argument prototype would still apply. */ |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14244 | #ifdef __cplusplus |
| 14245 | extern "C" |
| 14246 | #endif |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14247 | char arts_init (); |
| 14248 | int |
| 14249 | main () |
| 14250 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14251 | return arts_init (); |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14252 | ; |
| 14253 | return 0; |
| 14254 | } |
| 14255 | _ACEOF |
| 14256 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14257 | if { (ac_try="$ac_link" |
| 14258 | case "(($ac_try" in |
| 14259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14260 | *) ac_try_echo=$ac_try;; |
| 14261 | esac |
| 14262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14263 | (eval "$ac_link") 2>conftest.er1 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14264 | ac_status=$? |
| 14265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14266 | rm -f conftest.er1 |
| 14267 | cat conftest.err >&5 |
| 14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14269 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14271 | { (case "(($ac_try" in |
| 14272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14273 | *) ac_try_echo=$ac_try;; |
| 14274 | esac |
| 14275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14276 | (eval "$ac_try") 2>&5 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14277 | ac_status=$? |
| 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14279 | (exit $ac_status); }; } && |
| 14280 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14281 | { (case "(($ac_try" in |
| 14282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14283 | *) ac_try_echo=$ac_try;; |
| 14284 | esac |
| 14285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14286 | (eval "$ac_try") 2>&5 |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14287 | ac_status=$? |
| 14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14289 | (exit $ac_status); }; }; then |
| 14290 | ac_cv_lib_artsc_arts_init=yes |
| 14291 | else |
| 14292 | echo "$as_me: failed program was:" >&5 |
| 14293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14294 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14295 | ac_cv_lib_artsc_arts_init=no |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14296 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14297 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14298 | rm -f core conftest.err conftest.$ac_objext \ |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14299 | conftest$ac_exeext conftest.$ac_ext |
| 14300 | LIBS=$ac_check_lib_save_LIBS |
| 14301 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14302 | { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5 |
| 14303 | echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; } |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14304 | if test $ac_cv_lib_artsc_arts_init = yes; then |
| 14305 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14306 | /* confdefs.h. */ |
| 14307 | _ACEOF |
| 14308 | cat confdefs.h >>conftest.$ac_ext |
| 14309 | cat >>conftest.$ac_ext <<_ACEOF |
| 14310 | /* end confdefs.h. */ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14311 | #include <artsc.h> |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14312 | int |
| 14313 | main () |
| 14314 | { |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14315 | arts_stream_t stream; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14316 | ; |
| 14317 | return 0; |
| 14318 | } |
| 14319 | _ACEOF |
| 14320 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14321 | if { (ac_try="$ac_compile" |
| 14322 | case "(($ac_try" in |
| 14323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14324 | *) ac_try_echo=$ac_try;; |
| 14325 | esac |
| 14326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14327 | (eval "$ac_compile") 2>conftest.er1 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14328 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14330 | rm -f conftest.er1 |
| 14331 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14333 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14335 | { (case "(($ac_try" in |
| 14336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14337 | *) ac_try_echo=$ac_try;; |
| 14338 | esac |
| 14339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14340 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14341 | ac_status=$? |
| 14342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14343 | (exit $ac_status); }; } && |
| 14344 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14345 | { (case "(($ac_try" in |
| 14346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14347 | *) ac_try_echo=$ac_try;; |
| 14348 | esac |
| 14349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14350 | (eval "$ac_try") 2>&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14351 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14353 | (exit $ac_status); }; }; then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14354 | ARTSLIBS=$ARTSC_LIBS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14355 | |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14356 | ARTSINCL=$ARTSC_CFLAGS |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14357 | |
| 14358 | |
| 14359 | cat >>confdefs.h <<\_ACEOF |
| 14360 | #define HAVE_ARTS 1 |
| 14361 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14362 | |
| 14363 | else |
| 14364 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14366 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14367 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14368 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14369 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jacek Caban | 6f8f475 | 2005-03-28 09:58:45 +0000 | [diff] [blame] | 14371 | fi |
| 14372 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 14373 | CFLAGS="$save_CFLAGS" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14374 | fi |
| 14375 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14376 | # Extract the first word of "esd-config", so it can be a program name with args. |
| 14377 | set dummy esd-config; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14380 | if test "${ac_cv_path_ESDCONFIG+set}" = set; then |
| 14381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14382 | else |
| 14383 | case $ESDCONFIG in |
| 14384 | [\\/]* | ?:[\\/]*) |
| 14385 | ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path. |
| 14386 | ;; |
| 14387 | *) |
| 14388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14389 | for as_dir in $PATH |
| 14390 | do |
| 14391 | IFS=$as_save_IFS |
| 14392 | test -z "$as_dir" && as_dir=. |
| 14393 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14395 | ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 14396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14397 | break 2 |
| 14398 | fi |
| 14399 | done |
| 14400 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14401 | IFS=$as_save_IFS |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14402 | |
| 14403 | ;; |
| 14404 | esac |
| 14405 | fi |
| 14406 | ESDCONFIG=$ac_cv_path_ESDCONFIG |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14407 | if test -n "$ESDCONFIG"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14408 | { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5 |
| 14409 | echo "${ECHO_T}$ESDCONFIG" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14410 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14412 | echo "${ECHO_T}no" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14413 | fi |
| 14414 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14415 | |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14416 | if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"'; |
| 14417 | then |
| 14418 | ESD_CFLAGS="" |
| 14419 | for i in `$ESDCONFIG --cflags` |
| 14420 | do |
| 14421 | case "$i" in |
| 14422 | -I*) ESD_CFLAGS="$ESD_CFLAGS $i";; |
| 14423 | esac |
| 14424 | done |
| 14425 | ESD_LIBS=`$ESDCONFIG --libs` |
| 14426 | save_CFLAGS="$CFLAGS" |
| 14427 | CFLAGS="$CFLAGS $ESD_CFLAGS" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14428 | { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5 |
| 14429 | echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14430 | if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then |
| 14431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14432 | else |
| 14433 | ac_check_lib_save_LIBS=$LIBS |
| 14434 | LIBS="-lesd $LIBS" |
| 14435 | cat >conftest.$ac_ext <<_ACEOF |
| 14436 | /* confdefs.h. */ |
| 14437 | _ACEOF |
| 14438 | cat confdefs.h >>conftest.$ac_ext |
| 14439 | cat >>conftest.$ac_ext <<_ACEOF |
| 14440 | /* end confdefs.h. */ |
| 14441 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14442 | /* Override any GCC internal prototype to avoid an error. |
| 14443 | Use char because int might match the return type of a GCC |
| 14444 | builtin and then its argument prototype would still apply. */ |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14445 | #ifdef __cplusplus |
| 14446 | extern "C" |
| 14447 | #endif |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14448 | char esd_open_sound (); |
| 14449 | int |
| 14450 | main () |
| 14451 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14452 | return esd_open_sound (); |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14453 | ; |
| 14454 | return 0; |
| 14455 | } |
| 14456 | _ACEOF |
| 14457 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14458 | if { (ac_try="$ac_link" |
| 14459 | case "(($ac_try" in |
| 14460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14461 | *) ac_try_echo=$ac_try;; |
| 14462 | esac |
| 14463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14464 | (eval "$ac_link") 2>conftest.er1 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14465 | ac_status=$? |
| 14466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14467 | rm -f conftest.er1 |
| 14468 | cat conftest.err >&5 |
| 14469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14470 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14472 | { (case "(($ac_try" in |
| 14473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14474 | *) ac_try_echo=$ac_try;; |
| 14475 | esac |
| 14476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14477 | (eval "$ac_try") 2>&5 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14478 | ac_status=$? |
| 14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14480 | (exit $ac_status); }; } && |
| 14481 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14482 | { (case "(($ac_try" in |
| 14483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14484 | *) ac_try_echo=$ac_try;; |
| 14485 | esac |
| 14486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14487 | (eval "$ac_try") 2>&5 |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14488 | ac_status=$? |
| 14489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14490 | (exit $ac_status); }; }; then |
| 14491 | ac_cv_lib_esd_esd_open_sound=yes |
| 14492 | else |
| 14493 | echo "$as_me: failed program was:" >&5 |
| 14494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14495 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14496 | ac_cv_lib_esd_esd_open_sound=no |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14497 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14498 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14499 | rm -f core conftest.err conftest.$ac_objext \ |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14500 | conftest$ac_exeext conftest.$ac_ext |
| 14501 | LIBS=$ac_check_lib_save_LIBS |
| 14502 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14503 | { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5 |
| 14504 | echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; } |
Peter Ă…strand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 14505 | if test $ac_cv_lib_esd_esd_open_sound = yes; then |
| 14506 | ESDLIBS=$ESD_LIBS |
| 14507 | |
| 14508 | ESDINCL=$ESD_CFLAGS |
| 14509 | |
| 14510 | |
| 14511 | cat >>confdefs.h <<\_ACEOF |
| 14512 | #define HAVE_ESD 1 |
| 14513 | _ACEOF |
| 14514 | |
| 14515 | fi |
| 14516 | |
| 14517 | CFLAGS="$save_CFLAGS" |
| 14518 | fi |
| 14519 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14520 | ALSALIBS="" |
| 14521 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 14522 | if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes" |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14523 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14524 | { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5 |
| 14525 | echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; } |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14526 | if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14528 | else |
| 14529 | ac_check_lib_save_LIBS=$LIBS |
| 14530 | LIBS="-lasound $LIBS" |
| 14531 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14532 | /* confdefs.h. */ |
| 14533 | _ACEOF |
| 14534 | cat confdefs.h >>conftest.$ac_ext |
| 14535 | cat >>conftest.$ac_ext <<_ACEOF |
| 14536 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14537 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14538 | /* Override any GCC internal prototype to avoid an error. |
| 14539 | Use char because int might match the return type of a GCC |
| 14540 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14541 | #ifdef __cplusplus |
| 14542 | extern "C" |
| 14543 | #endif |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14544 | char snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14545 | int |
| 14546 | main () |
| 14547 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14548 | return snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14549 | ; |
| 14550 | return 0; |
| 14551 | } |
| 14552 | _ACEOF |
| 14553 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14554 | if { (ac_try="$ac_link" |
| 14555 | case "(($ac_try" in |
| 14556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14557 | *) ac_try_echo=$ac_try;; |
| 14558 | esac |
| 14559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14560 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14561 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14563 | rm -f conftest.er1 |
| 14564 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14566 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14568 | { (case "(($ac_try" in |
| 14569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14570 | *) ac_try_echo=$ac_try;; |
| 14571 | esac |
| 14572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14573 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14574 | ac_status=$? |
| 14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14576 | (exit $ac_status); }; } && |
| 14577 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14578 | { (case "(($ac_try" in |
| 14579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14580 | *) ac_try_echo=$ac_try;; |
| 14581 | esac |
| 14582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14583 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14584 | ac_status=$? |
| 14585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14586 | (exit $ac_status); }; }; then |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14587 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14588 | else |
| 14589 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14591 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14592 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14593 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14594 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14595 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14596 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14597 | LIBS=$ac_check_lib_save_LIBS |
| 14598 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14599 | { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5 |
| 14600 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; } |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14601 | if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then |
| 14602 | cat >conftest.$ac_ext <<_ACEOF |
| 14603 | /* confdefs.h. */ |
| 14604 | _ACEOF |
| 14605 | cat confdefs.h >>conftest.$ac_ext |
| 14606 | cat >>conftest.$ac_ext <<_ACEOF |
| 14607 | /* end confdefs.h. */ |
| 14608 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 14609 | #include <alsa/asoundlib.h> |
| 14610 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 14611 | #include <sys/asoundlib.h> |
| 14612 | #endif |
| 14613 | int |
| 14614 | main () |
| 14615 | { |
| 14616 | int ret = snd_pcm_hw_params_get_access(NULL, NULL) |
| 14617 | ; |
| 14618 | return 0; |
| 14619 | } |
| 14620 | _ACEOF |
| 14621 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14622 | if { (ac_try="$ac_compile" |
| 14623 | case "(($ac_try" in |
| 14624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14625 | *) ac_try_echo=$ac_try;; |
| 14626 | esac |
| 14627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14628 | (eval "$ac_compile") 2>conftest.er1 |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14629 | ac_status=$? |
| 14630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14631 | rm -f conftest.er1 |
| 14632 | cat conftest.err >&5 |
| 14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14634 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14636 | { (case "(($ac_try" in |
| 14637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14638 | *) ac_try_echo=$ac_try;; |
| 14639 | esac |
| 14640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14641 | (eval "$ac_try") 2>&5 |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14642 | ac_status=$? |
| 14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14644 | (exit $ac_status); }; } && |
| 14645 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14646 | { (case "(($ac_try" in |
| 14647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14648 | *) ac_try_echo=$ac_try;; |
| 14649 | esac |
| 14650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14651 | (eval "$ac_try") 2>&5 |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14652 | ac_status=$? |
| 14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14654 | (exit $ac_status); }; }; then |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14655 | |
| 14656 | cat >>confdefs.h <<\_ACEOF |
| 14657 | #define HAVE_ALSA 1 |
| 14658 | _ACEOF |
| 14659 | |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14660 | ALSALIBS="-lasound" |
| 14661 | else |
| 14662 | echo "$as_me: failed program was:" >&5 |
| 14663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14664 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14665 | |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 14666 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14667 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14669 | fi |
| 14670 | |
| 14671 | fi |
| 14672 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14673 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14674 | AUDIOIOLIBS="" |
| 14675 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 14676 | if test "$ac_cv_header_libaudioio_h" = "yes" |
| 14677 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14678 | { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 14679 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; } |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14680 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 14681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14682 | else |
| 14683 | ac_check_lib_save_LIBS=$LIBS |
| 14684 | LIBS="-laudioio $LIBS" |
| 14685 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14686 | /* confdefs.h. */ |
| 14687 | _ACEOF |
| 14688 | cat confdefs.h >>conftest.$ac_ext |
| 14689 | cat >>conftest.$ac_ext <<_ACEOF |
| 14690 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14691 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14692 | /* Override any GCC internal prototype to avoid an error. |
| 14693 | Use char because int might match the return type of a GCC |
| 14694 | builtin and then its argument prototype would still apply. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14695 | #ifdef __cplusplus |
| 14696 | extern "C" |
| 14697 | #endif |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14698 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14699 | int |
| 14700 | main () |
| 14701 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14702 | return AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14703 | ; |
| 14704 | return 0; |
| 14705 | } |
| 14706 | _ACEOF |
| 14707 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14708 | if { (ac_try="$ac_link" |
| 14709 | case "(($ac_try" in |
| 14710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14711 | *) ac_try_echo=$ac_try;; |
| 14712 | esac |
| 14713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14714 | (eval "$ac_link") 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14715 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14717 | rm -f conftest.er1 |
| 14718 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14720 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14722 | { (case "(($ac_try" in |
| 14723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14724 | *) ac_try_echo=$ac_try;; |
| 14725 | esac |
| 14726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14727 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14728 | ac_status=$? |
| 14729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14730 | (exit $ac_status); }; } && |
| 14731 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14732 | { (case "(($ac_try" in |
| 14733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14734 | *) ac_try_echo=$ac_try;; |
| 14735 | esac |
| 14736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14737 | (eval "$ac_try") 2>&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14738 | ac_status=$? |
| 14739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14740 | (exit $ac_status); }; }; then |
| 14741 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 14742 | else |
| 14743 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14745 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14746 | ac_cv_lib_audioio_AudioIOGetVersion=no |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14747 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14748 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14749 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14750 | conftest$ac_exeext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14751 | LIBS=$ac_check_lib_save_LIBS |
| 14752 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14753 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 14754 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; } |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14755 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 14756 | AUDIOIOLIBS="-laudioio" |
| 14757 | |
| 14758 | cat >>confdefs.h <<\_ACEOF |
| 14759 | #define HAVE_LIBAUDIOIO 1 |
| 14760 | _ACEOF |
| 14761 | |
| 14762 | fi |
| 14763 | |
| 14764 | fi |
| 14765 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14766 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 14767 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 14768 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14769 | { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5 |
| 14770 | echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14771 | if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then |
| 14772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14773 | else |
| 14774 | ac_check_lib_save_LIBS=$LIBS |
| 14775 | LIBS="-lcapi20 $LIBS" |
| 14776 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14777 | /* confdefs.h. */ |
| 14778 | _ACEOF |
| 14779 | cat confdefs.h >>conftest.$ac_ext |
| 14780 | cat >>conftest.$ac_ext <<_ACEOF |
| 14781 | /* end confdefs.h. */ |
| 14782 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14783 | /* Override any GCC internal prototype to avoid an error. |
| 14784 | Use char because int might match the return type of a GCC |
| 14785 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14786 | #ifdef __cplusplus |
| 14787 | extern "C" |
| 14788 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14789 | char capi20_register (); |
| 14790 | int |
| 14791 | main () |
| 14792 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14793 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14794 | ; |
| 14795 | return 0; |
| 14796 | } |
| 14797 | _ACEOF |
| 14798 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14799 | if { (ac_try="$ac_link" |
| 14800 | case "(($ac_try" in |
| 14801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14802 | *) ac_try_echo=$ac_try;; |
| 14803 | esac |
| 14804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14805 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14806 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14808 | rm -f conftest.er1 |
| 14809 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14811 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14813 | { (case "(($ac_try" in |
| 14814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14815 | *) ac_try_echo=$ac_try;; |
| 14816 | esac |
| 14817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14818 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14819 | ac_status=$? |
| 14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14821 | (exit $ac_status); }; } && |
| 14822 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14823 | { (case "(($ac_try" in |
| 14824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14825 | *) ac_try_echo=$ac_try;; |
| 14826 | esac |
| 14827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14828 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14829 | ac_status=$? |
| 14830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14831 | (exit $ac_status); }; }; then |
| 14832 | ac_cv_lib_capi20_capi20_register=yes |
| 14833 | else |
| 14834 | echo "$as_me: failed program was:" >&5 |
| 14835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14836 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14837 | ac_cv_lib_capi20_capi20_register=no |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14838 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14839 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14840 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14841 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14842 | LIBS=$ac_check_lib_save_LIBS |
| 14843 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14844 | { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5 |
| 14845 | echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14846 | if test $ac_cv_lib_capi20_capi20_register = yes; then |
| 14847 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14848 | cat >>confdefs.h <<\_ACEOF |
| 14849 | #define HAVE_CAPI4LINUX 1 |
| 14850 | _ACEOF |
| 14851 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14852 | fi |
| 14853 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14854 | fi |
| 14855 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 14856 | |
Robert Shearman | 68249c1 | 2006-07-25 10:36:06 +0100 | [diff] [blame] | 14857 | if test "$ac_cv_header_gif_lib_h" = "yes" |
| 14858 | then |
| 14859 | cat >conftest.$ac_ext <<_ACEOF |
| 14860 | /* confdefs.h. */ |
| 14861 | _ACEOF |
| 14862 | cat confdefs.h >>conftest.$ac_ext |
| 14863 | cat >>conftest.$ac_ext <<_ACEOF |
| 14864 | /* end confdefs.h. */ |
| 14865 | #include <gif_lib.h> |
| 14866 | int |
| 14867 | main () |
| 14868 | { |
| 14869 | static typeof(DGifOpen) * func; |
| 14870 | ; |
| 14871 | return 0; |
| 14872 | } |
| 14873 | _ACEOF |
| 14874 | rm -f conftest.$ac_objext |
| 14875 | if { (ac_try="$ac_compile" |
| 14876 | case "(($ac_try" in |
| 14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14878 | *) ac_try_echo=$ac_try;; |
| 14879 | esac |
| 14880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14881 | (eval "$ac_compile") 2>conftest.er1 |
| 14882 | ac_status=$? |
| 14883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14884 | rm -f conftest.er1 |
| 14885 | cat conftest.err >&5 |
| 14886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14887 | (exit $ac_status); } && |
| 14888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14889 | { (case "(($ac_try" in |
| 14890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14891 | *) ac_try_echo=$ac_try;; |
| 14892 | esac |
| 14893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14894 | (eval "$ac_try") 2>&5 |
| 14895 | ac_status=$? |
| 14896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14897 | (exit $ac_status); }; } && |
| 14898 | { ac_try='test -s conftest.$ac_objext' |
| 14899 | { (case "(($ac_try" in |
| 14900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14901 | *) ac_try_echo=$ac_try;; |
| 14902 | esac |
| 14903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14904 | (eval "$ac_try") 2>&5 |
| 14905 | ac_status=$? |
| 14906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14907 | (exit $ac_status); }; }; then |
| 14908 | |
| 14909 | cat >>confdefs.h <<\_ACEOF |
| 14910 | #define HAVE_GIF 1 |
| 14911 | _ACEOF |
| 14912 | |
| 14913 | else |
| 14914 | echo "$as_me: failed program was:" >&5 |
| 14915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14916 | |
| 14917 | |
| 14918 | fi |
| 14919 | |
| 14920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14921 | fi |
| 14922 | |
| 14923 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14924 | EXTRACFLAGS="" |
| 14925 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14926 | if test "x${GCC}" = "xyes" |
| 14927 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 14928 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 14929 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14930 | { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
| 14931 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14932 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 14933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14934 | else |
| 14935 | if test "$cross_compiling" = yes; then |
| 14936 | ac_cv_c_gcc_strength_bug="yes" |
| 14937 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14938 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14939 | /* confdefs.h. */ |
| 14940 | _ACEOF |
| 14941 | cat confdefs.h >>conftest.$ac_ext |
| 14942 | cat >>conftest.$ac_ext <<_ACEOF |
| 14943 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14944 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14945 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14946 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 14947 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14948 | unsigned int B = 3; |
| 14949 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 14950 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14951 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 14952 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14953 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 14954 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14955 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14956 | _ACEOF |
| 14957 | rm -f conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14958 | if { (ac_try="$ac_link" |
| 14959 | case "(($ac_try" in |
| 14960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14961 | *) ac_try_echo=$ac_try;; |
| 14962 | esac |
| 14963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14964 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14965 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 14968 | { (case "(($ac_try" in |
| 14969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14970 | *) ac_try_echo=$ac_try;; |
| 14971 | esac |
| 14972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14973 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14974 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14976 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14977 | ac_cv_c_gcc_strength_bug="no" |
| 14978 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14979 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14980 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14982 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14983 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14984 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14985 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14986 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14987 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14988 | |
| 14989 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14990 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14991 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
| 14992 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14993 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 14994 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14995 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14996 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 14997 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14998 | { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5 |
| 14999 | echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15000 | if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then |
| 15001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15002 | else |
| 15003 | ac_wine_try_cflags_saved=$CFLAGS |
| 15004 | CFLAGS="$CFLAGS -fshort-wchar" |
| 15005 | cat >conftest.$ac_ext <<_ACEOF |
| 15006 | /* confdefs.h. */ |
| 15007 | _ACEOF |
| 15008 | cat confdefs.h >>conftest.$ac_ext |
| 15009 | cat >>conftest.$ac_ext <<_ACEOF |
| 15010 | /* end confdefs.h. */ |
| 15011 | |
| 15012 | int |
| 15013 | main () |
| 15014 | { |
| 15015 | |
| 15016 | ; |
| 15017 | return 0; |
| 15018 | } |
| 15019 | _ACEOF |
| 15020 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15021 | if { (ac_try="$ac_link" |
| 15022 | case "(($ac_try" in |
| 15023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15024 | *) ac_try_echo=$ac_try;; |
| 15025 | esac |
| 15026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15027 | (eval "$ac_link") 2>conftest.er1 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15028 | ac_status=$? |
| 15029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15030 | rm -f conftest.er1 |
| 15031 | cat conftest.err >&5 |
| 15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15033 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15034 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15035 | { (case "(($ac_try" in |
| 15036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15037 | *) ac_try_echo=$ac_try;; |
| 15038 | esac |
| 15039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15040 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15041 | ac_status=$? |
| 15042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15043 | (exit $ac_status); }; } && |
| 15044 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15045 | { (case "(($ac_try" in |
| 15046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15047 | *) ac_try_echo=$ac_try;; |
| 15048 | esac |
| 15049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15050 | (eval "$ac_try") 2>&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15051 | ac_status=$? |
| 15052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15053 | (exit $ac_status); }; }; then |
| 15054 | ac_cv_c_gcc_fshort_wchar="yes" |
| 15055 | else |
| 15056 | echo "$as_me: failed program was:" >&5 |
| 15057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15058 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15059 | ac_cv_c_gcc_fshort_wchar="no" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15060 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15061 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15062 | rm -f core conftest.err conftest.$ac_objext \ |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15063 | conftest$ac_exeext conftest.$ac_ext |
| 15064 | CFLAGS=$ac_wine_try_cflags_saved |
| 15065 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15066 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5 |
| 15067 | echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15068 | if test "$ac_cv_c_gcc_fshort_wchar" = "yes" |
| 15069 | then |
| 15070 | |
| 15071 | cat >>confdefs.h <<\_ACEOF |
| 15072 | #define CC_FLAG_SHORT_WCHAR "-fshort-wchar" |
| 15073 | _ACEOF |
| 15074 | |
| 15075 | fi |
| 15076 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15077 | { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5 |
| 15078 | echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15079 | if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then |
| 15080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15081 | else |
| 15082 | ac_wine_try_cflags_saved=$CFLAGS |
| 15083 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 15084 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15085 | /* confdefs.h. */ |
| 15086 | _ACEOF |
| 15087 | cat confdefs.h >>conftest.$ac_ext |
| 15088 | cat >>conftest.$ac_ext <<_ACEOF |
| 15089 | /* end confdefs.h. */ |
| 15090 | |
| 15091 | int |
| 15092 | main () |
| 15093 | { |
| 15094 | |
| 15095 | ; |
| 15096 | return 0; |
| 15097 | } |
| 15098 | _ACEOF |
| 15099 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15100 | if { (ac_try="$ac_link" |
| 15101 | case "(($ac_try" in |
| 15102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15103 | *) ac_try_echo=$ac_try;; |
| 15104 | esac |
| 15105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15106 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15107 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15109 | rm -f conftest.er1 |
| 15110 | cat conftest.err >&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15112 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15114 | { (case "(($ac_try" in |
| 15115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15116 | *) ac_try_echo=$ac_try;; |
| 15117 | esac |
| 15118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15119 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15120 | ac_status=$? |
| 15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15122 | (exit $ac_status); }; } && |
| 15123 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15124 | { (case "(($ac_try" in |
| 15125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15126 | *) ac_try_echo=$ac_try;; |
| 15127 | esac |
| 15128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15129 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15130 | ac_status=$? |
| 15131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15132 | (exit $ac_status); }; }; then |
| 15133 | ac_cv_c_gcc_no_strict_aliasing="yes" |
| 15134 | else |
| 15135 | echo "$as_me: failed program was:" >&5 |
| 15136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15137 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15138 | ac_cv_c_gcc_no_strict_aliasing="no" |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15139 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15140 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15141 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15142 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15143 | CFLAGS=$ac_wine_try_cflags_saved |
| 15144 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15145 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5 |
| 15146 | echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 15147 | if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes" |
| 15148 | then |
| 15149 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 15150 | fi |
| 15151 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15152 | { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5 |
| 15153 | echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; } |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15154 | if test "${ac_cv_c_gcc_gstabs+set}" = set; then |
| 15155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15156 | else |
| 15157 | ac_wine_try_cflags_saved=$CFLAGS |
| 15158 | CFLAGS="$CFLAGS -gstabs+" |
| 15159 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15160 | /* confdefs.h. */ |
| 15161 | _ACEOF |
| 15162 | cat confdefs.h >>conftest.$ac_ext |
| 15163 | cat >>conftest.$ac_ext <<_ACEOF |
| 15164 | /* end confdefs.h. */ |
| 15165 | |
| 15166 | int |
| 15167 | main () |
| 15168 | { |
| 15169 | |
| 15170 | ; |
| 15171 | return 0; |
| 15172 | } |
| 15173 | _ACEOF |
| 15174 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15175 | if { (ac_try="$ac_link" |
| 15176 | case "(($ac_try" in |
| 15177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15178 | *) ac_try_echo=$ac_try;; |
| 15179 | esac |
| 15180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15181 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15182 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15184 | rm -f conftest.er1 |
| 15185 | cat conftest.err >&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15187 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15188 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15189 | { (case "(($ac_try" in |
| 15190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15191 | *) ac_try_echo=$ac_try;; |
| 15192 | esac |
| 15193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15194 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15195 | ac_status=$? |
| 15196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15197 | (exit $ac_status); }; } && |
| 15198 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15199 | { (case "(($ac_try" in |
| 15200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15201 | *) ac_try_echo=$ac_try;; |
| 15202 | esac |
| 15203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15204 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15205 | ac_status=$? |
| 15206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15207 | (exit $ac_status); }; }; then |
| 15208 | ac_cv_c_gcc_gstabs="yes" |
| 15209 | else |
| 15210 | echo "$as_me: failed program was:" >&5 |
| 15211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15212 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15213 | ac_cv_c_gcc_gstabs="no" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15214 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15215 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15216 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15217 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15218 | CFLAGS=$ac_wine_try_cflags_saved |
| 15219 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15220 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5 |
| 15221 | echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; } |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15222 | if test "$ac_cv_c_gcc_gstabs" = "yes" |
| 15223 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 15224 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 15225 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15226 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15227 | { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5 |
| 15228 | echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15229 | if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then |
| 15230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15231 | else |
| 15232 | ac_wine_try_cflags_saved=$CFLAGS |
| 15233 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
| 15234 | cat >conftest.$ac_ext <<_ACEOF |
| 15235 | /* confdefs.h. */ |
| 15236 | _ACEOF |
| 15237 | cat confdefs.h >>conftest.$ac_ext |
| 15238 | cat >>conftest.$ac_ext <<_ACEOF |
| 15239 | /* end confdefs.h. */ |
| 15240 | |
| 15241 | int |
| 15242 | main () |
| 15243 | { |
| 15244 | |
| 15245 | ; |
| 15246 | return 0; |
| 15247 | } |
| 15248 | _ACEOF |
| 15249 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15250 | if { (ac_try="$ac_link" |
| 15251 | case "(($ac_try" in |
| 15252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15253 | *) ac_try_echo=$ac_try;; |
| 15254 | esac |
| 15255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15256 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15257 | ac_status=$? |
| 15258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15259 | rm -f conftest.er1 |
| 15260 | cat conftest.err >&5 |
| 15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15262 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15263 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15264 | { (case "(($ac_try" in |
| 15265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15266 | *) ac_try_echo=$ac_try;; |
| 15267 | esac |
| 15268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15269 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15270 | ac_status=$? |
| 15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15272 | (exit $ac_status); }; } && |
| 15273 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15274 | { (case "(($ac_try" in |
| 15275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15276 | *) ac_try_echo=$ac_try;; |
| 15277 | esac |
| 15278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15279 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15280 | ac_status=$? |
| 15281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15282 | (exit $ac_status); }; }; then |
| 15283 | ac_cv_c_gcc_decl_after_statement="yes" |
| 15284 | else |
| 15285 | echo "$as_me: failed program was:" >&5 |
| 15286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15287 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15288 | ac_cv_c_gcc_decl_after_statement="no" |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15289 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15290 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15291 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15292 | conftest$ac_exeext conftest.$ac_ext |
| 15293 | CFLAGS=$ac_wine_try_cflags_saved |
| 15294 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15295 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5 |
| 15296 | echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 15297 | if test "$ac_cv_c_gcc_decl_after_statement" = "yes" |
| 15298 | then |
| 15299 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 15300 | fi |
| 15301 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 15302 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15303 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15304 | { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 15305 | echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; } |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15306 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 15307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15308 | else |
| 15309 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15310 | /* confdefs.h. */ |
| 15311 | _ACEOF |
| 15312 | cat confdefs.h >>conftest.$ac_ext |
| 15313 | cat >>conftest.$ac_ext <<_ACEOF |
| 15314 | /* end confdefs.h. */ |
| 15315 | #include <string.h> |
| 15316 | int |
| 15317 | main () |
| 15318 | { |
| 15319 | |
| 15320 | ; |
| 15321 | return 0; |
| 15322 | } |
| 15323 | _ACEOF |
| 15324 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15325 | if { (ac_try="$ac_compile" |
| 15326 | case "(($ac_try" in |
| 15327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15328 | *) ac_try_echo=$ac_try;; |
| 15329 | esac |
| 15330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15331 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15332 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15334 | rm -f conftest.er1 |
| 15335 | cat conftest.err >&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15337 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15339 | { (case "(($ac_try" in |
| 15340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15341 | *) ac_try_echo=$ac_try;; |
| 15342 | esac |
| 15343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15344 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15345 | ac_status=$? |
| 15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15347 | (exit $ac_status); }; } && |
| 15348 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15349 | { (case "(($ac_try" in |
| 15350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15351 | *) ac_try_echo=$ac_try;; |
| 15352 | esac |
| 15353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15354 | (eval "$ac_try") 2>&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15355 | ac_status=$? |
| 15356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15357 | (exit $ac_status); }; }; then |
| 15358 | ac_cv_c_string_h_warnings=no |
| 15359 | else |
| 15360 | echo "$as_me: failed program was:" >&5 |
| 15361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15362 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15363 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15364 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15365 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15367 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15368 | { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 15369 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 15370 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15371 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 15372 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 15373 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 15374 | fi |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15375 | |
| 15376 | BUILTINFLAG="" |
| 15377 | |
| 15378 | saved_CFLAGS="$CFLAGS" |
| 15379 | CFLAGS="$CFLAGS -Werror" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15380 | { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5 |
| 15381 | echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; } |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15382 | if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then |
| 15383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15384 | else |
| 15385 | cat >conftest.$ac_ext <<_ACEOF |
| 15386 | /* confdefs.h. */ |
| 15387 | _ACEOF |
| 15388 | cat confdefs.h >>conftest.$ac_ext |
| 15389 | cat >>conftest.$ac_ext <<_ACEOF |
| 15390 | /* end confdefs.h. */ |
| 15391 | |
| 15392 | int |
| 15393 | main () |
| 15394 | { |
| 15395 | int iswlower(unsigned short); |
| 15396 | ; |
| 15397 | return 0; |
| 15398 | } |
| 15399 | _ACEOF |
| 15400 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15401 | if { (ac_try="$ac_compile" |
| 15402 | case "(($ac_try" in |
| 15403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15404 | *) ac_try_echo=$ac_try;; |
| 15405 | esac |
| 15406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15407 | (eval "$ac_compile") 2>conftest.er1 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15408 | ac_status=$? |
| 15409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15410 | rm -f conftest.er1 |
| 15411 | cat conftest.err >&5 |
| 15412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15413 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15415 | { (case "(($ac_try" in |
| 15416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15417 | *) ac_try_echo=$ac_try;; |
| 15418 | esac |
| 15419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15420 | (eval "$ac_try") 2>&5 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15421 | ac_status=$? |
| 15422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15423 | (exit $ac_status); }; } && |
| 15424 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15425 | { (case "(($ac_try" in |
| 15426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15427 | *) ac_try_echo=$ac_try;; |
| 15428 | esac |
| 15429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15430 | (eval "$ac_try") 2>&5 |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15431 | ac_status=$? |
| 15432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15433 | (exit $ac_status); }; }; then |
| 15434 | ac_cv_c_builtin_wchar_ctype=no |
| 15435 | else |
| 15436 | echo "$as_me: failed program was:" >&5 |
| 15437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15438 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15439 | ac_cv_c_builtin_wchar_ctype=yes |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15440 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15441 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15443 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15444 | { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5 |
| 15445 | echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; } |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15446 | CFLAGS="$saved_CFLAGS" |
| 15447 | if test "$ac_cv_c_builtin_wchar_ctype" = "yes" |
| 15448 | then |
Mike McCormack | a26dabe | 2006-07-19 19:16:59 +0900 | [diff] [blame] | 15449 | BUILTINFLAG="-fno-builtin" |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 15450 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 15451 | fi |
| 15452 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15453 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15454 | { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 15455 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15456 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 15458 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15459 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15460 | /* confdefs.h. */ |
| 15461 | _ACEOF |
| 15462 | cat confdefs.h >>conftest.$ac_ext |
| 15463 | cat >>conftest.$ac_ext <<_ACEOF |
| 15464 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15465 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); } |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 15466 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15467 | int |
| 15468 | main () |
| 15469 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 15470 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15471 | ; |
| 15472 | return 0; |
| 15473 | } |
| 15474 | _ACEOF |
| 15475 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15476 | if { (ac_try="$ac_link" |
| 15477 | case "(($ac_try" in |
| 15478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15479 | *) ac_try_echo=$ac_try;; |
| 15480 | esac |
| 15481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15482 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15483 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15485 | rm -f conftest.er1 |
| 15486 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15488 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15490 | { (case "(($ac_try" in |
| 15491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15492 | *) ac_try_echo=$ac_try;; |
| 15493 | esac |
| 15494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15495 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15496 | ac_status=$? |
| 15497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15498 | (exit $ac_status); }; } && |
| 15499 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15500 | { (case "(($ac_try" in |
| 15501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15502 | *) ac_try_echo=$ac_try;; |
| 15503 | esac |
| 15504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15505 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15506 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15508 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15509 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 15510 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15511 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15513 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15514 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15515 | /* confdefs.h. */ |
| 15516 | _ACEOF |
| 15517 | cat confdefs.h >>conftest.$ac_ext |
| 15518 | cat >>conftest.$ac_ext <<_ACEOF |
| 15519 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15520 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15521 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15522 | int |
| 15523 | main () |
| 15524 | { |
| 15525 | |
| 15526 | ; |
| 15527 | return 0; |
| 15528 | } |
| 15529 | _ACEOF |
| 15530 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15531 | if { (ac_try="$ac_link" |
| 15532 | case "(($ac_try" in |
| 15533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15534 | *) ac_try_echo=$ac_try;; |
| 15535 | esac |
| 15536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15537 | (eval "$ac_link") 2>conftest.er1 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15538 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15540 | rm -f conftest.er1 |
| 15541 | cat conftest.err >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15543 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15545 | { (case "(($ac_try" in |
| 15546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15547 | *) ac_try_echo=$ac_try;; |
| 15548 | esac |
| 15549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15550 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15551 | ac_status=$? |
| 15552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15553 | (exit $ac_status); }; } && |
| 15554 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15555 | { (case "(($ac_try" in |
| 15556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15557 | *) ac_try_echo=$ac_try;; |
| 15558 | esac |
| 15559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15560 | (eval "$ac_try") 2>&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15561 | ac_status=$? |
| 15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15563 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15564 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15565 | else |
| 15566 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15568 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15569 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15570 | /* confdefs.h. */ |
| 15571 | _ACEOF |
| 15572 | cat confdefs.h >>conftest.$ac_ext |
| 15573 | cat >>conftest.$ac_ext <<_ACEOF |
| 15574 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15575 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15576 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15577 | int |
| 15578 | main () |
| 15579 | { |
| 15580 | |
| 15581 | ; |
| 15582 | return 0; |
| 15583 | } |
| 15584 | _ACEOF |
| 15585 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15586 | if { (ac_try="$ac_link" |
| 15587 | case "(($ac_try" in |
| 15588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15589 | *) ac_try_echo=$ac_try;; |
| 15590 | esac |
| 15591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15592 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15593 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15595 | rm -f conftest.er1 |
| 15596 | cat conftest.err >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15598 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15600 | { (case "(($ac_try" in |
| 15601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15602 | *) ac_try_echo=$ac_try;; |
| 15603 | esac |
| 15604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15605 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15606 | ac_status=$? |
| 15607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15608 | (exit $ac_status); }; } && |
| 15609 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15610 | { (case "(($ac_try" in |
| 15611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15612 | *) ac_try_echo=$ac_try;; |
| 15613 | esac |
| 15614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15615 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15616 | ac_status=$? |
| 15617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15618 | (exit $ac_status); }; }; then |
| 15619 | ac_cv_asm_func_def=".type 2" |
| 15620 | else |
| 15621 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15623 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15624 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15625 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15626 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15627 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15628 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15629 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15630 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15631 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15632 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15633 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15634 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15635 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15636 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15637 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15638 | { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 15639 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15640 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15641 | |
| 15642 | |
| 15643 | case "$ac_cv_asm_func_def" in |
| 15644 | ".def") |
| 15645 | cat >>confdefs.h <<\_ACEOF |
| 15646 | #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15647 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15648 | ;; |
| 15649 | ".type @function") |
| 15650 | cat >>confdefs.h <<\_ACEOF |
| 15651 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 15652 | _ACEOF |
| 15653 | ;; |
| 15654 | ".type 2") |
| 15655 | cat >>confdefs.h <<\_ACEOF |
| 15656 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 15657 | _ACEOF |
| 15658 | ;; |
| 15659 | *) |
| 15660 | cat >>confdefs.h <<\_ACEOF |
| 15661 | #define __ASM_FUNC(name) "" |
| 15662 | _ACEOF |
| 15663 | ;; |
| 15664 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15665 | |
| 15666 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15667 | { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5 |
| 15668 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15669 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 15670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15671 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15672 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15673 | /* confdefs.h. */ |
| 15674 | _ACEOF |
| 15675 | cat confdefs.h >>conftest.$ac_ext |
| 15676 | cat >>conftest.$ac_ext <<_ACEOF |
| 15677 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 15678 | void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); } |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15679 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15680 | int |
| 15681 | main () |
| 15682 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15683 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15684 | ; |
| 15685 | return 0; |
| 15686 | } |
| 15687 | _ACEOF |
| 15688 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15689 | if { (ac_try="$ac_link" |
| 15690 | case "(($ac_try" in |
| 15691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15692 | *) ac_try_echo=$ac_try;; |
| 15693 | esac |
| 15694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15695 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15696 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15698 | rm -f conftest.er1 |
| 15699 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15701 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15703 | { (case "(($ac_try" in |
| 15704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15705 | *) ac_try_echo=$ac_try;; |
| 15706 | esac |
| 15707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15708 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15709 | ac_status=$? |
| 15710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15711 | (exit $ac_status); }; } && |
| 15712 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15713 | { (case "(($ac_try" in |
| 15714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15715 | *) ac_try_echo=$ac_try;; |
| 15716 | esac |
| 15717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15718 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15719 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15721 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15722 | ac_cv_c_extern_prefix="yes" |
| 15723 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15724 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15726 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15727 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15728 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15729 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15730 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15731 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15732 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15733 | { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
| 15734 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15735 | |
| 15736 | |
| 15737 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15738 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 15739 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15740 | cat >>confdefs.h <<\_ACEOF |
| 15741 | #define __ASM_NAME(name) "_" name |
| 15742 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15743 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 15744 | else |
| 15745 | cat >>confdefs.h <<\_ACEOF |
| 15746 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15747 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 15748 | |
| 15749 | fi |
| 15750 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15751 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15752 | DLLEXT="" |
| 15753 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 15754 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15755 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15756 | DLLIBS="" |
| 15757 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15758 | LDSHARED="" |
| 15759 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 15760 | LDDLLFLAGS="" |
Alexandre Julliard | 6ac34ac | 2003-10-11 01:05:18 +0000 | [diff] [blame] | 15761 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15762 | LIBEXT="so" |
| 15763 | |
| 15764 | IMPLIBEXT="def" |
| 15765 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 15766 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15767 | case $host_os in |
| 15768 | cygwin*|mingw32*) |
| 15769 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15770 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 15771 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15774 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 15775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15776 | else |
| 15777 | if test -n "$DLLTOOL"; then |
| 15778 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 15779 | else |
| 15780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15781 | for as_dir in $PATH |
| 15782 | do |
| 15783 | IFS=$as_save_IFS |
| 15784 | test -z "$as_dir" && as_dir=. |
| 15785 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15787 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 15788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15789 | break 2 |
| 15790 | fi |
| 15791 | done |
| 15792 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15793 | IFS=$as_save_IFS |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15794 | |
| 15795 | fi |
| 15796 | fi |
| 15797 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 15798 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15799 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 15800 | echo "${ECHO_T}$DLLTOOL" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15801 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15803 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15804 | fi |
| 15805 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15806 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15807 | fi |
| 15808 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 15809 | ac_ct_DLLTOOL=$DLLTOOL |
| 15810 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 15811 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15812 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15814 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 15815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15816 | else |
| 15817 | if test -n "$ac_ct_DLLTOOL"; then |
| 15818 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 15819 | else |
| 15820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15821 | for as_dir in $PATH |
| 15822 | do |
| 15823 | IFS=$as_save_IFS |
| 15824 | test -z "$as_dir" && as_dir=. |
| 15825 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15827 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 15828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15829 | break 2 |
| 15830 | fi |
| 15831 | done |
| 15832 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15833 | IFS=$as_save_IFS |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15834 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15835 | fi |
| 15836 | fi |
| 15837 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 15838 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15839 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 15840 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15841 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15842 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15843 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15844 | fi |
| 15845 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15846 | if test "x$ac_ct_DLLTOOL" = x; then |
| 15847 | DLLTOOL="false" |
| 15848 | else |
| 15849 | case $cross_compiling:$ac_tool_warned in |
| 15850 | yes:) |
| 15851 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15852 | whose name does not start with the host triplet. If you think this |
| 15853 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15854 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15855 | whose name does not start with the host triplet. If you think this |
| 15856 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15857 | ac_tool_warned=yes ;; |
| 15858 | esac |
| 15859 | DLLTOOL=$ac_ct_DLLTOOL |
| 15860 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15861 | else |
| 15862 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 15863 | fi |
| 15864 | |
| 15865 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15866 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 15867 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15870 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 15871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15872 | else |
| 15873 | if test -n "$DLLWRAP"; then |
| 15874 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 15875 | else |
| 15876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15877 | for as_dir in $PATH |
| 15878 | do |
| 15879 | IFS=$as_save_IFS |
| 15880 | test -z "$as_dir" && as_dir=. |
| 15881 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15883 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15885 | break 2 |
| 15886 | fi |
| 15887 | done |
| 15888 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15889 | IFS=$as_save_IFS |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15890 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15891 | fi |
| 15892 | fi |
| 15893 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 15894 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15895 | { echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 15896 | echo "${ECHO_T}$DLLWRAP" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15897 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15898 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15899 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 15900 | fi |
| 15901 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15902 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15903 | fi |
| 15904 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 15905 | ac_ct_DLLWRAP=$DLLWRAP |
| 15906 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 15907 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15908 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15910 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 15911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15912 | else |
| 15913 | if test -n "$ac_ct_DLLWRAP"; then |
| 15914 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 15915 | else |
| 15916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15917 | for as_dir in $PATH |
| 15918 | do |
| 15919 | IFS=$as_save_IFS |
| 15920 | test -z "$as_dir" && as_dir=. |
| 15921 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15923 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 15924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15925 | break 2 |
| 15926 | fi |
| 15927 | done |
| 15928 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15929 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15930 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15931 | fi |
| 15932 | fi |
| 15933 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 15934 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15935 | { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 15936 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15937 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15938 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15939 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15940 | fi |
| 15941 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15942 | if test "x$ac_ct_DLLWRAP" = x; then |
| 15943 | DLLWRAP="false" |
| 15944 | else |
| 15945 | case $cross_compiling:$ac_tool_warned in |
| 15946 | yes:) |
| 15947 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15948 | whose name does not start with the host triplet. If you think this |
| 15949 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15950 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15951 | whose name does not start with the host triplet. If you think this |
| 15952 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15953 | ac_tool_warned=yes ;; |
| 15954 | esac |
| 15955 | DLLWRAP=$ac_ct_DLLWRAP |
| 15956 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15957 | else |
| 15958 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 15959 | fi |
| 15960 | |
| 15961 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15962 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15963 | else |
| 15964 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15965 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 15966 | IMPLIBEXT="a" |
Alexandre Julliard | 56a4a76 | 2004-08-12 03:27:50 +0000 | [diff] [blame] | 15967 | WIN16_FILES="" |
| 15968 | WIN16_INSTALL="" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15969 | ;; |
| 15970 | *) |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 15971 | if test "$ac_cv_header_dlfcn_h" = "yes" |
| 15972 | then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15973 | |
| 15974 | for ac_func in dlopen |
| 15975 | do |
| 15976 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15977 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15978 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15979 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15981 | else |
| 15982 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15983 | /* confdefs.h. */ |
| 15984 | _ACEOF |
| 15985 | cat confdefs.h >>conftest.$ac_ext |
| 15986 | cat >>conftest.$ac_ext <<_ACEOF |
| 15987 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15988 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15989 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15990 | #define $ac_func innocuous_$ac_func |
| 15991 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15992 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15993 | which can conflict with char $ac_func (); below. |
| 15994 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15995 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15996 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15997 | #ifdef __STDC__ |
| 15998 | # include <limits.h> |
| 15999 | #else |
| 16000 | # include <assert.h> |
| 16001 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16002 | |
| 16003 | #undef $ac_func |
| 16004 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16005 | /* Override any GCC internal prototype to avoid an error. |
| 16006 | Use char because int might match the return type of a GCC |
| 16007 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16008 | #ifdef __cplusplus |
| 16009 | extern "C" |
| 16010 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16011 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16012 | /* The GNU C library defines this for functions which it implements |
| 16013 | to always fail with ENOSYS. Some functions are actually named |
| 16014 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16015 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16016 | choke me |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16017 | #endif |
| 16018 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16019 | int |
| 16020 | main () |
| 16021 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16022 | return $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16023 | ; |
| 16024 | return 0; |
| 16025 | } |
| 16026 | _ACEOF |
| 16027 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16028 | if { (ac_try="$ac_link" |
| 16029 | case "(($ac_try" in |
| 16030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16031 | *) ac_try_echo=$ac_try;; |
| 16032 | esac |
| 16033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16034 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16035 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16037 | rm -f conftest.er1 |
| 16038 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16040 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16042 | { (case "(($ac_try" in |
| 16043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16044 | *) ac_try_echo=$ac_try;; |
| 16045 | esac |
| 16046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16047 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16048 | ac_status=$? |
| 16049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16050 | (exit $ac_status); }; } && |
| 16051 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16052 | { (case "(($ac_try" in |
| 16053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16054 | *) ac_try_echo=$ac_try;; |
| 16055 | esac |
| 16056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16057 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16058 | ac_status=$? |
| 16059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16060 | (exit $ac_status); }; }; then |
| 16061 | eval "$as_ac_var=yes" |
| 16062 | else |
| 16063 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16065 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16066 | eval "$as_ac_var=no" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16067 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16068 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16069 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16070 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16071 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16072 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16073 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16074 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16075 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16076 | cat >>confdefs.h <<_ACEOF |
| 16077 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16078 | _ACEOF |
| 16079 | |
| 16080 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16081 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16082 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16083 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16085 | else |
| 16086 | ac_check_lib_save_LIBS=$LIBS |
| 16087 | LIBS="-ldl $LIBS" |
| 16088 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16089 | /* confdefs.h. */ |
| 16090 | _ACEOF |
| 16091 | cat confdefs.h >>conftest.$ac_ext |
| 16092 | cat >>conftest.$ac_ext <<_ACEOF |
| 16093 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16094 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16095 | /* Override any GCC internal prototype to avoid an error. |
| 16096 | Use char because int might match the return type of a GCC |
| 16097 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16098 | #ifdef __cplusplus |
| 16099 | extern "C" |
| 16100 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16101 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16102 | int |
| 16103 | main () |
| 16104 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16105 | return dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16106 | ; |
| 16107 | return 0; |
| 16108 | } |
| 16109 | _ACEOF |
| 16110 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16111 | if { (ac_try="$ac_link" |
| 16112 | case "(($ac_try" in |
| 16113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16114 | *) ac_try_echo=$ac_try;; |
| 16115 | esac |
| 16116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16117 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16118 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16120 | rm -f conftest.er1 |
| 16121 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16123 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16125 | { (case "(($ac_try" in |
| 16126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16127 | *) ac_try_echo=$ac_try;; |
| 16128 | esac |
| 16129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16130 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16131 | ac_status=$? |
| 16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16133 | (exit $ac_status); }; } && |
| 16134 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16135 | { (case "(($ac_try" in |
| 16136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16137 | *) ac_try_echo=$ac_try;; |
| 16138 | esac |
| 16139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16140 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16141 | ac_status=$? |
| 16142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16143 | (exit $ac_status); }; }; then |
| 16144 | ac_cv_lib_dl_dlopen=yes |
| 16145 | else |
| 16146 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16148 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16149 | ac_cv_lib_dl_dlopen=no |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16150 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16151 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16152 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16153 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16154 | LIBS=$ac_check_lib_save_LIBS |
| 16155 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16156 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16157 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16158 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16159 | |
| 16160 | cat >>confdefs.h <<\_ACEOF |
| 16161 | #define HAVE_DLOPEN 1 |
| 16162 | _ACEOF |
| 16163 | |
| 16164 | DLLIBS="-ldl" |
| 16165 | else |
| 16166 | LIBEXT="a" |
| 16167 | fi |
| 16168 | |
| 16169 | fi |
| 16170 | done |
| 16171 | |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16172 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 16173 | LIBS="$LIBS $DLLIBS" |
| 16174 | |
| 16175 | for ac_func in dladdr |
| 16176 | do |
| 16177 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16178 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16179 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16180 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16182 | else |
| 16183 | cat >conftest.$ac_ext <<_ACEOF |
| 16184 | /* confdefs.h. */ |
| 16185 | _ACEOF |
| 16186 | cat confdefs.h >>conftest.$ac_ext |
| 16187 | cat >>conftest.$ac_ext <<_ACEOF |
| 16188 | /* end confdefs.h. */ |
| 16189 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16191 | #define $ac_func innocuous_$ac_func |
| 16192 | |
| 16193 | /* System header to define __stub macros and hopefully few prototypes, |
| 16194 | which can conflict with char $ac_func (); below. |
| 16195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16196 | <limits.h> exists even on freestanding compilers. */ |
| 16197 | |
| 16198 | #ifdef __STDC__ |
| 16199 | # include <limits.h> |
| 16200 | #else |
| 16201 | # include <assert.h> |
| 16202 | #endif |
| 16203 | |
| 16204 | #undef $ac_func |
| 16205 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16206 | /* Override any GCC internal prototype to avoid an error. |
| 16207 | Use char because int might match the return type of a GCC |
| 16208 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16209 | #ifdef __cplusplus |
| 16210 | extern "C" |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16211 | #endif |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16212 | char $ac_func (); |
| 16213 | /* The GNU C library defines this for functions which it implements |
| 16214 | to always fail with ENOSYS. Some functions are actually named |
| 16215 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16216 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16217 | choke me |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16218 | #endif |
| 16219 | |
| 16220 | int |
| 16221 | main () |
| 16222 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16223 | return $ac_func (); |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16224 | ; |
| 16225 | return 0; |
| 16226 | } |
| 16227 | _ACEOF |
| 16228 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16229 | if { (ac_try="$ac_link" |
| 16230 | case "(($ac_try" in |
| 16231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16232 | *) ac_try_echo=$ac_try;; |
| 16233 | esac |
| 16234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16235 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16236 | ac_status=$? |
| 16237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16238 | rm -f conftest.er1 |
| 16239 | cat conftest.err >&5 |
| 16240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16241 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16243 | { (case "(($ac_try" in |
| 16244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16245 | *) ac_try_echo=$ac_try;; |
| 16246 | esac |
| 16247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16248 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16249 | ac_status=$? |
| 16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16251 | (exit $ac_status); }; } && |
| 16252 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16253 | { (case "(($ac_try" in |
| 16254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16255 | *) ac_try_echo=$ac_try;; |
| 16256 | esac |
| 16257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16258 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16259 | ac_status=$? |
| 16260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16261 | (exit $ac_status); }; }; then |
| 16262 | eval "$as_ac_var=yes" |
| 16263 | else |
| 16264 | echo "$as_me: failed program was:" >&5 |
| 16265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16266 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16267 | eval "$as_ac_var=no" |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16268 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16269 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16270 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16271 | conftest$ac_exeext conftest.$ac_ext |
| 16272 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16273 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16274 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16275 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | 266c609 | 2006-02-11 20:55:50 +0100 | [diff] [blame] | 16276 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16277 | cat >>confdefs.h <<_ACEOF |
| 16278 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16279 | _ACEOF |
| 16280 | |
| 16281 | fi |
| 16282 | done |
| 16283 | |
| 16284 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 16285 | else |
| 16286 | LIBEXT="a" |
| 16287 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 16288 | |
| 16289 | if test "$LIBEXT" = "so" |
| 16290 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 16291 | DLLFLAGS="$DLLFLAGS -fPIC" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16292 | DLLEXT=".so" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16293 | { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5 |
| 16294 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16295 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 16296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16297 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16298 | ac_wine_try_cflags_saved=$CFLAGS |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16299 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16300 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16301 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16302 | _ACEOF |
| 16303 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16304 | if { (ac_try="$ac_link" |
| 16305 | case "(($ac_try" in |
| 16306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16307 | *) ac_try_echo=$ac_try;; |
| 16308 | esac |
| 16309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16310 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16311 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16313 | rm -f conftest.er1 |
| 16314 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16316 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16318 | { (case "(($ac_try" in |
| 16319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16320 | *) ac_try_echo=$ac_try;; |
| 16321 | esac |
| 16322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16323 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16324 | ac_status=$? |
| 16325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16326 | (exit $ac_status); }; } && |
| 16327 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16328 | { (case "(($ac_try" in |
| 16329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16330 | *) ac_try_echo=$ac_try;; |
| 16331 | esac |
| 16332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16333 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16334 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16336 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 16337 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16338 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16339 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16341 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16342 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16343 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16344 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16345 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16346 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16347 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16348 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16349 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
| 16350 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 16351 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 16352 | then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16353 | LDSHARED="\$(CC) -shared" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 16354 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16355 | { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5 |
| 16356 | echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; } |
| 16357 | if test "${ac_cv_c_sonames+set}" = set; then |
| 16358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16359 | else |
| 16360 | ac_wine_try_cflags_saved=$CFLAGS |
| 16361 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" |
| 16362 | cat >conftest.$ac_ext <<_ACEOF |
| 16363 | /* confdefs.h. */ |
| 16364 | _ACEOF |
| 16365 | cat confdefs.h >>conftest.$ac_ext |
| 16366 | cat >>conftest.$ac_ext <<_ACEOF |
| 16367 | /* end confdefs.h. */ |
| 16368 | |
| 16369 | int |
| 16370 | main () |
| 16371 | { |
| 16372 | |
| 16373 | ; |
| 16374 | return 0; |
| 16375 | } |
| 16376 | _ACEOF |
| 16377 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16378 | if { (ac_try="$ac_link" |
| 16379 | case "(($ac_try" in |
| 16380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16381 | *) ac_try_echo=$ac_try;; |
| 16382 | esac |
| 16383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16384 | (eval "$ac_link") 2>conftest.er1 |
| 16385 | ac_status=$? |
| 16386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16387 | rm -f conftest.er1 |
| 16388 | cat conftest.err >&5 |
| 16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16390 | (exit $ac_status); } && |
| 16391 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16392 | { (case "(($ac_try" in |
| 16393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16394 | *) ac_try_echo=$ac_try;; |
| 16395 | esac |
| 16396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16397 | (eval "$ac_try") 2>&5 |
| 16398 | ac_status=$? |
| 16399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16400 | (exit $ac_status); }; } && |
| 16401 | { ac_try='test -s conftest$ac_exeext' |
| 16402 | { (case "(($ac_try" in |
| 16403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16404 | *) ac_try_echo=$ac_try;; |
| 16405 | esac |
| 16406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16407 | (eval "$ac_try") 2>&5 |
| 16408 | ac_status=$? |
| 16409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16410 | (exit $ac_status); }; }; then |
| 16411 | ac_cv_c_sonames="yes" |
| 16412 | else |
| 16413 | echo "$as_me: failed program was:" >&5 |
| 16414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16415 | |
| 16416 | ac_cv_c_sonames="no" |
| 16417 | fi |
| 16418 | |
| 16419 | rm -f core conftest.err conftest.$ac_objext \ |
| 16420 | conftest$ac_exeext conftest.$ac_ext |
| 16421 | CFLAGS=$ac_wine_try_cflags_saved |
| 16422 | fi |
| 16423 | { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5 |
| 16424 | echo "${ECHO_T}$ac_cv_c_sonames" >&6; } |
| 16425 | if test "$ac_cv_c_sonames" = "yes" |
| 16426 | then |
| 16427 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 16428 | else |
| 16429 | { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5 |
| 16430 | echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; } |
| 16431 | if test "${ac_cv_c_h_sonames+set}" = set; then |
| 16432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16433 | else |
| 16434 | ac_wine_try_cflags_saved=$CFLAGS |
| 16435 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" |
| 16436 | cat >conftest.$ac_ext <<_ACEOF |
| 16437 | /* confdefs.h. */ |
| 16438 | _ACEOF |
| 16439 | cat confdefs.h >>conftest.$ac_ext |
| 16440 | cat >>conftest.$ac_ext <<_ACEOF |
| 16441 | /* end confdefs.h. */ |
| 16442 | |
| 16443 | int |
| 16444 | main () |
| 16445 | { |
| 16446 | |
| 16447 | ; |
| 16448 | return 0; |
| 16449 | } |
| 16450 | _ACEOF |
| 16451 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16452 | if { (ac_try="$ac_link" |
| 16453 | case "(($ac_try" in |
| 16454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16455 | *) ac_try_echo=$ac_try;; |
| 16456 | esac |
| 16457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16458 | (eval "$ac_link") 2>conftest.er1 |
| 16459 | ac_status=$? |
| 16460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16461 | rm -f conftest.er1 |
| 16462 | cat conftest.err >&5 |
| 16463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16464 | (exit $ac_status); } && |
| 16465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16466 | { (case "(($ac_try" in |
| 16467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16468 | *) ac_try_echo=$ac_try;; |
| 16469 | esac |
| 16470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16471 | (eval "$ac_try") 2>&5 |
| 16472 | ac_status=$? |
| 16473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16474 | (exit $ac_status); }; } && |
| 16475 | { ac_try='test -s conftest$ac_exeext' |
| 16476 | { (case "(($ac_try" in |
| 16477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16478 | *) ac_try_echo=$ac_try;; |
| 16479 | esac |
| 16480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16481 | (eval "$ac_try") 2>&5 |
| 16482 | ac_status=$? |
| 16483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16484 | (exit $ac_status); }; }; then |
| 16485 | ac_cv_c_h_sonames="yes" |
| 16486 | else |
| 16487 | echo "$as_me: failed program was:" >&5 |
| 16488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16489 | |
| 16490 | ac_cv_c_h_sonames="no" |
| 16491 | fi |
| 16492 | |
| 16493 | rm -f core conftest.err conftest.$ac_objext \ |
| 16494 | conftest$ac_exeext conftest.$ac_ext |
| 16495 | CFLAGS=$ac_wine_try_cflags_saved |
| 16496 | fi |
| 16497 | { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5 |
| 16498 | echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; } |
| 16499 | if test "$ac_cv_c_h_sonames" = "yes" |
| 16500 | then |
| 16501 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" |
| 16502 | fi |
| 16503 | fi |
| 16504 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16505 | { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 16506 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; } |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16507 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 16508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16509 | else |
| 16510 | ac_wine_try_cflags_saved=$CFLAGS |
| 16511 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 16512 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16513 | /* confdefs.h. */ |
| 16514 | _ACEOF |
| 16515 | cat confdefs.h >>conftest.$ac_ext |
| 16516 | cat >>conftest.$ac_ext <<_ACEOF |
| 16517 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16518 | |
| 16519 | int |
| 16520 | main () |
| 16521 | { |
| 16522 | |
| 16523 | ; |
| 16524 | return 0; |
| 16525 | } |
| 16526 | _ACEOF |
| 16527 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16528 | if { (ac_try="$ac_link" |
| 16529 | case "(($ac_try" in |
| 16530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16531 | *) ac_try_echo=$ac_try;; |
| 16532 | esac |
| 16533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16534 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16535 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16537 | rm -f conftest.er1 |
| 16538 | cat conftest.err >&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16540 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16542 | { (case "(($ac_try" in |
| 16543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16544 | *) ac_try_echo=$ac_try;; |
| 16545 | esac |
| 16546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16547 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16548 | ac_status=$? |
| 16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16550 | (exit $ac_status); }; } && |
| 16551 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16552 | { (case "(($ac_try" in |
| 16553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16554 | *) ac_try_echo=$ac_try;; |
| 16555 | esac |
| 16556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16557 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16558 | ac_status=$? |
| 16559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16560 | (exit $ac_status); }; }; then |
| 16561 | ac_cv_c_dll_zdefs="yes" |
| 16562 | else |
| 16563 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16565 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16566 | ac_cv_c_dll_zdefs="no" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16567 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16568 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16569 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16570 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16571 | CFLAGS=$ac_wine_try_cflags_saved |
| 16572 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16573 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 16574 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; } |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16575 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 16576 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 16577 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 16578 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 16579 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16580 | { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5 |
| 16581 | echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; } |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16582 | if test "${ac_cv_c_dll_init_fini+set}" = set; then |
| 16583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16584 | else |
| 16585 | ac_wine_try_cflags_saved=$CFLAGS |
| 16586 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 16587 | cat >conftest.$ac_ext <<_ACEOF |
| 16588 | /* confdefs.h. */ |
| 16589 | _ACEOF |
| 16590 | cat confdefs.h >>conftest.$ac_ext |
| 16591 | cat >>conftest.$ac_ext <<_ACEOF |
| 16592 | /* end confdefs.h. */ |
| 16593 | |
| 16594 | int |
| 16595 | main () |
| 16596 | { |
| 16597 | |
| 16598 | ; |
| 16599 | return 0; |
| 16600 | } |
| 16601 | _ACEOF |
| 16602 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16603 | if { (ac_try="$ac_link" |
| 16604 | case "(($ac_try" in |
| 16605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16606 | *) ac_try_echo=$ac_try;; |
| 16607 | esac |
| 16608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16609 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16610 | ac_status=$? |
| 16611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16612 | rm -f conftest.er1 |
| 16613 | cat conftest.err >&5 |
| 16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16615 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16617 | { (case "(($ac_try" in |
| 16618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16619 | *) ac_try_echo=$ac_try;; |
| 16620 | esac |
| 16621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16622 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16623 | ac_status=$? |
| 16624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16625 | (exit $ac_status); }; } && |
| 16626 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16627 | { (case "(($ac_try" in |
| 16628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16629 | *) ac_try_echo=$ac_try;; |
| 16630 | esac |
| 16631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16632 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16633 | ac_status=$? |
| 16634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16635 | (exit $ac_status); }; }; then |
| 16636 | ac_cv_c_dll_init_fini="yes" |
| 16637 | else |
| 16638 | echo "$as_me: failed program was:" >&5 |
| 16639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16640 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16641 | ac_cv_c_dll_init_fini="no" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16642 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16643 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16644 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16645 | conftest$ac_exeext conftest.$ac_ext |
| 16646 | CFLAGS=$ac_wine_try_cflags_saved |
| 16647 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16648 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5 |
| 16649 | echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; } |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16650 | if test "$ac_cv_c_dll_init_fini" = "yes" |
| 16651 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 16652 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 16653 | fi |
| 16654 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16655 | { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5 |
| 16656 | echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; } |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16657 | if test "${ac_cv_c_ld_version_scripts+set}" = set; then |
| 16658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16659 | else |
| 16660 | echo '{ global: *; };' >conftest.map |
| 16661 | ac_wine_try_cflags_saved=$CFLAGS |
| 16662 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
| 16663 | cat >conftest.$ac_ext <<_ACEOF |
| 16664 | /* confdefs.h. */ |
| 16665 | _ACEOF |
| 16666 | cat confdefs.h >>conftest.$ac_ext |
| 16667 | cat >>conftest.$ac_ext <<_ACEOF |
| 16668 | /* end confdefs.h. */ |
| 16669 | |
| 16670 | int |
| 16671 | main () |
| 16672 | { |
| 16673 | |
| 16674 | ; |
| 16675 | return 0; |
| 16676 | } |
| 16677 | _ACEOF |
| 16678 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16679 | if { (ac_try="$ac_link" |
| 16680 | case "(($ac_try" in |
| 16681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16682 | *) ac_try_echo=$ac_try;; |
| 16683 | esac |
| 16684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16685 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16686 | ac_status=$? |
| 16687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16688 | rm -f conftest.er1 |
| 16689 | cat conftest.err >&5 |
| 16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16691 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16693 | { (case "(($ac_try" in |
| 16694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16695 | *) ac_try_echo=$ac_try;; |
| 16696 | esac |
| 16697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16698 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16699 | ac_status=$? |
| 16700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16701 | (exit $ac_status); }; } && |
| 16702 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16703 | { (case "(($ac_try" in |
| 16704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16705 | *) ac_try_echo=$ac_try;; |
| 16706 | esac |
| 16707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16708 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16709 | ac_status=$? |
| 16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16711 | (exit $ac_status); }; }; then |
| 16712 | ac_cv_c_ld_version_scripts="yes" |
| 16713 | else |
| 16714 | echo "$as_me: failed program was:" >&5 |
| 16715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16716 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16717 | ac_cv_c_ld_version_scripts="no" |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16718 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16719 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16720 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16721 | conftest$ac_exeext conftest.$ac_ext |
| 16722 | CFLAGS=$ac_wine_try_cflags_saved |
| 16723 | rm -f conftest.map |
| 16724 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16725 | { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5 |
| 16726 | echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; } |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 16727 | if test "$ac_cv_c_ld_version_scripts" = "yes" |
| 16728 | then |
| 16729 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 16730 | fi |
| 16731 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16732 | { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5 |
| 16733 | echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; } |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16734 | if test "${ac_cv_c_export_dynamic+set}" = set; then |
| 16735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16736 | else |
| 16737 | ac_wine_try_cflags_saved=$CFLAGS |
| 16738 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
| 16739 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16740 | /* confdefs.h. */ |
| 16741 | _ACEOF |
| 16742 | cat confdefs.h >>conftest.$ac_ext |
| 16743 | cat >>conftest.$ac_ext <<_ACEOF |
| 16744 | /* end confdefs.h. */ |
| 16745 | |
| 16746 | int |
| 16747 | main () |
| 16748 | { |
| 16749 | |
| 16750 | ; |
| 16751 | return 0; |
| 16752 | } |
| 16753 | _ACEOF |
| 16754 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16755 | if { (ac_try="$ac_link" |
| 16756 | case "(($ac_try" in |
| 16757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16758 | *) ac_try_echo=$ac_try;; |
| 16759 | esac |
| 16760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16761 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16762 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16764 | rm -f conftest.er1 |
| 16765 | cat conftest.err >&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16767 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16769 | { (case "(($ac_try" in |
| 16770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16771 | *) ac_try_echo=$ac_try;; |
| 16772 | esac |
| 16773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16774 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16775 | ac_status=$? |
| 16776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16777 | (exit $ac_status); }; } && |
| 16778 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16779 | { (case "(($ac_try" in |
| 16780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16781 | *) ac_try_echo=$ac_try;; |
| 16782 | esac |
| 16783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16784 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16785 | ac_status=$? |
| 16786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16787 | (exit $ac_status); }; }; then |
| 16788 | ac_cv_c_export_dynamic="yes" |
| 16789 | else |
| 16790 | echo "$as_me: failed program was:" >&5 |
| 16791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16792 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16793 | ac_cv_c_export_dynamic="no" |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16794 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16795 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16796 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16797 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16798 | CFLAGS=$ac_wine_try_cflags_saved |
| 16799 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16800 | { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5 |
| 16801 | echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; } |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16802 | if test "$ac_cv_c_export_dynamic" = "yes" |
| 16803 | then |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16804 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 16805 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 16806 | fi |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16807 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16808 | { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5 |
| 16809 | echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; } |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16810 | if test "${ac_cv_ld_rpath+set}" = set; then |
| 16811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16812 | else |
| 16813 | ac_wine_try_cflags_saved=$CFLAGS |
| 16814 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
| 16815 | cat >conftest.$ac_ext <<_ACEOF |
| 16816 | /* confdefs.h. */ |
| 16817 | _ACEOF |
| 16818 | cat confdefs.h >>conftest.$ac_ext |
| 16819 | cat >>conftest.$ac_ext <<_ACEOF |
| 16820 | /* end confdefs.h. */ |
| 16821 | |
| 16822 | int |
| 16823 | main () |
| 16824 | { |
| 16825 | |
| 16826 | ; |
| 16827 | return 0; |
| 16828 | } |
| 16829 | _ACEOF |
| 16830 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16831 | if { (ac_try="$ac_link" |
| 16832 | case "(($ac_try" in |
| 16833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16834 | *) ac_try_echo=$ac_try;; |
| 16835 | esac |
| 16836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16837 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16838 | ac_status=$? |
| 16839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16840 | rm -f conftest.er1 |
| 16841 | cat conftest.err >&5 |
| 16842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16843 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16845 | { (case "(($ac_try" in |
| 16846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16847 | *) ac_try_echo=$ac_try;; |
| 16848 | esac |
| 16849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16850 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16851 | ac_status=$? |
| 16852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16853 | (exit $ac_status); }; } && |
| 16854 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16855 | { (case "(($ac_try" in |
| 16856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16857 | *) ac_try_echo=$ac_try;; |
| 16858 | esac |
| 16859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16860 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16861 | ac_status=$? |
| 16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16863 | (exit $ac_status); }; }; then |
| 16864 | ac_cv_ld_rpath="yes" |
| 16865 | else |
| 16866 | echo "$as_me: failed program was:" >&5 |
| 16867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16868 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16869 | ac_cv_ld_rpath="no" |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16870 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16871 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16872 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16873 | conftest$ac_exeext conftest.$ac_ext |
| 16874 | CFLAGS=$ac_wine_try_cflags_saved |
| 16875 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16876 | { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5 |
| 16877 | echo "${ECHO_T}$ac_cv_ld_rpath" >&6; } |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16878 | if test "$ac_cv_ld_rpath" = "yes" |
| 16879 | then |
| 16880 | LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
| 16881 | |
Alexandre Julliard | 1fd32cf | 2006-03-20 22:08:26 +0100 | [diff] [blame] | 16882 | LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`" |
| 16883 | |
Alexandre Julliard | 5ed5901 | 2006-02-20 11:20:47 +0100 | [diff] [blame] | 16884 | fi |
| 16885 | |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16886 | case $host_cpu in |
Ge van Geldorp | 2adeefe | 2006-06-30 21:37:34 +0200 | [diff] [blame] | 16887 | *i[3456789]86* | x86_64) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16888 | { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5 |
| 16889 | echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16890 | if test "${ac_cv_ld_reloc_exec+set}" = set; then |
| 16891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16892 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16893 | ac_wine_try_cflags_saved=$CFLAGS |
Alexandre Julliard | 5729f58 | 2005-06-17 10:22:46 +0000 | [diff] [blame] | 16894 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16895 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16896 | /* confdefs.h. */ |
| 16897 | _ACEOF |
| 16898 | cat confdefs.h >>conftest.$ac_ext |
| 16899 | cat >>conftest.$ac_ext <<_ACEOF |
| 16900 | /* end confdefs.h. */ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16901 | |
| 16902 | int |
| 16903 | main () |
| 16904 | { |
| 16905 | |
| 16906 | ; |
| 16907 | return 0; |
| 16908 | } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16909 | _ACEOF |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16910 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16911 | if { (ac_try="$ac_link" |
| 16912 | case "(($ac_try" in |
| 16913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16914 | *) ac_try_echo=$ac_try;; |
| 16915 | esac |
| 16916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16917 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16918 | ac_status=$? |
| 16919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16920 | rm -f conftest.er1 |
| 16921 | cat conftest.err >&5 |
| 16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16923 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16925 | { (case "(($ac_try" in |
| 16926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16927 | *) ac_try_echo=$ac_try;; |
| 16928 | esac |
| 16929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16930 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16931 | ac_status=$? |
| 16932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16933 | (exit $ac_status); }; } && |
| 16934 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16935 | { (case "(($ac_try" in |
| 16936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16937 | *) ac_try_echo=$ac_try;; |
| 16938 | esac |
| 16939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16940 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16941 | ac_status=$? |
| 16942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16943 | (exit $ac_status); }; }; then |
| 16944 | ac_cv_ld_reloc_exec="yes" |
| 16945 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16946 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16948 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16949 | ac_cv_ld_reloc_exec="no" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16950 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16951 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16952 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 16953 | conftest$ac_exeext conftest.$ac_ext |
| 16954 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16955 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16956 | { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5 |
| 16957 | echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16958 | if test "$ac_cv_ld_reloc_exec" = "yes" |
| 16959 | then |
Alexandre Julliard | 5729f58 | 2005-06-17 10:22:46 +0000 | [diff] [blame] | 16960 | LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 16961 | fi |
| 16962 | ;; |
| 16963 | esac |
| 16964 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 16965 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16966 | { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5 |
| 16967 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16968 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 16969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 16970 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16971 | ac_wine_try_cflags_saved=$CFLAGS |
| 16972 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 16973 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 16974 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16975 | _ACEOF |
| 16976 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16977 | if { (ac_try="$ac_link" |
| 16978 | case "(($ac_try" in |
| 16979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16980 | *) ac_try_echo=$ac_try;; |
| 16981 | esac |
| 16982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16983 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16984 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16986 | rm -f conftest.er1 |
| 16987 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16989 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16991 | { (case "(($ac_try" in |
| 16992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16993 | *) ac_try_echo=$ac_try;; |
| 16994 | esac |
| 16995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16996 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16997 | ac_status=$? |
| 16998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16999 | (exit $ac_status); }; } && |
| 17000 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17001 | { (case "(($ac_try" in |
| 17002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17003 | *) ac_try_echo=$ac_try;; |
| 17004 | esac |
| 17005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17006 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17007 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17009 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 17010 | ac_cv_c_dll_unixware="yes" |
| 17011 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17012 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17014 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17015 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 17016 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17017 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17018 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17019 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17020 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17021 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17022 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
| 17023 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 17024 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 17025 | then |
| 17026 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17027 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17028 | |
| 17029 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17030 | { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5 |
| 17031 | echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17032 | if test "${ac_cv_c_dll_macho+set}" = set; then |
| 17033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17034 | else |
| 17035 | ac_wine_try_cflags_saved=$CFLAGS |
| 17036 | CFLAGS="$CFLAGS -bundle" |
| 17037 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17038 | void myfunc() {} |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17039 | _ACEOF |
| 17040 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17041 | if { (ac_try="$ac_link" |
| 17042 | case "(($ac_try" in |
| 17043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17044 | *) ac_try_echo=$ac_try;; |
| 17045 | esac |
| 17046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17047 | (eval "$ac_link") 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17048 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17050 | rm -f conftest.er1 |
| 17051 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17053 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17055 | { (case "(($ac_try" in |
| 17056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17057 | *) ac_try_echo=$ac_try;; |
| 17058 | esac |
| 17059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17060 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17061 | ac_status=$? |
| 17062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17063 | (exit $ac_status); }; } && |
| 17064 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17065 | { (case "(($ac_try" in |
| 17066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17067 | *) ac_try_echo=$ac_try;; |
| 17068 | esac |
| 17069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17070 | (eval "$ac_try") 2>&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17071 | ac_status=$? |
| 17072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17073 | (exit $ac_status); }; }; then |
| 17074 | ac_cv_c_dll_macho="yes" |
| 17075 | else |
| 17076 | echo "$as_me: failed program was:" >&5 |
| 17077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17078 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17079 | ac_cv_c_dll_macho="no" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17080 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17081 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17082 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17083 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17084 | CFLAGS=$ac_wine_try_cflags_saved |
| 17085 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17086 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5 |
| 17087 | echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; } |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17088 | if test "$ac_cv_c_dll_macho" = "yes" |
| 17089 | then |
| 17090 | LIBEXT="dylib" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17091 | LDDLLFLAGS="-bundle" |
Alexandre Julliard | 7ed7e8f | 2006-05-15 15:14:45 +0200 | [diff] [blame] | 17092 | LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)" |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17093 | STRIP="$STRIP -u -r" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17094 | COREFOUNDATIONLIB="-framework CoreFoundation" |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 17095 | |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17096 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 17097 | |
Alexandre Julliard | e325efb | 2006-07-24 15:25:39 +0200 | [diff] [blame] | 17098 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000" |
Emmanuel Maillard | 2300ce6 | 2004-08-19 01:20:45 +0000 | [diff] [blame] | 17099 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 17100 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 17101 | then |
| 17102 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices" |
| 17103 | |
| 17104 | fi |
Emmanuel Maillard | aaae660 | 2006-02-15 13:52:02 +0100 | [diff] [blame] | 17105 | case $host_cpu in |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17106 | *powerpc*) |
| 17107 | CFLAGS="$CFLAGS -ffixed-r13" |
| 17108 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" |
Alexandre Julliard | 495bf51 | 2005-09-15 09:48:18 +0000 | [diff] [blame] | 17109 | ;; |
| 17110 | esac |
| 17111 | |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17112 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17113 | { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5 |
| 17114 | echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; } |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17115 | if test "${ac_cv_c_dll_hpux+set}" = set; then |
| 17116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17117 | else |
| 17118 | ac_wine_try_cflags_saved=$CFLAGS |
| 17119 | CFLAGS="$CFLAGS -shared" |
| 17120 | cat >conftest.$ac_ext <<_ACEOF |
| 17121 | void myfunc() {} |
| 17122 | _ACEOF |
| 17123 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17124 | if { (ac_try="$ac_link" |
| 17125 | case "(($ac_try" in |
| 17126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17127 | *) ac_try_echo=$ac_try;; |
| 17128 | esac |
| 17129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17130 | (eval "$ac_link") 2>conftest.er1 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17131 | ac_status=$? |
| 17132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17133 | rm -f conftest.er1 |
| 17134 | cat conftest.err >&5 |
| 17135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17136 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17138 | { (case "(($ac_try" in |
| 17139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17140 | *) ac_try_echo=$ac_try;; |
| 17141 | esac |
| 17142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17143 | (eval "$ac_try") 2>&5 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17144 | ac_status=$? |
| 17145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17146 | (exit $ac_status); }; } && |
| 17147 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17148 | { (case "(($ac_try" in |
| 17149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17150 | *) ac_try_echo=$ac_try;; |
| 17151 | esac |
| 17152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17153 | (eval "$ac_try") 2>&5 |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17154 | ac_status=$? |
| 17155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17156 | (exit $ac_status); }; }; then |
| 17157 | ac_cv_c_dll_hpux="yes" |
| 17158 | else |
| 17159 | echo "$as_me: failed program was:" >&5 |
| 17160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17161 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17162 | ac_cv_c_dll_hpux="no" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17163 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17164 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17165 | rm -f core conftest.err conftest.$ac_objext \ |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17166 | conftest$ac_exeext conftest.$ac_ext |
| 17167 | CFLAGS=$ac_wine_try_cflags_saved |
| 17168 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17169 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5 |
| 17170 | echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; } |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17171 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 17172 | then |
| 17173 | LIBEXT="sl" |
Warren Baird | 1023fe3 | 2004-10-19 21:37:09 +0000 | [diff] [blame] | 17174 | DLLEXT=".sl" |
| 17175 | LDDLLFLAGS="-shared -fPIC" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 17176 | LDSHARED="\$(CC) -shared" |
| 17177 | fi |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17178 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 17179 | fi |
| 17180 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 17181 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17182 | |
| 17183 | CROSSTEST="" |
| 17184 | |
| 17185 | if test "$cross_compiling" = "no" |
| 17186 | then |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 17187 | for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17188 | do |
| 17189 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17190 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17191 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17193 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 17194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17195 | else |
| 17196 | if test -n "$CROSSCC"; then |
| 17197 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 17198 | else |
| 17199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17200 | for as_dir in $PATH |
| 17201 | do |
| 17202 | IFS=$as_save_IFS |
| 17203 | test -z "$as_dir" && as_dir=. |
| 17204 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17206 | ac_cv_prog_CROSSCC="$ac_prog" |
| 17207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17208 | break 2 |
| 17209 | fi |
| 17210 | done |
| 17211 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17212 | IFS=$as_save_IFS |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17213 | |
| 17214 | fi |
| 17215 | fi |
| 17216 | CROSSCC=$ac_cv_prog_CROSSCC |
| 17217 | if test -n "$CROSSCC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17218 | { echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 17219 | echo "${ECHO_T}$CROSSCC" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17220 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17221 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17222 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17223 | fi |
| 17224 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17225 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17226 | test -n "$CROSSCC" && break |
| 17227 | done |
| 17228 | test -n "$CROSSCC" || CROSSCC="false" |
| 17229 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 17230 | for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17231 | do |
| 17232 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17233 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17236 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 17237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17238 | else |
| 17239 | if test -n "$DLLTOOL"; then |
| 17240 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 17241 | else |
| 17242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17243 | for as_dir in $PATH |
| 17244 | do |
| 17245 | IFS=$as_save_IFS |
| 17246 | test -z "$as_dir" && as_dir=. |
| 17247 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17249 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 17250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17251 | break 2 |
| 17252 | fi |
| 17253 | done |
| 17254 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17255 | IFS=$as_save_IFS |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17256 | |
| 17257 | fi |
| 17258 | fi |
| 17259 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 17260 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17261 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 17262 | echo "${ECHO_T}$DLLTOOL" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17263 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17264 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17265 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17266 | fi |
| 17267 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17268 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17269 | test -n "$DLLTOOL" && break |
| 17270 | done |
| 17271 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 17272 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 17273 | for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17274 | do |
| 17275 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17276 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17279 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 17280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17281 | else |
| 17282 | if test -n "$CROSSWINDRES"; then |
| 17283 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 17284 | else |
| 17285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17286 | for as_dir in $PATH |
| 17287 | do |
| 17288 | IFS=$as_save_IFS |
| 17289 | test -z "$as_dir" && as_dir=. |
| 17290 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17292 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 17293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17294 | break 2 |
| 17295 | fi |
| 17296 | done |
| 17297 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17298 | IFS=$as_save_IFS |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17299 | |
| 17300 | fi |
| 17301 | fi |
| 17302 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 17303 | if test -n "$CROSSWINDRES"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17304 | { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 17305 | echo "${ECHO_T}$CROSSWINDRES" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17306 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17307 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17308 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17309 | fi |
| 17310 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17311 | |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17312 | test -n "$CROSSWINDRES" && break |
| 17313 | done |
| 17314 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 17315 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17316 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 17317 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 17318 | ;; |
| 17319 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 17320 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 17321 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17322 | { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17323 | It is currently not possible to build Wine without shared library |
| 17324 | (.so) support to allow transparent switch between .so and .dll files. |
| 17325 | If you are using Linux, you will need a newer binutils. |
| 17326 | " >&5 |
| 17327 | echo "$as_me: error: could not find a way to build shared libraries. |
| 17328 | It is currently not possible to build Wine without shared library |
| 17329 | (.so) support to allow transparent switch between .so and .dll files. |
| 17330 | If you are using Linux, you will need a newer binutils. |
| 17331 | " >&2;} |
| 17332 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 17333 | fi |
| 17334 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17335 | case $build_os in |
| 17336 | cygwin*|mingw32*) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 17337 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17338 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17339 | darwin*|macosx*) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 17340 | LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\"" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 17341 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17342 | *) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 17343 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17344 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17345 | esac |
| 17346 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17347 | case $host_os in |
| 17348 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 17349 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 17350 | |
| 17351 | SOCKETLIBS="-lws2_32" |
| 17352 | |
| 17353 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 17354 | esac |
| 17355 | |
Alexandre Julliard | 40bbcfb | 2006-06-20 13:44:19 +0200 | [diff] [blame] | 17356 | MAIN_BINARY="wine-pthread" |
| 17357 | case $host_cpu in |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 17358 | *i[3456789]86*) |
| 17359 | case $host_os in |
| 17360 | linux* | k*bsd*-gnu) |
| 17361 | MAIN_BINARY="wine-glibc" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 17362 | |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 17363 | EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader" |
| 17364 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 17365 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 17366 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17367 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17368 | |
| 17369 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17370 | if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17371 | then |
| 17372 | # Extract the first word of "ldd", so it can be a program name with args. |
| 17373 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17374 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17376 | if test "${ac_cv_path_LDD+set}" = set; then |
| 17377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17378 | else |
| 17379 | case $LDD in |
| 17380 | [\\/]* | ?:[\\/]*) |
| 17381 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 17382 | ;; |
| 17383 | *) |
| 17384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17385 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 17386 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17387 | do |
| 17388 | IFS=$as_save_IFS |
| 17389 | test -z "$as_dir" && as_dir=. |
| 17390 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17392 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 17393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17394 | break 2 |
| 17395 | fi |
| 17396 | done |
| 17397 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17398 | IFS=$as_save_IFS |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17399 | |
| 17400 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 17401 | ;; |
| 17402 | esac |
| 17403 | fi |
| 17404 | LDD=$ac_cv_path_LDD |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17405 | if test -n "$LDD"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17406 | { echo "$as_me:$LINENO: result: $LDD" >&5 |
| 17407 | echo "${ECHO_T}$LDD" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17408 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17409 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17410 | echo "${ECHO_T}no" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17411 | fi |
| 17412 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17413 | |
| 17414 | { echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 17415 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17416 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 17417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17418 | else |
| 17419 | ac_get_soname_save_LIBS=$LIBS |
| 17420 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 17421 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17422 | /* confdefs.h. */ |
| 17423 | _ACEOF |
| 17424 | cat confdefs.h >>conftest.$ac_ext |
| 17425 | cat >>conftest.$ac_ext <<_ACEOF |
| 17426 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17427 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17428 | /* Override any GCC internal prototype to avoid an error. |
| 17429 | Use char because int might match the return type of a GCC |
| 17430 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17431 | #ifdef __cplusplus |
| 17432 | extern "C" |
| 17433 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17434 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17435 | int |
| 17436 | main () |
| 17437 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17438 | return XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17439 | ; |
| 17440 | return 0; |
| 17441 | } |
| 17442 | _ACEOF |
| 17443 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17444 | if { (ac_try="$ac_link" |
| 17445 | case "(($ac_try" in |
| 17446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17447 | *) ac_try_echo=$ac_try;; |
| 17448 | esac |
| 17449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17450 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17451 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17453 | rm -f conftest.er1 |
| 17454 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17456 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17458 | { (case "(($ac_try" in |
| 17459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17460 | *) ac_try_echo=$ac_try;; |
| 17461 | esac |
| 17462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17463 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17464 | ac_status=$? |
| 17465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17466 | (exit $ac_status); }; } && |
| 17467 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17468 | { (case "(($ac_try" in |
| 17469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17470 | *) ac_try_echo=$ac_try;; |
| 17471 | esac |
| 17472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17473 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17474 | ac_status=$? |
| 17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17476 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17477 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17478 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 17479 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17480 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17481 | fi |
| 17482 | else |
| 17483 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17485 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17486 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17487 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17488 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17489 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17490 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17491 | LIBS=$ac_get_soname_save_LIBS |
| 17492 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17493 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 17494 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17495 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 17496 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17497 | cat >>confdefs.h <<_ACEOF |
| 17498 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 17499 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17500 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17501 | fi |
| 17502 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17503 | { echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 17504 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17505 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 17506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17507 | else |
| 17508 | ac_get_soname_save_LIBS=$LIBS |
| 17509 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 17510 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17511 | /* confdefs.h. */ |
| 17512 | _ACEOF |
| 17513 | cat confdefs.h >>conftest.$ac_ext |
| 17514 | cat >>conftest.$ac_ext <<_ACEOF |
| 17515 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17516 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17517 | /* Override any GCC internal prototype to avoid an error. |
| 17518 | Use char because int might match the return type of a GCC |
| 17519 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17520 | #ifdef __cplusplus |
| 17521 | extern "C" |
| 17522 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17523 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17524 | int |
| 17525 | main () |
| 17526 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17527 | return XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17528 | ; |
| 17529 | return 0; |
| 17530 | } |
| 17531 | _ACEOF |
| 17532 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17533 | if { (ac_try="$ac_link" |
| 17534 | case "(($ac_try" in |
| 17535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17536 | *) ac_try_echo=$ac_try;; |
| 17537 | esac |
| 17538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17539 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17540 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17542 | rm -f conftest.er1 |
| 17543 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17545 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17547 | { (case "(($ac_try" in |
| 17548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17549 | *) ac_try_echo=$ac_try;; |
| 17550 | esac |
| 17551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17552 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17553 | ac_status=$? |
| 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17555 | (exit $ac_status); }; } && |
| 17556 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17557 | { (case "(($ac_try" in |
| 17558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17559 | *) ac_try_echo=$ac_try;; |
| 17560 | esac |
| 17561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17562 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17563 | ac_status=$? |
| 17564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17565 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17566 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17567 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 17568 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17569 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17570 | fi |
| 17571 | else |
| 17572 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17574 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17575 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17576 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17577 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17578 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17579 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17580 | LIBS=$ac_get_soname_save_LIBS |
| 17581 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17582 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 17583 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17584 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 17585 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17586 | cat >>confdefs.h <<_ACEOF |
| 17587 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 17588 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17589 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17590 | fi |
| 17591 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17592 | { echo "$as_me:$LINENO: checking for -lXi soname" >&5 |
| 17593 | echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; } |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17594 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 17595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17596 | else |
| 17597 | ac_get_soname_save_LIBS=$LIBS |
| 17598 | LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 17599 | cat >conftest.$ac_ext <<_ACEOF |
| 17600 | /* confdefs.h. */ |
| 17601 | _ACEOF |
| 17602 | cat confdefs.h >>conftest.$ac_ext |
| 17603 | cat >>conftest.$ac_ext <<_ACEOF |
| 17604 | /* end confdefs.h. */ |
| 17605 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17606 | /* Override any GCC internal prototype to avoid an error. |
| 17607 | Use char because int might match the return type of a GCC |
| 17608 | builtin and then its argument prototype would still apply. */ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17609 | #ifdef __cplusplus |
| 17610 | extern "C" |
| 17611 | #endif |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17612 | char XOpenDevice (); |
| 17613 | int |
| 17614 | main () |
| 17615 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17616 | return XOpenDevice (); |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17617 | ; |
| 17618 | return 0; |
| 17619 | } |
| 17620 | _ACEOF |
| 17621 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17622 | if { (ac_try="$ac_link" |
| 17623 | case "(($ac_try" in |
| 17624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17625 | *) ac_try_echo=$ac_try;; |
| 17626 | esac |
| 17627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17628 | (eval "$ac_link") 2>conftest.er1 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17629 | ac_status=$? |
| 17630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17631 | rm -f conftest.er1 |
| 17632 | cat conftest.err >&5 |
| 17633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17634 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17636 | { (case "(($ac_try" in |
| 17637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17638 | *) ac_try_echo=$ac_try;; |
| 17639 | esac |
| 17640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17641 | (eval "$ac_try") 2>&5 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17642 | ac_status=$? |
| 17643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17644 | (exit $ac_status); }; } && |
| 17645 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17646 | { (case "(($ac_try" in |
| 17647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17648 | *) ac_try_echo=$ac_try;; |
| 17649 | esac |
| 17650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17651 | (eval "$ac_try") 2>&5 |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17652 | ac_status=$? |
| 17653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17654 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17655 | ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17656 | if test "x$ac_cv_lib_soname_Xi" = "x" |
| 17657 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17658 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17659 | fi |
| 17660 | else |
| 17661 | echo "$as_me: failed program was:" >&5 |
| 17662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17663 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17664 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17665 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17666 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17667 | rm -f core conftest.err conftest.$ac_objext \ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17668 | conftest$ac_exeext conftest.$ac_ext |
| 17669 | LIBS=$ac_get_soname_save_LIBS |
| 17670 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17671 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5 |
| 17672 | echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17673 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 17674 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17675 | cat >>confdefs.h <<_ACEOF |
| 17676 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 17677 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17678 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 17679 | fi |
| 17680 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17681 | { echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 17682 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17683 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 17684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17685 | else |
| 17686 | ac_get_soname_save_LIBS=$LIBS |
| 17687 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 17688 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17689 | /* confdefs.h. */ |
| 17690 | _ACEOF |
| 17691 | cat confdefs.h >>conftest.$ac_ext |
| 17692 | cat >>conftest.$ac_ext <<_ACEOF |
| 17693 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17694 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17695 | /* Override any GCC internal prototype to avoid an error. |
| 17696 | Use char because int might match the return type of a GCC |
| 17697 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17698 | #ifdef __cplusplus |
| 17699 | extern "C" |
| 17700 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17701 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17702 | int |
| 17703 | main () |
| 17704 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17705 | return XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17706 | ; |
| 17707 | return 0; |
| 17708 | } |
| 17709 | _ACEOF |
| 17710 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17711 | if { (ac_try="$ac_link" |
| 17712 | case "(($ac_try" in |
| 17713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17714 | *) ac_try_echo=$ac_try;; |
| 17715 | esac |
| 17716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17717 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17718 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17720 | rm -f conftest.er1 |
| 17721 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17723 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17725 | { (case "(($ac_try" in |
| 17726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17727 | *) ac_try_echo=$ac_try;; |
| 17728 | esac |
| 17729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17730 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17731 | ac_status=$? |
| 17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17733 | (exit $ac_status); }; } && |
| 17734 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17735 | { (case "(($ac_try" in |
| 17736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17737 | *) ac_try_echo=$ac_try;; |
| 17738 | esac |
| 17739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17740 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17741 | ac_status=$? |
| 17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17743 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17744 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17745 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 17746 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17747 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17748 | fi |
| 17749 | else |
| 17750 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17752 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17753 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17754 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17755 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17756 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17757 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17758 | LIBS=$ac_get_soname_save_LIBS |
| 17759 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17760 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 17761 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17762 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 17763 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17764 | cat >>confdefs.h <<_ACEOF |
| 17765 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 17766 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17767 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17768 | fi |
| 17769 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17770 | { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5 |
| 17771 | echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; } |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17772 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 17773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17774 | else |
| 17775 | ac_get_soname_save_LIBS=$LIBS |
| 17776 | LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 17777 | cat >conftest.$ac_ext <<_ACEOF |
| 17778 | /* confdefs.h. */ |
| 17779 | _ACEOF |
| 17780 | cat confdefs.h >>conftest.$ac_ext |
| 17781 | cat >>conftest.$ac_ext <<_ACEOF |
| 17782 | /* end confdefs.h. */ |
| 17783 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17784 | /* Override any GCC internal prototype to avoid an error. |
| 17785 | Use char because int might match the return type of a GCC |
| 17786 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17787 | #ifdef __cplusplus |
| 17788 | extern "C" |
| 17789 | #endif |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17790 | char XRRQueryExtension (); |
| 17791 | int |
| 17792 | main () |
| 17793 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17794 | return XRRQueryExtension (); |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17795 | ; |
| 17796 | return 0; |
| 17797 | } |
| 17798 | _ACEOF |
| 17799 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17800 | if { (ac_try="$ac_link" |
| 17801 | case "(($ac_try" in |
| 17802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17803 | *) ac_try_echo=$ac_try;; |
| 17804 | esac |
| 17805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17806 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17807 | ac_status=$? |
| 17808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17809 | rm -f conftest.er1 |
| 17810 | cat conftest.err >&5 |
| 17811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17812 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17814 | { (case "(($ac_try" in |
| 17815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17816 | *) ac_try_echo=$ac_try;; |
| 17817 | esac |
| 17818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17819 | (eval "$ac_try") 2>&5 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17820 | ac_status=$? |
| 17821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17822 | (exit $ac_status); }; } && |
| 17823 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17824 | { (case "(($ac_try" in |
| 17825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17826 | *) ac_try_echo=$ac_try;; |
| 17827 | esac |
| 17828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17829 | (eval "$ac_try") 2>&5 |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17830 | ac_status=$? |
| 17831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17832 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17833 | ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17834 | if test "x$ac_cv_lib_soname_Xrandr" = "x" |
| 17835 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17836 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17837 | fi |
| 17838 | else |
| 17839 | echo "$as_me: failed program was:" >&5 |
| 17840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17841 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17842 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17843 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17844 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17845 | rm -f core conftest.err conftest.$ac_objext \ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17846 | conftest$ac_exeext conftest.$ac_ext |
| 17847 | LIBS=$ac_get_soname_save_LIBS |
| 17848 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17849 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5 |
| 17850 | echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17851 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 17852 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17853 | cat >>confdefs.h <<_ACEOF |
| 17854 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 17855 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17856 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 17857 | fi |
| 17858 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17859 | { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 17860 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; } |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17861 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 17862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17863 | else |
| 17864 | ac_get_soname_save_LIBS=$LIBS |
| 17865 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 17866 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17867 | /* confdefs.h. */ |
| 17868 | _ACEOF |
| 17869 | cat confdefs.h >>conftest.$ac_ext |
| 17870 | cat >>conftest.$ac_ext <<_ACEOF |
| 17871 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17872 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17873 | /* Override any GCC internal prototype to avoid an error. |
| 17874 | Use char because int might match the return type of a GCC |
| 17875 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17876 | #ifdef __cplusplus |
| 17877 | extern "C" |
| 17878 | #endif |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17879 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17880 | int |
| 17881 | main () |
| 17882 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17883 | return FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17884 | ; |
| 17885 | return 0; |
| 17886 | } |
| 17887 | _ACEOF |
| 17888 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17889 | if { (ac_try="$ac_link" |
| 17890 | case "(($ac_try" in |
| 17891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17892 | *) ac_try_echo=$ac_try;; |
| 17893 | esac |
| 17894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17895 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17896 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17898 | rm -f conftest.er1 |
| 17899 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17901 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17903 | { (case "(($ac_try" in |
| 17904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17905 | *) ac_try_echo=$ac_try;; |
| 17906 | esac |
| 17907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17908 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17909 | ac_status=$? |
| 17910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17911 | (exit $ac_status); }; } && |
| 17912 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17913 | { (case "(($ac_try" in |
| 17914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17915 | *) ac_try_echo=$ac_try;; |
| 17916 | esac |
| 17917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17918 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17919 | ac_status=$? |
| 17920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17921 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 17922 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17923 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 17924 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 17925 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17926 | fi |
| 17927 | else |
| 17928 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17930 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17931 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17932 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17933 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17934 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17935 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17936 | LIBS=$ac_get_soname_save_LIBS |
| 17937 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17938 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 17939 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17940 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 17941 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17942 | cat >>confdefs.h <<_ACEOF |
| 17943 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 17944 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 17945 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17946 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 17947 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17948 | { echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 17949 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; } |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17950 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 17951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17952 | else |
| 17953 | ac_get_soname_save_LIBS=$LIBS |
| 17954 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 17955 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17956 | /* confdefs.h. */ |
| 17957 | _ACEOF |
| 17958 | cat confdefs.h >>conftest.$ac_ext |
| 17959 | cat >>conftest.$ac_ext <<_ACEOF |
| 17960 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17961 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17962 | /* Override any GCC internal prototype to avoid an error. |
| 17963 | Use char because int might match the return type of a GCC |
| 17964 | builtin and then its argument prototype would still apply. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17965 | #ifdef __cplusplus |
| 17966 | extern "C" |
| 17967 | #endif |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17968 | char glXQueryExtension (); |
| 17969 | int |
| 17970 | main () |
| 17971 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17972 | return glXQueryExtension (); |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17973 | ; |
| 17974 | return 0; |
| 17975 | } |
| 17976 | _ACEOF |
| 17977 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17978 | if { (ac_try="$ac_link" |
| 17979 | case "(($ac_try" in |
| 17980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17981 | *) ac_try_echo=$ac_try;; |
| 17982 | esac |
| 17983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17984 | (eval "$ac_link") 2>conftest.er1 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17985 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17987 | rm -f conftest.er1 |
| 17988 | cat conftest.err >&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17990 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 17991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17992 | { (case "(($ac_try" in |
| 17993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17994 | *) ac_try_echo=$ac_try;; |
| 17995 | esac |
| 17996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17997 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17998 | ac_status=$? |
| 17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18000 | (exit $ac_status); }; } && |
| 18001 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18002 | { (case "(($ac_try" in |
| 18003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18004 | *) ac_try_echo=$ac_try;; |
| 18005 | esac |
| 18006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18007 | (eval "$ac_try") 2>&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 18008 | ac_status=$? |
| 18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18010 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18011 | ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 18012 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 18013 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18014 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 18015 | fi |
| 18016 | else |
| 18017 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18019 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18020 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 18021 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18022 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18023 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18024 | conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 18025 | LIBS=$ac_get_soname_save_LIBS |
| 18026 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18027 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 18028 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18029 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 18030 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 18031 | cat >>confdefs.h <<_ACEOF |
| 18032 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 18033 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18034 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 18035 | fi |
| 18036 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18037 | { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5 |
| 18038 | echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18039 | if test "${ac_cv_lib_soname_dbus_1+set}" = set; then |
| 18040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18041 | else |
| 18042 | ac_get_soname_save_LIBS=$LIBS |
| 18043 | LIBS="-ldbus-1 $LIBS" |
| 18044 | cat >conftest.$ac_ext <<_ACEOF |
| 18045 | /* confdefs.h. */ |
| 18046 | _ACEOF |
| 18047 | cat confdefs.h >>conftest.$ac_ext |
| 18048 | cat >>conftest.$ac_ext <<_ACEOF |
| 18049 | /* end confdefs.h. */ |
| 18050 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18051 | /* Override any GCC internal prototype to avoid an error. |
| 18052 | Use char because int might match the return type of a GCC |
| 18053 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18054 | #ifdef __cplusplus |
| 18055 | extern "C" |
| 18056 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18057 | char dbus_error_init (); |
| 18058 | int |
| 18059 | main () |
| 18060 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18061 | return dbus_error_init (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18062 | ; |
| 18063 | return 0; |
| 18064 | } |
| 18065 | _ACEOF |
| 18066 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18067 | if { (ac_try="$ac_link" |
| 18068 | case "(($ac_try" in |
| 18069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18070 | *) ac_try_echo=$ac_try;; |
| 18071 | esac |
| 18072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18073 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18074 | ac_status=$? |
| 18075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18076 | rm -f conftest.er1 |
| 18077 | cat conftest.err >&5 |
| 18078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18079 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18081 | { (case "(($ac_try" in |
| 18082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18083 | *) ac_try_echo=$ac_try;; |
| 18084 | esac |
| 18085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18086 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18087 | ac_status=$? |
| 18088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18089 | (exit $ac_status); }; } && |
| 18090 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18091 | { (case "(($ac_try" in |
| 18092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18093 | *) ac_try_echo=$ac_try;; |
| 18094 | esac |
| 18095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18096 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18097 | ac_status=$? |
| 18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18099 | (exit $ac_status); }; }; then |
| 18100 | ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
| 18101 | if test "x$ac_cv_lib_soname_dbus_1" = "x" |
| 18102 | then |
| 18103 | ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT" |
| 18104 | fi |
| 18105 | else |
| 18106 | echo "$as_me: failed program was:" >&5 |
| 18107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18108 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18109 | ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18110 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18111 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18112 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18113 | conftest$ac_exeext conftest.$ac_ext |
| 18114 | LIBS=$ac_get_soname_save_LIBS |
| 18115 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18116 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5 |
| 18117 | echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18118 | if test "${ac_cv_lib_soname_dbus_1+set}" = set; then |
| 18119 | |
| 18120 | cat >>confdefs.h <<_ACEOF |
| 18121 | #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1" |
| 18122 | _ACEOF |
| 18123 | |
| 18124 | fi |
| 18125 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18126 | { echo "$as_me:$LINENO: checking for -lhal soname" >&5 |
| 18127 | echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18128 | if test "${ac_cv_lib_soname_hal+set}" = set; then |
| 18129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18130 | else |
| 18131 | ac_get_soname_save_LIBS=$LIBS |
| 18132 | LIBS="-lhal $LIBS" |
| 18133 | cat >conftest.$ac_ext <<_ACEOF |
| 18134 | /* confdefs.h. */ |
| 18135 | _ACEOF |
| 18136 | cat confdefs.h >>conftest.$ac_ext |
| 18137 | cat >>conftest.$ac_ext <<_ACEOF |
| 18138 | /* end confdefs.h. */ |
| 18139 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18140 | /* Override any GCC internal prototype to avoid an error. |
| 18141 | Use char because int might match the return type of a GCC |
| 18142 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18143 | #ifdef __cplusplus |
| 18144 | extern "C" |
| 18145 | #endif |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18146 | char libhal_ctx_new (); |
| 18147 | int |
| 18148 | main () |
| 18149 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18150 | return libhal_ctx_new (); |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18151 | ; |
| 18152 | return 0; |
| 18153 | } |
| 18154 | _ACEOF |
| 18155 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18156 | if { (ac_try="$ac_link" |
| 18157 | case "(($ac_try" in |
| 18158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18159 | *) ac_try_echo=$ac_try;; |
| 18160 | esac |
| 18161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18162 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18163 | ac_status=$? |
| 18164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18165 | rm -f conftest.er1 |
| 18166 | cat conftest.err >&5 |
| 18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18168 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18170 | { (case "(($ac_try" in |
| 18171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18172 | *) ac_try_echo=$ac_try;; |
| 18173 | esac |
| 18174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18175 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18176 | ac_status=$? |
| 18177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18178 | (exit $ac_status); }; } && |
| 18179 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18180 | { (case "(($ac_try" in |
| 18181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18182 | *) ac_try_echo=$ac_try;; |
| 18183 | esac |
| 18184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18185 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18186 | ac_status=$? |
| 18187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18188 | (exit $ac_status); }; }; then |
| 18189 | ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
| 18190 | if test "x$ac_cv_lib_soname_hal" = "x" |
| 18191 | then |
| 18192 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
| 18193 | fi |
| 18194 | else |
| 18195 | echo "$as_me: failed program was:" >&5 |
| 18196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18197 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18198 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18199 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18200 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18201 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18202 | conftest$ac_exeext conftest.$ac_ext |
| 18203 | LIBS=$ac_get_soname_save_LIBS |
| 18204 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18205 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5 |
| 18206 | echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 18207 | if test "${ac_cv_lib_soname_hal+set}" = set; then |
| 18208 | |
| 18209 | cat >>confdefs.h <<_ACEOF |
| 18210 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
| 18211 | _ACEOF |
| 18212 | |
| 18213 | fi |
| 18214 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18215 | { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5 |
| 18216 | echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; } |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18217 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 18218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18219 | else |
| 18220 | ac_get_soname_save_LIBS=$LIBS |
| 18221 | LIBS="-ltxc_dxtn $LIBS" |
| 18222 | cat >conftest.$ac_ext <<_ACEOF |
| 18223 | /* confdefs.h. */ |
| 18224 | _ACEOF |
| 18225 | cat confdefs.h >>conftest.$ac_ext |
| 18226 | cat >>conftest.$ac_ext <<_ACEOF |
| 18227 | /* end confdefs.h. */ |
| 18228 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18229 | /* Override any GCC internal prototype to avoid an error. |
| 18230 | Use char because int might match the return type of a GCC |
| 18231 | builtin and then its argument prototype would still apply. */ |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18232 | #ifdef __cplusplus |
| 18233 | extern "C" |
| 18234 | #endif |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18235 | char fetch_2d_texel_rgba_dxt1 (); |
| 18236 | int |
| 18237 | main () |
| 18238 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18239 | return fetch_2d_texel_rgba_dxt1 (); |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18240 | ; |
| 18241 | return 0; |
| 18242 | } |
| 18243 | _ACEOF |
| 18244 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18245 | if { (ac_try="$ac_link" |
| 18246 | case "(($ac_try" in |
| 18247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18248 | *) ac_try_echo=$ac_try;; |
| 18249 | esac |
| 18250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18251 | (eval "$ac_link") 2>conftest.er1 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18252 | ac_status=$? |
| 18253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18254 | rm -f conftest.er1 |
| 18255 | cat conftest.err >&5 |
| 18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18257 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18259 | { (case "(($ac_try" in |
| 18260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18261 | *) ac_try_echo=$ac_try;; |
| 18262 | esac |
| 18263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18264 | (eval "$ac_try") 2>&5 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18265 | ac_status=$? |
| 18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18267 | (exit $ac_status); }; } && |
| 18268 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18269 | { (case "(($ac_try" in |
| 18270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18271 | *) ac_try_echo=$ac_try;; |
| 18272 | esac |
| 18273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18274 | (eval "$ac_try") 2>&5 |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18275 | ac_status=$? |
| 18276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18277 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18278 | ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18279 | if test "x$ac_cv_lib_soname_txc_dxtn" = "x" |
| 18280 | then |
| 18281 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
| 18282 | fi |
| 18283 | else |
| 18284 | echo "$as_me: failed program was:" >&5 |
| 18285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18286 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18287 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18288 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18289 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18290 | rm -f core conftest.err conftest.$ac_objext \ |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18291 | conftest$ac_exeext conftest.$ac_ext |
| 18292 | LIBS=$ac_get_soname_save_LIBS |
| 18293 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18294 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5 |
| 18295 | echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18296 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 18297 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18298 | cat >>confdefs.h <<_ACEOF |
| 18299 | #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn" |
| 18300 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18301 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 18302 | fi |
| 18303 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18304 | { echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 18305 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; } |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18306 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 18307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18308 | else |
| 18309 | ac_get_soname_save_LIBS=$LIBS |
| 18310 | LIBS="-lcups $LIBS" |
| 18311 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18312 | /* confdefs.h. */ |
| 18313 | _ACEOF |
| 18314 | cat confdefs.h >>conftest.$ac_ext |
| 18315 | cat >>conftest.$ac_ext <<_ACEOF |
| 18316 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18317 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18318 | /* Override any GCC internal prototype to avoid an error. |
| 18319 | Use char because int might match the return type of a GCC |
| 18320 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18321 | #ifdef __cplusplus |
| 18322 | extern "C" |
| 18323 | #endif |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18324 | char cupsGetDefault (); |
| 18325 | int |
| 18326 | main () |
| 18327 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18328 | return cupsGetDefault (); |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18329 | ; |
| 18330 | return 0; |
| 18331 | } |
| 18332 | _ACEOF |
| 18333 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18334 | if { (ac_try="$ac_link" |
| 18335 | case "(($ac_try" in |
| 18336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18337 | *) ac_try_echo=$ac_try;; |
| 18338 | esac |
| 18339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18340 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18341 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18343 | rm -f conftest.er1 |
| 18344 | cat conftest.err >&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18346 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18348 | { (case "(($ac_try" in |
| 18349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18350 | *) ac_try_echo=$ac_try;; |
| 18351 | esac |
| 18352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18353 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18354 | ac_status=$? |
| 18355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18356 | (exit $ac_status); }; } && |
| 18357 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18358 | { (case "(($ac_try" in |
| 18359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18360 | *) ac_try_echo=$ac_try;; |
| 18361 | esac |
| 18362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18363 | (eval "$ac_try") 2>&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18364 | ac_status=$? |
| 18365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18366 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18367 | ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18368 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 18369 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18370 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18371 | fi |
| 18372 | else |
| 18373 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18375 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18376 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18377 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18378 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18379 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18380 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18381 | LIBS=$ac_get_soname_save_LIBS |
| 18382 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18383 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 18384 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18385 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 18386 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18387 | cat >>confdefs.h <<_ACEOF |
| 18388 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 18389 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18390 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 18391 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18392 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18393 | { echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 18394 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; } |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18395 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 18396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18397 | else |
| 18398 | ac_get_soname_save_LIBS=$LIBS |
| 18399 | LIBS="-ljack $LIBS" |
| 18400 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18401 | /* confdefs.h. */ |
| 18402 | _ACEOF |
| 18403 | cat confdefs.h >>conftest.$ac_ext |
| 18404 | cat >>conftest.$ac_ext <<_ACEOF |
| 18405 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18406 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18407 | /* Override any GCC internal prototype to avoid an error. |
| 18408 | Use char because int might match the return type of a GCC |
| 18409 | builtin and then its argument prototype would still apply. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18410 | #ifdef __cplusplus |
| 18411 | extern "C" |
| 18412 | #endif |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18413 | char jack_client_new (); |
| 18414 | int |
| 18415 | main () |
| 18416 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18417 | return jack_client_new (); |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18418 | ; |
| 18419 | return 0; |
| 18420 | } |
| 18421 | _ACEOF |
| 18422 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18423 | if { (ac_try="$ac_link" |
| 18424 | case "(($ac_try" in |
| 18425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18426 | *) ac_try_echo=$ac_try;; |
| 18427 | esac |
| 18428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18429 | (eval "$ac_link") 2>conftest.er1 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18430 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18432 | rm -f conftest.er1 |
| 18433 | cat conftest.err >&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18435 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18437 | { (case "(($ac_try" in |
| 18438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18439 | *) ac_try_echo=$ac_try;; |
| 18440 | esac |
| 18441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18442 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18443 | ac_status=$? |
| 18444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18445 | (exit $ac_status); }; } && |
| 18446 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18447 | { (case "(($ac_try" in |
| 18448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18449 | *) ac_try_echo=$ac_try;; |
| 18450 | esac |
| 18451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18452 | (eval "$ac_try") 2>&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18453 | ac_status=$? |
| 18454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18455 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18456 | ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18457 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 18458 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18459 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18460 | fi |
| 18461 | else |
| 18462 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18464 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18465 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18466 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18467 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18468 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18469 | conftest$ac_exeext conftest.$ac_ext |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18470 | LIBS=$ac_get_soname_save_LIBS |
| 18471 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18472 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 18473 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18474 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 18475 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18476 | cat >>confdefs.h <<_ACEOF |
| 18477 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 18478 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18479 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 18480 | fi |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18481 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18482 | { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5 |
| 18483 | echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; } |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18484 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 18485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18486 | else |
| 18487 | ac_get_soname_save_LIBS=$LIBS |
| 18488 | LIBS="-lfontconfig $LIBS" |
| 18489 | cat >conftest.$ac_ext <<_ACEOF |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18490 | /* confdefs.h. */ |
| 18491 | _ACEOF |
| 18492 | cat confdefs.h >>conftest.$ac_ext |
| 18493 | cat >>conftest.$ac_ext <<_ACEOF |
| 18494 | /* end confdefs.h. */ |
| 18495 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18496 | /* Override any GCC internal prototype to avoid an error. |
| 18497 | Use char because int might match the return type of a GCC |
| 18498 | builtin and then its argument prototype would still apply. */ |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18499 | #ifdef __cplusplus |
| 18500 | extern "C" |
| 18501 | #endif |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18502 | char FcInit (); |
| 18503 | int |
| 18504 | main () |
| 18505 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18506 | return FcInit (); |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18507 | ; |
| 18508 | return 0; |
| 18509 | } |
| 18510 | _ACEOF |
| 18511 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18512 | if { (ac_try="$ac_link" |
| 18513 | case "(($ac_try" in |
| 18514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18515 | *) ac_try_echo=$ac_try;; |
| 18516 | esac |
| 18517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18518 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18519 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18521 | rm -f conftest.er1 |
| 18522 | cat conftest.err >&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18524 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18526 | { (case "(($ac_try" in |
| 18527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18528 | *) ac_try_echo=$ac_try;; |
| 18529 | esac |
| 18530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18531 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18532 | ac_status=$? |
| 18533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18534 | (exit $ac_status); }; } && |
| 18535 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18536 | { (case "(($ac_try" in |
| 18537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18538 | *) ac_try_echo=$ac_try;; |
| 18539 | esac |
| 18540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18541 | (eval "$ac_try") 2>&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18542 | ac_status=$? |
| 18543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18544 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18545 | ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18546 | if test "x$ac_cv_lib_soname_fontconfig" = "x" |
| 18547 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18548 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18549 | fi |
| 18550 | else |
| 18551 | echo "$as_me: failed program was:" >&5 |
| 18552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18553 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18554 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18555 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18556 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18557 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18558 | conftest$ac_exeext conftest.$ac_ext |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18559 | LIBS=$ac_get_soname_save_LIBS |
| 18560 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18561 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5 |
| 18562 | echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18563 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 18564 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18565 | cat >>confdefs.h <<_ACEOF |
| 18566 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 18567 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18568 | |
Alexandre Julliard | 7999469 | 2003-11-13 20:58:55 +0000 | [diff] [blame] | 18569 | fi |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 18570 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18571 | { echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
| 18572 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; } |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18573 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 18574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18575 | else |
| 18576 | ac_get_soname_save_LIBS=$LIBS |
| 18577 | LIBS="-lssl $LIBS" |
| 18578 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18579 | /* confdefs.h. */ |
| 18580 | _ACEOF |
| 18581 | cat confdefs.h >>conftest.$ac_ext |
| 18582 | cat >>conftest.$ac_ext <<_ACEOF |
| 18583 | /* end confdefs.h. */ |
| 18584 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18585 | /* Override any GCC internal prototype to avoid an error. |
| 18586 | Use char because int might match the return type of a GCC |
| 18587 | builtin and then its argument prototype would still apply. */ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18588 | #ifdef __cplusplus |
| 18589 | extern "C" |
| 18590 | #endif |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18591 | char SSL_library_init (); |
| 18592 | int |
| 18593 | main () |
| 18594 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18595 | return SSL_library_init (); |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18596 | ; |
| 18597 | return 0; |
| 18598 | } |
| 18599 | _ACEOF |
| 18600 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18601 | if { (ac_try="$ac_link" |
| 18602 | case "(($ac_try" in |
| 18603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18604 | *) ac_try_echo=$ac_try;; |
| 18605 | esac |
| 18606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18607 | (eval "$ac_link") 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18608 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18610 | rm -f conftest.er1 |
| 18611 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18613 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18615 | { (case "(($ac_try" in |
| 18616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18617 | *) ac_try_echo=$ac_try;; |
| 18618 | esac |
| 18619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18620 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18621 | ac_status=$? |
| 18622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18623 | (exit $ac_status); }; } && |
| 18624 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18625 | { (case "(($ac_try" in |
| 18626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18627 | *) ac_try_echo=$ac_try;; |
| 18628 | esac |
| 18629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18630 | (eval "$ac_try") 2>&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18631 | ac_status=$? |
| 18632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18633 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18634 | ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18635 | if test "x$ac_cv_lib_soname_ssl" = "x" |
| 18636 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18637 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18638 | fi |
| 18639 | else |
| 18640 | echo "$as_me: failed program was:" >&5 |
| 18641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18642 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18643 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18644 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18645 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18646 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18647 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18648 | LIBS=$ac_get_soname_save_LIBS |
| 18649 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18650 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
| 18651 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18652 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 18653 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18654 | cat >>confdefs.h <<_ACEOF |
| 18655 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 18656 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18657 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18658 | fi |
| 18659 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18660 | { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
| 18661 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; } |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18662 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 18663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18664 | else |
| 18665 | ac_get_soname_save_LIBS=$LIBS |
| 18666 | LIBS="-lcrypto $LIBS" |
| 18667 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18668 | /* confdefs.h. */ |
| 18669 | _ACEOF |
| 18670 | cat confdefs.h >>conftest.$ac_ext |
| 18671 | cat >>conftest.$ac_ext <<_ACEOF |
| 18672 | /* end confdefs.h. */ |
| 18673 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18674 | /* Override any GCC internal prototype to avoid an error. |
| 18675 | Use char because int might match the return type of a GCC |
| 18676 | builtin and then its argument prototype would still apply. */ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18677 | #ifdef __cplusplus |
| 18678 | extern "C" |
| 18679 | #endif |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18680 | char BIO_new_socket (); |
| 18681 | int |
| 18682 | main () |
| 18683 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18684 | return BIO_new_socket (); |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18685 | ; |
| 18686 | return 0; |
| 18687 | } |
| 18688 | _ACEOF |
| 18689 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18690 | if { (ac_try="$ac_link" |
| 18691 | case "(($ac_try" in |
| 18692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18693 | *) ac_try_echo=$ac_try;; |
| 18694 | esac |
| 18695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18696 | (eval "$ac_link") 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18697 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18699 | rm -f conftest.er1 |
| 18700 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18702 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18704 | { (case "(($ac_try" in |
| 18705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18706 | *) ac_try_echo=$ac_try;; |
| 18707 | esac |
| 18708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18709 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18710 | ac_status=$? |
| 18711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18712 | (exit $ac_status); }; } && |
| 18713 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18714 | { (case "(($ac_try" in |
| 18715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18716 | *) ac_try_echo=$ac_try;; |
| 18717 | esac |
| 18718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18719 | (eval "$ac_try") 2>&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18720 | ac_status=$? |
| 18721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18722 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18723 | ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18724 | if test "x$ac_cv_lib_soname_crypto" = "x" |
| 18725 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18726 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18727 | fi |
| 18728 | else |
| 18729 | echo "$as_me: failed program was:" >&5 |
| 18730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18731 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18732 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18733 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18734 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18735 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18736 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18737 | LIBS=$ac_get_soname_save_LIBS |
| 18738 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18739 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
| 18740 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18741 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 18742 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18743 | cat >>confdefs.h <<_ACEOF |
| 18744 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 18745 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18746 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 18747 | fi |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18748 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18749 | { echo "$as_me:$LINENO: checking for -lncurses soname" >&5 |
| 18750 | echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; } |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18751 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 18752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18753 | else |
| 18754 | ac_get_soname_save_LIBS=$LIBS |
| 18755 | LIBS="-lncurses $LIBS" |
| 18756 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18757 | /* confdefs.h. */ |
| 18758 | _ACEOF |
| 18759 | cat confdefs.h >>conftest.$ac_ext |
| 18760 | cat >>conftest.$ac_ext <<_ACEOF |
| 18761 | /* end confdefs.h. */ |
| 18762 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18763 | /* Override any GCC internal prototype to avoid an error. |
| 18764 | Use char because int might match the return type of a GCC |
| 18765 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18766 | #ifdef __cplusplus |
| 18767 | extern "C" |
| 18768 | #endif |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18769 | char waddch (); |
| 18770 | int |
| 18771 | main () |
| 18772 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18773 | return waddch (); |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18774 | ; |
| 18775 | return 0; |
| 18776 | } |
| 18777 | _ACEOF |
| 18778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18779 | if { (ac_try="$ac_link" |
| 18780 | case "(($ac_try" in |
| 18781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18782 | *) ac_try_echo=$ac_try;; |
| 18783 | esac |
| 18784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18785 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18786 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18788 | rm -f conftest.er1 |
| 18789 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18791 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18793 | { (case "(($ac_try" in |
| 18794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18795 | *) ac_try_echo=$ac_try;; |
| 18796 | esac |
| 18797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18798 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18799 | ac_status=$? |
| 18800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18801 | (exit $ac_status); }; } && |
| 18802 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18803 | { (case "(($ac_try" in |
| 18804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18805 | *) ac_try_echo=$ac_try;; |
| 18806 | esac |
| 18807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18808 | (eval "$ac_try") 2>&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18809 | ac_status=$? |
| 18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18811 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18812 | ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18813 | if test "x$ac_cv_lib_soname_ncurses" = "x" |
| 18814 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18815 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18816 | fi |
| 18817 | else |
| 18818 | echo "$as_me: failed program was:" >&5 |
| 18819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18820 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18821 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18822 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18823 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18824 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18825 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18826 | LIBS=$ac_get_soname_save_LIBS |
| 18827 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18828 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5 |
| 18829 | echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18830 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 18831 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18832 | cat >>confdefs.h <<_ACEOF |
| 18833 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 18834 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18835 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18836 | fi |
| 18837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18838 | { echo "$as_me:$LINENO: checking for -lcurses soname" >&5 |
| 18839 | echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; } |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18840 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 18841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18842 | else |
| 18843 | ac_get_soname_save_LIBS=$LIBS |
| 18844 | LIBS="-lcurses $LIBS" |
| 18845 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18846 | /* confdefs.h. */ |
| 18847 | _ACEOF |
| 18848 | cat confdefs.h >>conftest.$ac_ext |
| 18849 | cat >>conftest.$ac_ext <<_ACEOF |
| 18850 | /* end confdefs.h. */ |
| 18851 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18852 | /* Override any GCC internal prototype to avoid an error. |
| 18853 | Use char because int might match the return type of a GCC |
| 18854 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18855 | #ifdef __cplusplus |
| 18856 | extern "C" |
| 18857 | #endif |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18858 | char waddch (); |
| 18859 | int |
| 18860 | main () |
| 18861 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18862 | return waddch (); |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18863 | ; |
| 18864 | return 0; |
| 18865 | } |
| 18866 | _ACEOF |
| 18867 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18868 | if { (ac_try="$ac_link" |
| 18869 | case "(($ac_try" in |
| 18870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18871 | *) ac_try_echo=$ac_try;; |
| 18872 | esac |
| 18873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18874 | (eval "$ac_link") 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18875 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18877 | rm -f conftest.er1 |
| 18878 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18880 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18882 | { (case "(($ac_try" in |
| 18883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18884 | *) ac_try_echo=$ac_try;; |
| 18885 | esac |
| 18886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18887 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18888 | ac_status=$? |
| 18889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18890 | (exit $ac_status); }; } && |
| 18891 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18892 | { (case "(($ac_try" in |
| 18893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18894 | *) ac_try_echo=$ac_try;; |
| 18895 | esac |
| 18896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18897 | (eval "$ac_try") 2>&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18898 | ac_status=$? |
| 18899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18900 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18901 | ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18902 | if test "x$ac_cv_lib_soname_curses" = "x" |
| 18903 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 18904 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18905 | fi |
| 18906 | else |
| 18907 | echo "$as_me: failed program was:" >&5 |
| 18908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18909 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18910 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18911 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18912 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18913 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18914 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18915 | LIBS=$ac_get_soname_save_LIBS |
| 18916 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18917 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5 |
| 18918 | echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18919 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 18920 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18921 | cat >>confdefs.h <<_ACEOF |
| 18922 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 18923 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 18924 | |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 18925 | fi |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18926 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18927 | { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5 |
| 18928 | echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; } |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18929 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 18930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18931 | else |
| 18932 | ac_get_soname_save_LIBS=$LIBS |
| 18933 | LIBS="-ljpeg $LIBS" |
| 18934 | cat >conftest.$ac_ext <<_ACEOF |
| 18935 | /* confdefs.h. */ |
| 18936 | _ACEOF |
| 18937 | cat confdefs.h >>conftest.$ac_ext |
| 18938 | cat >>conftest.$ac_ext <<_ACEOF |
| 18939 | /* end confdefs.h. */ |
| 18940 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18941 | /* Override any GCC internal prototype to avoid an error. |
| 18942 | Use char because int might match the return type of a GCC |
| 18943 | builtin and then its argument prototype would still apply. */ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18944 | #ifdef __cplusplus |
| 18945 | extern "C" |
| 18946 | #endif |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18947 | char jpeg_start_decompress (); |
| 18948 | int |
| 18949 | main () |
| 18950 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18951 | return jpeg_start_decompress (); |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18952 | ; |
| 18953 | return 0; |
| 18954 | } |
| 18955 | _ACEOF |
| 18956 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18957 | if { (ac_try="$ac_link" |
| 18958 | case "(($ac_try" in |
| 18959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18960 | *) ac_try_echo=$ac_try;; |
| 18961 | esac |
| 18962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18963 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18964 | ac_status=$? |
| 18965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18966 | rm -f conftest.er1 |
| 18967 | cat conftest.err >&5 |
| 18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18969 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18971 | { (case "(($ac_try" in |
| 18972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18973 | *) ac_try_echo=$ac_try;; |
| 18974 | esac |
| 18975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18976 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18977 | ac_status=$? |
| 18978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18979 | (exit $ac_status); }; } && |
| 18980 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 18981 | { (case "(($ac_try" in |
| 18982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18983 | *) ac_try_echo=$ac_try;; |
| 18984 | esac |
| 18985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18986 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18987 | ac_status=$? |
| 18988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18989 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 18990 | ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 18991 | if test "x$ac_cv_lib_soname_jpeg" = "x" |
| 18992 | then |
| 18993 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
| 18994 | fi |
| 18995 | else |
| 18996 | echo "$as_me: failed program was:" >&5 |
| 18997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18998 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 18999 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19000 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19001 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19002 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19003 | conftest$ac_exeext conftest.$ac_ext |
| 19004 | LIBS=$ac_get_soname_save_LIBS |
| 19005 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19006 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5 |
| 19007 | echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19008 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 19009 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19010 | cat >>confdefs.h <<_ACEOF |
| 19011 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 19012 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19013 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19014 | fi |
| 19015 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19016 | { echo "$as_me:$LINENO: checking for -lungif soname" >&5 |
| 19017 | echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; } |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19018 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 19019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19020 | else |
| 19021 | ac_get_soname_save_LIBS=$LIBS |
| 19022 | LIBS="-lungif $LIBS" |
| 19023 | cat >conftest.$ac_ext <<_ACEOF |
| 19024 | /* confdefs.h. */ |
| 19025 | _ACEOF |
| 19026 | cat confdefs.h >>conftest.$ac_ext |
| 19027 | cat >>conftest.$ac_ext <<_ACEOF |
| 19028 | /* end confdefs.h. */ |
| 19029 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19030 | /* Override any GCC internal prototype to avoid an error. |
| 19031 | Use char because int might match the return type of a GCC |
| 19032 | builtin and then its argument prototype would still apply. */ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19033 | #ifdef __cplusplus |
| 19034 | extern "C" |
| 19035 | #endif |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19036 | char DGifOpen (); |
| 19037 | int |
| 19038 | main () |
| 19039 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19040 | return DGifOpen (); |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19041 | ; |
| 19042 | return 0; |
| 19043 | } |
| 19044 | _ACEOF |
| 19045 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19046 | if { (ac_try="$ac_link" |
| 19047 | case "(($ac_try" in |
| 19048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19049 | *) ac_try_echo=$ac_try;; |
| 19050 | esac |
| 19051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19052 | (eval "$ac_link") 2>conftest.er1 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19053 | ac_status=$? |
| 19054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19055 | rm -f conftest.er1 |
| 19056 | cat conftest.err >&5 |
| 19057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19058 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19060 | { (case "(($ac_try" in |
| 19061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19062 | *) ac_try_echo=$ac_try;; |
| 19063 | esac |
| 19064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19065 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19066 | ac_status=$? |
| 19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19068 | (exit $ac_status); }; } && |
| 19069 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19070 | { (case "(($ac_try" in |
| 19071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19072 | *) ac_try_echo=$ac_try;; |
| 19073 | esac |
| 19074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19075 | (eval "$ac_try") 2>&5 |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19076 | ac_status=$? |
| 19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19078 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 19079 | ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19080 | if test "x$ac_cv_lib_soname_ungif" = "x" |
| 19081 | then |
| 19082 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
| 19083 | fi |
| 19084 | else |
| 19085 | echo "$as_me: failed program was:" >&5 |
| 19086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19087 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19088 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19089 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19090 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19091 | rm -f core conftest.err conftest.$ac_objext \ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19092 | conftest$ac_exeext conftest.$ac_ext |
| 19093 | LIBS=$ac_get_soname_save_LIBS |
| 19094 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19095 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5 |
| 19096 | echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19097 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 19098 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19099 | cat >>confdefs.h <<_ACEOF |
| 19100 | #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif" |
| 19101 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19102 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 19103 | fi |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19104 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19105 | { echo "$as_me:$LINENO: checking for -lgif soname" >&5 |
| 19106 | echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; } |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19107 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 19108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19109 | else |
| 19110 | ac_get_soname_save_LIBS=$LIBS |
| 19111 | LIBS="-lgif $LIBS" |
| 19112 | cat >conftest.$ac_ext <<_ACEOF |
| 19113 | /* confdefs.h. */ |
| 19114 | _ACEOF |
| 19115 | cat confdefs.h >>conftest.$ac_ext |
| 19116 | cat >>conftest.$ac_ext <<_ACEOF |
| 19117 | /* end confdefs.h. */ |
| 19118 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19119 | /* Override any GCC internal prototype to avoid an error. |
| 19120 | Use char because int might match the return type of a GCC |
| 19121 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19122 | #ifdef __cplusplus |
| 19123 | extern "C" |
| 19124 | #endif |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19125 | char DGifOpen (); |
| 19126 | int |
| 19127 | main () |
| 19128 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19129 | return DGifOpen (); |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19130 | ; |
| 19131 | return 0; |
| 19132 | } |
| 19133 | _ACEOF |
| 19134 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19135 | if { (ac_try="$ac_link" |
| 19136 | case "(($ac_try" in |
| 19137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19138 | *) ac_try_echo=$ac_try;; |
| 19139 | esac |
| 19140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19141 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19142 | ac_status=$? |
| 19143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19144 | rm -f conftest.er1 |
| 19145 | cat conftest.err >&5 |
| 19146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19147 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19149 | { (case "(($ac_try" in |
| 19150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19151 | *) ac_try_echo=$ac_try;; |
| 19152 | esac |
| 19153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19154 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19155 | ac_status=$? |
| 19156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19157 | (exit $ac_status); }; } && |
| 19158 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19159 | { (case "(($ac_try" in |
| 19160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19161 | *) ac_try_echo=$ac_try;; |
| 19162 | esac |
| 19163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19164 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19165 | ac_status=$? |
| 19166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19167 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 19168 | ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19169 | if test "x$ac_cv_lib_soname_gif" = "x" |
| 19170 | then |
| 19171 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
| 19172 | fi |
| 19173 | else |
| 19174 | echo "$as_me: failed program was:" >&5 |
| 19175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19176 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19177 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19178 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19179 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19180 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19181 | conftest$ac_exeext conftest.$ac_ext |
| 19182 | LIBS=$ac_get_soname_save_LIBS |
| 19183 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19184 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5 |
| 19185 | echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19186 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 19187 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19188 | cat >>confdefs.h <<_ACEOF |
| 19189 | #define SONAME_LIBGIF "$ac_cv_lib_soname_gif" |
| 19190 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19191 | |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 19192 | fi |
Hans Leidekker | 081b250 | 2004-10-07 19:12:41 +0000 | [diff] [blame] | 19193 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19194 | { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5 |
| 19195 | echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; } |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19196 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 19197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19198 | else |
| 19199 | ac_get_soname_save_LIBS=$LIBS |
| 19200 | LIBS="-lcapi20 $LIBS" |
| 19201 | cat >conftest.$ac_ext <<_ACEOF |
| 19202 | /* confdefs.h. */ |
| 19203 | _ACEOF |
| 19204 | cat confdefs.h >>conftest.$ac_ext |
| 19205 | cat >>conftest.$ac_ext <<_ACEOF |
| 19206 | /* end confdefs.h. */ |
| 19207 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19208 | /* Override any GCC internal prototype to avoid an error. |
| 19209 | Use char because int might match the return type of a GCC |
| 19210 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19211 | #ifdef __cplusplus |
| 19212 | extern "C" |
| 19213 | #endif |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19214 | char capi20_isinstalled (); |
| 19215 | int |
| 19216 | main () |
| 19217 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19218 | return capi20_isinstalled (); |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19219 | ; |
| 19220 | return 0; |
| 19221 | } |
| 19222 | _ACEOF |
| 19223 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19224 | if { (ac_try="$ac_link" |
| 19225 | case "(($ac_try" in |
| 19226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19227 | *) ac_try_echo=$ac_try;; |
| 19228 | esac |
| 19229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19230 | (eval "$ac_link") 2>conftest.er1 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19231 | ac_status=$? |
| 19232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19233 | rm -f conftest.er1 |
| 19234 | cat conftest.err >&5 |
| 19235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19236 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19238 | { (case "(($ac_try" in |
| 19239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19240 | *) ac_try_echo=$ac_try;; |
| 19241 | esac |
| 19242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19243 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19244 | ac_status=$? |
| 19245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19246 | (exit $ac_status); }; } && |
| 19247 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19248 | { (case "(($ac_try" in |
| 19249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19250 | *) ac_try_echo=$ac_try;; |
| 19251 | esac |
| 19252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19253 | (eval "$ac_try") 2>&5 |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19254 | ac_status=$? |
| 19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19256 | (exit $ac_status); }; }; then |
Marcus Meissner | 049b594 | 2005-10-27 10:22:13 +0000 | [diff] [blame] | 19257 | ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19258 | if test "x$ac_cv_lib_soname_capi20" = "x" |
| 19259 | then |
| 19260 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
| 19261 | fi |
| 19262 | else |
| 19263 | echo "$as_me: failed program was:" >&5 |
| 19264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19265 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19266 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19267 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19268 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19269 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19270 | conftest$ac_exeext conftest.$ac_ext |
| 19271 | LIBS=$ac_get_soname_save_LIBS |
| 19272 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19273 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5 |
| 19274 | echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19275 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 19276 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19277 | cat >>confdefs.h <<_ACEOF |
| 19278 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
| 19279 | _ACEOF |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19280 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 19281 | fi |
Alexandre Julliard | 30de3e8 | 2006-03-10 21:24:05 +0100 | [diff] [blame] | 19282 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 19283 | fi |
| 19284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19285 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 19286 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19287 | |
| 19288 | |
| 19289 | |
| 19290 | |
| 19291 | |
| 19292 | |
| 19293 | |
| 19294 | |
| 19295 | |
| 19296 | |
| 19297 | |
| 19298 | |
| 19299 | |
| 19300 | |
| 19301 | |
| 19302 | |
| 19303 | |
| 19304 | |
| 19305 | |
| 19306 | |
| 19307 | |
| 19308 | |
| 19309 | |
| 19310 | |
| 19311 | |
| 19312 | |
| 19313 | |
| 19314 | |
| 19315 | |
| 19316 | |
| 19317 | |
| 19318 | |
| 19319 | |
| 19320 | |
| 19321 | |
| 19322 | |
| 19323 | |
| 19324 | |
| 19325 | |
| 19326 | |
| 19327 | |
| 19328 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 19329 | |
| 19330 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 19331 | |
| 19332 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 19333 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 19334 | |
| 19335 | |
| 19336 | |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 19337 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 19338 | |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 19339 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19340 | |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 19341 | |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 19342 | |
| 19343 | |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 19344 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 19345 | |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 19346 | |
Marcus Meissner | 7a6fdea | 2005-11-17 12:58:35 +0000 | [diff] [blame] | 19347 | |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 19348 | |
Hans Leidekker | c0e6bb2 | 2006-02-20 14:16:38 +0100 | [diff] [blame] | 19349 | |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 19350 | |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 19351 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19352 | for ac_func in \ |
| 19353 | _lwp_create \ |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 19354 | _lwp_self \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 19355 | _pclose \ |
| 19356 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 19357 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 19358 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 19359 | _stricmp \ |
| 19360 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 19361 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 19362 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 19363 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19364 | clone \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 19365 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 19366 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 19367 | finite \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 19368 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 19369 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 19370 | fstatfs \ |
| 19371 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 19372 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 19373 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 19374 | futimesat \ |
Marcus Meissner | 7a6fdea | 2005-11-17 12:58:35 +0000 | [diff] [blame] | 19375 | getaddrinfo \ |
Hans Leidekker | c0e6bb2 | 2006-02-20 14:16:38 +0100 | [diff] [blame] | 19376 | getnameinfo \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19377 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 19378 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19379 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19380 | getprotobyname \ |
| 19381 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 19382 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19383 | getservbyport \ |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 19384 | gettid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 19385 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 19386 | getuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19387 | inet_network \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 19388 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19389 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 19390 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 19391 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 19392 | popen \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 19393 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 19394 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 19395 | pwrite \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 19396 | readlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19397 | rfork \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 19398 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19399 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19400 | sendmsg \ |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 19401 | setrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19402 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19403 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 19404 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 19405 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 19406 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 19407 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19408 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 19409 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19410 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 19411 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19412 | tcgetattr \ |
| 19413 | timegm \ |
| 19414 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 19415 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19416 | wait4 \ |
| 19417 | waitpid \ |
| 19418 | |
| 19419 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19420 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19421 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19422 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19423 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19425 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19426 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19427 | /* confdefs.h. */ |
| 19428 | _ACEOF |
| 19429 | cat confdefs.h >>conftest.$ac_ext |
| 19430 | cat >>conftest.$ac_ext <<_ACEOF |
| 19431 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19432 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19433 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19434 | #define $ac_func innocuous_$ac_func |
| 19435 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19436 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19437 | which can conflict with char $ac_func (); below. |
| 19438 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19439 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19440 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19441 | #ifdef __STDC__ |
| 19442 | # include <limits.h> |
| 19443 | #else |
| 19444 | # include <assert.h> |
| 19445 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19446 | |
| 19447 | #undef $ac_func |
| 19448 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19449 | /* Override any GCC internal prototype to avoid an error. |
| 19450 | Use char because int might match the return type of a GCC |
| 19451 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19452 | #ifdef __cplusplus |
| 19453 | extern "C" |
| 19454 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19455 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19456 | /* The GNU C library defines this for functions which it implements |
| 19457 | to always fail with ENOSYS. Some functions are actually named |
| 19458 | something starting with __ and the normal name is an alias. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19459 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19460 | choke me |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 19461 | #endif |
| 19462 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19463 | int |
| 19464 | main () |
| 19465 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19466 | return $ac_func (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19467 | ; |
| 19468 | return 0; |
| 19469 | } |
| 19470 | _ACEOF |
| 19471 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19472 | if { (ac_try="$ac_link" |
| 19473 | case "(($ac_try" in |
| 19474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19475 | *) ac_try_echo=$ac_try;; |
| 19476 | esac |
| 19477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19478 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19479 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19481 | rm -f conftest.er1 |
| 19482 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19484 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19486 | { (case "(($ac_try" in |
| 19487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19488 | *) ac_try_echo=$ac_try;; |
| 19489 | esac |
| 19490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19491 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19492 | ac_status=$? |
| 19493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19494 | (exit $ac_status); }; } && |
| 19495 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19496 | { (case "(($ac_try" in |
| 19497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19498 | *) ac_try_echo=$ac_try;; |
| 19499 | esac |
| 19500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19501 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19502 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19504 | (exit $ac_status); }; }; then |
| 19505 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19506 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19507 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19509 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19510 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19511 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19512 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19513 | rm -f core conftest.err conftest.$ac_objext \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19514 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19515 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19516 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19517 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19518 | echo "${ECHO_T}$ac_res" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19519 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19520 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19521 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19522 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 19523 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19524 | fi |
| 19525 | done |
| 19526 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19527 | |
| 19528 | |
| 19529 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19530 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 19531 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19532 | if test "${ac_cv_c_const+set}" = set; then |
| 19533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19534 | else |
| 19535 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19536 | /* confdefs.h. */ |
| 19537 | _ACEOF |
| 19538 | cat confdefs.h >>conftest.$ac_ext |
| 19539 | cat >>conftest.$ac_ext <<_ACEOF |
| 19540 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19541 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19542 | int |
| 19543 | main () |
| 19544 | { |
| 19545 | /* FIXME: Include the comments suggested by Paul. */ |
| 19546 | #ifndef __cplusplus |
| 19547 | /* Ultrix mips cc rejects this. */ |
| 19548 | typedef int charset[2]; |
| 19549 | const charset x; |
| 19550 | /* SunOS 4.1.1 cc rejects this. */ |
| 19551 | char const *const *ccp; |
| 19552 | char **p; |
| 19553 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19554 | struct point {int x, y;}; |
| 19555 | static struct point const zero = {0,0}; |
| 19556 | /* AIX XL C 1.02.0.0 rejects this. |
| 19557 | It does not let you subtract one const X* pointer from another in |
| 19558 | an arm of an if-expression whose if-part is not a constant |
| 19559 | expression */ |
| 19560 | const char *g = "string"; |
| 19561 | ccp = &g + (g ? g-g : 0); |
| 19562 | /* HPUX 7.0 cc rejects these. */ |
| 19563 | ++ccp; |
| 19564 | p = (char**) ccp; |
| 19565 | ccp = (char const *const *) p; |
| 19566 | { /* SCO 3.2v4 cc rejects this. */ |
| 19567 | char *t; |
| 19568 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19569 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19570 | *t++ = 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19571 | if (s) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19572 | } |
| 19573 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19574 | int x[] = {25, 17}; |
| 19575 | const int *foo = &x[0]; |
| 19576 | ++foo; |
| 19577 | } |
| 19578 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19579 | typedef const int *iptr; |
| 19580 | iptr p = 0; |
| 19581 | ++p; |
| 19582 | } |
| 19583 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19584 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19585 | struct s { int j; const int *ap[3]; }; |
| 19586 | struct s *b; b->j = 5; |
| 19587 | } |
| 19588 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19589 | const int foo = 10; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19590 | if (!foo) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19591 | } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19592 | return !x[0] && !zero.x; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19593 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19594 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19595 | ; |
| 19596 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19597 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19598 | _ACEOF |
| 19599 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19600 | if { (ac_try="$ac_compile" |
| 19601 | case "(($ac_try" in |
| 19602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19603 | *) ac_try_echo=$ac_try;; |
| 19604 | esac |
| 19605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19606 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19607 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19609 | rm -f conftest.er1 |
| 19610 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19612 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19614 | { (case "(($ac_try" in |
| 19615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19616 | *) ac_try_echo=$ac_try;; |
| 19617 | esac |
| 19618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19619 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19620 | ac_status=$? |
| 19621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19622 | (exit $ac_status); }; } && |
| 19623 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19624 | { (case "(($ac_try" in |
| 19625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19626 | *) ac_try_echo=$ac_try;; |
| 19627 | esac |
| 19628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19629 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19630 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19632 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19633 | ac_cv_c_const=yes |
| 19634 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19635 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19637 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19638 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19639 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19640 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19642 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19643 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 19644 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19645 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19646 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19647 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19648 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19649 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19650 | |
| 19651 | fi |
| 19652 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19653 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 19654 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19655 | if test "${ac_cv_c_inline+set}" = set; then |
| 19656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19657 | else |
| 19658 | ac_cv_c_inline=no |
| 19659 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19660 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19661 | /* confdefs.h. */ |
| 19662 | _ACEOF |
| 19663 | cat confdefs.h >>conftest.$ac_ext |
| 19664 | cat >>conftest.$ac_ext <<_ACEOF |
| 19665 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19666 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19667 | typedef int foo_t; |
| 19668 | static $ac_kw foo_t static_foo () {return 0; } |
| 19669 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19670 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19671 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19672 | _ACEOF |
| 19673 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19674 | if { (ac_try="$ac_compile" |
| 19675 | case "(($ac_try" in |
| 19676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19677 | *) ac_try_echo=$ac_try;; |
| 19678 | esac |
| 19679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19680 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19681 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19683 | rm -f conftest.er1 |
| 19684 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19686 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19688 | { (case "(($ac_try" in |
| 19689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19690 | *) ac_try_echo=$ac_try;; |
| 19691 | esac |
| 19692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19693 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19694 | ac_status=$? |
| 19695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19696 | (exit $ac_status); }; } && |
| 19697 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19698 | { (case "(($ac_try" in |
| 19699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19700 | *) ac_try_echo=$ac_try;; |
| 19701 | esac |
| 19702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19703 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19704 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19706 | (exit $ac_status); }; }; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19707 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19708 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19709 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19711 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19712 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19713 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19714 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19716 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19717 | done |
| 19718 | |
| 19719 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19720 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 19721 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19722 | |
| 19723 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19724 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19725 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19726 | *) |
| 19727 | case $ac_cv_c_inline in |
| 19728 | no) ac_val=;; |
| 19729 | *) ac_val=$ac_cv_c_inline;; |
| 19730 | esac |
| 19731 | cat >>confdefs.h <<_ACEOF |
| 19732 | #ifndef __cplusplus |
| 19733 | #define inline $ac_val |
| 19734 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19735 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19736 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 19737 | esac |
| 19738 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19739 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 19740 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19741 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 19742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19743 | else |
| 19744 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19745 | /* confdefs.h. */ |
| 19746 | _ACEOF |
| 19747 | cat confdefs.h >>conftest.$ac_ext |
| 19748 | cat >>conftest.$ac_ext <<_ACEOF |
| 19749 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19750 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19751 | typedef mode_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19752 | int |
| 19753 | main () |
| 19754 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19755 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19756 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19757 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19758 | return 0; |
| 19759 | ; |
| 19760 | return 0; |
| 19761 | } |
| 19762 | _ACEOF |
| 19763 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19764 | if { (ac_try="$ac_compile" |
| 19765 | case "(($ac_try" in |
| 19766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19767 | *) ac_try_echo=$ac_try;; |
| 19768 | esac |
| 19769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19770 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19771 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19773 | rm -f conftest.er1 |
| 19774 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19776 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19778 | { (case "(($ac_try" in |
| 19779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19780 | *) ac_try_echo=$ac_try;; |
| 19781 | esac |
| 19782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19783 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19784 | ac_status=$? |
| 19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19786 | (exit $ac_status); }; } && |
| 19787 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19788 | { (case "(($ac_try" in |
| 19789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19790 | *) ac_try_echo=$ac_try;; |
| 19791 | esac |
| 19792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19793 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19794 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19796 | (exit $ac_status); }; }; then |
| 19797 | ac_cv_type_mode_t=yes |
| 19798 | else |
| 19799 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19801 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19802 | ac_cv_type_mode_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19803 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19804 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19806 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19807 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 19808 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19809 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19810 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19811 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19812 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19813 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19814 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19815 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19816 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19817 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 19818 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19819 | if test "${ac_cv_type_off_t+set}" = set; then |
| 19820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19821 | else |
| 19822 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19823 | /* confdefs.h. */ |
| 19824 | _ACEOF |
| 19825 | cat confdefs.h >>conftest.$ac_ext |
| 19826 | cat >>conftest.$ac_ext <<_ACEOF |
| 19827 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19828 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19829 | typedef off_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19830 | int |
| 19831 | main () |
| 19832 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19833 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19834 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19835 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19836 | return 0; |
| 19837 | ; |
| 19838 | return 0; |
| 19839 | } |
| 19840 | _ACEOF |
| 19841 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19842 | if { (ac_try="$ac_compile" |
| 19843 | case "(($ac_try" in |
| 19844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19845 | *) ac_try_echo=$ac_try;; |
| 19846 | esac |
| 19847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19848 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19849 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19851 | rm -f conftest.er1 |
| 19852 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19854 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19856 | { (case "(($ac_try" in |
| 19857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19858 | *) ac_try_echo=$ac_try;; |
| 19859 | esac |
| 19860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19861 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19862 | ac_status=$? |
| 19863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19864 | (exit $ac_status); }; } && |
| 19865 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19866 | { (case "(($ac_try" in |
| 19867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19868 | *) ac_try_echo=$ac_try;; |
| 19869 | esac |
| 19870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19871 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19872 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19874 | (exit $ac_status); }; }; then |
| 19875 | ac_cv_type_off_t=yes |
| 19876 | else |
| 19877 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19879 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19880 | ac_cv_type_off_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19881 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19882 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19884 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19885 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 19886 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19887 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19888 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19889 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19890 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19891 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19892 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19893 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19894 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19895 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 19896 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19897 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 19898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19899 | else |
| 19900 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19901 | /* confdefs.h. */ |
| 19902 | _ACEOF |
| 19903 | cat confdefs.h >>conftest.$ac_ext |
| 19904 | cat >>conftest.$ac_ext <<_ACEOF |
| 19905 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19906 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19907 | typedef pid_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19908 | int |
| 19909 | main () |
| 19910 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19911 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19912 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19913 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19914 | return 0; |
| 19915 | ; |
| 19916 | return 0; |
| 19917 | } |
| 19918 | _ACEOF |
| 19919 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19920 | if { (ac_try="$ac_compile" |
| 19921 | case "(($ac_try" in |
| 19922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19923 | *) ac_try_echo=$ac_try;; |
| 19924 | esac |
| 19925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19926 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19927 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19929 | rm -f conftest.er1 |
| 19930 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19932 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19934 | { (case "(($ac_try" in |
| 19935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19936 | *) ac_try_echo=$ac_try;; |
| 19937 | esac |
| 19938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19939 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19940 | ac_status=$? |
| 19941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19942 | (exit $ac_status); }; } && |
| 19943 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19944 | { (case "(($ac_try" in |
| 19945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19946 | *) ac_try_echo=$ac_try;; |
| 19947 | esac |
| 19948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19949 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19950 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19952 | (exit $ac_status); }; }; then |
| 19953 | ac_cv_type_pid_t=yes |
| 19954 | else |
| 19955 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19957 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19958 | ac_cv_type_pid_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19959 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19960 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19962 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19963 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 19964 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19965 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19966 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19967 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19968 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19969 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19970 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19971 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 19972 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19973 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 19974 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19975 | if test "${ac_cv_type_size_t+set}" = set; then |
| 19976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19977 | else |
| 19978 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19979 | /* confdefs.h. */ |
| 19980 | _ACEOF |
| 19981 | cat confdefs.h >>conftest.$ac_ext |
| 19982 | cat >>conftest.$ac_ext <<_ACEOF |
| 19983 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19984 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19985 | typedef size_t ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19986 | int |
| 19987 | main () |
| 19988 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19989 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19990 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 19991 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19992 | return 0; |
| 19993 | ; |
| 19994 | return 0; |
| 19995 | } |
| 19996 | _ACEOF |
| 19997 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 19998 | if { (ac_try="$ac_compile" |
| 19999 | case "(($ac_try" in |
| 20000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20001 | *) ac_try_echo=$ac_try;; |
| 20002 | esac |
| 20003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20004 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20005 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20007 | rm -f conftest.er1 |
| 20008 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20010 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20012 | { (case "(($ac_try" in |
| 20013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20014 | *) ac_try_echo=$ac_try;; |
| 20015 | esac |
| 20016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20017 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20018 | ac_status=$? |
| 20019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20020 | (exit $ac_status); }; } && |
| 20021 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20022 | { (case "(($ac_try" in |
| 20023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20024 | *) ac_try_echo=$ac_try;; |
| 20025 | esac |
| 20026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20027 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20028 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20030 | (exit $ac_status); }; }; then |
| 20031 | ac_cv_type_size_t=yes |
| 20032 | else |
| 20033 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20035 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20036 | ac_cv_type_size_t=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20037 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20038 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20040 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20041 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 20042 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20043 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20044 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20045 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20046 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20047 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20048 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20049 | |
| 20050 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20051 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 20052 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20053 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 20054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20055 | else |
| 20056 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20057 | /* confdefs.h. */ |
| 20058 | _ACEOF |
| 20059 | cat confdefs.h >>conftest.$ac_ext |
| 20060 | cat >>conftest.$ac_ext <<_ACEOF |
| 20061 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20062 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20063 | typedef ssize_t ac__type_new_; |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20064 | int |
| 20065 | main () |
| 20066 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20067 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20068 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20069 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20070 | return 0; |
| 20071 | ; |
| 20072 | return 0; |
| 20073 | } |
| 20074 | _ACEOF |
| 20075 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20076 | if { (ac_try="$ac_compile" |
| 20077 | case "(($ac_try" in |
| 20078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20079 | *) ac_try_echo=$ac_try;; |
| 20080 | esac |
| 20081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20082 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20083 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20085 | rm -f conftest.er1 |
| 20086 | cat conftest.err >&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20088 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20090 | { (case "(($ac_try" in |
| 20091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20092 | *) ac_try_echo=$ac_try;; |
| 20093 | esac |
| 20094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20095 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20096 | ac_status=$? |
| 20097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20098 | (exit $ac_status); }; } && |
| 20099 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20100 | { (case "(($ac_try" in |
| 20101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20102 | *) ac_try_echo=$ac_try;; |
| 20103 | esac |
| 20104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20105 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20106 | ac_status=$? |
| 20107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20108 | (exit $ac_status); }; }; then |
| 20109 | ac_cv_type_ssize_t=yes |
| 20110 | else |
| 20111 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20113 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20114 | ac_cv_type_ssize_t=no |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20115 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20116 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20118 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20119 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 20120 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 20121 | if test $ac_cv_type_ssize_t = yes; then |
| 20122 | |
| 20123 | cat >>confdefs.h <<_ACEOF |
| 20124 | #define HAVE_SSIZE_T 1 |
| 20125 | _ACEOF |
| 20126 | |
| 20127 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20128 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20129 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 20130 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20131 | if test "${ac_cv_type_long_long+set}" = set; then |
| 20132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20133 | else |
| 20134 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20135 | /* confdefs.h. */ |
| 20136 | _ACEOF |
| 20137 | cat confdefs.h >>conftest.$ac_ext |
| 20138 | cat >>conftest.$ac_ext <<_ACEOF |
| 20139 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20140 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20141 | typedef long long ac__type_new_; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20142 | int |
| 20143 | main () |
| 20144 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20145 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20146 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20147 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20148 | return 0; |
| 20149 | ; |
| 20150 | return 0; |
| 20151 | } |
| 20152 | _ACEOF |
| 20153 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20154 | if { (ac_try="$ac_compile" |
| 20155 | case "(($ac_try" in |
| 20156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20157 | *) ac_try_echo=$ac_try;; |
| 20158 | esac |
| 20159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20160 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20161 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20163 | rm -f conftest.er1 |
| 20164 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20166 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20168 | { (case "(($ac_try" in |
| 20169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20170 | *) ac_try_echo=$ac_try;; |
| 20171 | esac |
| 20172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20173 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20174 | ac_status=$? |
| 20175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20176 | (exit $ac_status); }; } && |
| 20177 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20178 | { (case "(($ac_try" in |
| 20179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20180 | *) ac_try_echo=$ac_try;; |
| 20181 | esac |
| 20182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20183 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20184 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20186 | (exit $ac_status); }; }; then |
| 20187 | ac_cv_type_long_long=yes |
| 20188 | else |
| 20189 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20191 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20192 | ac_cv_type_long_long=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20193 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20194 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20196 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20197 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 20198 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20199 | if test $ac_cv_type_long_long = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20200 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20201 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20202 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20203 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 20204 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20205 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20206 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20207 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 |
| 20208 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20209 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then |
| 20210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20211 | else |
| 20212 | cat >conftest.$ac_ext <<_ACEOF |
| 20213 | /* confdefs.h. */ |
| 20214 | _ACEOF |
| 20215 | cat confdefs.h >>conftest.$ac_ext |
| 20216 | cat >>conftest.$ac_ext <<_ACEOF |
| 20217 | /* end confdefs.h. */ |
| 20218 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20219 | typedef fsblkcnt_t ac__type_new_; |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20220 | int |
| 20221 | main () |
| 20222 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20223 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20224 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20225 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20226 | return 0; |
| 20227 | ; |
| 20228 | return 0; |
| 20229 | } |
| 20230 | _ACEOF |
| 20231 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20232 | if { (ac_try="$ac_compile" |
| 20233 | case "(($ac_try" in |
| 20234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20235 | *) ac_try_echo=$ac_try;; |
| 20236 | esac |
| 20237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20238 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20239 | ac_status=$? |
| 20240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20241 | rm -f conftest.er1 |
| 20242 | cat conftest.err >&5 |
| 20243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20244 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20246 | { (case "(($ac_try" in |
| 20247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20248 | *) ac_try_echo=$ac_try;; |
| 20249 | esac |
| 20250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20251 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20252 | ac_status=$? |
| 20253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20254 | (exit $ac_status); }; } && |
| 20255 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20256 | { (case "(($ac_try" in |
| 20257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20258 | *) ac_try_echo=$ac_try;; |
| 20259 | esac |
| 20260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20261 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20262 | ac_status=$? |
| 20263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20264 | (exit $ac_status); }; }; then |
| 20265 | ac_cv_type_fsblkcnt_t=yes |
| 20266 | else |
| 20267 | echo "$as_me: failed program was:" >&5 |
| 20268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20269 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20270 | ac_cv_type_fsblkcnt_t=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20271 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20272 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20274 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20275 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 |
| 20276 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20277 | if test $ac_cv_type_fsblkcnt_t = yes; then |
| 20278 | |
| 20279 | cat >>confdefs.h <<_ACEOF |
| 20280 | #define HAVE_FSBLKCNT_T 1 |
| 20281 | _ACEOF |
| 20282 | |
| 20283 | |
| 20284 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20285 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 |
| 20286 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20287 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then |
| 20288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20289 | else |
| 20290 | cat >conftest.$ac_ext <<_ACEOF |
| 20291 | /* confdefs.h. */ |
| 20292 | _ACEOF |
| 20293 | cat confdefs.h >>conftest.$ac_ext |
| 20294 | cat >>conftest.$ac_ext <<_ACEOF |
| 20295 | /* end confdefs.h. */ |
| 20296 | $ac_includes_default |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20297 | typedef fsfilcnt_t ac__type_new_; |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20298 | int |
| 20299 | main () |
| 20300 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20301 | if ((ac__type_new_ *) 0) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20302 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20303 | if (sizeof (ac__type_new_)) |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20304 | return 0; |
| 20305 | ; |
| 20306 | return 0; |
| 20307 | } |
| 20308 | _ACEOF |
| 20309 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20310 | if { (ac_try="$ac_compile" |
| 20311 | case "(($ac_try" in |
| 20312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20313 | *) ac_try_echo=$ac_try;; |
| 20314 | esac |
| 20315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20316 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20317 | ac_status=$? |
| 20318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20319 | rm -f conftest.er1 |
| 20320 | cat conftest.err >&5 |
| 20321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20322 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20324 | { (case "(($ac_try" in |
| 20325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20326 | *) ac_try_echo=$ac_try;; |
| 20327 | esac |
| 20328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20329 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20330 | ac_status=$? |
| 20331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20332 | (exit $ac_status); }; } && |
| 20333 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20334 | { (case "(($ac_try" in |
| 20335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20336 | *) ac_try_echo=$ac_try;; |
| 20337 | esac |
| 20338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20339 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20340 | ac_status=$? |
| 20341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20342 | (exit $ac_status); }; }; then |
| 20343 | ac_cv_type_fsfilcnt_t=yes |
| 20344 | else |
| 20345 | echo "$as_me: failed program was:" >&5 |
| 20346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20347 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20348 | ac_cv_type_fsfilcnt_t=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20349 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20350 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20352 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20353 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 |
| 20354 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 20355 | if test $ac_cv_type_fsfilcnt_t = yes; then |
| 20356 | |
| 20357 | cat >>confdefs.h <<_ACEOF |
| 20358 | #define HAVE_FSFILCNT_T 1 |
| 20359 | _ACEOF |
| 20360 | |
| 20361 | |
| 20362 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20363 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20364 | { echo "$as_me:$LINENO: checking for sigset_t" >&5 |
| 20365 | echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20366 | if test "${ac_cv_type_sigset_t+set}" = set; then |
| 20367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20368 | else |
| 20369 | cat >conftest.$ac_ext <<_ACEOF |
| 20370 | /* confdefs.h. */ |
| 20371 | _ACEOF |
| 20372 | cat confdefs.h >>conftest.$ac_ext |
| 20373 | cat >>conftest.$ac_ext <<_ACEOF |
| 20374 | /* end confdefs.h. */ |
| 20375 | #include <signal.h> |
| 20376 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20377 | typedef sigset_t ac__type_new_; |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20378 | int |
| 20379 | main () |
| 20380 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20381 | if ((ac__type_new_ *) 0) |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20382 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20383 | if (sizeof (ac__type_new_)) |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20384 | return 0; |
| 20385 | ; |
| 20386 | return 0; |
| 20387 | } |
| 20388 | _ACEOF |
| 20389 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20390 | if { (ac_try="$ac_compile" |
| 20391 | case "(($ac_try" in |
| 20392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20393 | *) ac_try_echo=$ac_try;; |
| 20394 | esac |
| 20395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20396 | (eval "$ac_compile") 2>conftest.er1 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20397 | ac_status=$? |
| 20398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20399 | rm -f conftest.er1 |
| 20400 | cat conftest.err >&5 |
| 20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20402 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20404 | { (case "(($ac_try" in |
| 20405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20406 | *) ac_try_echo=$ac_try;; |
| 20407 | esac |
| 20408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20409 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20410 | ac_status=$? |
| 20411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20412 | (exit $ac_status); }; } && |
| 20413 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20414 | { (case "(($ac_try" in |
| 20415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20416 | *) ac_try_echo=$ac_try;; |
| 20417 | esac |
| 20418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20419 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20420 | ac_status=$? |
| 20421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20422 | (exit $ac_status); }; }; then |
| 20423 | ac_cv_type_sigset_t=yes |
| 20424 | else |
| 20425 | echo "$as_me: failed program was:" >&5 |
| 20426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20427 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20428 | ac_cv_type_sigset_t=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20429 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20430 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20432 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20433 | { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 |
| 20434 | echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20435 | if test $ac_cv_type_sigset_t = yes; then |
| 20436 | |
| 20437 | cat >>confdefs.h <<_ACEOF |
| 20438 | #define HAVE_SIGSET_T 1 |
| 20439 | _ACEOF |
| 20440 | |
| 20441 | |
| 20442 | fi |
| 20443 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20444 | { echo "$as_me:$LINENO: checking for request_sense" >&5 |
| 20445 | echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; } |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20446 | if test "${ac_cv_type_request_sense+set}" = set; then |
| 20447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20448 | else |
| 20449 | cat >conftest.$ac_ext <<_ACEOF |
| 20450 | /* confdefs.h. */ |
| 20451 | _ACEOF |
| 20452 | cat confdefs.h >>conftest.$ac_ext |
| 20453 | cat >>conftest.$ac_ext <<_ACEOF |
| 20454 | /* end confdefs.h. */ |
| 20455 | #include <linux/cdrom.h> |
| 20456 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20457 | typedef request_sense ac__type_new_; |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20458 | int |
| 20459 | main () |
| 20460 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20461 | if ((ac__type_new_ *) 0) |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20462 | return 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20463 | if (sizeof (ac__type_new_)) |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20464 | return 0; |
| 20465 | ; |
| 20466 | return 0; |
| 20467 | } |
| 20468 | _ACEOF |
| 20469 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20470 | if { (ac_try="$ac_compile" |
| 20471 | case "(($ac_try" in |
| 20472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20473 | *) ac_try_echo=$ac_try;; |
| 20474 | esac |
| 20475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20476 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20477 | ac_status=$? |
| 20478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20479 | rm -f conftest.er1 |
| 20480 | cat conftest.err >&5 |
| 20481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20482 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20484 | { (case "(($ac_try" in |
| 20485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20486 | *) ac_try_echo=$ac_try;; |
| 20487 | esac |
| 20488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20489 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20490 | ac_status=$? |
| 20491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20492 | (exit $ac_status); }; } && |
| 20493 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20494 | { (case "(($ac_try" in |
| 20495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20496 | *) ac_try_echo=$ac_try;; |
| 20497 | esac |
| 20498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20499 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20500 | ac_status=$? |
| 20501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20502 | (exit $ac_status); }; }; then |
| 20503 | ac_cv_type_request_sense=yes |
| 20504 | else |
| 20505 | echo "$as_me: failed program was:" >&5 |
| 20506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20507 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20508 | ac_cv_type_request_sense=no |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20509 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20510 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20512 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20513 | { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5 |
| 20514 | echo "${ECHO_T}$ac_cv_type_request_sense" >&6; } |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 20515 | if test $ac_cv_type_request_sense = yes; then |
| 20516 | |
| 20517 | cat >>confdefs.h <<_ACEOF |
| 20518 | #define HAVE_REQUEST_SENSE 1 |
| 20519 | _ACEOF |
| 20520 | |
| 20521 | |
| 20522 | fi |
| 20523 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20524 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20525 | { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5 |
| 20526 | echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; } |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20527 | if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then |
| 20528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20529 | else |
| 20530 | cat >conftest.$ac_ext <<_ACEOF |
| 20531 | /* confdefs.h. */ |
| 20532 | _ACEOF |
| 20533 | cat confdefs.h >>conftest.$ac_ext |
| 20534 | cat >>conftest.$ac_ext <<_ACEOF |
| 20535 | /* end confdefs.h. */ |
| 20536 | #ifdef HAVE_LINUX_INPUT_H |
| 20537 | #include <linux/input.h> |
| 20538 | #endif |
| 20539 | |
| 20540 | int |
| 20541 | main () |
| 20542 | { |
| 20543 | static struct ff_effect ac_aggr; |
| 20544 | if (ac_aggr.direction) |
| 20545 | return 0; |
| 20546 | ; |
| 20547 | return 0; |
| 20548 | } |
| 20549 | _ACEOF |
| 20550 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20551 | if { (ac_try="$ac_compile" |
| 20552 | case "(($ac_try" in |
| 20553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20554 | *) ac_try_echo=$ac_try;; |
| 20555 | esac |
| 20556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20557 | (eval "$ac_compile") 2>conftest.er1 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20558 | ac_status=$? |
| 20559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20560 | rm -f conftest.er1 |
| 20561 | cat conftest.err >&5 |
| 20562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20563 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20565 | { (case "(($ac_try" in |
| 20566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20567 | *) ac_try_echo=$ac_try;; |
| 20568 | esac |
| 20569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20570 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20571 | ac_status=$? |
| 20572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20573 | (exit $ac_status); }; } && |
| 20574 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20575 | { (case "(($ac_try" in |
| 20576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20577 | *) ac_try_echo=$ac_try;; |
| 20578 | esac |
| 20579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20580 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20581 | ac_status=$? |
| 20582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20583 | (exit $ac_status); }; }; then |
| 20584 | ac_cv_member_struct_ff_effect_direction=yes |
| 20585 | else |
| 20586 | echo "$as_me: failed program was:" >&5 |
| 20587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20588 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20589 | cat >conftest.$ac_ext <<_ACEOF |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20590 | /* confdefs.h. */ |
| 20591 | _ACEOF |
| 20592 | cat confdefs.h >>conftest.$ac_ext |
| 20593 | cat >>conftest.$ac_ext <<_ACEOF |
| 20594 | /* end confdefs.h. */ |
| 20595 | #ifdef HAVE_LINUX_INPUT_H |
| 20596 | #include <linux/input.h> |
| 20597 | #endif |
| 20598 | |
| 20599 | int |
| 20600 | main () |
| 20601 | { |
| 20602 | static struct ff_effect ac_aggr; |
| 20603 | if (sizeof ac_aggr.direction) |
| 20604 | return 0; |
| 20605 | ; |
| 20606 | return 0; |
| 20607 | } |
| 20608 | _ACEOF |
| 20609 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20610 | if { (ac_try="$ac_compile" |
| 20611 | case "(($ac_try" in |
| 20612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20613 | *) ac_try_echo=$ac_try;; |
| 20614 | esac |
| 20615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20616 | (eval "$ac_compile") 2>conftest.er1 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20617 | ac_status=$? |
| 20618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20619 | rm -f conftest.er1 |
| 20620 | cat conftest.err >&5 |
| 20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20622 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20623 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20624 | { (case "(($ac_try" in |
| 20625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20626 | *) ac_try_echo=$ac_try;; |
| 20627 | esac |
| 20628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20629 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20630 | ac_status=$? |
| 20631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20632 | (exit $ac_status); }; } && |
| 20633 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20634 | { (case "(($ac_try" in |
| 20635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20636 | *) ac_try_echo=$ac_try;; |
| 20637 | esac |
| 20638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20639 | (eval "$ac_try") 2>&5 |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20640 | ac_status=$? |
| 20641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20642 | (exit $ac_status); }; }; then |
| 20643 | ac_cv_member_struct_ff_effect_direction=yes |
| 20644 | else |
| 20645 | echo "$as_me: failed program was:" >&5 |
| 20646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20647 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20648 | ac_cv_member_struct_ff_effect_direction=no |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20649 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20650 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20652 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20653 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20655 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20656 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5 |
| 20657 | echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; } |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 20658 | if test $ac_cv_member_struct_ff_effect_direction = yes; then |
| 20659 | |
| 20660 | cat >>confdefs.h <<_ACEOF |
| 20661 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 20662 | _ACEOF |
| 20663 | |
| 20664 | |
| 20665 | fi |
| 20666 | |
| 20667 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20668 | { echo "$as_me:$LINENO: checking for sigaddset" >&5 |
| 20669 | echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20670 | if test "${wine_cv_have_sigaddset+set}" = set; then |
| 20671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20672 | else |
| 20673 | cat >conftest.$ac_ext <<_ACEOF |
| 20674 | /* confdefs.h. */ |
| 20675 | _ACEOF |
| 20676 | cat confdefs.h >>conftest.$ac_ext |
| 20677 | cat >>conftest.$ac_ext <<_ACEOF |
| 20678 | /* end confdefs.h. */ |
| 20679 | #include <signal.h> |
| 20680 | int |
| 20681 | main () |
| 20682 | { |
| 20683 | sigset_t set; sigaddset(&set,SIGTERM); |
| 20684 | ; |
| 20685 | return 0; |
| 20686 | } |
| 20687 | _ACEOF |
| 20688 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20689 | if { (ac_try="$ac_link" |
| 20690 | case "(($ac_try" in |
| 20691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20692 | *) ac_try_echo=$ac_try;; |
| 20693 | esac |
| 20694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20695 | (eval "$ac_link") 2>conftest.er1 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20696 | ac_status=$? |
| 20697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20698 | rm -f conftest.er1 |
| 20699 | cat conftest.err >&5 |
| 20700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20701 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20703 | { (case "(($ac_try" in |
| 20704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20705 | *) ac_try_echo=$ac_try;; |
| 20706 | esac |
| 20707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20708 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20709 | ac_status=$? |
| 20710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20711 | (exit $ac_status); }; } && |
| 20712 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20713 | { (case "(($ac_try" in |
| 20714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20715 | *) ac_try_echo=$ac_try;; |
| 20716 | esac |
| 20717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20718 | (eval "$ac_try") 2>&5 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20719 | ac_status=$? |
| 20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20721 | (exit $ac_status); }; }; then |
| 20722 | wine_cv_have_sigaddset=yes |
| 20723 | else |
| 20724 | echo "$as_me: failed program was:" >&5 |
| 20725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20726 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20727 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20728 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20729 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20730 | rm -f core conftest.err conftest.$ac_objext \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20731 | conftest$ac_exeext conftest.$ac_ext |
| 20732 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20733 | { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5 |
| 20734 | echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 20735 | if test "$wine_cv_have_sigaddset" = "yes" |
| 20736 | then |
| 20737 | |
| 20738 | cat >>confdefs.h <<\_ACEOF |
| 20739 | #define HAVE_SIGADDSET 1 |
| 20740 | _ACEOF |
| 20741 | |
| 20742 | fi |
| 20743 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20744 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20745 | { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
| 20746 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20747 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 20748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20749 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20750 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20751 | /* confdefs.h. */ |
| 20752 | _ACEOF |
| 20753 | cat confdefs.h >>conftest.$ac_ext |
| 20754 | cat >>conftest.$ac_ext <<_ACEOF |
| 20755 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20756 | |
| 20757 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20758 | |
| 20759 | int |
| 20760 | main () |
| 20761 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20762 | |
| 20763 | char *name=NULL; |
| 20764 | struct hostent he; |
| 20765 | struct hostent *result; |
| 20766 | char *buf=NULL; |
| 20767 | int bufsize=0; |
| 20768 | int res,errnr; |
| 20769 | char *addr=NULL; |
| 20770 | int addrlen=0; |
| 20771 | int addrtype=0; |
| 20772 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 20773 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20774 | |
| 20775 | ; |
| 20776 | return 0; |
| 20777 | } |
| 20778 | _ACEOF |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20779 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20780 | if { (ac_try="$ac_link" |
| 20781 | case "(($ac_try" in |
| 20782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20783 | *) ac_try_echo=$ac_try;; |
| 20784 | esac |
| 20785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20786 | (eval "$ac_link") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20787 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20789 | rm -f conftest.er1 |
| 20790 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20792 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20794 | { (case "(($ac_try" in |
| 20795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20796 | *) ac_try_echo=$ac_try;; |
| 20797 | esac |
| 20798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20799 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20800 | ac_status=$? |
| 20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20802 | (exit $ac_status); }; } && |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20803 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20804 | { (case "(($ac_try" in |
| 20805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20806 | *) ac_try_echo=$ac_try;; |
| 20807 | esac |
| 20808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20809 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20810 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20812 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20813 | wine_cv_linux_gethostbyname_r_6=yes |
| 20814 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20815 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20817 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20818 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20819 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20820 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20821 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20822 | rm -f core conftest.err conftest.$ac_objext \ |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 20823 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20824 | |
| 20825 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20826 | { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
| 20827 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20828 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 20829 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20830 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20831 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20832 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20833 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 20834 | |
| 20835 | fi |
| 20836 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20837 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20838 | then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20839 | { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
| 20840 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20841 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 20842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20843 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20844 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20845 | /* confdefs.h. */ |
| 20846 | _ACEOF |
| 20847 | cat confdefs.h >>conftest.$ac_ext |
| 20848 | cat >>conftest.$ac_ext <<_ACEOF |
| 20849 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20850 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20851 | #include <sys/ioctl.h> |
| 20852 | #include <linux/joystick.h> |
| 20853 | |
| 20854 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 20855 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 20856 | #error "no 2.2 header" |
| 20857 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20858 | |
| 20859 | int |
| 20860 | main () |
| 20861 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20862 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20863 | ; |
| 20864 | return 0; |
| 20865 | } |
| 20866 | _ACEOF |
| 20867 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20868 | if { (ac_try="$ac_compile" |
| 20869 | case "(($ac_try" in |
| 20870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20871 | *) ac_try_echo=$ac_try;; |
| 20872 | esac |
| 20873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20874 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20875 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20877 | rm -f conftest.er1 |
| 20878 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20880 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20882 | { (case "(($ac_try" in |
| 20883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20884 | *) ac_try_echo=$ac_try;; |
| 20885 | esac |
| 20886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20887 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20888 | ac_status=$? |
| 20889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20890 | (exit $ac_status); }; } && |
| 20891 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20892 | { (case "(($ac_try" in |
| 20893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20894 | *) ac_try_echo=$ac_try;; |
| 20895 | esac |
| 20896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20897 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20898 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20900 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20901 | wine_cv_linux_joystick_22_api=yes |
| 20902 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20903 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20905 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20906 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20907 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20908 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20910 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20911 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20912 | { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
| 20913 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 20914 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20915 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20916 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20917 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20918 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20919 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 20920 | |
| 20921 | fi |
| 20922 | fi |
| 20923 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20924 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20925 | { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 20926 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20927 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20929 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20930 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20931 | /* confdefs.h. */ |
| 20932 | _ACEOF |
| 20933 | cat confdefs.h >>conftest.$ac_ext |
| 20934 | cat >>conftest.$ac_ext <<_ACEOF |
| 20935 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20936 | #include <sys/types.h> |
| 20937 | #ifdef HAVE_SYS_PARAM_H |
| 20938 | # include <sys/param.h> |
| 20939 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20940 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20941 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 20942 | #endif |
| 20943 | #ifdef HAVE_SYS_VFS_H |
| 20944 | # include <sys/vfs.h> |
| 20945 | #endif |
| 20946 | #ifdef HAVE_SYS_STATFS_H |
| 20947 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20948 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20949 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20950 | int |
| 20951 | main () |
| 20952 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20953 | static struct statfs ac_aggr; |
| 20954 | if (ac_aggr.f_bfree) |
| 20955 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20956 | ; |
| 20957 | return 0; |
| 20958 | } |
| 20959 | _ACEOF |
| 20960 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20961 | if { (ac_try="$ac_compile" |
| 20962 | case "(($ac_try" in |
| 20963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20964 | *) ac_try_echo=$ac_try;; |
| 20965 | esac |
| 20966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20967 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20968 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20970 | rm -f conftest.er1 |
| 20971 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20973 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20975 | { (case "(($ac_try" in |
| 20976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20977 | *) ac_try_echo=$ac_try;; |
| 20978 | esac |
| 20979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20980 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20981 | ac_status=$? |
| 20982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20983 | (exit $ac_status); }; } && |
| 20984 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 20985 | { (case "(($ac_try" in |
| 20986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20987 | *) ac_try_echo=$ac_try;; |
| 20988 | esac |
| 20989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20990 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20991 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20993 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 20994 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 20995 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20996 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20998 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 20999 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21000 | /* confdefs.h. */ |
| 21001 | _ACEOF |
| 21002 | cat confdefs.h >>conftest.$ac_ext |
| 21003 | cat >>conftest.$ac_ext <<_ACEOF |
| 21004 | /* end confdefs.h. */ |
| 21005 | #include <sys/types.h> |
| 21006 | #ifdef HAVE_SYS_PARAM_H |
| 21007 | # include <sys/param.h> |
| 21008 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21009 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21010 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21011 | #endif |
| 21012 | #ifdef HAVE_SYS_VFS_H |
| 21013 | # include <sys/vfs.h> |
| 21014 | #endif |
| 21015 | #ifdef HAVE_SYS_STATFS_H |
| 21016 | # include <sys/statfs.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21017 | #endif |
| 21018 | |
| 21019 | int |
| 21020 | main () |
| 21021 | { |
| 21022 | static struct statfs ac_aggr; |
| 21023 | if (sizeof ac_aggr.f_bfree) |
| 21024 | return 0; |
| 21025 | ; |
| 21026 | return 0; |
| 21027 | } |
| 21028 | _ACEOF |
| 21029 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21030 | if { (ac_try="$ac_compile" |
| 21031 | case "(($ac_try" in |
| 21032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21033 | *) ac_try_echo=$ac_try;; |
| 21034 | esac |
| 21035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21036 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21037 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21039 | rm -f conftest.er1 |
| 21040 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21042 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21044 | { (case "(($ac_try" in |
| 21045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21046 | *) ac_try_echo=$ac_try;; |
| 21047 | esac |
| 21048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21049 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21050 | ac_status=$? |
| 21051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21052 | (exit $ac_status); }; } && |
| 21053 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21054 | { (case "(($ac_try" in |
| 21055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21056 | *) ac_try_echo=$ac_try;; |
| 21057 | esac |
| 21058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21059 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21060 | ac_status=$? |
| 21061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21062 | (exit $ac_status); }; }; then |
| 21063 | ac_cv_member_struct_statfs_f_bfree=yes |
| 21064 | else |
| 21065 | echo "$as_me: failed program was:" >&5 |
| 21066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21067 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21068 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 21069 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21070 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 21072 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21073 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21075 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21076 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 21077 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21078 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 21079 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21080 | cat >>confdefs.h <<_ACEOF |
| 21081 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21082 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 21083 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21084 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 21085 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21086 | { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 21087 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21088 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 21090 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21091 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21092 | /* confdefs.h. */ |
| 21093 | _ACEOF |
| 21094 | cat confdefs.h >>conftest.$ac_ext |
| 21095 | cat >>conftest.$ac_ext <<_ACEOF |
| 21096 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21097 | #include <sys/types.h> |
| 21098 | #ifdef HAVE_SYS_PARAM_H |
| 21099 | # include <sys/param.h> |
| 21100 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21101 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21102 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21103 | #endif |
| 21104 | #ifdef HAVE_SYS_VFS_H |
| 21105 | # include <sys/vfs.h> |
| 21106 | #endif |
| 21107 | #ifdef HAVE_SYS_STATFS_H |
| 21108 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21109 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21110 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21111 | int |
| 21112 | main () |
| 21113 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21114 | static struct statfs ac_aggr; |
| 21115 | if (ac_aggr.f_bavail) |
| 21116 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21117 | ; |
| 21118 | return 0; |
| 21119 | } |
| 21120 | _ACEOF |
| 21121 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21122 | if { (ac_try="$ac_compile" |
| 21123 | case "(($ac_try" in |
| 21124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21125 | *) ac_try_echo=$ac_try;; |
| 21126 | esac |
| 21127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21128 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21129 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21131 | rm -f conftest.er1 |
| 21132 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21134 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21136 | { (case "(($ac_try" in |
| 21137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21138 | *) ac_try_echo=$ac_try;; |
| 21139 | esac |
| 21140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21141 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21142 | ac_status=$? |
| 21143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21144 | (exit $ac_status); }; } && |
| 21145 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21146 | { (case "(($ac_try" in |
| 21147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21148 | *) ac_try_echo=$ac_try;; |
| 21149 | esac |
| 21150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21151 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21152 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21154 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21155 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 21156 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21157 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21159 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21160 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21161 | /* confdefs.h. */ |
| 21162 | _ACEOF |
| 21163 | cat confdefs.h >>conftest.$ac_ext |
| 21164 | cat >>conftest.$ac_ext <<_ACEOF |
| 21165 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 21166 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21167 | #ifdef HAVE_SYS_PARAM_H |
| 21168 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 21169 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21170 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21171 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21172 | #endif |
| 21173 | #ifdef HAVE_SYS_VFS_H |
| 21174 | # include <sys/vfs.h> |
| 21175 | #endif |
| 21176 | #ifdef HAVE_SYS_STATFS_H |
| 21177 | # include <sys/statfs.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21178 | #endif |
| 21179 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21180 | int |
| 21181 | main () |
| 21182 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21183 | static struct statfs ac_aggr; |
| 21184 | if (sizeof ac_aggr.f_bavail) |
| 21185 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21186 | ; |
| 21187 | return 0; |
| 21188 | } |
| 21189 | _ACEOF |
| 21190 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21191 | if { (ac_try="$ac_compile" |
| 21192 | case "(($ac_try" in |
| 21193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21194 | *) ac_try_echo=$ac_try;; |
| 21195 | esac |
| 21196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21197 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21198 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21200 | rm -f conftest.er1 |
| 21201 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21203 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21205 | { (case "(($ac_try" in |
| 21206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21207 | *) ac_try_echo=$ac_try;; |
| 21208 | esac |
| 21209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21210 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21211 | ac_status=$? |
| 21212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21213 | (exit $ac_status); }; } && |
| 21214 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21215 | { (case "(($ac_try" in |
| 21216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21217 | *) ac_try_echo=$ac_try;; |
| 21218 | esac |
| 21219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21220 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21221 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21223 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21224 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 21225 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21226 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21228 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21229 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 21230 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21231 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 21233 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21234 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21236 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21237 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 21238 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21239 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21240 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21241 | cat >>confdefs.h <<_ACEOF |
| 21242 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21243 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21244 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 21245 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 21246 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21247 | { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5 |
| 21248 | echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21249 | if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then |
| 21250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21251 | else |
| 21252 | cat >conftest.$ac_ext <<_ACEOF |
| 21253 | /* confdefs.h. */ |
| 21254 | _ACEOF |
| 21255 | cat confdefs.h >>conftest.$ac_ext |
| 21256 | cat >>conftest.$ac_ext <<_ACEOF |
| 21257 | /* end confdefs.h. */ |
| 21258 | #include <sys/types.h> |
| 21259 | #ifdef HAVE_SYS_PARAM_H |
| 21260 | # include <sys/param.h> |
| 21261 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21262 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21263 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21264 | #endif |
| 21265 | #ifdef HAVE_SYS_VFS_H |
| 21266 | # include <sys/vfs.h> |
| 21267 | #endif |
| 21268 | #ifdef HAVE_SYS_STATFS_H |
| 21269 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21270 | #endif |
| 21271 | |
| 21272 | int |
| 21273 | main () |
| 21274 | { |
| 21275 | static struct statfs ac_aggr; |
| 21276 | if (ac_aggr.f_frsize) |
| 21277 | return 0; |
| 21278 | ; |
| 21279 | return 0; |
| 21280 | } |
| 21281 | _ACEOF |
| 21282 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21283 | if { (ac_try="$ac_compile" |
| 21284 | case "(($ac_try" in |
| 21285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21286 | *) ac_try_echo=$ac_try;; |
| 21287 | esac |
| 21288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21289 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21290 | ac_status=$? |
| 21291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21292 | rm -f conftest.er1 |
| 21293 | cat conftest.err >&5 |
| 21294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21295 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21297 | { (case "(($ac_try" in |
| 21298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21299 | *) ac_try_echo=$ac_try;; |
| 21300 | esac |
| 21301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21302 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21303 | ac_status=$? |
| 21304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21305 | (exit $ac_status); }; } && |
| 21306 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21307 | { (case "(($ac_try" in |
| 21308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21309 | *) ac_try_echo=$ac_try;; |
| 21310 | esac |
| 21311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21312 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21313 | ac_status=$? |
| 21314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21315 | (exit $ac_status); }; }; then |
| 21316 | ac_cv_member_struct_statfs_f_frsize=yes |
| 21317 | else |
| 21318 | echo "$as_me: failed program was:" >&5 |
| 21319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21320 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21321 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21322 | /* confdefs.h. */ |
| 21323 | _ACEOF |
| 21324 | cat confdefs.h >>conftest.$ac_ext |
| 21325 | cat >>conftest.$ac_ext <<_ACEOF |
| 21326 | /* end confdefs.h. */ |
| 21327 | #include <sys/types.h> |
| 21328 | #ifdef HAVE_SYS_PARAM_H |
| 21329 | # include <sys/param.h> |
| 21330 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21331 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21332 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21333 | #endif |
| 21334 | #ifdef HAVE_SYS_VFS_H |
| 21335 | # include <sys/vfs.h> |
| 21336 | #endif |
| 21337 | #ifdef HAVE_SYS_STATFS_H |
| 21338 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21339 | #endif |
| 21340 | |
| 21341 | int |
| 21342 | main () |
| 21343 | { |
| 21344 | static struct statfs ac_aggr; |
| 21345 | if (sizeof ac_aggr.f_frsize) |
| 21346 | return 0; |
| 21347 | ; |
| 21348 | return 0; |
| 21349 | } |
| 21350 | _ACEOF |
| 21351 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21352 | if { (ac_try="$ac_compile" |
| 21353 | case "(($ac_try" in |
| 21354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21355 | *) ac_try_echo=$ac_try;; |
| 21356 | esac |
| 21357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21358 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21359 | ac_status=$? |
| 21360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21361 | rm -f conftest.er1 |
| 21362 | cat conftest.err >&5 |
| 21363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21364 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21366 | { (case "(($ac_try" in |
| 21367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21368 | *) ac_try_echo=$ac_try;; |
| 21369 | esac |
| 21370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21371 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21372 | ac_status=$? |
| 21373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21374 | (exit $ac_status); }; } && |
| 21375 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21376 | { (case "(($ac_try" in |
| 21377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21378 | *) ac_try_echo=$ac_try;; |
| 21379 | esac |
| 21380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21381 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21382 | ac_status=$? |
| 21383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21384 | (exit $ac_status); }; }; then |
| 21385 | ac_cv_member_struct_statfs_f_frsize=yes |
| 21386 | else |
| 21387 | echo "$as_me: failed program was:" >&5 |
| 21388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21389 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21390 | ac_cv_member_struct_statfs_f_frsize=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21391 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21392 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21394 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21395 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21397 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21398 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5 |
| 21399 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21400 | if test $ac_cv_member_struct_statfs_f_frsize = yes; then |
| 21401 | |
| 21402 | cat >>confdefs.h <<_ACEOF |
| 21403 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 21404 | _ACEOF |
| 21405 | |
| 21406 | |
| 21407 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21408 | { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5 |
| 21409 | echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21410 | if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then |
| 21411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21412 | else |
| 21413 | cat >conftest.$ac_ext <<_ACEOF |
| 21414 | /* confdefs.h. */ |
| 21415 | _ACEOF |
| 21416 | cat confdefs.h >>conftest.$ac_ext |
| 21417 | cat >>conftest.$ac_ext <<_ACEOF |
| 21418 | /* end confdefs.h. */ |
| 21419 | #include <sys/types.h> |
| 21420 | #ifdef HAVE_SYS_PARAM_H |
| 21421 | # include <sys/param.h> |
| 21422 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21423 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21424 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21425 | #endif |
| 21426 | #ifdef HAVE_SYS_VFS_H |
| 21427 | # include <sys/vfs.h> |
| 21428 | #endif |
| 21429 | #ifdef HAVE_SYS_STATFS_H |
| 21430 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21431 | #endif |
| 21432 | |
| 21433 | int |
| 21434 | main () |
| 21435 | { |
| 21436 | static struct statfs ac_aggr; |
| 21437 | if (ac_aggr.f_ffree) |
| 21438 | return 0; |
| 21439 | ; |
| 21440 | return 0; |
| 21441 | } |
| 21442 | _ACEOF |
| 21443 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21444 | if { (ac_try="$ac_compile" |
| 21445 | case "(($ac_try" in |
| 21446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21447 | *) ac_try_echo=$ac_try;; |
| 21448 | esac |
| 21449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21450 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21451 | ac_status=$? |
| 21452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21453 | rm -f conftest.er1 |
| 21454 | cat conftest.err >&5 |
| 21455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21456 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21458 | { (case "(($ac_try" in |
| 21459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21460 | *) ac_try_echo=$ac_try;; |
| 21461 | esac |
| 21462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21463 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21464 | ac_status=$? |
| 21465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21466 | (exit $ac_status); }; } && |
| 21467 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21468 | { (case "(($ac_try" in |
| 21469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21470 | *) ac_try_echo=$ac_try;; |
| 21471 | esac |
| 21472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21473 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21474 | ac_status=$? |
| 21475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21476 | (exit $ac_status); }; }; then |
| 21477 | ac_cv_member_struct_statfs_f_ffree=yes |
| 21478 | else |
| 21479 | echo "$as_me: failed program was:" >&5 |
| 21480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21481 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21482 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21483 | /* confdefs.h. */ |
| 21484 | _ACEOF |
| 21485 | cat confdefs.h >>conftest.$ac_ext |
| 21486 | cat >>conftest.$ac_ext <<_ACEOF |
| 21487 | /* end confdefs.h. */ |
| 21488 | #include <sys/types.h> |
| 21489 | #ifdef HAVE_SYS_PARAM_H |
| 21490 | # include <sys/param.h> |
| 21491 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21492 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21493 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21494 | #endif |
| 21495 | #ifdef HAVE_SYS_VFS_H |
| 21496 | # include <sys/vfs.h> |
| 21497 | #endif |
| 21498 | #ifdef HAVE_SYS_STATFS_H |
| 21499 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21500 | #endif |
| 21501 | |
| 21502 | int |
| 21503 | main () |
| 21504 | { |
| 21505 | static struct statfs ac_aggr; |
| 21506 | if (sizeof ac_aggr.f_ffree) |
| 21507 | return 0; |
| 21508 | ; |
| 21509 | return 0; |
| 21510 | } |
| 21511 | _ACEOF |
| 21512 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21513 | if { (ac_try="$ac_compile" |
| 21514 | case "(($ac_try" in |
| 21515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21516 | *) ac_try_echo=$ac_try;; |
| 21517 | esac |
| 21518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21519 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21520 | ac_status=$? |
| 21521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21522 | rm -f conftest.er1 |
| 21523 | cat conftest.err >&5 |
| 21524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21525 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21527 | { (case "(($ac_try" in |
| 21528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21529 | *) ac_try_echo=$ac_try;; |
| 21530 | esac |
| 21531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21532 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21533 | ac_status=$? |
| 21534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21535 | (exit $ac_status); }; } && |
| 21536 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21537 | { (case "(($ac_try" in |
| 21538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21539 | *) ac_try_echo=$ac_try;; |
| 21540 | esac |
| 21541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21542 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21543 | ac_status=$? |
| 21544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21545 | (exit $ac_status); }; }; then |
| 21546 | ac_cv_member_struct_statfs_f_ffree=yes |
| 21547 | else |
| 21548 | echo "$as_me: failed program was:" >&5 |
| 21549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21550 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21551 | ac_cv_member_struct_statfs_f_ffree=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21552 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21553 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21555 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21556 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21558 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21559 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5 |
| 21560 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21561 | if test $ac_cv_member_struct_statfs_f_ffree = yes; then |
| 21562 | |
| 21563 | cat >>confdefs.h <<_ACEOF |
| 21564 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 21565 | _ACEOF |
| 21566 | |
| 21567 | |
| 21568 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21569 | { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5 |
| 21570 | echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21571 | if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then |
| 21572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21573 | else |
| 21574 | cat >conftest.$ac_ext <<_ACEOF |
| 21575 | /* confdefs.h. */ |
| 21576 | _ACEOF |
| 21577 | cat confdefs.h >>conftest.$ac_ext |
| 21578 | cat >>conftest.$ac_ext <<_ACEOF |
| 21579 | /* end confdefs.h. */ |
| 21580 | #include <sys/types.h> |
| 21581 | #ifdef HAVE_SYS_PARAM_H |
| 21582 | # include <sys/param.h> |
| 21583 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21584 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21585 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21586 | #endif |
| 21587 | #ifdef HAVE_SYS_VFS_H |
| 21588 | # include <sys/vfs.h> |
| 21589 | #endif |
| 21590 | #ifdef HAVE_SYS_STATFS_H |
| 21591 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21592 | #endif |
| 21593 | |
| 21594 | int |
| 21595 | main () |
| 21596 | { |
| 21597 | static struct statfs ac_aggr; |
| 21598 | if (ac_aggr.f_favail) |
| 21599 | return 0; |
| 21600 | ; |
| 21601 | return 0; |
| 21602 | } |
| 21603 | _ACEOF |
| 21604 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21605 | if { (ac_try="$ac_compile" |
| 21606 | case "(($ac_try" in |
| 21607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21608 | *) ac_try_echo=$ac_try;; |
| 21609 | esac |
| 21610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21611 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21612 | ac_status=$? |
| 21613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21614 | rm -f conftest.er1 |
| 21615 | cat conftest.err >&5 |
| 21616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21617 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21618 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21619 | { (case "(($ac_try" in |
| 21620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21621 | *) ac_try_echo=$ac_try;; |
| 21622 | esac |
| 21623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21624 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21625 | ac_status=$? |
| 21626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21627 | (exit $ac_status); }; } && |
| 21628 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21629 | { (case "(($ac_try" in |
| 21630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21631 | *) ac_try_echo=$ac_try;; |
| 21632 | esac |
| 21633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21634 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21635 | ac_status=$? |
| 21636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21637 | (exit $ac_status); }; }; then |
| 21638 | ac_cv_member_struct_statfs_f_favail=yes |
| 21639 | else |
| 21640 | echo "$as_me: failed program was:" >&5 |
| 21641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21642 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21643 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21644 | /* confdefs.h. */ |
| 21645 | _ACEOF |
| 21646 | cat confdefs.h >>conftest.$ac_ext |
| 21647 | cat >>conftest.$ac_ext <<_ACEOF |
| 21648 | /* end confdefs.h. */ |
| 21649 | #include <sys/types.h> |
| 21650 | #ifdef HAVE_SYS_PARAM_H |
| 21651 | # include <sys/param.h> |
| 21652 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21653 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21654 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21655 | #endif |
| 21656 | #ifdef HAVE_SYS_VFS_H |
| 21657 | # include <sys/vfs.h> |
| 21658 | #endif |
| 21659 | #ifdef HAVE_SYS_STATFS_H |
| 21660 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21661 | #endif |
| 21662 | |
| 21663 | int |
| 21664 | main () |
| 21665 | { |
| 21666 | static struct statfs ac_aggr; |
| 21667 | if (sizeof ac_aggr.f_favail) |
| 21668 | return 0; |
| 21669 | ; |
| 21670 | return 0; |
| 21671 | } |
| 21672 | _ACEOF |
| 21673 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21674 | if { (ac_try="$ac_compile" |
| 21675 | case "(($ac_try" in |
| 21676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21677 | *) ac_try_echo=$ac_try;; |
| 21678 | esac |
| 21679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21680 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21681 | ac_status=$? |
| 21682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21683 | rm -f conftest.er1 |
| 21684 | cat conftest.err >&5 |
| 21685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21686 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21688 | { (case "(($ac_try" in |
| 21689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21690 | *) ac_try_echo=$ac_try;; |
| 21691 | esac |
| 21692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21693 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21694 | ac_status=$? |
| 21695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21696 | (exit $ac_status); }; } && |
| 21697 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21698 | { (case "(($ac_try" in |
| 21699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21700 | *) ac_try_echo=$ac_try;; |
| 21701 | esac |
| 21702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21703 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21704 | ac_status=$? |
| 21705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21706 | (exit $ac_status); }; }; then |
| 21707 | ac_cv_member_struct_statfs_f_favail=yes |
| 21708 | else |
| 21709 | echo "$as_me: failed program was:" >&5 |
| 21710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21711 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21712 | ac_cv_member_struct_statfs_f_favail=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21713 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21714 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21716 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21717 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21719 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21720 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5 |
| 21721 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21722 | if test $ac_cv_member_struct_statfs_f_favail = yes; then |
| 21723 | |
| 21724 | cat >>confdefs.h <<_ACEOF |
| 21725 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 21726 | _ACEOF |
| 21727 | |
| 21728 | |
| 21729 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21730 | { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5 |
| 21731 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; } |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21732 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then |
| 21733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21734 | else |
| 21735 | cat >conftest.$ac_ext <<_ACEOF |
| 21736 | /* confdefs.h. */ |
| 21737 | _ACEOF |
| 21738 | cat confdefs.h >>conftest.$ac_ext |
| 21739 | cat >>conftest.$ac_ext <<_ACEOF |
| 21740 | /* end confdefs.h. */ |
| 21741 | #include <sys/types.h> |
| 21742 | #ifdef HAVE_SYS_PARAM_H |
| 21743 | # include <sys/param.h> |
| 21744 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21745 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21746 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21747 | #endif |
| 21748 | #ifdef HAVE_SYS_VFS_H |
| 21749 | # include <sys/vfs.h> |
| 21750 | #endif |
| 21751 | #ifdef HAVE_SYS_STATFS_H |
| 21752 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21753 | #endif |
| 21754 | |
| 21755 | int |
| 21756 | main () |
| 21757 | { |
| 21758 | static struct statfs ac_aggr; |
| 21759 | if (ac_aggr.f_namelen) |
| 21760 | return 0; |
| 21761 | ; |
| 21762 | return 0; |
| 21763 | } |
| 21764 | _ACEOF |
| 21765 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21766 | if { (ac_try="$ac_compile" |
| 21767 | case "(($ac_try" in |
| 21768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21769 | *) ac_try_echo=$ac_try;; |
| 21770 | esac |
| 21771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21772 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21773 | ac_status=$? |
| 21774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21775 | rm -f conftest.er1 |
| 21776 | cat conftest.err >&5 |
| 21777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21778 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21780 | { (case "(($ac_try" in |
| 21781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21782 | *) ac_try_echo=$ac_try;; |
| 21783 | esac |
| 21784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21785 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21786 | ac_status=$? |
| 21787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21788 | (exit $ac_status); }; } && |
| 21789 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21790 | { (case "(($ac_try" in |
| 21791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21792 | *) ac_try_echo=$ac_try;; |
| 21793 | esac |
| 21794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21795 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21796 | ac_status=$? |
| 21797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21798 | (exit $ac_status); }; }; then |
| 21799 | ac_cv_member_struct_statfs_f_namelen=yes |
| 21800 | else |
| 21801 | echo "$as_me: failed program was:" >&5 |
| 21802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21803 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21804 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21805 | /* confdefs.h. */ |
| 21806 | _ACEOF |
| 21807 | cat confdefs.h >>conftest.$ac_ext |
| 21808 | cat >>conftest.$ac_ext <<_ACEOF |
| 21809 | /* end confdefs.h. */ |
| 21810 | #include <sys/types.h> |
| 21811 | #ifdef HAVE_SYS_PARAM_H |
| 21812 | # include <sys/param.h> |
| 21813 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21814 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21815 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 21816 | #endif |
| 21817 | #ifdef HAVE_SYS_VFS_H |
| 21818 | # include <sys/vfs.h> |
| 21819 | #endif |
| 21820 | #ifdef HAVE_SYS_STATFS_H |
| 21821 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21822 | #endif |
| 21823 | |
| 21824 | int |
| 21825 | main () |
| 21826 | { |
| 21827 | static struct statfs ac_aggr; |
| 21828 | if (sizeof ac_aggr.f_namelen) |
| 21829 | return 0; |
| 21830 | ; |
| 21831 | return 0; |
| 21832 | } |
| 21833 | _ACEOF |
| 21834 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21835 | if { (ac_try="$ac_compile" |
| 21836 | case "(($ac_try" in |
| 21837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21838 | *) ac_try_echo=$ac_try;; |
| 21839 | esac |
| 21840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21841 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21842 | ac_status=$? |
| 21843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21844 | rm -f conftest.er1 |
| 21845 | cat conftest.err >&5 |
| 21846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21847 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21849 | { (case "(($ac_try" in |
| 21850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21851 | *) ac_try_echo=$ac_try;; |
| 21852 | esac |
| 21853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21854 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21855 | ac_status=$? |
| 21856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21857 | (exit $ac_status); }; } && |
| 21858 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21859 | { (case "(($ac_try" in |
| 21860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21861 | *) ac_try_echo=$ac_try;; |
| 21862 | esac |
| 21863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21864 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21865 | ac_status=$? |
| 21866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21867 | (exit $ac_status); }; }; then |
| 21868 | ac_cv_member_struct_statfs_f_namelen=yes |
| 21869 | else |
| 21870 | echo "$as_me: failed program was:" >&5 |
| 21871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21872 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21873 | ac_cv_member_struct_statfs_f_namelen=no |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21874 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21875 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21877 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21878 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21880 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21881 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5 |
| 21882 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; } |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 21883 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then |
| 21884 | |
| 21885 | cat >>confdefs.h <<_ACEOF |
| 21886 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 21887 | _ACEOF |
| 21888 | |
| 21889 | |
| 21890 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21891 | |
| 21892 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21893 | { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5 |
| 21894 | echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21895 | if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then |
| 21896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21897 | else |
| 21898 | cat >conftest.$ac_ext <<_ACEOF |
| 21899 | /* confdefs.h. */ |
| 21900 | _ACEOF |
| 21901 | cat confdefs.h >>conftest.$ac_ext |
| 21902 | cat >>conftest.$ac_ext <<_ACEOF |
| 21903 | /* end confdefs.h. */ |
| 21904 | #ifdef HAVE_SYS_STATVFS_H |
| 21905 | #include <sys/statvfs.h> |
| 21906 | #endif |
| 21907 | |
| 21908 | int |
| 21909 | main () |
| 21910 | { |
| 21911 | static struct statvfs ac_aggr; |
| 21912 | if (ac_aggr.f_blocks) |
| 21913 | return 0; |
| 21914 | ; |
| 21915 | return 0; |
| 21916 | } |
| 21917 | _ACEOF |
| 21918 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21919 | if { (ac_try="$ac_compile" |
| 21920 | case "(($ac_try" in |
| 21921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21922 | *) ac_try_echo=$ac_try;; |
| 21923 | esac |
| 21924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21925 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21926 | ac_status=$? |
| 21927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21928 | rm -f conftest.er1 |
| 21929 | cat conftest.err >&5 |
| 21930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21931 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21933 | { (case "(($ac_try" in |
| 21934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21935 | *) ac_try_echo=$ac_try;; |
| 21936 | esac |
| 21937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21938 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21939 | ac_status=$? |
| 21940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21941 | (exit $ac_status); }; } && |
| 21942 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21943 | { (case "(($ac_try" in |
| 21944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21945 | *) ac_try_echo=$ac_try;; |
| 21946 | esac |
| 21947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21948 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21949 | ac_status=$? |
| 21950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21951 | (exit $ac_status); }; }; then |
| 21952 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 21953 | else |
| 21954 | echo "$as_me: failed program was:" >&5 |
| 21955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21956 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 21957 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21958 | /* confdefs.h. */ |
| 21959 | _ACEOF |
| 21960 | cat confdefs.h >>conftest.$ac_ext |
| 21961 | cat >>conftest.$ac_ext <<_ACEOF |
| 21962 | /* end confdefs.h. */ |
| 21963 | #ifdef HAVE_SYS_STATVFS_H |
| 21964 | #include <sys/statvfs.h> |
| 21965 | #endif |
| 21966 | |
| 21967 | int |
| 21968 | main () |
| 21969 | { |
| 21970 | static struct statvfs ac_aggr; |
| 21971 | if (sizeof ac_aggr.f_blocks) |
| 21972 | return 0; |
| 21973 | ; |
| 21974 | return 0; |
| 21975 | } |
| 21976 | _ACEOF |
| 21977 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21978 | if { (ac_try="$ac_compile" |
| 21979 | case "(($ac_try" in |
| 21980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21981 | *) ac_try_echo=$ac_try;; |
| 21982 | esac |
| 21983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21984 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21985 | ac_status=$? |
| 21986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21987 | rm -f conftest.er1 |
| 21988 | cat conftest.err >&5 |
| 21989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21990 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 21991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21992 | { (case "(($ac_try" in |
| 21993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21994 | *) ac_try_echo=$ac_try;; |
| 21995 | esac |
| 21996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21997 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 21998 | ac_status=$? |
| 21999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22000 | (exit $ac_status); }; } && |
| 22001 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22002 | { (case "(($ac_try" in |
| 22003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22004 | *) ac_try_echo=$ac_try;; |
| 22005 | esac |
| 22006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22007 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 22008 | ac_status=$? |
| 22009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22010 | (exit $ac_status); }; }; then |
| 22011 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 22012 | else |
| 22013 | echo "$as_me: failed program was:" >&5 |
| 22014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22015 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22016 | ac_cv_member_struct_statvfs_f_blocks=no |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 22017 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22018 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 22020 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22021 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 22023 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22024 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5 |
| 22025 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; } |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 22026 | if test $ac_cv_member_struct_statvfs_f_blocks = yes; then |
| 22027 | |
| 22028 | cat >>confdefs.h <<_ACEOF |
| 22029 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 22030 | _ACEOF |
| 22031 | |
| 22032 | |
| 22033 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 22034 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22035 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22036 | { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 22037 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22038 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 22040 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22041 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 22042 | /* confdefs.h. */ |
| 22043 | _ACEOF |
| 22044 | cat confdefs.h >>conftest.$ac_ext |
| 22045 | cat >>conftest.$ac_ext <<_ACEOF |
| 22046 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 22047 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 22048 | #ifdef HAVE_SYS_SOCKET_H |
| 22049 | # include <sys/socket.h> |
| 22050 | #endif |
| 22051 | #ifdef HAVE_SYS_UN_H |
| 22052 | # include <sys/un.h> |
| 22053 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22054 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22055 | int |
| 22056 | main () |
| 22057 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22058 | static struct msghdr ac_aggr; |
| 22059 | if (ac_aggr.msg_accrights) |
| 22060 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22061 | ; |
| 22062 | return 0; |
| 22063 | } |
| 22064 | _ACEOF |
| 22065 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22066 | if { (ac_try="$ac_compile" |
| 22067 | case "(($ac_try" in |
| 22068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22069 | *) ac_try_echo=$ac_try;; |
| 22070 | esac |
| 22071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22072 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22073 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22075 | rm -f conftest.er1 |
| 22076 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22078 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22080 | { (case "(($ac_try" in |
| 22081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22082 | *) ac_try_echo=$ac_try;; |
| 22083 | esac |
| 22084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22085 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22086 | ac_status=$? |
| 22087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22088 | (exit $ac_status); }; } && |
| 22089 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22090 | { (case "(($ac_try" in |
| 22091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22092 | *) ac_try_echo=$ac_try;; |
| 22093 | esac |
| 22094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22095 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22096 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22098 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22099 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22100 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22101 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 22102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22103 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22104 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22105 | /* confdefs.h. */ |
| 22106 | _ACEOF |
| 22107 | cat confdefs.h >>conftest.$ac_ext |
| 22108 | cat >>conftest.$ac_ext <<_ACEOF |
| 22109 | /* end confdefs.h. */ |
| 22110 | #include <sys/types.h> |
| 22111 | #ifdef HAVE_SYS_SOCKET_H |
| 22112 | # include <sys/socket.h> |
| 22113 | #endif |
| 22114 | #ifdef HAVE_SYS_UN_H |
| 22115 | # include <sys/un.h> |
| 22116 | #endif |
| 22117 | |
| 22118 | int |
| 22119 | main () |
| 22120 | { |
| 22121 | static struct msghdr ac_aggr; |
| 22122 | if (sizeof ac_aggr.msg_accrights) |
| 22123 | return 0; |
| 22124 | ; |
| 22125 | return 0; |
| 22126 | } |
| 22127 | _ACEOF |
| 22128 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22129 | if { (ac_try="$ac_compile" |
| 22130 | case "(($ac_try" in |
| 22131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22132 | *) ac_try_echo=$ac_try;; |
| 22133 | esac |
| 22134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22135 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22136 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22138 | rm -f conftest.er1 |
| 22139 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22141 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22143 | { (case "(($ac_try" in |
| 22144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22145 | *) ac_try_echo=$ac_try;; |
| 22146 | esac |
| 22147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22148 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22149 | ac_status=$? |
| 22150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22151 | (exit $ac_status); }; } && |
| 22152 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22153 | { (case "(($ac_try" in |
| 22154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22155 | *) ac_try_echo=$ac_try;; |
| 22156 | esac |
| 22157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22158 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22159 | ac_status=$? |
| 22160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22161 | (exit $ac_status); }; }; then |
| 22162 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 22163 | else |
| 22164 | echo "$as_me: failed program was:" >&5 |
| 22165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22166 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22167 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22168 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22169 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22171 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22172 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22174 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22175 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 22176 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22177 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22178 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22179 | cat >>confdefs.h <<_ACEOF |
| 22180 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22181 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22182 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22183 | |
| 22184 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22185 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 22186 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22187 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 22188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22189 | else |
| 22190 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22191 | /* confdefs.h. */ |
| 22192 | _ACEOF |
| 22193 | cat confdefs.h >>conftest.$ac_ext |
| 22194 | cat >>conftest.$ac_ext <<_ACEOF |
| 22195 | /* end confdefs.h. */ |
| 22196 | #include <sys/types.h> |
| 22197 | #ifdef HAVE_SYS_SOCKET_H |
| 22198 | # include <sys/socket.h> |
| 22199 | #endif |
| 22200 | #ifdef HAVE_SYS_UN_H |
| 22201 | # include <sys/un.h> |
| 22202 | #endif |
| 22203 | |
| 22204 | int |
| 22205 | main () |
| 22206 | { |
| 22207 | static struct sockaddr ac_aggr; |
| 22208 | if (ac_aggr.sa_len) |
| 22209 | return 0; |
| 22210 | ; |
| 22211 | return 0; |
| 22212 | } |
| 22213 | _ACEOF |
| 22214 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22215 | if { (ac_try="$ac_compile" |
| 22216 | case "(($ac_try" in |
| 22217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22218 | *) ac_try_echo=$ac_try;; |
| 22219 | esac |
| 22220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22221 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22222 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22224 | rm -f conftest.er1 |
| 22225 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22227 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22229 | { (case "(($ac_try" in |
| 22230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22231 | *) ac_try_echo=$ac_try;; |
| 22232 | esac |
| 22233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22234 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22235 | ac_status=$? |
| 22236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22237 | (exit $ac_status); }; } && |
| 22238 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22239 | { (case "(($ac_try" in |
| 22240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22241 | *) ac_try_echo=$ac_try;; |
| 22242 | esac |
| 22243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22244 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22245 | ac_status=$? |
| 22246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22247 | (exit $ac_status); }; }; then |
| 22248 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 22249 | else |
| 22250 | echo "$as_me: failed program was:" >&5 |
| 22251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22252 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22253 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22254 | /* confdefs.h. */ |
| 22255 | _ACEOF |
| 22256 | cat confdefs.h >>conftest.$ac_ext |
| 22257 | cat >>conftest.$ac_ext <<_ACEOF |
| 22258 | /* end confdefs.h. */ |
| 22259 | #include <sys/types.h> |
| 22260 | #ifdef HAVE_SYS_SOCKET_H |
| 22261 | # include <sys/socket.h> |
| 22262 | #endif |
| 22263 | #ifdef HAVE_SYS_UN_H |
| 22264 | # include <sys/un.h> |
| 22265 | #endif |
| 22266 | |
| 22267 | int |
| 22268 | main () |
| 22269 | { |
| 22270 | static struct sockaddr ac_aggr; |
| 22271 | if (sizeof ac_aggr.sa_len) |
| 22272 | return 0; |
| 22273 | ; |
| 22274 | return 0; |
| 22275 | } |
| 22276 | _ACEOF |
| 22277 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22278 | if { (ac_try="$ac_compile" |
| 22279 | case "(($ac_try" in |
| 22280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22281 | *) ac_try_echo=$ac_try;; |
| 22282 | esac |
| 22283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22284 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22285 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22287 | rm -f conftest.er1 |
| 22288 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22290 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22292 | { (case "(($ac_try" in |
| 22293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22294 | *) ac_try_echo=$ac_try;; |
| 22295 | esac |
| 22296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22297 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22298 | ac_status=$? |
| 22299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22300 | (exit $ac_status); }; } && |
| 22301 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22302 | { (case "(($ac_try" in |
| 22303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22304 | *) ac_try_echo=$ac_try;; |
| 22305 | esac |
| 22306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22307 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22308 | ac_status=$? |
| 22309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22310 | (exit $ac_status); }; }; then |
| 22311 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 22312 | else |
| 22313 | echo "$as_me: failed program was:" >&5 |
| 22314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22315 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22316 | ac_cv_member_struct_sockaddr_sa_len=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22317 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22318 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22320 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22321 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22323 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22324 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 22325 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22326 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 22327 | |
| 22328 | cat >>confdefs.h <<_ACEOF |
| 22329 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 22330 | _ACEOF |
| 22331 | |
| 22332 | |
| 22333 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22334 | { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 22335 | echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22336 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 22337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22338 | else |
| 22339 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22340 | /* confdefs.h. */ |
| 22341 | _ACEOF |
| 22342 | cat confdefs.h >>conftest.$ac_ext |
| 22343 | cat >>conftest.$ac_ext <<_ACEOF |
| 22344 | /* end confdefs.h. */ |
| 22345 | #include <sys/types.h> |
| 22346 | #ifdef HAVE_SYS_SOCKET_H |
| 22347 | # include <sys/socket.h> |
| 22348 | #endif |
| 22349 | #ifdef HAVE_SYS_UN_H |
| 22350 | # include <sys/un.h> |
| 22351 | #endif |
| 22352 | |
| 22353 | int |
| 22354 | main () |
| 22355 | { |
| 22356 | static struct sockaddr_un ac_aggr; |
| 22357 | if (ac_aggr.sun_len) |
| 22358 | return 0; |
| 22359 | ; |
| 22360 | return 0; |
| 22361 | } |
| 22362 | _ACEOF |
| 22363 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22364 | if { (ac_try="$ac_compile" |
| 22365 | case "(($ac_try" in |
| 22366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22367 | *) ac_try_echo=$ac_try;; |
| 22368 | esac |
| 22369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22370 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22371 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22373 | rm -f conftest.er1 |
| 22374 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22376 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22378 | { (case "(($ac_try" in |
| 22379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22380 | *) ac_try_echo=$ac_try;; |
| 22381 | esac |
| 22382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22383 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22384 | ac_status=$? |
| 22385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22386 | (exit $ac_status); }; } && |
| 22387 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22388 | { (case "(($ac_try" in |
| 22389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22390 | *) ac_try_echo=$ac_try;; |
| 22391 | esac |
| 22392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22393 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22394 | ac_status=$? |
| 22395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22396 | (exit $ac_status); }; }; then |
| 22397 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 22398 | else |
| 22399 | echo "$as_me: failed program was:" >&5 |
| 22400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22401 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22402 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22403 | /* confdefs.h. */ |
| 22404 | _ACEOF |
| 22405 | cat confdefs.h >>conftest.$ac_ext |
| 22406 | cat >>conftest.$ac_ext <<_ACEOF |
| 22407 | /* end confdefs.h. */ |
| 22408 | #include <sys/types.h> |
| 22409 | #ifdef HAVE_SYS_SOCKET_H |
| 22410 | # include <sys/socket.h> |
| 22411 | #endif |
| 22412 | #ifdef HAVE_SYS_UN_H |
| 22413 | # include <sys/un.h> |
| 22414 | #endif |
| 22415 | |
| 22416 | int |
| 22417 | main () |
| 22418 | { |
| 22419 | static struct sockaddr_un ac_aggr; |
| 22420 | if (sizeof ac_aggr.sun_len) |
| 22421 | return 0; |
| 22422 | ; |
| 22423 | return 0; |
| 22424 | } |
| 22425 | _ACEOF |
| 22426 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22427 | if { (ac_try="$ac_compile" |
| 22428 | case "(($ac_try" in |
| 22429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22430 | *) ac_try_echo=$ac_try;; |
| 22431 | esac |
| 22432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22433 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22434 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22436 | rm -f conftest.er1 |
| 22437 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22439 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22441 | { (case "(($ac_try" in |
| 22442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22443 | *) ac_try_echo=$ac_try;; |
| 22444 | esac |
| 22445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22446 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22447 | ac_status=$? |
| 22448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22449 | (exit $ac_status); }; } && |
| 22450 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22451 | { (case "(($ac_try" in |
| 22452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22453 | *) ac_try_echo=$ac_try;; |
| 22454 | esac |
| 22455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22456 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22457 | ac_status=$? |
| 22458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22459 | (exit $ac_status); }; }; then |
| 22460 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 22461 | else |
| 22462 | echo "$as_me: failed program was:" >&5 |
| 22463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22464 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22465 | ac_cv_member_struct_sockaddr_un_sun_len=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22466 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22467 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22469 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22470 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22472 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22473 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 22474 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22475 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 22476 | |
| 22477 | cat >>confdefs.h <<_ACEOF |
| 22478 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 22479 | _ACEOF |
| 22480 | |
| 22481 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 22482 | fi |
| 22483 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22484 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22485 | { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5 |
| 22486 | echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22487 | if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then |
| 22488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22489 | else |
| 22490 | cat >conftest.$ac_ext <<_ACEOF |
| 22491 | /* confdefs.h. */ |
| 22492 | _ACEOF |
| 22493 | cat confdefs.h >>conftest.$ac_ext |
| 22494 | cat >>conftest.$ac_ext <<_ACEOF |
| 22495 | /* end confdefs.h. */ |
| 22496 | #include <sys/types.h> |
| 22497 | #ifdef HAVE_SCSI_SG_H |
| 22498 | #include <scsi/sg.h> |
| 22499 | #endif |
| 22500 | |
| 22501 | int |
| 22502 | main () |
| 22503 | { |
| 22504 | static scsireq_t ac_aggr; |
| 22505 | if (ac_aggr.cmd) |
| 22506 | return 0; |
| 22507 | ; |
| 22508 | return 0; |
| 22509 | } |
| 22510 | _ACEOF |
| 22511 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22512 | if { (ac_try="$ac_compile" |
| 22513 | case "(($ac_try" in |
| 22514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22515 | *) ac_try_echo=$ac_try;; |
| 22516 | esac |
| 22517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22518 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22519 | ac_status=$? |
| 22520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22521 | rm -f conftest.er1 |
| 22522 | cat conftest.err >&5 |
| 22523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22524 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22526 | { (case "(($ac_try" in |
| 22527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22528 | *) ac_try_echo=$ac_try;; |
| 22529 | esac |
| 22530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22531 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22532 | ac_status=$? |
| 22533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22534 | (exit $ac_status); }; } && |
| 22535 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22536 | { (case "(($ac_try" in |
| 22537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22538 | *) ac_try_echo=$ac_try;; |
| 22539 | esac |
| 22540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22541 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22542 | ac_status=$? |
| 22543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22544 | (exit $ac_status); }; }; then |
| 22545 | ac_cv_member_scsireq_t_cmd=yes |
| 22546 | else |
| 22547 | echo "$as_me: failed program was:" >&5 |
| 22548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22549 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22550 | cat >conftest.$ac_ext <<_ACEOF |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22551 | /* confdefs.h. */ |
| 22552 | _ACEOF |
| 22553 | cat confdefs.h >>conftest.$ac_ext |
| 22554 | cat >>conftest.$ac_ext <<_ACEOF |
| 22555 | /* end confdefs.h. */ |
| 22556 | #include <sys/types.h> |
| 22557 | #ifdef HAVE_SCSI_SG_H |
| 22558 | #include <scsi/sg.h> |
| 22559 | #endif |
| 22560 | |
| 22561 | int |
| 22562 | main () |
| 22563 | { |
| 22564 | static scsireq_t ac_aggr; |
| 22565 | if (sizeof ac_aggr.cmd) |
| 22566 | return 0; |
| 22567 | ; |
| 22568 | return 0; |
| 22569 | } |
| 22570 | _ACEOF |
| 22571 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22572 | if { (ac_try="$ac_compile" |
| 22573 | case "(($ac_try" in |
| 22574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22575 | *) ac_try_echo=$ac_try;; |
| 22576 | esac |
| 22577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22578 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22579 | ac_status=$? |
| 22580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22581 | rm -f conftest.er1 |
| 22582 | cat conftest.err >&5 |
| 22583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22584 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22586 | { (case "(($ac_try" in |
| 22587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22588 | *) ac_try_echo=$ac_try;; |
| 22589 | esac |
| 22590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22591 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22592 | ac_status=$? |
| 22593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22594 | (exit $ac_status); }; } && |
| 22595 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22596 | { (case "(($ac_try" in |
| 22597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22598 | *) ac_try_echo=$ac_try;; |
| 22599 | esac |
| 22600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22601 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22602 | ac_status=$? |
| 22603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22604 | (exit $ac_status); }; }; then |
| 22605 | ac_cv_member_scsireq_t_cmd=yes |
| 22606 | else |
| 22607 | echo "$as_me: failed program was:" >&5 |
| 22608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22609 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22610 | ac_cv_member_scsireq_t_cmd=no |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22611 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22612 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22614 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22615 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22617 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22618 | { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5 |
| 22619 | echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22620 | if test $ac_cv_member_scsireq_t_cmd = yes; then |
| 22621 | |
| 22622 | cat >>confdefs.h <<_ACEOF |
| 22623 | #define HAVE_SCSIREQ_T_CMD 1 |
| 22624 | _ACEOF |
| 22625 | |
| 22626 | |
| 22627 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22628 | { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5 |
| 22629 | echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22630 | if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then |
| 22631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22632 | else |
| 22633 | cat >conftest.$ac_ext <<_ACEOF |
| 22634 | /* confdefs.h. */ |
| 22635 | _ACEOF |
| 22636 | cat confdefs.h >>conftest.$ac_ext |
| 22637 | cat >>conftest.$ac_ext <<_ACEOF |
| 22638 | /* end confdefs.h. */ |
| 22639 | #include <sys/types.h> |
| 22640 | #ifdef HAVE_SCSI_SG_H |
| 22641 | #include <scsi/sg.h> |
| 22642 | #endif |
| 22643 | |
| 22644 | int |
| 22645 | main () |
| 22646 | { |
| 22647 | static sg_io_hdr_t ac_aggr; |
| 22648 | if (ac_aggr.interface_id) |
| 22649 | return 0; |
| 22650 | ; |
| 22651 | return 0; |
| 22652 | } |
| 22653 | _ACEOF |
| 22654 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22655 | if { (ac_try="$ac_compile" |
| 22656 | case "(($ac_try" in |
| 22657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22658 | *) ac_try_echo=$ac_try;; |
| 22659 | esac |
| 22660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22661 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22662 | ac_status=$? |
| 22663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22664 | rm -f conftest.er1 |
| 22665 | cat conftest.err >&5 |
| 22666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22667 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22668 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22669 | { (case "(($ac_try" in |
| 22670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22671 | *) ac_try_echo=$ac_try;; |
| 22672 | esac |
| 22673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22674 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22675 | ac_status=$? |
| 22676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22677 | (exit $ac_status); }; } && |
| 22678 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22679 | { (case "(($ac_try" in |
| 22680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22681 | *) ac_try_echo=$ac_try;; |
| 22682 | esac |
| 22683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22684 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22685 | ac_status=$? |
| 22686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22687 | (exit $ac_status); }; }; then |
| 22688 | ac_cv_member_sg_io_hdr_t_interface_id=yes |
| 22689 | else |
| 22690 | echo "$as_me: failed program was:" >&5 |
| 22691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22692 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22693 | cat >conftest.$ac_ext <<_ACEOF |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22694 | /* confdefs.h. */ |
| 22695 | _ACEOF |
| 22696 | cat confdefs.h >>conftest.$ac_ext |
| 22697 | cat >>conftest.$ac_ext <<_ACEOF |
| 22698 | /* end confdefs.h. */ |
| 22699 | #include <sys/types.h> |
| 22700 | #ifdef HAVE_SCSI_SG_H |
| 22701 | #include <scsi/sg.h> |
| 22702 | #endif |
| 22703 | |
| 22704 | int |
| 22705 | main () |
| 22706 | { |
| 22707 | static sg_io_hdr_t ac_aggr; |
| 22708 | if (sizeof ac_aggr.interface_id) |
| 22709 | return 0; |
| 22710 | ; |
| 22711 | return 0; |
| 22712 | } |
| 22713 | _ACEOF |
| 22714 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22715 | if { (ac_try="$ac_compile" |
| 22716 | case "(($ac_try" in |
| 22717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22718 | *) ac_try_echo=$ac_try;; |
| 22719 | esac |
| 22720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22721 | (eval "$ac_compile") 2>conftest.er1 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22722 | ac_status=$? |
| 22723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22724 | rm -f conftest.er1 |
| 22725 | cat conftest.err >&5 |
| 22726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22727 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22729 | { (case "(($ac_try" in |
| 22730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22731 | *) ac_try_echo=$ac_try;; |
| 22732 | esac |
| 22733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22734 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22735 | ac_status=$? |
| 22736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22737 | (exit $ac_status); }; } && |
| 22738 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22739 | { (case "(($ac_try" in |
| 22740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22741 | *) ac_try_echo=$ac_try;; |
| 22742 | esac |
| 22743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22744 | (eval "$ac_try") 2>&5 |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22745 | ac_status=$? |
| 22746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22747 | (exit $ac_status); }; }; then |
| 22748 | ac_cv_member_sg_io_hdr_t_interface_id=yes |
| 22749 | else |
| 22750 | echo "$as_me: failed program was:" >&5 |
| 22751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22752 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22753 | ac_cv_member_sg_io_hdr_t_interface_id=no |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22754 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22755 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22757 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22758 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22760 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22761 | { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5 |
| 22762 | echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; } |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 22763 | if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then |
| 22764 | |
| 22765 | cat >>confdefs.h <<_ACEOF |
| 22766 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 22767 | _ACEOF |
| 22768 | |
| 22769 | |
| 22770 | fi |
| 22771 | |
| 22772 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22773 | { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 22774 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22775 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 22776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22777 | else |
| 22778 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22779 | /* confdefs.h. */ |
| 22780 | _ACEOF |
| 22781 | cat confdefs.h >>conftest.$ac_ext |
| 22782 | cat >>conftest.$ac_ext <<_ACEOF |
| 22783 | /* end confdefs.h. */ |
| 22784 | #include <signal.h> |
| 22785 | |
| 22786 | int |
| 22787 | main () |
| 22788 | { |
| 22789 | static siginfo_t ac_aggr; |
| 22790 | if (ac_aggr.si_fd) |
| 22791 | return 0; |
| 22792 | ; |
| 22793 | return 0; |
| 22794 | } |
| 22795 | _ACEOF |
| 22796 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22797 | if { (ac_try="$ac_compile" |
| 22798 | case "(($ac_try" in |
| 22799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22800 | *) ac_try_echo=$ac_try;; |
| 22801 | esac |
| 22802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22803 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22804 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22806 | rm -f conftest.er1 |
| 22807 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22809 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22811 | { (case "(($ac_try" in |
| 22812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22813 | *) ac_try_echo=$ac_try;; |
| 22814 | esac |
| 22815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22816 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22817 | ac_status=$? |
| 22818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22819 | (exit $ac_status); }; } && |
| 22820 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22821 | { (case "(($ac_try" in |
| 22822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22823 | *) ac_try_echo=$ac_try;; |
| 22824 | esac |
| 22825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22826 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22827 | ac_status=$? |
| 22828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22829 | (exit $ac_status); }; }; then |
| 22830 | ac_cv_member_siginfo_t_si_fd=yes |
| 22831 | else |
| 22832 | echo "$as_me: failed program was:" >&5 |
| 22833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22834 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22835 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22836 | /* confdefs.h. */ |
| 22837 | _ACEOF |
| 22838 | cat confdefs.h >>conftest.$ac_ext |
| 22839 | cat >>conftest.$ac_ext <<_ACEOF |
| 22840 | /* end confdefs.h. */ |
| 22841 | #include <signal.h> |
| 22842 | |
| 22843 | int |
| 22844 | main () |
| 22845 | { |
| 22846 | static siginfo_t ac_aggr; |
| 22847 | if (sizeof ac_aggr.si_fd) |
| 22848 | return 0; |
| 22849 | ; |
| 22850 | return 0; |
| 22851 | } |
| 22852 | _ACEOF |
| 22853 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22854 | if { (ac_try="$ac_compile" |
| 22855 | case "(($ac_try" in |
| 22856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22857 | *) ac_try_echo=$ac_try;; |
| 22858 | esac |
| 22859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22860 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22861 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22863 | rm -f conftest.er1 |
| 22864 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22866 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22868 | { (case "(($ac_try" in |
| 22869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22870 | *) ac_try_echo=$ac_try;; |
| 22871 | esac |
| 22872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22873 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 22874 | ac_status=$? |
| 22875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22876 | (exit $ac_status); }; } && |
| 22877 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22878 | { (case "(($ac_try" in |
| 22879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22880 | *) ac_try_echo=$ac_try;; |
| 22881 | esac |
| 22882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22883 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22884 | ac_status=$? |
| 22885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22886 | (exit $ac_status); }; }; then |
| 22887 | ac_cv_member_siginfo_t_si_fd=yes |
| 22888 | else |
| 22889 | echo "$as_me: failed program was:" >&5 |
| 22890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22891 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22892 | ac_cv_member_siginfo_t_si_fd=no |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22893 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22894 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22896 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22897 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22899 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22900 | { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 22901 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; } |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 22902 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 22903 | |
| 22904 | cat >>confdefs.h <<_ACEOF |
| 22905 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 22906 | _ACEOF |
| 22907 | |
| 22908 | |
| 22909 | fi |
| 22910 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 22911 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22912 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5 |
| 22913 | echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22914 | if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then |
| 22915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22916 | else |
| 22917 | cat >conftest.$ac_ext <<_ACEOF |
| 22918 | /* confdefs.h. */ |
| 22919 | _ACEOF |
| 22920 | cat confdefs.h >>conftest.$ac_ext |
| 22921 | cat >>conftest.$ac_ext <<_ACEOF |
| 22922 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22923 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22924 | #ifdef HAVE_SYS_MTIO_H |
| 22925 | #include <sys/mtio.h> |
| 22926 | #endif |
| 22927 | |
| 22928 | int |
| 22929 | main () |
| 22930 | { |
| 22931 | static struct mtget ac_aggr; |
| 22932 | if (ac_aggr.mt_blksiz) |
| 22933 | return 0; |
| 22934 | ; |
| 22935 | return 0; |
| 22936 | } |
| 22937 | _ACEOF |
| 22938 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22939 | if { (ac_try="$ac_compile" |
| 22940 | case "(($ac_try" in |
| 22941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22942 | *) ac_try_echo=$ac_try;; |
| 22943 | esac |
| 22944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22945 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22946 | ac_status=$? |
| 22947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22948 | rm -f conftest.er1 |
| 22949 | cat conftest.err >&5 |
| 22950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22951 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22953 | { (case "(($ac_try" in |
| 22954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22955 | *) ac_try_echo=$ac_try;; |
| 22956 | esac |
| 22957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22958 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22959 | ac_status=$? |
| 22960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22961 | (exit $ac_status); }; } && |
| 22962 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22963 | { (case "(($ac_try" in |
| 22964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22965 | *) ac_try_echo=$ac_try;; |
| 22966 | esac |
| 22967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22968 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22969 | ac_status=$? |
| 22970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22971 | (exit $ac_status); }; }; then |
| 22972 | ac_cv_member_struct_mtget_mt_blksiz=yes |
| 22973 | else |
| 22974 | echo "$as_me: failed program was:" >&5 |
| 22975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22976 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 22977 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22978 | /* confdefs.h. */ |
| 22979 | _ACEOF |
| 22980 | cat confdefs.h >>conftest.$ac_ext |
| 22981 | cat >>conftest.$ac_ext <<_ACEOF |
| 22982 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 22983 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 22984 | #ifdef HAVE_SYS_MTIO_H |
| 22985 | #include <sys/mtio.h> |
| 22986 | #endif |
| 22987 | |
| 22988 | int |
| 22989 | main () |
| 22990 | { |
| 22991 | static struct mtget ac_aggr; |
| 22992 | if (sizeof ac_aggr.mt_blksiz) |
| 22993 | return 0; |
| 22994 | ; |
| 22995 | return 0; |
| 22996 | } |
| 22997 | _ACEOF |
| 22998 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 22999 | if { (ac_try="$ac_compile" |
| 23000 | case "(($ac_try" in |
| 23001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23002 | *) ac_try_echo=$ac_try;; |
| 23003 | esac |
| 23004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23005 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23006 | ac_status=$? |
| 23007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23008 | rm -f conftest.er1 |
| 23009 | cat conftest.err >&5 |
| 23010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23011 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23013 | { (case "(($ac_try" in |
| 23014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23015 | *) ac_try_echo=$ac_try;; |
| 23016 | esac |
| 23017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23018 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23019 | ac_status=$? |
| 23020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23021 | (exit $ac_status); }; } && |
| 23022 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23023 | { (case "(($ac_try" in |
| 23024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23025 | *) ac_try_echo=$ac_try;; |
| 23026 | esac |
| 23027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23028 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23029 | ac_status=$? |
| 23030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23031 | (exit $ac_status); }; }; then |
| 23032 | ac_cv_member_struct_mtget_mt_blksiz=yes |
| 23033 | else |
| 23034 | echo "$as_me: failed program was:" >&5 |
| 23035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23036 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23037 | ac_cv_member_struct_mtget_mt_blksiz=no |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23038 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23039 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23041 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23042 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23044 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23045 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5 |
| 23046 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23047 | if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then |
| 23048 | |
| 23049 | cat >>confdefs.h <<_ACEOF |
| 23050 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 23051 | _ACEOF |
| 23052 | |
| 23053 | |
| 23054 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23055 | { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5 |
| 23056 | echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23057 | if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then |
| 23058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23059 | else |
| 23060 | cat >conftest.$ac_ext <<_ACEOF |
| 23061 | /* confdefs.h. */ |
| 23062 | _ACEOF |
| 23063 | cat confdefs.h >>conftest.$ac_ext |
| 23064 | cat >>conftest.$ac_ext <<_ACEOF |
| 23065 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 23066 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23067 | #ifdef HAVE_SYS_MTIO_H |
| 23068 | #include <sys/mtio.h> |
| 23069 | #endif |
| 23070 | |
| 23071 | int |
| 23072 | main () |
| 23073 | { |
| 23074 | static struct mtget ac_aggr; |
| 23075 | if (ac_aggr.mt_gstat) |
| 23076 | return 0; |
| 23077 | ; |
| 23078 | return 0; |
| 23079 | } |
| 23080 | _ACEOF |
| 23081 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23082 | if { (ac_try="$ac_compile" |
| 23083 | case "(($ac_try" in |
| 23084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23085 | *) ac_try_echo=$ac_try;; |
| 23086 | esac |
| 23087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23088 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23089 | ac_status=$? |
| 23090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23091 | rm -f conftest.er1 |
| 23092 | cat conftest.err >&5 |
| 23093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23094 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23096 | { (case "(($ac_try" in |
| 23097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23098 | *) ac_try_echo=$ac_try;; |
| 23099 | esac |
| 23100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23101 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23102 | ac_status=$? |
| 23103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23104 | (exit $ac_status); }; } && |
| 23105 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23106 | { (case "(($ac_try" in |
| 23107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23108 | *) ac_try_echo=$ac_try;; |
| 23109 | esac |
| 23110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23111 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23112 | ac_status=$? |
| 23113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23114 | (exit $ac_status); }; }; then |
| 23115 | ac_cv_member_struct_mtget_mt_gstat=yes |
| 23116 | else |
| 23117 | echo "$as_me: failed program was:" >&5 |
| 23118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23119 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23120 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23121 | /* confdefs.h. */ |
| 23122 | _ACEOF |
| 23123 | cat confdefs.h >>conftest.$ac_ext |
| 23124 | cat >>conftest.$ac_ext <<_ACEOF |
| 23125 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 23126 | #include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23127 | #ifdef HAVE_SYS_MTIO_H |
| 23128 | #include <sys/mtio.h> |
| 23129 | #endif |
| 23130 | |
| 23131 | int |
| 23132 | main () |
| 23133 | { |
| 23134 | static struct mtget ac_aggr; |
| 23135 | if (sizeof ac_aggr.mt_gstat) |
| 23136 | return 0; |
| 23137 | ; |
| 23138 | return 0; |
| 23139 | } |
| 23140 | _ACEOF |
| 23141 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23142 | if { (ac_try="$ac_compile" |
| 23143 | case "(($ac_try" in |
| 23144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23145 | *) ac_try_echo=$ac_try;; |
| 23146 | esac |
| 23147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23148 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23149 | ac_status=$? |
| 23150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23151 | rm -f conftest.er1 |
| 23152 | cat conftest.err >&5 |
| 23153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23154 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23156 | { (case "(($ac_try" in |
| 23157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23158 | *) ac_try_echo=$ac_try;; |
| 23159 | esac |
| 23160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23161 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23162 | ac_status=$? |
| 23163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23164 | (exit $ac_status); }; } && |
| 23165 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23166 | { (case "(($ac_try" in |
| 23167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23168 | *) ac_try_echo=$ac_try;; |
| 23169 | esac |
| 23170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23171 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23172 | ac_status=$? |
| 23173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23174 | (exit $ac_status); }; }; then |
| 23175 | ac_cv_member_struct_mtget_mt_gstat=yes |
| 23176 | else |
| 23177 | echo "$as_me: failed program was:" >&5 |
| 23178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23179 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23180 | ac_cv_member_struct_mtget_mt_gstat=no |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23181 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23182 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23184 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23185 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23187 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23188 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5 |
| 23189 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; } |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23190 | if test $ac_cv_member_struct_mtget_mt_gstat = yes; then |
| 23191 | |
| 23192 | cat >>confdefs.h <<_ACEOF |
| 23193 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 |
| 23194 | _ACEOF |
| 23195 | |
| 23196 | |
| 23197 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23198 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5 |
| 23199 | echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; } |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23200 | if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then |
| 23201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23202 | else |
| 23203 | cat >conftest.$ac_ext <<_ACEOF |
| 23204 | /* confdefs.h. */ |
| 23205 | _ACEOF |
| 23206 | cat confdefs.h >>conftest.$ac_ext |
| 23207 | cat >>conftest.$ac_ext <<_ACEOF |
| 23208 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 23209 | #include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23210 | #ifdef HAVE_SYS_MTIO_H |
| 23211 | #include <sys/mtio.h> |
| 23212 | #endif |
| 23213 | |
| 23214 | int |
| 23215 | main () |
| 23216 | { |
| 23217 | static struct mtget ac_aggr; |
| 23218 | if (ac_aggr.mt_blkno) |
| 23219 | return 0; |
| 23220 | ; |
| 23221 | return 0; |
| 23222 | } |
| 23223 | _ACEOF |
| 23224 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23225 | if { (ac_try="$ac_compile" |
| 23226 | case "(($ac_try" in |
| 23227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23228 | *) ac_try_echo=$ac_try;; |
| 23229 | esac |
| 23230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23231 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23232 | ac_status=$? |
| 23233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23234 | rm -f conftest.er1 |
| 23235 | cat conftest.err >&5 |
| 23236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23237 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23239 | { (case "(($ac_try" in |
| 23240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23241 | *) ac_try_echo=$ac_try;; |
| 23242 | esac |
| 23243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23244 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23245 | ac_status=$? |
| 23246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23247 | (exit $ac_status); }; } && |
| 23248 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23249 | { (case "(($ac_try" in |
| 23250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23251 | *) ac_try_echo=$ac_try;; |
| 23252 | esac |
| 23253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23254 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23255 | ac_status=$? |
| 23256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23257 | (exit $ac_status); }; }; then |
| 23258 | ac_cv_member_struct_mtget_mt_blkno=yes |
| 23259 | else |
| 23260 | echo "$as_me: failed program was:" >&5 |
| 23261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23262 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23263 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23264 | /* confdefs.h. */ |
| 23265 | _ACEOF |
| 23266 | cat confdefs.h >>conftest.$ac_ext |
| 23267 | cat >>conftest.$ac_ext <<_ACEOF |
| 23268 | /* end confdefs.h. */ |
Phil Krylov | 368dab3 | 2006-02-11 20:26:33 +0100 | [diff] [blame] | 23269 | #include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23270 | #ifdef HAVE_SYS_MTIO_H |
| 23271 | #include <sys/mtio.h> |
| 23272 | #endif |
| 23273 | |
| 23274 | int |
| 23275 | main () |
| 23276 | { |
| 23277 | static struct mtget ac_aggr; |
| 23278 | if (sizeof ac_aggr.mt_blkno) |
| 23279 | return 0; |
| 23280 | ; |
| 23281 | return 0; |
| 23282 | } |
| 23283 | _ACEOF |
| 23284 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23285 | if { (ac_try="$ac_compile" |
| 23286 | case "(($ac_try" in |
| 23287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23288 | *) ac_try_echo=$ac_try;; |
| 23289 | esac |
| 23290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23291 | (eval "$ac_compile") 2>conftest.er1 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23292 | ac_status=$? |
| 23293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23294 | rm -f conftest.er1 |
| 23295 | cat conftest.err >&5 |
| 23296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23297 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23299 | { (case "(($ac_try" in |
| 23300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23301 | *) ac_try_echo=$ac_try;; |
| 23302 | esac |
| 23303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23304 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23305 | ac_status=$? |
| 23306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23307 | (exit $ac_status); }; } && |
| 23308 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23309 | { (case "(($ac_try" in |
| 23310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23311 | *) ac_try_echo=$ac_try;; |
| 23312 | esac |
| 23313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23314 | (eval "$ac_try") 2>&5 |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23315 | ac_status=$? |
| 23316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23317 | (exit $ac_status); }; }; then |
| 23318 | ac_cv_member_struct_mtget_mt_blkno=yes |
| 23319 | else |
| 23320 | echo "$as_me: failed program was:" >&5 |
| 23321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23322 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23323 | ac_cv_member_struct_mtget_mt_blkno=no |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23324 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23325 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23327 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23328 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23330 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23331 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5 |
| 23332 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; } |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 23333 | if test $ac_cv_member_struct_mtget_mt_blkno = yes; then |
| 23334 | |
| 23335 | cat >>confdefs.h <<_ACEOF |
| 23336 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 23337 | _ACEOF |
| 23338 | |
| 23339 | |
| 23340 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 23341 | |
| 23342 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23343 | { echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 23344 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; } |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23345 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 23346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23347 | else |
| 23348 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23349 | /* confdefs.h. */ |
| 23350 | _ACEOF |
| 23351 | cat confdefs.h >>conftest.$ac_ext |
| 23352 | cat >>conftest.$ac_ext <<_ACEOF |
| 23353 | /* end confdefs.h. */ |
| 23354 | #ifdef HAVE_GETOPT_H |
| 23355 | #include <getopt.h> |
| 23356 | #endif |
| 23357 | |
| 23358 | int |
| 23359 | main () |
| 23360 | { |
| 23361 | static struct option ac_aggr; |
| 23362 | if (ac_aggr.name) |
| 23363 | return 0; |
| 23364 | ; |
| 23365 | return 0; |
| 23366 | } |
| 23367 | _ACEOF |
| 23368 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23369 | if { (ac_try="$ac_compile" |
| 23370 | case "(($ac_try" in |
| 23371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23372 | *) ac_try_echo=$ac_try;; |
| 23373 | esac |
| 23374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23375 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23376 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23378 | rm -f conftest.er1 |
| 23379 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23381 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23383 | { (case "(($ac_try" in |
| 23384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23385 | *) ac_try_echo=$ac_try;; |
| 23386 | esac |
| 23387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23388 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23389 | ac_status=$? |
| 23390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23391 | (exit $ac_status); }; } && |
| 23392 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23393 | { (case "(($ac_try" in |
| 23394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23395 | *) ac_try_echo=$ac_try;; |
| 23396 | esac |
| 23397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23398 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23399 | ac_status=$? |
| 23400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23401 | (exit $ac_status); }; }; then |
| 23402 | ac_cv_member_struct_option_name=yes |
| 23403 | else |
| 23404 | echo "$as_me: failed program was:" >&5 |
| 23405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23406 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23407 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23408 | /* confdefs.h. */ |
| 23409 | _ACEOF |
| 23410 | cat confdefs.h >>conftest.$ac_ext |
| 23411 | cat >>conftest.$ac_ext <<_ACEOF |
| 23412 | /* end confdefs.h. */ |
| 23413 | #ifdef HAVE_GETOPT_H |
| 23414 | #include <getopt.h> |
| 23415 | #endif |
| 23416 | |
| 23417 | int |
| 23418 | main () |
| 23419 | { |
| 23420 | static struct option ac_aggr; |
| 23421 | if (sizeof ac_aggr.name) |
| 23422 | return 0; |
| 23423 | ; |
| 23424 | return 0; |
| 23425 | } |
| 23426 | _ACEOF |
| 23427 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23428 | if { (ac_try="$ac_compile" |
| 23429 | case "(($ac_try" in |
| 23430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23431 | *) ac_try_echo=$ac_try;; |
| 23432 | esac |
| 23433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23434 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23435 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23437 | rm -f conftest.er1 |
| 23438 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23440 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23442 | { (case "(($ac_try" in |
| 23443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23444 | *) ac_try_echo=$ac_try;; |
| 23445 | esac |
| 23446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23447 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23448 | ac_status=$? |
| 23449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23450 | (exit $ac_status); }; } && |
| 23451 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23452 | { (case "(($ac_try" in |
| 23453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23454 | *) ac_try_echo=$ac_try;; |
| 23455 | esac |
| 23456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23457 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23458 | ac_status=$? |
| 23459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23460 | (exit $ac_status); }; }; then |
| 23461 | ac_cv_member_struct_option_name=yes |
| 23462 | else |
| 23463 | echo "$as_me: failed program was:" >&5 |
| 23464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23465 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23466 | ac_cv_member_struct_option_name=no |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23467 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23468 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23470 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23471 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23473 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23474 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 23475 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; } |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 23476 | if test $ac_cv_member_struct_option_name = yes; then |
| 23477 | |
| 23478 | cat >>confdefs.h <<_ACEOF |
| 23479 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 23480 | _ACEOF |
| 23481 | |
| 23482 | |
| 23483 | fi |
| 23484 | |
| 23485 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23486 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 23487 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23488 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 23489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23490 | else |
| 23491 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23492 | /* confdefs.h. */ |
| 23493 | _ACEOF |
| 23494 | cat confdefs.h >>conftest.$ac_ext |
| 23495 | cat >>conftest.$ac_ext <<_ACEOF |
| 23496 | /* end confdefs.h. */ |
| 23497 | $ac_includes_default |
| 23498 | int |
| 23499 | main () |
| 23500 | { |
| 23501 | static struct stat ac_aggr; |
| 23502 | if (ac_aggr.st_blocks) |
| 23503 | return 0; |
| 23504 | ; |
| 23505 | return 0; |
| 23506 | } |
| 23507 | _ACEOF |
| 23508 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23509 | if { (ac_try="$ac_compile" |
| 23510 | case "(($ac_try" in |
| 23511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23512 | *) ac_try_echo=$ac_try;; |
| 23513 | esac |
| 23514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23515 | (eval "$ac_compile") 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23516 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23518 | rm -f conftest.er1 |
| 23519 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23521 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23523 | { (case "(($ac_try" in |
| 23524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23525 | *) ac_try_echo=$ac_try;; |
| 23526 | esac |
| 23527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23528 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23529 | ac_status=$? |
| 23530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23531 | (exit $ac_status); }; } && |
| 23532 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23533 | { (case "(($ac_try" in |
| 23534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23535 | *) ac_try_echo=$ac_try;; |
| 23536 | esac |
| 23537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23538 | (eval "$ac_try") 2>&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23539 | ac_status=$? |
| 23540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23541 | (exit $ac_status); }; }; then |
| 23542 | ac_cv_member_struct_stat_st_blocks=yes |
| 23543 | else |
| 23544 | echo "$as_me: failed program was:" >&5 |
| 23545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23546 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23547 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23548 | /* confdefs.h. */ |
| 23549 | _ACEOF |
| 23550 | cat confdefs.h >>conftest.$ac_ext |
| 23551 | cat >>conftest.$ac_ext <<_ACEOF |
| 23552 | /* end confdefs.h. */ |
| 23553 | $ac_includes_default |
| 23554 | int |
| 23555 | main () |
| 23556 | { |
| 23557 | static struct stat ac_aggr; |
| 23558 | if (sizeof ac_aggr.st_blocks) |
| 23559 | return 0; |
| 23560 | ; |
| 23561 | return 0; |
| 23562 | } |
| 23563 | _ACEOF |
| 23564 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23565 | if { (ac_try="$ac_compile" |
| 23566 | case "(($ac_try" in |
| 23567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23568 | *) ac_try_echo=$ac_try;; |
| 23569 | esac |
| 23570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23571 | (eval "$ac_compile") 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23572 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23574 | rm -f conftest.er1 |
| 23575 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23577 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23579 | { (case "(($ac_try" in |
| 23580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23581 | *) ac_try_echo=$ac_try;; |
| 23582 | esac |
| 23583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23584 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 23585 | ac_status=$? |
| 23586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23587 | (exit $ac_status); }; } && |
| 23588 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23589 | { (case "(($ac_try" in |
| 23590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23591 | *) ac_try_echo=$ac_try;; |
| 23592 | esac |
| 23593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23594 | (eval "$ac_try") 2>&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23595 | ac_status=$? |
| 23596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23597 | (exit $ac_status); }; }; then |
| 23598 | ac_cv_member_struct_stat_st_blocks=yes |
| 23599 | else |
| 23600 | echo "$as_me: failed program was:" >&5 |
| 23601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23602 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23603 | ac_cv_member_struct_stat_st_blocks=no |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23604 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23605 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23607 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23608 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23610 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23611 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 23612 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 23613 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 23614 | |
| 23615 | cat >>confdefs.h <<_ACEOF |
| 23616 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 23617 | _ACEOF |
| 23618 | |
| 23619 | |
| 23620 | fi |
| 23621 | |
| 23622 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23623 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 |
| 23624 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23625 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then |
| 23626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23627 | else |
| 23628 | cat >conftest.$ac_ext <<_ACEOF |
| 23629 | /* confdefs.h. */ |
| 23630 | _ACEOF |
| 23631 | cat confdefs.h >>conftest.$ac_ext |
| 23632 | cat >>conftest.$ac_ext <<_ACEOF |
| 23633 | /* end confdefs.h. */ |
| 23634 | #ifdef HAVE_SYS_TYPES_H |
| 23635 | #include <sys/types.h> |
| 23636 | #endif |
| 23637 | #ifdef HAVE_NETINET_IN_H |
| 23638 | #include <netinet/in.h> |
| 23639 | #endif |
| 23640 | |
| 23641 | int |
| 23642 | main () |
| 23643 | { |
| 23644 | static struct sockaddr_in6 ac_aggr; |
| 23645 | if (ac_aggr.sin6_scope_id) |
| 23646 | return 0; |
| 23647 | ; |
| 23648 | return 0; |
| 23649 | } |
| 23650 | _ACEOF |
| 23651 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23652 | if { (ac_try="$ac_compile" |
| 23653 | case "(($ac_try" in |
| 23654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23655 | *) ac_try_echo=$ac_try;; |
| 23656 | esac |
| 23657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23658 | (eval "$ac_compile") 2>conftest.er1 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23659 | ac_status=$? |
| 23660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23661 | rm -f conftest.er1 |
| 23662 | cat conftest.err >&5 |
| 23663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23664 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23665 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23666 | { (case "(($ac_try" in |
| 23667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23668 | *) ac_try_echo=$ac_try;; |
| 23669 | esac |
| 23670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23671 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23672 | ac_status=$? |
| 23673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23674 | (exit $ac_status); }; } && |
| 23675 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23676 | { (case "(($ac_try" in |
| 23677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23678 | *) ac_try_echo=$ac_try;; |
| 23679 | esac |
| 23680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23681 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23682 | ac_status=$? |
| 23683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23684 | (exit $ac_status); }; }; then |
| 23685 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes |
| 23686 | else |
| 23687 | echo "$as_me: failed program was:" >&5 |
| 23688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23689 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23690 | cat >conftest.$ac_ext <<_ACEOF |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23691 | /* confdefs.h. */ |
| 23692 | _ACEOF |
| 23693 | cat confdefs.h >>conftest.$ac_ext |
| 23694 | cat >>conftest.$ac_ext <<_ACEOF |
| 23695 | /* end confdefs.h. */ |
| 23696 | #ifdef HAVE_SYS_TYPES_H |
| 23697 | #include <sys/types.h> |
| 23698 | #endif |
| 23699 | #ifdef HAVE_NETINET_IN_H |
| 23700 | #include <netinet/in.h> |
| 23701 | #endif |
| 23702 | |
| 23703 | int |
| 23704 | main () |
| 23705 | { |
| 23706 | static struct sockaddr_in6 ac_aggr; |
| 23707 | if (sizeof ac_aggr.sin6_scope_id) |
| 23708 | return 0; |
| 23709 | ; |
| 23710 | return 0; |
| 23711 | } |
| 23712 | _ACEOF |
| 23713 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23714 | if { (ac_try="$ac_compile" |
| 23715 | case "(($ac_try" in |
| 23716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23717 | *) ac_try_echo=$ac_try;; |
| 23718 | esac |
| 23719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23720 | (eval "$ac_compile") 2>conftest.er1 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23721 | ac_status=$? |
| 23722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23723 | rm -f conftest.er1 |
| 23724 | cat conftest.err >&5 |
| 23725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23726 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23728 | { (case "(($ac_try" in |
| 23729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23730 | *) ac_try_echo=$ac_try;; |
| 23731 | esac |
| 23732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23733 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23734 | ac_status=$? |
| 23735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23736 | (exit $ac_status); }; } && |
| 23737 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23738 | { (case "(($ac_try" in |
| 23739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23740 | *) ac_try_echo=$ac_try;; |
| 23741 | esac |
| 23742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23743 | (eval "$ac_try") 2>&5 |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23744 | ac_status=$? |
| 23745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23746 | (exit $ac_status); }; }; then |
| 23747 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes |
| 23748 | else |
| 23749 | echo "$as_me: failed program was:" >&5 |
| 23750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23751 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23752 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23753 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23754 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23756 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23757 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23759 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23760 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 |
| 23761 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 23762 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then |
| 23763 | |
| 23764 | cat >>confdefs.h <<_ACEOF |
| 23765 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 23766 | _ACEOF |
| 23767 | |
| 23768 | |
| 23769 | fi |
| 23770 | |
| 23771 | |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23772 | { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5 |
| 23773 | echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; } |
| 23774 | if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then |
| 23775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23776 | else |
| 23777 | cat >conftest.$ac_ext <<_ACEOF |
| 23778 | /* confdefs.h. */ |
| 23779 | _ACEOF |
| 23780 | cat confdefs.h >>conftest.$ac_ext |
| 23781 | cat >>conftest.$ac_ext <<_ACEOF |
| 23782 | /* end confdefs.h. */ |
| 23783 | #ifdef HAVE_SYS_TYPES_H |
| 23784 | #include <sys/types.h> |
| 23785 | #endif |
| 23786 | #ifdef HAVE_NETINET_IN_H |
| 23787 | # include <netinet/in.h> |
| 23788 | #endif |
| 23789 | #ifdef HAVE_ARPA_NAMESER_H |
| 23790 | # include <arpa/nameser.h> |
| 23791 | #endif |
| 23792 | |
| 23793 | int |
| 23794 | main () |
| 23795 | { |
| 23796 | static ns_msg ac_aggr; |
| 23797 | if (ac_aggr._msg_ptr) |
| 23798 | return 0; |
| 23799 | ; |
| 23800 | return 0; |
| 23801 | } |
| 23802 | _ACEOF |
| 23803 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23804 | if { (ac_try="$ac_compile" |
| 23805 | case "(($ac_try" in |
| 23806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23807 | *) ac_try_echo=$ac_try;; |
| 23808 | esac |
| 23809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23810 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23811 | ac_status=$? |
| 23812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23813 | rm -f conftest.er1 |
| 23814 | cat conftest.err >&5 |
| 23815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23816 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23817 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23818 | { (case "(($ac_try" in |
| 23819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23820 | *) ac_try_echo=$ac_try;; |
| 23821 | esac |
| 23822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23823 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23824 | ac_status=$? |
| 23825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23826 | (exit $ac_status); }; } && |
| 23827 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23828 | { (case "(($ac_try" in |
| 23829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23830 | *) ac_try_echo=$ac_try;; |
| 23831 | esac |
| 23832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23833 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23834 | ac_status=$? |
| 23835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23836 | (exit $ac_status); }; }; then |
| 23837 | ac_cv_member_ns_msg__msg_ptr=yes |
| 23838 | else |
| 23839 | echo "$as_me: failed program was:" >&5 |
| 23840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23841 | |
| 23842 | cat >conftest.$ac_ext <<_ACEOF |
| 23843 | /* confdefs.h. */ |
| 23844 | _ACEOF |
| 23845 | cat confdefs.h >>conftest.$ac_ext |
| 23846 | cat >>conftest.$ac_ext <<_ACEOF |
| 23847 | /* end confdefs.h. */ |
| 23848 | #ifdef HAVE_SYS_TYPES_H |
| 23849 | #include <sys/types.h> |
| 23850 | #endif |
| 23851 | #ifdef HAVE_NETINET_IN_H |
| 23852 | # include <netinet/in.h> |
| 23853 | #endif |
| 23854 | #ifdef HAVE_ARPA_NAMESER_H |
| 23855 | # include <arpa/nameser.h> |
| 23856 | #endif |
| 23857 | |
| 23858 | int |
| 23859 | main () |
| 23860 | { |
| 23861 | static ns_msg ac_aggr; |
| 23862 | if (sizeof ac_aggr._msg_ptr) |
| 23863 | return 0; |
| 23864 | ; |
| 23865 | return 0; |
| 23866 | } |
| 23867 | _ACEOF |
| 23868 | rm -f conftest.$ac_objext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23869 | if { (ac_try="$ac_compile" |
| 23870 | case "(($ac_try" in |
| 23871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23872 | *) ac_try_echo=$ac_try;; |
| 23873 | esac |
| 23874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23875 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23876 | ac_status=$? |
| 23877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23878 | rm -f conftest.er1 |
| 23879 | cat conftest.err >&5 |
| 23880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23881 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23883 | { (case "(($ac_try" in |
| 23884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23885 | *) ac_try_echo=$ac_try;; |
| 23886 | esac |
| 23887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23888 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23889 | ac_status=$? |
| 23890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23891 | (exit $ac_status); }; } && |
| 23892 | { ac_try='test -s conftest.$ac_objext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23893 | { (case "(($ac_try" in |
| 23894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23895 | *) ac_try_echo=$ac_try;; |
| 23896 | esac |
| 23897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23898 | (eval "$ac_try") 2>&5 |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23899 | ac_status=$? |
| 23900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23901 | (exit $ac_status); }; }; then |
| 23902 | ac_cv_member_ns_msg__msg_ptr=yes |
| 23903 | else |
| 23904 | echo "$as_me: failed program was:" >&5 |
| 23905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23906 | |
| 23907 | ac_cv_member_ns_msg__msg_ptr=no |
| 23908 | fi |
| 23909 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23911 | fi |
| 23912 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 23914 | fi |
| 23915 | { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5 |
| 23916 | echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; } |
| 23917 | if test $ac_cv_member_ns_msg__msg_ptr = yes; then |
| 23918 | |
| 23919 | cat >>confdefs.h <<_ACEOF |
| 23920 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 23921 | _ACEOF |
| 23922 | |
| 23923 | |
| 23924 | fi |
| 23925 | |
| 23926 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23927 | { echo "$as_me:$LINENO: checking for timezone variable" >&5 |
| 23928 | echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23929 | if test "${ac_cv_have_timezone+set}" = set; then |
| 23930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23931 | else |
| 23932 | cat >conftest.$ac_ext <<_ACEOF |
| 23933 | /* confdefs.h. */ |
| 23934 | _ACEOF |
| 23935 | cat confdefs.h >>conftest.$ac_ext |
| 23936 | cat >>conftest.$ac_ext <<_ACEOF |
| 23937 | /* end confdefs.h. */ |
| 23938 | #include <time.h> |
| 23939 | int |
| 23940 | main () |
| 23941 | { |
| 23942 | timezone; |
| 23943 | ; |
| 23944 | return 0; |
| 23945 | } |
| 23946 | _ACEOF |
| 23947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23948 | if { (ac_try="$ac_link" |
| 23949 | case "(($ac_try" in |
| 23950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23951 | *) ac_try_echo=$ac_try;; |
| 23952 | esac |
| 23953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23954 | (eval "$ac_link") 2>conftest.er1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23955 | ac_status=$? |
| 23956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23957 | rm -f conftest.er1 |
| 23958 | cat conftest.err >&5 |
| 23959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23960 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23962 | { (case "(($ac_try" in |
| 23963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23964 | *) ac_try_echo=$ac_try;; |
| 23965 | esac |
| 23966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23967 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23968 | ac_status=$? |
| 23969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23970 | (exit $ac_status); }; } && |
| 23971 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23972 | { (case "(($ac_try" in |
| 23973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23974 | *) ac_try_echo=$ac_try;; |
| 23975 | esac |
| 23976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23977 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23978 | ac_status=$? |
| 23979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23980 | (exit $ac_status); }; }; then |
| 23981 | ac_cv_have_timezone="yes" |
| 23982 | else |
| 23983 | echo "$as_me: failed program was:" >&5 |
| 23984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23985 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23986 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23987 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23988 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 23989 | rm -f core conftest.err conftest.$ac_objext \ |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23990 | conftest$ac_exeext conftest.$ac_ext |
| 23991 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 23992 | { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5 |
| 23993 | echo "${ECHO_T}$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 23994 | if test "$ac_cv_have_timezone" = "yes" |
| 23995 | then |
| 23996 | |
| 23997 | cat >>confdefs.h <<\_ACEOF |
| 23998 | #define HAVE_TIMEZONE 1 |
| 23999 | _ACEOF |
| 24000 | |
| 24001 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24002 | { echo "$as_me:$LINENO: checking for daylight variable" >&5 |
| 24003 | echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 24004 | if test "${ac_cv_have_daylight+set}" = set; then |
| 24005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24006 | else |
| 24007 | cat >conftest.$ac_ext <<_ACEOF |
| 24008 | /* confdefs.h. */ |
| 24009 | _ACEOF |
| 24010 | cat confdefs.h >>conftest.$ac_ext |
| 24011 | cat >>conftest.$ac_ext <<_ACEOF |
| 24012 | /* end confdefs.h. */ |
| 24013 | #include <time.h> |
| 24014 | int |
| 24015 | main () |
| 24016 | { |
| 24017 | daylight; |
| 24018 | ; |
| 24019 | return 0; |
| 24020 | } |
| 24021 | _ACEOF |
| 24022 | rm -f conftest.$ac_objext conftest$ac_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24023 | if { (ac_try="$ac_link" |
| 24024 | case "(($ac_try" in |
| 24025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24026 | *) ac_try_echo=$ac_try;; |
| 24027 | esac |
| 24028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24029 | (eval "$ac_link") 2>conftest.er1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 24030 | ac_status=$? |
| 24031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24032 | rm -f conftest.er1 |
| 24033 | cat conftest.err >&5 |
| 24034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24035 | (exit $ac_status); } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24037 | { (case "(($ac_try" in |
| 24038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24039 | *) ac_try_echo=$ac_try;; |
| 24040 | esac |
| 24041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24042 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 24043 | ac_status=$? |
| 24044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24045 | (exit $ac_status); }; } && |
| 24046 | { ac_try='test -s conftest$ac_exeext' |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24047 | { (case "(($ac_try" in |
| 24048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24049 | *) ac_try_echo=$ac_try;; |
| 24050 | esac |
| 24051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24052 | (eval "$ac_try") 2>&5 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 24053 | ac_status=$? |
| 24054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24055 | (exit $ac_status); }; }; then |
| 24056 | ac_cv_have_daylight="yes" |
| 24057 | else |
| 24058 | echo "$as_me: failed program was:" >&5 |
| 24059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24060 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24061 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 24062 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24063 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24064 | rm -f core conftest.err conftest.$ac_objext \ |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 24065 | conftest$ac_exeext conftest.$ac_ext |
| 24066 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24067 | { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5 |
| 24068 | echo "${ECHO_T}$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 24069 | if test "$ac_cv_have_daylight" = "yes" |
| 24070 | then |
| 24071 | |
| 24072 | cat >>confdefs.h <<\_ACEOF |
| 24073 | #define HAVE_DAYLIGHT 1 |
| 24074 | _ACEOF |
| 24075 | |
| 24076 | fi |
| 24077 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24078 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 24079 | case $host_cpu in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24080 | *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
| 24081 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24082 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 24084 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24085 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24086 | /* confdefs.h. */ |
| 24087 | _ACEOF |
| 24088 | cat confdefs.h >>conftest.$ac_ext |
| 24089 | cat >>conftest.$ac_ext <<_ACEOF |
| 24090 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24091 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24092 | yes |
| 24093 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24094 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24096 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24097 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24098 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24099 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24100 | fi |
| 24101 | rm -f conftest* |
| 24102 | |
| 24103 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24104 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 24105 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24106 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 24107 | CFLAGS="$CFLAGS -D__i386__" |
| 24108 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 24109 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24110 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24111 | *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5 |
| 24112 | echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; } |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 24113 | if test "${ac_cv_cpp_def___x86_64__+set}" = set; then |
| 24114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24115 | else |
| 24116 | cat >conftest.$ac_ext <<_ACEOF |
| 24117 | /* confdefs.h. */ |
| 24118 | _ACEOF |
| 24119 | cat confdefs.h >>conftest.$ac_ext |
| 24120 | cat >>conftest.$ac_ext <<_ACEOF |
| 24121 | /* end confdefs.h. */ |
| 24122 | #ifndef __x86_64__ |
| 24123 | yes |
| 24124 | #endif |
| 24125 | _ACEOF |
| 24126 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24127 | $EGREP "yes" >/dev/null 2>&1; then |
| 24128 | ac_cv_cpp_def___x86_64__=yes |
| 24129 | else |
| 24130 | ac_cv_cpp_def___x86_64__=no |
| 24131 | fi |
| 24132 | rm -f conftest* |
| 24133 | |
| 24134 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24135 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5 |
| 24136 | echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 24137 | if test $ac_cv_cpp_def___x86_64__ = yes; then |
| 24138 | CFLAGS="$CFLAGS -D__x86_64__" |
| 24139 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
| 24140 | fi |
Alexandre Julliard | 58c6419 | 2006-07-10 13:05:20 +0200 | [diff] [blame] | 24141 | |
| 24142 | { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5 |
| 24143 | echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; } |
| 24144 | if test "${ac_cv_cpp_def__WIN64+set}" = set; then |
| 24145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24146 | else |
| 24147 | cat >conftest.$ac_ext <<_ACEOF |
| 24148 | /* confdefs.h. */ |
| 24149 | _ACEOF |
| 24150 | cat confdefs.h >>conftest.$ac_ext |
| 24151 | cat >>conftest.$ac_ext <<_ACEOF |
| 24152 | /* end confdefs.h. */ |
| 24153 | #ifndef _WIN64 |
| 24154 | yes |
| 24155 | #endif |
| 24156 | _ACEOF |
| 24157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24158 | $EGREP "yes" >/dev/null 2>&1; then |
| 24159 | ac_cv_cpp_def__WIN64=yes |
| 24160 | else |
| 24161 | ac_cv_cpp_def__WIN64=no |
| 24162 | fi |
| 24163 | rm -f conftest* |
| 24164 | |
| 24165 | fi |
| 24166 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5 |
| 24167 | echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; } |
| 24168 | if test $ac_cv_cpp_def__WIN64 = yes; then |
| 24169 | CFLAGS="$CFLAGS -D_WIN64" |
| 24170 | LINTFLAGS="$LINTFLAGS -D_WIN64" |
| 24171 | fi |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 24172 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24173 | *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5 |
| 24174 | echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24175 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24177 | else |
| 24178 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24179 | /* confdefs.h. */ |
| 24180 | _ACEOF |
| 24181 | cat confdefs.h >>conftest.$ac_ext |
| 24182 | cat >>conftest.$ac_ext <<_ACEOF |
| 24183 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24184 | #ifndef __ALPHA__ |
| 24185 | yes |
| 24186 | #endif |
| 24187 | _ACEOF |
| 24188 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24189 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24190 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24191 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24192 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24193 | fi |
| 24194 | rm -f conftest* |
| 24195 | |
| 24196 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24197 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 24198 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24199 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 24200 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 24201 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 24202 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24203 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24204 | *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
| 24205 | echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24206 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24208 | else |
| 24209 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24210 | /* confdefs.h. */ |
| 24211 | _ACEOF |
| 24212 | cat confdefs.h >>conftest.$ac_ext |
| 24213 | cat >>conftest.$ac_ext <<_ACEOF |
| 24214 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24215 | #ifndef __sparc__ |
| 24216 | yes |
| 24217 | #endif |
| 24218 | _ACEOF |
| 24219 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24220 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24221 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24222 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24223 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24224 | fi |
| 24225 | rm -f conftest* |
| 24226 | |
| 24227 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24228 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 24229 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24230 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 24231 | CFLAGS="$CFLAGS -D__sparc__" |
| 24232 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24233 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24234 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24235 | *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
| 24236 | echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; } |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 24237 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
| 24238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24239 | else |
| 24240 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 24241 | /* confdefs.h. */ |
| 24242 | _ACEOF |
| 24243 | cat confdefs.h >>conftest.$ac_ext |
| 24244 | cat >>conftest.$ac_ext <<_ACEOF |
| 24245 | /* end confdefs.h. */ |
| 24246 | #ifndef __powerpc__ |
| 24247 | yes |
| 24248 | #endif |
| 24249 | _ACEOF |
| 24250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24251 | $EGREP "yes" >/dev/null 2>&1; then |
| 24252 | ac_cv_cpp_def___powerpc__=yes |
| 24253 | else |
| 24254 | ac_cv_cpp_def___powerpc__=no |
| 24255 | fi |
| 24256 | rm -f conftest* |
| 24257 | |
| 24258 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24259 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
| 24260 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; } |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 24261 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
| 24262 | CFLAGS="$CFLAGS -D__powerpc__" |
| 24263 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
| 24264 | fi |
| 24265 | ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24266 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24267 | |
| 24268 | case $host_vendor in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24269 | *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
| 24270 | echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24271 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24273 | else |
| 24274 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24275 | /* confdefs.h. */ |
| 24276 | _ACEOF |
| 24277 | cat confdefs.h >>conftest.$ac_ext |
| 24278 | cat >>conftest.$ac_ext <<_ACEOF |
| 24279 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24280 | #ifndef __sun__ |
| 24281 | yes |
| 24282 | #endif |
| 24283 | _ACEOF |
| 24284 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24285 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24286 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24287 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24288 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24289 | fi |
| 24290 | rm -f conftest* |
| 24291 | |
| 24292 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24293 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 24294 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24295 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 24296 | CFLAGS="$CFLAGS -D__sun__" |
| 24297 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24298 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 24299 | ;; |
| 24300 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 24301 | |
| 24302 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24303 | |
| 24304 | |
| 24305 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24306 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 24307 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24308 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 24309 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24310 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24311 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24312 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24313 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24314 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24315 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24316 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24317 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 24318 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 24319 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24320 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24321 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 24322 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 24323 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24324 | |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 24325 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
| 24326 | |
| 24327 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 24328 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 24329 | |
| 24330 | |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 24331 | MAKE_LIB_RULES=libs/Makelib.rules |
| 24332 | |
| 24333 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 24334 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 24335 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24336 | |
Mike McCormack | a430db9 | 2006-08-02 02:19:15 +0900 | [diff] [blame] | 24337 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24338 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 24339 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24340 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24341 | # This file is a shell script that caches the results of configure |
| 24342 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24343 | # scripts and configure runs, see configure's option --config-cache. |
| 24344 | # It is not useful on other systems. If it contains results you don't |
| 24345 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24346 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24347 | # config.status only pays attention to the cache file if you give it |
| 24348 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24349 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24350 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24351 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 24352 | # following values. |
| 24353 | |
| 24354 | _ACEOF |
| 24355 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 24356 | # The following way of writing the cache mishandles newlines in values, |
| 24357 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24358 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24359 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 24360 | # and sets the high bit in the cache file unless we assign to the vars. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24361 | ( |
| 24362 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 24363 | eval ac_val=\$$ac_var |
| 24364 | case $ac_val in #( |
| 24365 | *${as_nl}*) |
| 24366 | case $ac_var in #( |
| 24367 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 24368 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 24369 | esac |
| 24370 | case $ac_var in #( |
| 24371 | _ | IFS | as_nl) ;; #( |
| 24372 | *) $as_unset $ac_var ;; |
| 24373 | esac ;; |
| 24374 | esac |
| 24375 | done |
| 24376 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24377 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24378 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 24379 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24380 | # `set' does not quote correctly, so add quotes (double-quote |
| 24381 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 24382 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24383 | "s/'/'\\\\''/g; |
| 24384 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24385 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24386 | *) |
| 24387 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24388 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24389 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24390 | esac | |
| 24391 | sort |
| 24392 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24393 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24394 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24395 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24396 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24397 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 24398 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24399 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 24400 | :end' >>confcache |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24401 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 24402 | if test -w "$cache_file"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24403 | test "x$cache_file" != "x/dev/null" && |
| 24404 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 24405 | echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24406 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24407 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24408 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 24409 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24410 | fi |
| 24411 | fi |
| 24412 | rm -f confcache |
| 24413 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24414 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 24415 | # Let make expand exec_prefix. |
| 24416 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 24417 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 24418 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24419 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24420 | ac_libobjs= |
| 24421 | ac_ltlibobjs= |
| 24422 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 24423 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24424 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 24425 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 24426 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 24427 | # will be set to the directory where LIBOBJS objects are built. |
| 24428 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 24429 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24430 | done |
| 24431 | LIBOBJS=$ac_libobjs |
| 24432 | |
| 24433 | LTLIBOBJS=$ac_ltlibobjs |
| 24434 | |
| 24435 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24436 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24437 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24438 | ac_clean_files_save=$ac_clean_files |
| 24439 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24440 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24441 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 24442 | cat >$CONFIG_STATUS <<_ACEOF |
| 24443 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24444 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24445 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24446 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24447 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24448 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24449 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24450 | ac_cs_recheck=false |
| 24451 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24452 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24453 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24454 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24455 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24456 | ## --------------------- ## |
| 24457 | ## M4sh Initialization. ## |
| 24458 | ## --------------------- ## |
| 24459 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24460 | # Be Bourne compatible |
| 24461 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24462 | emulate sh |
| 24463 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24464 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 24465 | # is contrary to our usage. Disable this feature. |
| 24466 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24467 | setopt NO_GLOB_SUBST |
| 24468 | else |
| 24469 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 24470 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24471 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24472 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24473 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24474 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24475 | # PATH needs CR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24476 | # Avoid depending upon Character Ranges. |
| 24477 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 24478 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 24479 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 24480 | as_cr_digits='0123456789' |
| 24481 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 24482 | |
| 24483 | # The user is always right. |
| 24484 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24485 | echo "#! /bin/sh" >conf$$.sh |
| 24486 | echo "exit 0" >>conf$$.sh |
| 24487 | chmod +x conf$$.sh |
| 24488 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24489 | PATH_SEPARATOR=';' |
| 24490 | else |
| 24491 | PATH_SEPARATOR=: |
| 24492 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24493 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24494 | fi |
| 24495 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24496 | # Support unset when possible. |
| 24497 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 24498 | as_unset=unset |
| 24499 | else |
| 24500 | as_unset=false |
| 24501 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24502 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24503 | |
| 24504 | # IFS |
| 24505 | # We need space, tab and new line, in precisely that order. Quoting is |
| 24506 | # there to prevent editors from complaining about space-tab. |
| 24507 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 24508 | # splitting by setting IFS to empty value.) |
| 24509 | as_nl=' |
| 24510 | ' |
| 24511 | IFS=" "" $as_nl" |
| 24512 | |
| 24513 | # Find who we are. Look in the path if we contain no directory separator. |
| 24514 | case $0 in |
| 24515 | *[\\/]* ) as_myself=$0 ;; |
| 24516 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24517 | for as_dir in $PATH |
| 24518 | do |
| 24519 | IFS=$as_save_IFS |
| 24520 | test -z "$as_dir" && as_dir=. |
| 24521 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 24522 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24523 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24524 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24525 | ;; |
| 24526 | esac |
| 24527 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 24528 | # in which case we are not to be found in the path. |
| 24529 | if test "x$as_myself" = x; then |
| 24530 | as_myself=$0 |
| 24531 | fi |
| 24532 | if test ! -f "$as_myself"; then |
| 24533 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 24534 | { (exit 1); exit 1; } |
| 24535 | fi |
| 24536 | |
| 24537 | # Work around bugs in pre-3.0 UWIN ksh. |
| 24538 | for as_var in ENV MAIL MAILPATH |
| 24539 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 24540 | done |
| 24541 | PS1='$ ' |
| 24542 | PS2='> ' |
| 24543 | PS4='+ ' |
| 24544 | |
| 24545 | # NLS nuisances. |
| 24546 | for as_var in \ |
| 24547 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 24548 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 24549 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24550 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24551 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 24552 | eval $as_var=C; export $as_var |
| 24553 | else |
| 24554 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 24555 | fi |
| 24556 | done |
| 24557 | |
| 24558 | # Required to use basename. |
| 24559 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24560 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 24561 | as_expr=expr |
| 24562 | else |
| 24563 | as_expr=false |
| 24564 | fi |
| 24565 | |
| 24566 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 24567 | as_basename=basename |
| 24568 | else |
| 24569 | as_basename=false |
| 24570 | fi |
| 24571 | |
| 24572 | |
| 24573 | # Name of the executable. |
| 24574 | as_me=`$as_basename -- "$0" || |
| 24575 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 24576 | X"$0" : 'X\(//\)$' \| \ |
| 24577 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 24578 | echo X/"$0" | |
| 24579 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 24580 | s//\1/ |
| 24581 | q |
| 24582 | } |
| 24583 | /^X\/\(\/\/\)$/{ |
| 24584 | s//\1/ |
| 24585 | q |
| 24586 | } |
| 24587 | /^X\/\(\/\).*/{ |
| 24588 | s//\1/ |
| 24589 | q |
| 24590 | } |
| 24591 | s/.*/./; q'` |
| 24592 | |
| 24593 | # CDPATH. |
| 24594 | $as_unset CDPATH |
| 24595 | |
| 24596 | |
| 24597 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24598 | as_lineno_1=$LINENO |
| 24599 | as_lineno_2=$LINENO |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24600 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24601 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24602 | |
| 24603 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 24604 | # uniformly replaced by the line number. The first 'sed' inserts a |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24605 | # line-number line after each line using $LINENO; the second 'sed' |
| 24606 | # does the real work. The second script uses 'N' to pair each |
| 24607 | # line-number line with the line containing $LINENO, and appends |
| 24608 | # trailing '-' during substitution so that $LINENO is not a special |
| 24609 | # case at line end. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24610 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24611 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 24612 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 24613 | sed -n ' |
| 24614 | p |
| 24615 | /[$]LINENO/= |
| 24616 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24617 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24618 | s/[$]LINENO.*/&-/ |
| 24619 | t lineno |
| 24620 | b |
| 24621 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24622 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24623 | :loop |
| 24624 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24625 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24626 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24627 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24628 | chmod +x "$as_me.lineno" || |
| 24629 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24630 | { (exit 1); exit 1; }; } |
| 24631 | |
| 24632 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 24633 | # (the dirname of $[0] is not the place where we might find the |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24634 | # original and so on. Autoconf is especially sensitive to this). |
| 24635 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24636 | # Exit status is that of the last command. |
| 24637 | exit |
| 24638 | } |
| 24639 | |
| 24640 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24641 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24642 | as_dirname=dirname |
| 24643 | else |
| 24644 | as_dirname=false |
| 24645 | fi |
| 24646 | |
| 24647 | ECHO_C= ECHO_N= ECHO_T= |
| 24648 | case `echo -n x` in |
| 24649 | -n*) |
| 24650 | case `echo 'x\c'` in |
| 24651 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 24652 | *) ECHO_C='\c';; |
| 24653 | esac;; |
| 24654 | *) |
| 24655 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24656 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24657 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24658 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24659 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24660 | as_expr=expr |
| 24661 | else |
| 24662 | as_expr=false |
| 24663 | fi |
| 24664 | |
| 24665 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24666 | if test -d conf$$.dir; then |
| 24667 | rm -f conf$$.dir/conf$$.file |
| 24668 | else |
| 24669 | rm -f conf$$.dir |
| 24670 | mkdir conf$$.dir |
| 24671 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24672 | echo >conf$$.file |
| 24673 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24674 | as_ln_s='ln -s' |
| 24675 | # ... but there are two gotchas: |
| 24676 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 24677 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 24678 | # In both cases, we have to default to `cp -p'. |
| 24679 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24680 | as_ln_s='cp -p' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24681 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 24682 | as_ln_s=ln |
| 24683 | else |
| 24684 | as_ln_s='cp -p' |
| 24685 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24686 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 24687 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24688 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24689 | if mkdir -p . 2>/dev/null; then |
| 24690 | as_mkdir_p=: |
| 24691 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24692 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24693 | as_mkdir_p=false |
| 24694 | fi |
| 24695 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24696 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 24697 | # systems may use methods other than mode bits to determine executability. |
| 24698 | cat >conf$$.file <<_ASEOF |
| 24699 | #! /bin/sh |
| 24700 | exit 0 |
| 24701 | _ASEOF |
| 24702 | chmod +x conf$$.file |
| 24703 | if test -x conf$$.file >/dev/null 2>&1; then |
| 24704 | as_executable_p="test -x" |
| 24705 | else |
| 24706 | as_executable_p=: |
| 24707 | fi |
| 24708 | rm -f conf$$.file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24709 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24710 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24711 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24712 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24713 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24714 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24715 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24716 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24717 | exec 6>&1 |
| 24718 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24719 | # Save the log message, to keep $[0] and so on meaningful, and to |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24720 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24721 | # values after options handling. |
| 24722 | ac_log=" |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 24723 | This file was extended by Wine $as_me 0.9.18, which was |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 24724 | generated by GNU Autoconf 2.60a. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24725 | |
| 24726 | CONFIG_FILES = $CONFIG_FILES |
| 24727 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 24728 | CONFIG_LINKS = $CONFIG_LINKS |
| 24729 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24730 | $ $0 $@ |
| 24731 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24732 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 24733 | " |
| 24734 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24735 | _ACEOF |
| 24736 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24737 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24738 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24739 | config_files="$ac_config_files" |
| 24740 | config_headers="$ac_config_headers" |
| 24741 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24742 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24743 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24744 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24745 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24746 | ac_cs_usage="\ |
| 24747 | \`$as_me' instantiates files from templates according to the |
| 24748 | current configuration. |
| 24749 | |
| 24750 | Usage: $0 [OPTIONS] [FILE]... |
| 24751 | |
| 24752 | -h, --help print this help, then exit |
| 24753 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24754 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24755 | -d, --debug don't remove temporary files |
| 24756 | --recheck update $as_me by reconfiguring in the same conditions |
| 24757 | --file=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24758 | instantiate the configuration file FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24759 | --header=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24760 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24761 | |
| 24762 | Configuration files: |
| 24763 | $config_files |
| 24764 | |
| 24765 | Configuration headers: |
| 24766 | $config_headers |
| 24767 | |
| 24768 | Configuration commands: |
| 24769 | $config_commands |
| 24770 | |
| 24771 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 24772 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24773 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24774 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24775 | ac_cs_version="\\ |
Alexandre Julliard | f9cd714 | 2006-07-27 16:55:50 +0200 | [diff] [blame] | 24776 | Wine config.status 0.9.18 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 24777 | configured by $0, generated by GNU Autoconf 2.60a, |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24778 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24779 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24780 | Copyright (C) 2006 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24781 | This config.status script is free software; the Free Software Foundation |
| 24782 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24783 | |
| 24784 | ac_pwd='$ac_pwd' |
| 24785 | srcdir='$srcdir' |
| 24786 | INSTALL='$INSTALL' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24787 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24788 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24789 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24790 | # If no file are specified by the user, then we need to provide default |
| 24791 | # value. By we need to know if files were specified by the user. |
| 24792 | ac_need_defaults=: |
| 24793 | while test $# != 0 |
| 24794 | do |
| 24795 | case $1 in |
| 24796 | --*=*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24797 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 24798 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24799 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24800 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24801 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24802 | ac_option=$1 |
| 24803 | ac_optarg=$2 |
| 24804 | ac_shift=shift |
| 24805 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24806 | esac |
| 24807 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24808 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24809 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24810 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24811 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24812 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 24813 | echo "$ac_cs_version"; exit ;; |
| 24814 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24815 | debug=: ;; |
| 24816 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24817 | $ac_shift |
| 24818 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24819 | ac_need_defaults=false;; |
| 24820 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 24821 | $ac_shift |
| 24822 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24823 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24824 | --he | --h) |
| 24825 | # Conflict between --help and --header |
| 24826 | { echo "$as_me: error: ambiguous option: $1 |
| 24827 | Try \`$0 --help' for more information." >&2 |
| 24828 | { (exit 1); exit 1; }; };; |
| 24829 | --help | --hel | -h ) |
| 24830 | echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24831 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24832 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24833 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 24834 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24835 | # This is an error. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24836 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 24837 | Try \`$0 --help' for more information." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24838 | { (exit 1); exit 1; }; } ;; |
| 24839 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24840 | *) ac_config_targets="$ac_config_targets $1" |
| 24841 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24842 | |
| 24843 | esac |
| 24844 | shift |
| 24845 | done |
| 24846 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24847 | ac_configure_extra_args= |
| 24848 | |
| 24849 | if $ac_cs_silent; then |
| 24850 | exec 6>/dev/null |
| 24851 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24852 | fi |
| 24853 | |
| 24854 | _ACEOF |
| 24855 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24856 | if \$ac_cs_recheck; then |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24857 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24858 | CONFIG_SHELL=$SHELL |
| 24859 | export CONFIG_SHELL |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 24860 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 24861 | fi |
| 24862 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24863 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24864 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24865 | exec 5>>config.log |
| 24866 | { |
| 24867 | echo |
| 24868 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24869 | ## Running $as_me. ## |
| 24870 | _ASBOX |
| 24871 | echo "$ac_log" |
| 24872 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24873 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24874 | _ACEOF |
| 24875 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24876 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24877 | |
| 24878 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24879 | |
| 24880 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 24881 | for ac_config_target in $ac_config_targets |
| 24882 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24883 | case $ac_config_target in |
| 24884 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 24885 | "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 24886 | "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
| 24887 | "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 24888 | "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 24889 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 24890 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 24891 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 24892 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 24893 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
| 24894 | "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
| 24895 | "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;; |
| 24896 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 24897 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 24898 | "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 24899 | "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;; |
| 24900 | "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
| 24901 | "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
| 24902 | "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;; |
| 24903 | "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;; |
| 24904 | "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;; |
| 24905 | "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;; |
| 24906 | "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 24907 | "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
| 24908 | "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
| 24909 | "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;; |
| 24910 | "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;; |
| 24911 | "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;; |
| 24912 | "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;; |
| 24913 | "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Aric Stewart | 9c3b12b | 2006-07-13 14:16:59 -0500 | [diff] [blame] | 24914 | "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24915 | "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
| 24916 | "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
| 24917 | "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;; |
Detlef Riekenberg | 955fe0d | 2006-07-03 22:55:53 +0200 | [diff] [blame] | 24918 | "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;; |
Detlef Riekenberg | 5640b56 | 2006-06-20 06:12:36 +0200 | [diff] [blame] | 24919 | "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24920 | "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 24921 | "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
| 24922 | "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;; |
| 24923 | "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;; |
Maarten Lankhorst | d2ee387 | 2006-06-28 16:51:41 +0200 | [diff] [blame] | 24924 | "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24925 | "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;; |
| 24926 | "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
| 24927 | "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;; |
| 24928 | "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; |
| 24929 | "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;; |
| 24930 | "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
| 24931 | "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;; |
| 24932 | "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
| 24933 | "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;; |
| 24934 | "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;; |
| 24935 | "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 24936 | "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 24937 | "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;; |
| 24938 | "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 24939 | "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
| 24940 | "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;; |
| 24941 | "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
| 24942 | "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 24943 | "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 24944 | "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 24945 | "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 24946 | "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 24947 | "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 24948 | "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
| 24949 | "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
| 24950 | "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
| 24951 | "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;; |
| 24952 | "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;; |
| 24953 | "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 24954 | "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
| 24955 | "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;; |
| 24956 | "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
| 24957 | "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
| 24958 | "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
| 24959 | "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;; |
| 24960 | "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;; |
| 24961 | "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;; |
| 24962 | "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;; |
| 24963 | "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; |
| 24964 | "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
| 24965 | "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
| 24966 | "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 24967 | "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;; |
| 24968 | "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;; |
| 24969 | "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; |
Mike McCormack | b732e9b | 2006-06-06 19:26:24 +0900 | [diff] [blame] | 24970 | "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;; |
Mike McCormack | a430db9 | 2006-08-02 02:19:15 +0900 | [diff] [blame] | 24971 | "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24972 | "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;; |
| 24973 | "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 24974 | "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;; |
| 24975 | "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;; |
| 24976 | "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 24977 | "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
Mike McCormack | 4d3877b | 2006-07-11 11:13:18 +0900 | [diff] [blame] | 24978 | "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;; |
| 24979 | "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 24980 | "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
| 24981 | "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; |
| 24982 | "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;; |
| 24983 | "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
| 24984 | "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
| 24985 | "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;; |
| 24986 | "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;; |
| 24987 | "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 24988 | "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; |
| 24989 | "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;; |
| 24990 | "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;; |
| 24991 | "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;; |
| 24992 | "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;; |
| 24993 | "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;; |
| 24994 | "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;; |
| 24995 | "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;; |
| 24996 | "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;; |
| 24997 | "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;; |
| 24998 | "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 24999 | "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;; |
| 25000 | "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;; |
| 25001 | "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;; |
| 25002 | "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;; |
| 25003 | "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;; |
| 25004 | "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;; |
| 25005 | "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;; |
| 25006 | "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 25007 | "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;; |
| 25008 | "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;; |
| 25009 | "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;; |
| 25010 | "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;; |
| 25011 | "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; |
| 25012 | "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;; |
| 25013 | "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
| 25014 | "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;; |
| 25015 | "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
| 25016 | "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
| 25017 | "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
| 25018 | "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
| 25019 | "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
| 25020 | "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;; |
| 25021 | "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
| 25022 | "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;; |
| 25023 | "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;; |
| 25024 | "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;; |
| 25025 | "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; |
| 25026 | "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;; |
| 25027 | "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;; |
| 25028 | "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
| 25029 | "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
| 25030 | "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;; |
| 25031 | "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
| 25032 | "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
| 25033 | "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;; |
| 25034 | "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;; |
| 25035 | "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 25036 | "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;; |
| 25037 | "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 25038 | "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;; |
| 25039 | "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; |
| 25040 | "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
| 25041 | "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
| 25042 | "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;; |
| 25043 | "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 25044 | "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 25045 | "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;; |
| 25046 | "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 25047 | "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;; |
| 25048 | "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 25049 | "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; |
| 25050 | "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 25051 | "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 25052 | "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;; |
Mike McCormack | defbc49 | 2006-07-07 18:21:36 +0900 | [diff] [blame] | 25053 | "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25054 | "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 25055 | "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;; |
| 25056 | "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;; |
| 25057 | "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;; |
| 25058 | "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
| 25059 | "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
| 25060 | "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; |
| 25061 | "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;; |
| 25062 | "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;; |
| 25063 | "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;; |
| 25064 | "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;; |
| 25065 | "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;; |
| 25066 | "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;; |
| 25067 | "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;; |
| 25068 | "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;; |
| 25069 | "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 25070 | "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 25071 | "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;; |
| 25072 | "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;; |
| 25073 | "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 25074 | "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;; |
| 25075 | "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
| 25076 | "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
| 25077 | "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 25078 | "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
| 25079 | "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
| 25080 | "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
| 25081 | "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;; |
| 25082 | "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;; |
| 25083 | "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;; |
| 25084 | "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 25085 | "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;; |
| 25086 | "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 25087 | "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;; |
| 25088 | "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; |
| 25089 | "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 25090 | "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
| 25091 | "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
| 25092 | "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
| 25093 | "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Mike McCormack | a6ea0f6 | 2006-06-05 14:01:10 +0900 | [diff] [blame] | 25094 | "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25095 | "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;; |
| 25096 | "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;; |
| 25097 | "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;; |
| 25098 | "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;; |
Paul Vriens | 569a452 | 2006-06-13 14:16:58 +0200 | [diff] [blame] | 25099 | "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25100 | "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;; |
| 25101 | "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;; |
| 25102 | "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 25103 | "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;; |
| 25104 | "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;; |
| 25105 | "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;; |
| 25106 | "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;; |
| 25107 | "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;; |
| 25108 | "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;; |
| 25109 | "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;; |
| 25110 | "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;; |
| 25111 | "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;; |
| 25112 | "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 25113 | "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;; |
| 25114 | "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;; |
Alexandre Julliard | bdb4fab | 2006-06-16 09:57:50 +0200 | [diff] [blame] | 25115 | "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25116 | "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
| 25117 | "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
| 25118 | "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 25119 | "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 25120 | "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
| 25121 | "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
| 25122 | "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
| 25123 | "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 25124 | "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25125 | "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;; |
| 25126 | "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
| 25127 | "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
| 25128 | "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 25129 | "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;; |
| 25130 | "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;; |
| 25131 | "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;; |
| 25132 | "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
| 25133 | "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 25134 | "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;; |
| 25135 | "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;; |
| 25136 | "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 25137 | "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;; |
| 25138 | "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;; |
| 25139 | "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 25140 | "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25141 | "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
| 25142 | "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; |
| 25143 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 25144 | "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 25145 | "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25146 | "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
| 25147 | "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
| 25148 | "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; |
| 25149 | "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 25150 | "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 25151 | "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 25152 | "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
| 25153 | "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;; |
| 25154 | "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
| 25155 | "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;; |
| 25156 | "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;; |
| 25157 | "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;; |
| 25158 | "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;; |
| 25159 | "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;; |
| 25160 | "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
Piotr Caban | 68f590c | 2006-06-14 19:50:28 +0200 | [diff] [blame] | 25161 | "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25162 | "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 25163 | "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
| 25164 | "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
| 25165 | "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
| 25166 | "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
| 25167 | "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
| 25168 | "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;; |
| 25169 | "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 25170 | "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 25171 | "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
| 25172 | "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
| 25173 | "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;; |
| 25174 | "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
| 25175 | "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
| 25176 | "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
| 25177 | "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
| 25178 | "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; |
| 25179 | "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
| 25180 | "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
| 25181 | "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
| 25182 | "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
| 25183 | "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 25184 | "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
| 25185 | "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;; |
| 25186 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 25187 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 25188 | "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
| 25189 | "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 25190 | "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 25191 | "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 25192 | "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; |
| 25193 | "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 25194 | "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
| 25195 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25196 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25197 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 25198 | { (exit 1); exit 1; }; };; |
| 25199 | esac |
| 25200 | done |
| 25201 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25202 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25203 | # If the user did not use the arguments to specify the items to instantiate, |
| 25204 | # then the envvar interface is used. Set only those that are not. |
| 25205 | # We use the long form for the default assignment because of an extremely |
| 25206 | # bizarre bug on SunOS 4.1.3. |
| 25207 | if $ac_need_defaults; then |
| 25208 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 25209 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 25210 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 25211 | fi |
| 25212 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25213 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25214 | # simply because there is no reason against having it here, and in addition, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25215 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25216 | # Hook for its removal unless debugging. |
| 25217 | # Note that there is a small window in which the directory will not be cleaned: |
| 25218 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25219 | $debug || |
| 25220 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25221 | tmp= |
| 25222 | trap 'exit_status=$? |
| 25223 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 25224 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25225 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 25226 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25227 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25228 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25229 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25230 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25231 | test -n "$tmp" && test -d "$tmp" |
| 25232 | } || |
| 25233 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25234 | tmp=./conf$$-$RANDOM |
| 25235 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25236 | } || |
| 25237 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25238 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25239 | { (exit 1); exit 1; } |
| 25240 | } |
| 25241 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25242 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25243 | # Set up the sed scripts for CONFIG_FILES section. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25244 | # |
| 25245 | |
| 25246 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 25247 | # This happens for instance when ./config.status config.h |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25248 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25249 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25250 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25251 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25252 | # Create sed commands to just substitute file output variables. |
| 25253 | |
| 25254 | # Remaining file output variables are in a fragment that also has non-file |
| 25255 | # output varibles. |
| 25256 | |
| 25257 | |
| 25258 | |
| 25259 | ac_delim='%!_!# ' |
| 25260 | for ac_last_try in false false false false false :; do |
| 25261 | cat >conf$$subs.sed <<_ACEOF |
| 25262 | SHELL!$SHELL$ac_delim |
| 25263 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 25264 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 25265 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 25266 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 25267 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 25268 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 25269 | exec_prefix!$exec_prefix$ac_delim |
| 25270 | prefix!$prefix$ac_delim |
| 25271 | program_transform_name!$program_transform_name$ac_delim |
| 25272 | bindir!$bindir$ac_delim |
| 25273 | sbindir!$sbindir$ac_delim |
| 25274 | libexecdir!$libexecdir$ac_delim |
| 25275 | datarootdir!$datarootdir$ac_delim |
| 25276 | datadir!$datadir$ac_delim |
| 25277 | sysconfdir!$sysconfdir$ac_delim |
| 25278 | sharedstatedir!$sharedstatedir$ac_delim |
| 25279 | localstatedir!$localstatedir$ac_delim |
| 25280 | includedir!$includedir$ac_delim |
| 25281 | oldincludedir!$oldincludedir$ac_delim |
| 25282 | docdir!$docdir$ac_delim |
| 25283 | infodir!$infodir$ac_delim |
| 25284 | htmldir!$htmldir$ac_delim |
| 25285 | dvidir!$dvidir$ac_delim |
| 25286 | pdfdir!$pdfdir$ac_delim |
| 25287 | psdir!$psdir$ac_delim |
| 25288 | libdir!$libdir$ac_delim |
| 25289 | localedir!$localedir$ac_delim |
| 25290 | mandir!$mandir$ac_delim |
| 25291 | DEFS!$DEFS$ac_delim |
| 25292 | ECHO_C!$ECHO_C$ac_delim |
| 25293 | ECHO_N!$ECHO_N$ac_delim |
| 25294 | ECHO_T!$ECHO_T$ac_delim |
| 25295 | LIBS!$LIBS$ac_delim |
| 25296 | build_alias!$build_alias$ac_delim |
| 25297 | host_alias!$host_alias$ac_delim |
| 25298 | target_alias!$target_alias$ac_delim |
| 25299 | build!$build$ac_delim |
| 25300 | build_cpu!$build_cpu$ac_delim |
| 25301 | build_vendor!$build_vendor$ac_delim |
| 25302 | build_os!$build_os$ac_delim |
| 25303 | host!$host$ac_delim |
| 25304 | host_cpu!$host_cpu$ac_delim |
| 25305 | host_vendor!$host_vendor$ac_delim |
| 25306 | host_os!$host_os$ac_delim |
| 25307 | WIN16_FILES!$WIN16_FILES$ac_delim |
| 25308 | WIN16_INSTALL!$WIN16_INSTALL$ac_delim |
| 25309 | SET_MAKE!$SET_MAKE$ac_delim |
| 25310 | CC!$CC$ac_delim |
| 25311 | CFLAGS!$CFLAGS$ac_delim |
| 25312 | LDFLAGS!$LDFLAGS$ac_delim |
| 25313 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 25314 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 25315 | EXEEXT!$EXEEXT$ac_delim |
| 25316 | OBJEXT!$OBJEXT$ac_delim |
| 25317 | CXX!$CXX$ac_delim |
| 25318 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 25319 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 25320 | CPPBIN!$CPPBIN$ac_delim |
| 25321 | TOOLSDIR!$TOOLSDIR$ac_delim |
| 25322 | XMKMF!$XMKMF$ac_delim |
| 25323 | CPP!$CPP$ac_delim |
| 25324 | X_CFLAGS!$X_CFLAGS$ac_delim |
| 25325 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
| 25326 | X_LIBS!$X_LIBS$ac_delim |
| 25327 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
| 25328 | LEX!$LEX$ac_delim |
| 25329 | LEXLIB!$LEXLIB$ac_delim |
| 25330 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 25331 | XLEX!$XLEX$ac_delim |
| 25332 | BISON!$BISON$ac_delim |
| 25333 | AS!$AS$ac_delim |
| 25334 | ac_ct_AS!$ac_ct_AS$ac_delim |
| 25335 | LD!$LD$ac_delim |
| 25336 | AR!$AR$ac_delim |
| 25337 | RANLIB!$RANLIB$ac_delim |
| 25338 | STRIP!$STRIP$ac_delim |
| 25339 | WINDRES!$WINDRES$ac_delim |
| 25340 | LN_S!$LN_S$ac_delim |
| 25341 | _ACEOF |
| 25342 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25343 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25344 | break |
| 25345 | elif $ac_last_try; then |
| 25346 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25347 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 25348 | { (exit 1); exit 1; }; } |
| 25349 | else |
| 25350 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25351 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25352 | done |
| 25353 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25354 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25355 | if test -n "$ac_eof"; then |
| 25356 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25357 | ac_eof=`expr $ac_eof + 1` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25358 | fi |
| 25359 | |
| 25360 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25361 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 25362 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 25363 | /^[ ]*@MAKE_RULES@[ ]*$/{ |
| 25364 | r $MAKE_RULES |
| 25365 | d |
| 25366 | } |
| 25367 | /^[ ]*@MAKE_DLL_RULES@[ ]*$/{ |
| 25368 | r $MAKE_DLL_RULES |
| 25369 | d |
| 25370 | } |
| 25371 | /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{ |
| 25372 | r $MAKE_IMPLIB_RULES |
| 25373 | d |
| 25374 | } |
| 25375 | /^[ ]*@MAKE_TEST_RULES@[ ]*$/{ |
| 25376 | r $MAKE_TEST_RULES |
| 25377 | d |
| 25378 | } |
| 25379 | /^[ ]*@MAKE_LIB_RULES@[ ]*$/{ |
| 25380 | r $MAKE_LIB_RULES |
| 25381 | d |
| 25382 | } |
| 25383 | /^[ ]*@MAKE_PROG_RULES@[ ]*$/{ |
| 25384 | r $MAKE_PROG_RULES |
| 25385 | d |
| 25386 | } |
| 25387 | _ACEOF |
| 25388 | sed ' |
| 25389 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25390 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25391 | :n |
| 25392 | t n |
| 25393 | s/'"$ac_delim"'$/,g/; t |
| 25394 | s/$/\\/; p |
| 25395 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25396 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25397 | rm -f conf$$subs.sed |
| 25398 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25399 | CEOF$ac_eof |
| 25400 | _ACEOF |
| 25401 | |
| 25402 | |
| 25403 | ac_delim='%!_!# ' |
| 25404 | for ac_last_try in false false false false false :; do |
| 25405 | cat >conf$$subs.sed <<_ACEOF |
| 25406 | LN!$LN$ac_delim |
| 25407 | GREP!$GREP$ac_delim |
| 25408 | EGREP!$EGREP$ac_delim |
| 25409 | LDCONFIG!$LDCONFIG$ac_delim |
| 25410 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 25411 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 25412 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 25413 | LINT!$LINT$ac_delim |
| 25414 | LINTFLAGS!$LINTFLAGS$ac_delim |
| 25415 | FONTFORGE!$FONTFORGE$ac_delim |
| 25416 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 25417 | PRELINK!$PRELINK$ac_delim |
| 25418 | LIBPTHREAD!$LIBPTHREAD$ac_delim |
| 25419 | XLIB!$XLIB$ac_delim |
| 25420 | XFILES!$XFILES$ac_delim |
| 25421 | OPENGLFILES!$OPENGLFILES$ac_delim |
| 25422 | GLU32FILES!$GLU32FILES$ac_delim |
| 25423 | OPENGL_LIBS!$OPENGL_LIBS$ac_delim |
| 25424 | GLUT_LIBS!$GLUT_LIBS$ac_delim |
| 25425 | GLUT32FILES!$GLUT32FILES$ac_delim |
| 25426 | NASLIBS!$NASLIBS$ac_delim |
| 25427 | XML2LIBS!$XML2LIBS$ac_delim |
| 25428 | XML2INCL!$XML2INCL$ac_delim |
| 25429 | XSLTLIBS!$XSLTLIBS$ac_delim |
| 25430 | XSLTINCL!$XSLTINCL$ac_delim |
| 25431 | HALINCL!$HALINCL$ac_delim |
| 25432 | CURSESLIBS!$CURSESLIBS$ac_delim |
| 25433 | sane_devel!$sane_devel$ac_delim |
| 25434 | SANELIBS!$SANELIBS$ac_delim |
| 25435 | SANEINCL!$SANEINCL$ac_delim |
| 25436 | gphoto2_devel!$gphoto2_devel$ac_delim |
| 25437 | gphoto2port_devel!$gphoto2port_devel$ac_delim |
| 25438 | GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim |
| 25439 | GPHOTO2INCL!$GPHOTO2INCL$ac_delim |
| 25440 | ICULIBS!$ICULIBS$ac_delim |
| 25441 | RESOLVLIBS!$RESOLVLIBS$ac_delim |
| 25442 | LCMSLIBS!$LCMSLIBS$ac_delim |
| 25443 | LDAPLIBS!$LDAPLIBS$ac_delim |
| 25444 | FREETYPELIBS!$FREETYPELIBS$ac_delim |
| 25445 | FREETYPEINCL!$FREETYPEINCL$ac_delim |
| 25446 | ft_devel!$ft_devel$ac_delim |
| 25447 | ft_devel2!$ft_devel2$ac_delim |
| 25448 | FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim |
| 25449 | ARTSCCONFIG!$ARTSCCONFIG$ac_delim |
| 25450 | ARTSLIBS!$ARTSLIBS$ac_delim |
| 25451 | ARTSINCL!$ARTSINCL$ac_delim |
| 25452 | ESDCONFIG!$ESDCONFIG$ac_delim |
| 25453 | ESDLIBS!$ESDLIBS$ac_delim |
| 25454 | ESDINCL!$ESDINCL$ac_delim |
| 25455 | ALSALIBS!$ALSALIBS$ac_delim |
| 25456 | AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim |
| 25457 | EXTRACFLAGS!$EXTRACFLAGS$ac_delim |
| 25458 | BUILTINFLAG!$BUILTINFLAG$ac_delim |
| 25459 | DLLEXT!$DLLEXT$ac_delim |
| 25460 | DLLFLAGS!$DLLFLAGS$ac_delim |
| 25461 | DLLIBS!$DLLIBS$ac_delim |
| 25462 | LDSHARED!$LDSHARED$ac_delim |
| 25463 | LDDLLFLAGS!$LDDLLFLAGS$ac_delim |
| 25464 | LIBEXT!$LIBEXT$ac_delim |
| 25465 | IMPLIBEXT!$IMPLIBEXT$ac_delim |
| 25466 | DLLTOOL!$DLLTOOL$ac_delim |
| 25467 | DLLWRAP!$DLLWRAP$ac_delim |
| 25468 | LDEXECFLAGS!$LDEXECFLAGS$ac_delim |
| 25469 | LDEXERPATH!$LDEXERPATH$ac_delim |
| 25470 | LDDLLRPATH!$LDDLLRPATH$ac_delim |
| 25471 | COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim |
| 25472 | IOKITLIB!$IOKITLIB$ac_delim |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 25473 | COREAUDIO!$COREAUDIO$ac_delim |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25474 | CROSSTEST!$CROSSTEST$ac_delim |
| 25475 | CROSSCC!$CROSSCC$ac_delim |
| 25476 | CROSSWINDRES!$CROSSWINDRES$ac_delim |
| 25477 | LDPATH!$LDPATH$ac_delim |
| 25478 | CRTLIBS!$CRTLIBS$ac_delim |
| 25479 | SOCKETLIBS!$SOCKETLIBS$ac_delim |
| 25480 | MAIN_BINARY!$MAIN_BINARY$ac_delim |
| 25481 | EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim |
| 25482 | LDD!$LDD$ac_delim |
| 25483 | LIBOBJS!$LIBOBJS$ac_delim |
| 25484 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 25485 | _ACEOF |
| 25486 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25487 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25488 | break |
| 25489 | elif $ac_last_try; then |
| 25490 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25491 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 25492 | { (exit 1); exit 1; }; } |
| 25493 | else |
| 25494 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 25495 | fi |
| 25496 | done |
| 25497 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25498 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25499 | if test -n "$ac_eof"; then |
| 25500 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25501 | ac_eof=`expr $ac_eof + 1` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25502 | fi |
| 25503 | |
| 25504 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25505 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 25506 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 25507 | _ACEOF |
| 25508 | sed ' |
| 25509 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25510 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25511 | :n |
| 25512 | t n |
| 25513 | s/'"$ac_delim"'$/,g/; t |
| 25514 | s/$/\\/; p |
| 25515 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25516 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25517 | rm -f conf$$subs.sed |
| 25518 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25519 | :end |
| 25520 | s/|#_!!_#|//g |
| 25521 | CEOF$ac_eof |
| 25522 | _ACEOF |
| 25523 | |
| 25524 | |
| 25525 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 25526 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 25527 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 25528 | # (actually we leave an empty line to preserve line numbers). |
| 25529 | if test "x$srcdir" = x.; then |
| 25530 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 25531 | s/:*\$(srcdir):*/:/ |
| 25532 | s/:*\${srcdir}:*/:/ |
| 25533 | s/:*@srcdir@:*/:/ |
| 25534 | s/^\([^=]*=[ ]*\):*/\1/ |
| 25535 | s/:*$// |
| 25536 | s/^[^=]*=[ ]*$// |
| 25537 | }' |
| 25538 | fi |
| 25539 | |
| 25540 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25541 | fi # test -n "$CONFIG_FILES" |
| 25542 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25543 | |
| 25544 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 25545 | do |
| 25546 | case $ac_tag in |
| 25547 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 25548 | esac |
| 25549 | case $ac_mode$ac_tag in |
| 25550 | :[FHL]*:*);; |
| 25551 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 25552 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 25553 | { (exit 1); exit 1; }; };; |
| 25554 | :[FH]-) ac_tag=-:-;; |
| 25555 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 25556 | esac |
| 25557 | ac_save_IFS=$IFS |
| 25558 | IFS=: |
| 25559 | set x $ac_tag |
| 25560 | IFS=$ac_save_IFS |
| 25561 | shift |
| 25562 | ac_file=$1 |
| 25563 | shift |
| 25564 | |
| 25565 | case $ac_mode in |
| 25566 | :L) ac_source=$1;; |
| 25567 | :[FH]) |
| 25568 | ac_file_inputs= |
| 25569 | for ac_f |
| 25570 | do |
| 25571 | case $ac_f in |
| 25572 | -) ac_f="$tmp/stdin";; |
| 25573 | *) # Look for the file first in the build tree, then in the source tree |
| 25574 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 25575 | # because $ac_f cannot contain `:'. |
| 25576 | test -f "$ac_f" || |
| 25577 | case $ac_f in |
| 25578 | [\\/$]*) false;; |
| 25579 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 25580 | esac || |
| 25581 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 25582 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 25583 | { (exit 1); exit 1; }; };; |
| 25584 | esac |
| 25585 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 25586 | done |
| 25587 | |
| 25588 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 25589 | # use $as_me), people would be surprised to read: |
| 25590 | # /* config.h. Generated by config.status. */ |
| 25591 | configure_input="Generated from "`IFS=: |
| 25592 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 25593 | if test x"$ac_file" != x-; then |
| 25594 | configure_input="$ac_file. $configure_input" |
| 25595 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 25596 | echo "$as_me: creating $ac_file" >&6;} |
| 25597 | fi |
| 25598 | |
| 25599 | case $ac_tag in |
| 25600 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 25601 | esac |
| 25602 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25603 | esac |
| 25604 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25605 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25606 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25607 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 25608 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25609 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25610 | echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25611 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25612 | s//\1/ |
| 25613 | q |
| 25614 | } |
| 25615 | /^X\(\/\/\)[^/].*/{ |
| 25616 | s//\1/ |
| 25617 | q |
| 25618 | } |
| 25619 | /^X\(\/\/\)$/{ |
| 25620 | s//\1/ |
| 25621 | q |
| 25622 | } |
| 25623 | /^X\(\/\).*/{ |
| 25624 | s//\1/ |
| 25625 | q |
| 25626 | } |
| 25627 | s/.*/./; q'` |
| 25628 | { as_dir="$ac_dir" |
| 25629 | case $as_dir in #( |
| 25630 | -*) as_dir=./$as_dir;; |
| 25631 | esac |
| 25632 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25633 | as_dirs= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25634 | while :; do |
| 25635 | case $as_dir in #( |
| 25636 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 25637 | *) as_qdir=$as_dir;; |
| 25638 | esac |
| 25639 | as_dirs="'$as_qdir' $as_dirs" |
| 25640 | as_dir=`$as_dirname -- "$as_dir" || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25641 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25642 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25643 | X"$as_dir" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25644 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25645 | echo X"$as_dir" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25647 | s//\1/ |
| 25648 | q |
| 25649 | } |
| 25650 | /^X\(\/\/\)[^/].*/{ |
| 25651 | s//\1/ |
| 25652 | q |
| 25653 | } |
| 25654 | /^X\(\/\/\)$/{ |
| 25655 | s//\1/ |
| 25656 | q |
| 25657 | } |
| 25658 | /^X\(\/\).*/{ |
| 25659 | s//\1/ |
| 25660 | q |
| 25661 | } |
| 25662 | s/.*/./; q'` |
| 25663 | test -d "$as_dir" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25664 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25665 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 25666 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 25667 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25668 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25669 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25670 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25671 | case "$ac_dir" in |
| 25672 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25673 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25674 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25675 | # A ".." for each directory in $ac_dir_suffix. |
| 25676 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 25677 | case $ac_top_builddir_sub in |
| 25678 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25679 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 25680 | esac ;; |
| 25681 | esac |
| 25682 | ac_abs_top_builddir=$ac_pwd |
| 25683 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 25684 | # for backward compatibility: |
| 25685 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25686 | |
| 25687 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25688 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25689 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25690 | ac_top_srcdir=$ac_top_builddir_sub |
| 25691 | ac_abs_top_srcdir=$ac_pwd ;; |
| 25692 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25693 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25694 | ac_top_srcdir=$srcdir |
| 25695 | ac_abs_top_srcdir=$srcdir ;; |
| 25696 | *) # Relative name. |
| 25697 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 25698 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 25699 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25700 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25701 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 25702 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25703 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25704 | case $ac_mode in |
| 25705 | :F) |
| 25706 | # |
| 25707 | # CONFIG_FILE |
| 25708 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25709 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25710 | case $INSTALL in |
| 25711 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25712 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 25713 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25714 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25715 | |
| 25716 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25717 | # If the template does not know about datarootdir, expand it. |
| 25718 | # FIXME: This hack should be removed a few years after 2.60. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25719 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25720 | |
| 25721 | case `sed -n '/datarootdir/ { |
| 25722 | p |
| 25723 | q |
| 25724 | } |
| 25725 | /@datadir@/p |
| 25726 | /@docdir@/p |
| 25727 | /@infodir@/p |
| 25728 | /@localedir@/p |
| 25729 | /@mandir@/p |
| 25730 | ' $ac_file_inputs` in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25731 | *datarootdir*) ac_datarootdir_seen=yes;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25732 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 25733 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 25734 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 25735 | _ACEOF |
| 25736 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25737 | ac_datarootdir_hack=' |
| 25738 | s&@datadir@&$datadir&g |
| 25739 | s&@docdir@&$docdir&g |
| 25740 | s&@infodir@&$infodir&g |
| 25741 | s&@localedir@&$localedir&g |
| 25742 | s&@mandir@&$mandir&g |
| 25743 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 25744 | esac |
| 25745 | _ACEOF |
| 25746 | |
| 25747 | # Neutralize VPATH when `$srcdir' = `.'. |
| 25748 | # Shell code in configure.ac might set extrasub. |
| 25749 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25750 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25751 | sed "$ac_vpsub |
| 25752 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25753 | _ACEOF |
| 25754 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25755 | :t |
| 25756 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25757 | s&@configure_input@&$configure_input&;t t |
| 25758 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 25759 | s&@srcdir@&$ac_srcdir&;t t |
| 25760 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 25761 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 25762 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 25763 | s&@builddir@&$ac_builddir&;t t |
| 25764 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 25765 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 25766 | s&@INSTALL@&$ac_INSTALL&;t t |
| 25767 | $ac_datarootdir_hack |
| 25768 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25769 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25770 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 25771 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 25772 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25773 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25774 | which seems to be undefined. Please make sure it is defined." >&5 |
| 25775 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25776 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 25777 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25778 | rm -f "$tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25779 | case $ac_file in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25780 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 25781 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25782 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25783 | ;; |
| 25784 | :H) |
| 25785 | # |
| 25786 | # CONFIG_HEADER |
| 25787 | # |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25788 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25789 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25790 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 25791 | # substitutes the proper values into config.h.in to produce config.h. |
| 25792 | rm -f conftest.defines conftest.tail |
| 25793 | # First, append a space to every undef/define line, to ease matching. |
| 25794 | echo 's/$/ /' >conftest.defines |
| 25795 | # Then, protect against being on the right side of a sed subst, or in |
| 25796 | # an unquoted here document, in config.status. If some macros were |
| 25797 | # called several times there might be several #defines for the same |
| 25798 | # symbol, which is useless. But do not sort them, since the last |
| 25799 | # AC_DEFINE must be honored. |
| 25800 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25801 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 25802 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 25803 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 25804 | # just an empty string. |
| 25805 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 25806 | ac_dB='\\)[ (].*,\\1define\\2' |
| 25807 | ac_dC=' ' |
| 25808 | ac_dD=' ,' |
| 25809 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25810 | uniq confdefs.h | |
| 25811 | sed -n ' |
| 25812 | t rset |
| 25813 | :rset |
| 25814 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 25815 | t ok |
| 25816 | d |
| 25817 | :ok |
| 25818 | s/[\\&,]/\\&/g |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25819 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 25820 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25821 | ' >>conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25822 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25823 | # Remove the space that was appended to ease matching. |
| 25824 | # Then replace #undef with comments. This is necessary, for |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25825 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 25826 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25827 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 25828 | echo 's/ $// |
| 25829 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25830 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25831 | # Break up conftest.defines: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25832 | ac_max_sed_lines=50 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25833 | |
| 25834 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 25835 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 25836 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 25837 | # et cetera. |
| 25838 | ac_in='$ac_file_inputs' |
| 25839 | ac_out='"$tmp/out1"' |
| 25840 | ac_nxt='"$tmp/out2"' |
| 25841 | |
| 25842 | while : |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25843 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25844 | # Write a here document: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25845 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25846 | # First, check the format of the line: |
| 25847 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 25848 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 25849 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25850 | b |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 25851 | :def |
| 25852 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25853 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25854 | echo 'CEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25855 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 25856 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 25857 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 25858 | grep . conftest.tail >/dev/null || break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25859 | rm -f conftest.defines |
| 25860 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25861 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25862 | rm -f conftest.defines conftest.tail |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 25863 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25864 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25865 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25866 | if test x"$ac_file" != x-; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25867 | echo "/* $configure_input */" >"$tmp/config.h" |
| 25868 | cat "$ac_result" >>"$tmp/config.h" |
| 25869 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25870 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25871 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 25872 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25873 | rm -f $ac_file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25874 | mv "$tmp/config.h" $ac_file |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25875 | fi |
| 25876 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25877 | echo "/* $configure_input */" |
| 25878 | cat "$ac_result" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25879 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25880 | rm -f "$tmp/out12" |
| 25881 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25882 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25883 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 25884 | echo "$as_me: executing $ac_file commands" >&6;} |
| 25885 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25886 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25887 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 25888 | |
| 25889 | case $ac_file$ac_mode in |
| 25890 | "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 25891 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 25892 | "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 25893 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
| 25894 | "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 25895 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
| 25896 | "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 25897 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
| 25898 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5 |
| 25899 | echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;; |
| 25900 | "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 25901 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
| 25902 | |
| 25903 | esac |
| 25904 | done # for ac_tag |
| 25905 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 25906 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25907 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25908 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25909 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25910 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25911 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25912 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25913 | # configure is writing to config.log, and then calls config.status. |
| 25914 | # config.status does its own redirection, appending to config.log. |
| 25915 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25916 | # by configure, so config.status won't be able to write to it; its |
| 25917 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25918 | # effectively closing config.log, so it can be properly (re)opened and |
| 25919 | # appended to by config.status. When coming back to configure, we |
| 25920 | # need to make the FD available again. |
| 25921 | if test "$no_create" != yes; then |
| 25922 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25923 | ac_config_status_args= |
| 25924 | test "$silent" = yes && |
| 25925 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25926 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 25927 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25928 | exec 5>>config.log |
| 25929 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25930 | # would make configure fail if this is the last instruction. |
| 25931 | $ac_cs_success || { (exit 1); exit 1; } |
| 25932 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 25933 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 25934 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 25935 | if test "$have_x" = "no" |
| 25936 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25937 | echo >&2 |
| 25938 | { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5 |
| 25939 | echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;} |
| 25940 | { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5 |
| 25941 | echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;} |
| 25942 | { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5 |
| 25943 | echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;} |
| 25944 | { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5 |
| 25945 | echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;} |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 25946 | fi |
| 25947 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 25948 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 25949 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25950 | echo >&2 |
| 25951 | { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5 |
| 25952 | echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;} |
| 25953 | { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5 |
| 25954 | echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;} |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 25955 | fi |
| 25956 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 25957 | if test "$wine_cv_msg_freetype" = "yes" |
| 25958 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25959 | echo >&2 |
| 25960 | { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5 |
| 25961 | echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;} |
| 25962 | { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5 |
| 25963 | echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;} |
| 25964 | { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5 |
| 25965 | echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;} |
| 25966 | { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5 |
| 25967 | echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;} |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 25968 | fi |
| 25969 | |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25970 | if test -z "$FONTSSUBDIRS" |
Mike McCormack | 8f6aa41 | 2006-04-04 13:36:51 +0900 | [diff] [blame] | 25971 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25972 | echo >&2 |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25973 | if test "$FONTFORGE" = "false" |
| 25974 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25975 | { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5 |
| 25976 | echo "$as_me: WARNING: FontForge is missing." >&2;} |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25977 | else |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25978 | { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5 |
| 25979 | echo "$as_me: WARNING: FreeType is missing." >&2;} |
Alexandre Julliard | baf3f5d | 2006-06-08 11:26:44 +0200 | [diff] [blame] | 25980 | fi |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25981 | { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5 |
| 25982 | echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;} |
Mike McCormack | 8f6aa41 | 2006-04-04 13:36:51 +0900 | [diff] [blame] | 25983 | fi |
| 25984 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 25985 | if test -z "$ALSALIBS" -a \ |
| 25986 | -z "$ARTSC_LIBS" -a \ |
| 25987 | -z "$AUDIOIOLIBS" -a \ |
| 25988 | -z "$NASLIBS" -a \ |
| 25989 | -z "$ESD_LIBS" -a \ |
| 25990 | -z "$ac_cv_lib_soname_jack" -a \ |
| 25991 | "$ac_cv_header_sys_soundcard_h" != "yes" -a \ |
| 25992 | "$ac_cv_header_machine_soundcard_h" != "yes" -a \ |
| 25993 | "$ac_cv_header_soundcard_h" != "yes" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 25994 | then |
Alexandre Julliard | bb7fe68 | 2006-06-15 16:52:32 +0200 | [diff] [blame] | 25995 | echo >&2 |
| 25996 | { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5 |
| 25997 | echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;} |
| 25998 | { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5 |
| 25999 | echo "$as_me: WARNING: The currently supported sound systems are:" >&2;} |
| 26000 | { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5 |
| 26001 | echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;} |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 26002 | fi |
| 26003 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 26004 | echo |
Vincent Béron | 5606d10 | 2004-08-19 00:03:45 +0000 | [diff] [blame] | 26005 | echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 26006 | echo |
| 26007 | |