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 | 24e7b5f | 2011-06-10 20:08:11 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.68 for Wine 1.3.22. |
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 | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 7 | # |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 10 | # Foundation, Inc. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 11 | # |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 27 | setopt NO_GLOB_SUBST |
| 28 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 34 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 35 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 36 | |
| 37 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 62 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 83 | fi |
| 84 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 94 | as_myself= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 95 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 104 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 105 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 115 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 116 | fi |
| 117 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 135 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
| 139 | if test "x$CONFIG_SHELL" = x; then |
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 141 | emulate sh |
| 142 | NULLCMD=: |
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 144 | # is contrary to our usage. Disable this feature. |
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 146 | setopt NO_GLOB_SUBST |
| 147 | else |
| 148 | case \`(set -o) 2>/dev/null\` in #( |
| 149 | *posix*) : |
| 150 | set -o posix ;; #( |
| 151 | *) : |
| 152 | ;; |
| 153 | esac |
| 154 | fi |
| 155 | " |
| 156 | as_required="as_fn_return () { (exit \$1); } |
| 157 | as_fn_success () { as_fn_return 0; } |
| 158 | as_fn_failure () { as_fn_return 1; } |
| 159 | as_fn_ret_success () { return 0; } |
| 160 | as_fn_ret_failure () { return 1; } |
| 161 | |
| 162 | exitcode=0 |
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 168 | |
| 169 | else |
| 170 | exitcode=1; echo positional parameters were not saved. |
| 171 | fi |
| 172 | test x\$exitcode = x0 || exit 1" |
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 177 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 178 | if (eval "$as_required") 2>/dev/null; then : |
| 179 | as_have_required=yes |
| 180 | else |
| 181 | as_have_required=no |
| 182 | fi |
| 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 184 | |
| 185 | else |
| 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 187 | as_found=false |
| 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 189 | do |
| 190 | IFS=$as_save_IFS |
| 191 | test -z "$as_dir" && as_dir=. |
| 192 | as_found=: |
| 193 | case $as_dir in #( |
| 194 | /*) |
| 195 | for as_base in sh bash ksh sh5; do |
| 196 | # Try only shells that exist, to save several forks. |
| 197 | as_shell=$as_dir/$as_base |
| 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 200 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 202 | break 2 |
| 203 | fi |
| 204 | fi |
| 205 | done;; |
| 206 | esac |
| 207 | as_found=false |
| 208 | done |
| 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 211 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 212 | fi; } |
| 213 | IFS=$as_save_IFS |
| 214 | |
| 215 | |
| 216 | if test "x$CONFIG_SHELL" != x; then : |
| 217 | # We cannot yet assume a decent shell, so we have to provide a |
| 218 | # neutralization value for shells without unset; and this also |
| 219 | # works around shells that cannot unset nonexistent variables. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 220 | # Preserve -v and -x to the replacement shell. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 221 | BASH_ENV=/dev/null |
| 222 | ENV=/dev/null |
| 223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 224 | export CONFIG_SHELL |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 225 | case $- in # (((( |
| 226 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 227 | *v* ) as_opts=-v ;; |
| 228 | *x* ) as_opts=-x ;; |
| 229 | * ) as_opts= ;; |
| 230 | esac |
| 231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 232 | fi |
| 233 | |
| 234 | if test x$as_have_required = xno; then : |
| 235 | $as_echo "$0: This script requires a shell more modern than all" |
| 236 | $as_echo "$0: the shells that I found on your system." |
| 237 | if test x${ZSH_VERSION+set} = xset ; then |
| 238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 240 | else |
| 241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 242 | $0: wine-devel@winehq.org about your system, including any |
| 243 | $0: error possibly output before this message. Then install |
| 244 | $0: a modern shell, or manually run the script under such a |
| 245 | $0: shell if you do have one." |
| 246 | fi |
| 247 | exit 1 |
| 248 | fi |
| 249 | fi |
| 250 | fi |
| 251 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 252 | export SHELL |
| 253 | # Unset more variables known to interfere with behavior of common tools. |
| 254 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 255 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 256 | |
| 257 | ## --------------------- ## |
| 258 | ## M4sh Shell Functions. ## |
| 259 | ## --------------------- ## |
| 260 | # as_fn_unset VAR |
| 261 | # --------------- |
| 262 | # Portably unset VAR. |
| 263 | as_fn_unset () |
| 264 | { |
| 265 | { eval $1=; unset $1;} |
| 266 | } |
| 267 | as_unset=as_fn_unset |
| 268 | |
| 269 | # as_fn_set_status STATUS |
| 270 | # ----------------------- |
| 271 | # Set $? to STATUS, without forking. |
| 272 | as_fn_set_status () |
| 273 | { |
| 274 | return $1 |
| 275 | } # as_fn_set_status |
| 276 | |
| 277 | # as_fn_exit STATUS |
| 278 | # ----------------- |
| 279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 280 | as_fn_exit () |
| 281 | { |
| 282 | set +e |
| 283 | as_fn_set_status $1 |
| 284 | exit $1 |
| 285 | } # as_fn_exit |
| 286 | |
| 287 | # as_fn_mkdir_p |
| 288 | # ------------- |
| 289 | # Create "$as_dir" as a directory, including parents if necessary. |
| 290 | as_fn_mkdir_p () |
| 291 | { |
| 292 | |
| 293 | case $as_dir in #( |
| 294 | -*) as_dir=./$as_dir;; |
| 295 | esac |
| 296 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 297 | as_dirs= |
| 298 | while :; do |
| 299 | case $as_dir in #( |
| 300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 301 | *) as_qdir=$as_dir;; |
| 302 | esac |
| 303 | as_dirs="'$as_qdir' $as_dirs" |
| 304 | as_dir=`$as_dirname -- "$as_dir" || |
| 305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 307 | X"$as_dir" : 'X\(//\)$' \| \ |
| 308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 309 | $as_echo X"$as_dir" | |
| 310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\/\)[^/].*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | /^X\(\/\/\)$/{ |
| 319 | s//\1/ |
| 320 | q |
| 321 | } |
| 322 | /^X\(\/\).*/{ |
| 323 | s//\1/ |
| 324 | q |
| 325 | } |
| 326 | s/.*/./; q'` |
| 327 | test -d "$as_dir" && break |
| 328 | done |
| 329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 331 | |
| 332 | |
| 333 | } # as_fn_mkdir_p |
| 334 | # as_fn_append VAR VALUE |
| 335 | # ---------------------- |
| 336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 337 | # advantage of any shell optimizations that allow amortized linear growth over |
| 338 | # repeated appends, instead of the typical quadratic growth present in naive |
| 339 | # implementations. |
| 340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 341 | eval 'as_fn_append () |
| 342 | { |
| 343 | eval $1+=\$2 |
| 344 | }' |
| 345 | else |
| 346 | as_fn_append () |
| 347 | { |
| 348 | eval $1=\$$1\$2 |
| 349 | } |
| 350 | fi # as_fn_append |
| 351 | |
| 352 | # as_fn_arith ARG... |
| 353 | # ------------------ |
| 354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 356 | # must be portable across $(()) and expr. |
| 357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 358 | eval 'as_fn_arith () |
| 359 | { |
| 360 | as_val=$(( $* )) |
| 361 | }' |
| 362 | else |
| 363 | as_fn_arith () |
| 364 | { |
| 365 | as_val=`expr "$@" || test $? -eq 1` |
| 366 | } |
| 367 | fi # as_fn_arith |
| 368 | |
| 369 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 371 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 374 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 375 | as_fn_error () |
| 376 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 378 | if test "$4"; then |
| 379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 381 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 382 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 383 | as_fn_exit $as_status |
| 384 | } # as_fn_error |
| 385 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 388 | as_expr=expr |
| 389 | else |
| 390 | as_expr=false |
| 391 | fi |
| 392 | |
| 393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 394 | as_basename=basename |
| 395 | else |
| 396 | as_basename=false |
| 397 | fi |
| 398 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 400 | as_dirname=dirname |
| 401 | else |
| 402 | as_dirname=false |
| 403 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 404 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 405 | as_me=`$as_basename -- "$0" || |
| 406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 407 | X"$0" : 'X\(//\)$' \| \ |
| 408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 409 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | /^X\/\(\/\/\)$/{ |
| 415 | s//\1/ |
| 416 | q |
| 417 | } |
| 418 | /^X\/\(\/\).*/{ |
| 419 | s//\1/ |
| 420 | q |
| 421 | } |
| 422 | s/.*/./; q'` |
| 423 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 424 | # Avoid depending upon Character Ranges. |
| 425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 428 | as_cr_digits='0123456789' |
| 429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 430 | |
| 431 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 437 | sed -n ' |
| 438 | p |
| 439 | /[$]LINENO/= |
| 440 | ' <$as_myself | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 441 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 442 | s/[$]LINENO.*/&-/ |
| 443 | t lineno |
| 444 | b |
| 445 | :lineno |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 446 | N |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 447 | :loop |
| 448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 449 | t loop |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 450 | s/-\n.*// |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 451 | ' >$as_me.lineno && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 452 | chmod +x "$as_me.lineno" || |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (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] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 463 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 464 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 465 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 466 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 468 | xy) ECHO_C='\c';; |
| 469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 470 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 471 | esac;; |
| 472 | *) |
| 473 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 474 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 475 | |
| 476 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 477 | if test -d conf$$.dir; then |
| 478 | rm -f conf$$.dir/conf$$.file |
| 479 | else |
| 480 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 481 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 482 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 483 | if (echo >conf$$.file) 2>/dev/null; then |
| 484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s='ln -s' |
| 486 | # ... but there are two gotchas: |
| 487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 489 | # In both cases, we have to default to `cp -p'. |
| 490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 491 | as_ln_s='cp -p' |
| 492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 493 | as_ln_s=ln |
| 494 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 495 | as_ln_s='cp -p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 496 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 497 | else |
| 498 | as_ln_s='cp -p' |
| 499 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 501 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 502 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 503 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 504 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 505 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 506 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 507 | as_mkdir_p=false |
| 508 | fi |
| 509 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 510 | if test -x / >/dev/null 2>&1; then |
| 511 | as_test_x='test -x' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 512 | else |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 513 | if ls -dL / >/dev/null 2>&1; then |
| 514 | as_ls_L_option=L |
| 515 | else |
| 516 | as_ls_L_option= |
| 517 | fi |
| 518 | as_test_x=' |
| 519 | eval sh -c '\'' |
| 520 | if test -d "$1"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 521 | test -d "$1/."; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 522 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 523 | case $1 in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 524 | -*)set "./$1";; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 525 | esac; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 527 | ???[sx]*):;;*)false;;esac;fi |
| 528 | '\'' sh |
| 529 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 530 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 531 | as_executable_p=$as_test_x |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 532 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 533 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 534 | 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] | 535 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 536 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 538 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 539 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 541 | exec 6>&1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 542 | |
| 543 | # Name of the host. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 545 | # so uname gets run too. |
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 547 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 548 | # |
| 549 | # Initializations. |
| 550 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 551 | ac_default_prefix=/usr/local |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 552 | ac_clean_files= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 554 | LIBOBJS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 555 | cross_compiling=no |
| 556 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 559 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 560 | # Identity of this package. |
| 561 | PACKAGE_NAME='Wine' |
| 562 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | 24e7b5f | 2011-06-10 20:08:11 +0200 | [diff] [blame] | 563 | PACKAGE_VERSION='1.3.22' |
| 564 | PACKAGE_STRING='Wine 1.3.22' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 565 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 566 | PACKAGE_URL='http://www.winehq.org' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 567 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 568 | ac_unique_file="server/atom.c" |
| 569 | # Factoring default headers for most tests. |
| 570 | ac_includes_default="\ |
| 571 | #include <stdio.h> |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 572 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 573 | # include <sys/types.h> |
| 574 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 575 | #ifdef HAVE_SYS_STAT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> |
| 577 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 578 | #ifdef STDC_HEADERS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 579 | # include <stdlib.h> |
| 580 | # include <stddef.h> |
| 581 | #else |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 582 | # ifdef HAVE_STDLIB_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 583 | # include <stdlib.h> |
| 584 | # endif |
| 585 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 586 | #ifdef HAVE_STRING_H |
| 587 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 588 | # include <memory.h> |
| 589 | # endif |
| 590 | # include <string.h> |
| 591 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 592 | #ifdef HAVE_STRINGS_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 593 | # include <strings.h> |
| 594 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 595 | #ifdef HAVE_INTTYPES_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 596 | # include <inttypes.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 597 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 598 | #ifdef HAVE_STDINT_H |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 599 | # include <stdint.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 600 | #endif |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 601 | #ifdef HAVE_UNISTD_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 602 | # include <unistd.h> |
| 603 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 604 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 605 | ac_subst_vars='LTLIBOBJS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 606 | LIBOBJS |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 607 | LINGUAS |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 608 | ALL_TEST_RESOURCES |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 609 | LDAPLIBS |
| 610 | LIBPOLL |
| 611 | LIBDL |
| 612 | EXTRA_BINARIES |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 613 | MAIN_BINARY |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 614 | SOCKETLIBS |
| 615 | CRTLIBS |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 616 | TOOLSEXT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 617 | LDPATH |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 618 | UNWINDFLAGS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 619 | BUILTINFLAG |
| 620 | EXTRACFLAGS |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 621 | LIBKSTAT |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 622 | LIBOPENAL |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 623 | LIBMPG123 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 624 | PNGINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 625 | FONTCONFIGINCL |
| 626 | CUPSINCL |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 627 | OSS4INCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 628 | ALSALIBS |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 629 | GSTREAMER_INCL |
| 630 | GSTREAMER_LIBS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 631 | ESDLIBS |
| 632 | ESDINCL |
| 633 | ESDCONFIG |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 634 | LIBGETTEXTPO |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 635 | ZLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 636 | FREETYPEINCL |
| 637 | FREETYPELIBS |
| 638 | ft_devel |
| 639 | LCMSLIBS |
| 640 | RESOLVLIBS |
| 641 | GPHOTO2INCL |
| 642 | GPHOTO2LIBS |
| 643 | gphoto2port_devel |
| 644 | gphoto2_devel |
| 645 | SANEINCL |
| 646 | sane_devel |
| 647 | GNUTLSINCL |
| 648 | HALINCL |
| 649 | XSLTINCL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 650 | XML2INCL |
| 651 | XML2LIBS |
| 652 | NASLIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 653 | X_EXTRA_LIBS |
| 654 | X_LIBS |
| 655 | X_PRE_LIBS |
| 656 | X_CFLAGS |
| 657 | XMKMF |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 658 | LIBPTHREAD |
Alexandre Julliard | 1f25421 | 2010-01-23 20:26:49 +0100 | [diff] [blame] | 659 | CROSSTARGET |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 660 | CROSSCC |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 661 | CROSSTEST_DISABLE |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 662 | PRELINK |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 663 | CARBONLIB |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 664 | QUICKTIMELIB |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 665 | LIBOPENCL |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 666 | FRAMEWORK_OPENAL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 667 | COREAUDIO |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 668 | SECURITYLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 669 | DISKARBITRATIONLIB |
| 670 | LDEXECFLAGS |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 671 | APPLICATIONSERVICESLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 672 | IOKITLIB |
| 673 | COREFOUNDATIONLIB |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 674 | DLLWRAP |
| 675 | DLLTOOL |
| 676 | LDD |
| 677 | LDRPATH_LOCAL |
| 678 | LDRPATH_INSTALL |
| 679 | IMPLIBEXT |
| 680 | LIBEXT |
| 681 | LDDLLFLAGS |
| 682 | LDSHARED |
| 683 | DLLFLAGS |
| 684 | DLLEXT |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 685 | CPP |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 686 | OPENGL_LIBS |
| 687 | XLIB |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 688 | MAINTAINER_MODE |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 689 | ICOTOOL |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 690 | CONVERT |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 691 | RSVG |
| 692 | PKG_CONFIG |
| 693 | FONTFORGE |
| 694 | LINTFLAGS |
| 695 | LINT |
| 696 | INSTALL_DATA |
| 697 | INSTALL_SCRIPT |
| 698 | INSTALL_PROGRAM |
| 699 | LDCONFIG |
| 700 | EGREP |
| 701 | GREP |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 702 | LN_S |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 703 | RANLIB |
| 704 | ARFLAGS |
| 705 | ac_ct_AR |
| 706 | AR |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 707 | BISON |
| 708 | FLEX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 709 | TOOLSDIR |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 710 | WOW64_DISABLE |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 711 | TARGETFLAGS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 712 | CPPBIN |
| 713 | ac_ct_CXX |
| 714 | CXXFLAGS |
| 715 | CXX |
| 716 | OBJEXT |
| 717 | EXEEXT |
| 718 | ac_ct_CC |
| 719 | CPPFLAGS |
| 720 | LDFLAGS |
| 721 | CFLAGS |
| 722 | CC |
| 723 | SET_MAKE |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 724 | host_os |
| 725 | host_vendor |
| 726 | host_cpu |
| 727 | host |
| 728 | build_os |
| 729 | build_vendor |
| 730 | build_cpu |
| 731 | build |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 732 | target_alias |
| 733 | host_alias |
| 734 | build_alias |
| 735 | LIBS |
| 736 | ECHO_T |
| 737 | ECHO_N |
| 738 | ECHO_C |
| 739 | DEFS |
| 740 | mandir |
| 741 | localedir |
| 742 | libdir |
| 743 | psdir |
| 744 | pdfdir |
| 745 | dvidir |
| 746 | htmldir |
| 747 | infodir |
| 748 | docdir |
| 749 | oldincludedir |
| 750 | includedir |
| 751 | localstatedir |
| 752 | sharedstatedir |
| 753 | sysconfdir |
| 754 | datadir |
| 755 | datarootdir |
| 756 | libexecdir |
| 757 | sbindir |
| 758 | bindir |
| 759 | program_transform_name |
| 760 | prefix |
| 761 | exec_prefix |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 762 | PACKAGE_URL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 763 | PACKAGE_BUGREPORT |
| 764 | PACKAGE_STRING |
| 765 | PACKAGE_VERSION |
| 766 | PACKAGE_TARNAME |
| 767 | PACKAGE_NAME |
| 768 | PATH_SEPARATOR |
| 769 | SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 770 | ac_subst_files='MAKE_RULES |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 771 | MAKE_TEST_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 772 | MAKE_DLL_RULES |
| 773 | MAKE_IMPLIB_RULES |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 774 | MAKE_PROG_RULES' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 775 | ac_user_opts=' |
| 776 | enable_option_checking |
| 777 | enable_win16 |
| 778 | enable_win64 |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 779 | enable_tests |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 780 | enable_maintainer_mode |
| 781 | with_alsa |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 782 | with_capi |
| 783 | with_cms |
| 784 | with_coreaudio |
| 785 | with_cups |
| 786 | with_curses |
| 787 | with_esd |
| 788 | with_fontconfig |
| 789 | with_freetype |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 790 | with_gettextpo |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 791 | with_gphoto |
| 792 | with_glu |
| 793 | with_gnutls |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 794 | with_gsm |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 795 | with_gstreamer |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 796 | with_hal |
| 797 | with_jack |
| 798 | with_jpeg |
| 799 | with_ldap |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 800 | with_mpg123 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 801 | with_nas |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 802 | with_openal |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 803 | with_opencl |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 804 | with_opengl |
| 805 | with_openssl |
| 806 | with_oss |
| 807 | with_png |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 808 | with_pthread |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 809 | with_sane |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 810 | with_tiff |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 811 | with_v4l |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 812 | with_xcomposite |
| 813 | with_xcursor |
| 814 | with_xinerama |
| 815 | with_xinput |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 816 | with_xinput2 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 817 | with_xml |
| 818 | with_xrandr |
| 819 | with_xrender |
| 820 | with_xshape |
| 821 | with_xshm |
| 822 | with_xslt |
| 823 | with_xxf86vm |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 824 | with_zlib |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 825 | with_wine_tools |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 826 | with_wine64 |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 827 | enable_largefile |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 828 | with_x |
| 829 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 830 | ac_precious_vars='build_alias |
| 831 | host_alias |
| 832 | target_alias |
| 833 | CC |
| 834 | CFLAGS |
| 835 | LDFLAGS |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 836 | LIBS |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 837 | CPPFLAGS |
| 838 | CXX |
| 839 | CXXFLAGS |
| 840 | CCC |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 841 | CPP |
| 842 | XMKMF' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 843 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 844 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 845 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 846 | ac_init_help= |
| 847 | ac_init_version=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 848 | ac_unrecognized_opts= |
| 849 | ac_unrecognized_sep= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 850 | # The variables have the same names as the options, with |
| 851 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 852 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 853 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 854 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 855 | no_recursion= |
| 856 | prefix=NONE |
| 857 | program_prefix=NONE |
| 858 | program_suffix=NONE |
| 859 | program_transform_name=s,x,x, |
| 860 | silent= |
| 861 | site= |
| 862 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 863 | verbose= |
| 864 | x_includes=NONE |
| 865 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 866 | |
| 867 | # Installation directory options. |
| 868 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 869 | # and all the variables that are supposed to be based on exec_prefix |
| 870 | # by default will actually change. |
| 871 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 872 | # (The list follows the same order as the GNU Coding Standards.) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 873 | bindir='${exec_prefix}/bin' |
| 874 | sbindir='${exec_prefix}/sbin' |
| 875 | libexecdir='${exec_prefix}/libexec' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 876 | datarootdir='${prefix}/share' |
| 877 | datadir='${datarootdir}' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 878 | sysconfdir='${prefix}/etc' |
| 879 | sharedstatedir='${prefix}/com' |
| 880 | localstatedir='${prefix}/var' |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 881 | includedir='${prefix}/include' |
| 882 | oldincludedir='/usr/include' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 883 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 884 | infodir='${datarootdir}/info' |
| 885 | htmldir='${docdir}' |
| 886 | dvidir='${docdir}' |
| 887 | pdfdir='${docdir}' |
| 888 | psdir='${docdir}' |
| 889 | libdir='${exec_prefix}/lib' |
| 890 | localedir='${datarootdir}/locale' |
| 891 | mandir='${datarootdir}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 892 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 893 | ac_prev= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 894 | ac_dashdash= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 895 | for ac_option |
| 896 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 897 | # If the previous option needs an argument, assign it. |
| 898 | if test -n "$ac_prev"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 899 | eval $ac_prev=\$ac_option |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 900 | ac_prev= |
| 901 | continue |
| 902 | fi |
| 903 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 904 | case $ac_option in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 905 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 906 | *=) ac_optarg= ;; |
| 907 | *) ac_optarg=yes ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 908 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 909 | |
| 910 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 911 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 912 | case $ac_dashdash$ac_option in |
| 913 | --) |
| 914 | ac_dashdash=yes ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 915 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 916 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 917 | ac_prev=bindir ;; |
| 918 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 919 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 920 | |
| 921 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 922 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 923 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 924 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 925 | |
| 926 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 927 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 928 | ac_prev=cache_file ;; |
| 929 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 930 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 931 | cache_file=$ac_optarg ;; |
| 932 | |
| 933 | --config-cache | -C) |
| 934 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 935 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 936 | -datadir | --datadir | --datadi | --datad) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 937 | ac_prev=datadir ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 938 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 939 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 940 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 941 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 942 | | --dataroo | --dataro | --datar) |
| 943 | ac_prev=datarootdir ;; |
| 944 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 945 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 946 | datarootdir=$ac_optarg ;; |
| 947 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 948 | -disable-* | --disable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 949 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 950 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 951 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 952 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 953 | ac_useropt_orig=$ac_useropt |
| 954 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 955 | case $ac_user_opts in |
| 956 | *" |
| 957 | "enable_$ac_useropt" |
| 958 | "*) ;; |
| 959 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 960 | ac_unrecognized_sep=', ';; |
| 961 | esac |
| 962 | eval enable_$ac_useropt=no ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 963 | |
| 964 | -docdir | --docdir | --docdi | --doc | --do) |
| 965 | ac_prev=docdir ;; |
| 966 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 967 | docdir=$ac_optarg ;; |
| 968 | |
| 969 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 970 | ac_prev=dvidir ;; |
| 971 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 972 | dvidir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 973 | |
| 974 | -enable-* | --enable-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 975 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 976 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 977 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 978 | as_fn_error $? "invalid feature name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 979 | ac_useropt_orig=$ac_useropt |
| 980 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 981 | case $ac_user_opts in |
| 982 | *" |
| 983 | "enable_$ac_useropt" |
| 984 | "*) ;; |
| 985 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 986 | ac_unrecognized_sep=', ';; |
| 987 | esac |
| 988 | eval enable_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 989 | |
| 990 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 991 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 992 | | --exec | --exe | --ex) |
| 993 | ac_prev=exec_prefix ;; |
| 994 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 995 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 996 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 997 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 998 | |
| 999 | -gas | --gas | --ga | --g) |
| 1000 | # Obsolete; use --with-gas. |
| 1001 | with_gas=yes ;; |
| 1002 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1003 | -help | --help | --hel | --he | -h) |
| 1004 | ac_init_help=long ;; |
| 1005 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1006 | ac_init_help=recursive ;; |
| 1007 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1008 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1009 | |
| 1010 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1011 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1012 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1013 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1014 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1015 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1016 | ac_prev=htmldir ;; |
| 1017 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1018 | | --ht=*) |
| 1019 | htmldir=$ac_optarg ;; |
| 1020 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1021 | -includedir | --includedir | --includedi | --included | --include \ |
| 1022 | | --includ | --inclu | --incl | --inc) |
| 1023 | ac_prev=includedir ;; |
| 1024 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1025 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1026 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1027 | |
| 1028 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1029 | ac_prev=infodir ;; |
| 1030 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1031 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1032 | |
| 1033 | -libdir | --libdir | --libdi | --libd) |
| 1034 | ac_prev=libdir ;; |
| 1035 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1036 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1037 | |
| 1038 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1039 | | --libexe | --libex | --libe) |
| 1040 | ac_prev=libexecdir ;; |
| 1041 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1042 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1043 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1044 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1045 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1046 | ac_prev=localedir ;; |
| 1047 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1048 | localedir=$ac_optarg ;; |
| 1049 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1050 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1051 | | --localstate | --localstat | --localsta | --localst | --locals) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1052 | ac_prev=localstatedir ;; |
| 1053 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1054 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1055 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1056 | |
| 1057 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1058 | ac_prev=mandir ;; |
| 1059 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1060 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1061 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1062 | -nfp | --nfp | --nf) |
| 1063 | # Obsolete; use --without-fp. |
| 1064 | with_fp=no ;; |
| 1065 | |
| 1066 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1067 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1068 | no_create=yes ;; |
| 1069 | |
| 1070 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1071 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1072 | no_recursion=yes ;; |
| 1073 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1074 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1075 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1076 | | --oldin | --oldi | --old | --ol | --o) |
| 1077 | ac_prev=oldincludedir ;; |
| 1078 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1079 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1080 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1081 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1082 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1083 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1084 | ac_prev=prefix ;; |
| 1085 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1086 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1087 | |
| 1088 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1089 | | --program-pre | --program-pr | --program-p) |
| 1090 | ac_prev=program_prefix ;; |
| 1091 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1092 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1093 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1094 | |
| 1095 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1096 | | --program-suf | --program-su | --program-s) |
| 1097 | ac_prev=program_suffix ;; |
| 1098 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1099 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1100 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1101 | |
| 1102 | -program-transform-name | --program-transform-name \ |
| 1103 | | --program-transform-nam | --program-transform-na \ |
| 1104 | | --program-transform-n | --program-transform- \ |
| 1105 | | --program-transform | --program-transfor \ |
| 1106 | | --program-transfo | --program-transf \ |
| 1107 | | --program-trans | --program-tran \ |
| 1108 | | --progr-tra | --program-tr | --program-t) |
| 1109 | ac_prev=program_transform_name ;; |
| 1110 | -program-transform-name=* | --program-transform-name=* \ |
| 1111 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1112 | | --program-transform-n=* | --program-transform-=* \ |
| 1113 | | --program-transform=* | --program-transfor=* \ |
| 1114 | | --program-transfo=* | --program-transf=* \ |
| 1115 | | --program-trans=* | --program-tran=* \ |
| 1116 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1117 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1118 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1119 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1120 | ac_prev=pdfdir ;; |
| 1121 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1122 | pdfdir=$ac_optarg ;; |
| 1123 | |
| 1124 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1125 | ac_prev=psdir ;; |
| 1126 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1127 | psdir=$ac_optarg ;; |
| 1128 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1129 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1130 | | -silent | --silent | --silen | --sile | --sil) |
| 1131 | silent=yes ;; |
| 1132 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1133 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1134 | ac_prev=sbindir ;; |
| 1135 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1136 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1137 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1138 | |
| 1139 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1140 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1141 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1142 | | --sha | --sh) |
| 1143 | ac_prev=sharedstatedir ;; |
| 1144 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1145 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1146 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1147 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1148 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1149 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1150 | -site | --site | --sit) |
| 1151 | ac_prev=site ;; |
| 1152 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1153 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1154 | |
| 1155 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1156 | ac_prev=srcdir ;; |
| 1157 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1158 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1159 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1160 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1161 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1162 | ac_prev=sysconfdir ;; |
| 1163 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1164 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1165 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1166 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1167 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1168 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1169 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1170 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1171 | |
| 1172 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1173 | verbose=yes ;; |
| 1174 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1175 | -version | --version | --versio | --versi | --vers | -V) |
| 1176 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1177 | |
| 1178 | -with-* | --with-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1179 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1180 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1181 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1182 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1183 | ac_useropt_orig=$ac_useropt |
| 1184 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1185 | case $ac_user_opts in |
| 1186 | *" |
| 1187 | "with_$ac_useropt" |
| 1188 | "*) ;; |
| 1189 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1190 | ac_unrecognized_sep=', ';; |
| 1191 | esac |
| 1192 | eval with_$ac_useropt=\$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1193 | |
| 1194 | -without-* | --without-*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1195 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1196 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1197 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1198 | as_fn_error $? "invalid package name: $ac_useropt" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1199 | ac_useropt_orig=$ac_useropt |
| 1200 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1201 | case $ac_user_opts in |
| 1202 | *" |
| 1203 | "with_$ac_useropt" |
| 1204 | "*) ;; |
| 1205 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1206 | ac_unrecognized_sep=', ';; |
| 1207 | esac |
| 1208 | eval with_$ac_useropt=no ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1209 | |
| 1210 | --x) |
| 1211 | # Obsolete; use --with-x. |
| 1212 | with_x=yes ;; |
| 1213 | |
| 1214 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1215 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1216 | ac_prev=x_includes ;; |
| 1217 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1218 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1219 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1220 | |
| 1221 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1222 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1223 | ac_prev=x_libraries ;; |
| 1224 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1225 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1226 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1227 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1228 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1229 | Try \`$0 --help' for more information" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1230 | ;; |
| 1231 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1232 | *=*) |
| 1233 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1234 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1235 | case $ac_envvar in #( |
| 1236 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1237 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1238 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1239 | eval $ac_envvar=\$ac_optarg |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1240 | export $ac_envvar ;; |
| 1241 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1242 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1243 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1244 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1245 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1246 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1247 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1248 | ;; |
| 1249 | |
| 1250 | esac |
| 1251 | done |
| 1252 | |
| 1253 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1254 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1255 | as_fn_error $? "missing argument to $ac_option" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1256 | fi |
| 1257 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1258 | if test -n "$ac_unrecognized_opts"; then |
| 1259 | case $enable_option_checking in |
| 1260 | no) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1261 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1262 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1263 | esac |
| 1264 | fi |
| 1265 | |
| 1266 | # Check all directory arguments for consistency. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1267 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1268 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1269 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1270 | libdir localedir mandir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1271 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1272 | eval ac_val=\$$ac_var |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1273 | # Remove trailing slashes. |
| 1274 | case $ac_val in |
| 1275 | */ ) |
| 1276 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1277 | eval $ac_var=\$ac_val;; |
| 1278 | esac |
| 1279 | # Be sure to have absolute directory names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1280 | case $ac_val in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1281 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1282 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1283 | esac |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1284 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1285 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1286 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1287 | # There might be people who depend on the old broken behavior: `$host' |
| 1288 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1289 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1290 | build=$build_alias |
| 1291 | host=$host_alias |
| 1292 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1293 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1294 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1295 | if test "x$host_alias" != x; then |
| 1296 | if test "x$build_alias" = x; then |
| 1297 | cross_compiling=maybe |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1298 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1299 | If a cross compiler is detected then cross compile mode will be used" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1300 | elif test "x$build_alias" != "x$host_alias"; then |
| 1301 | cross_compiling=yes |
| 1302 | fi |
| 1303 | fi |
| 1304 | |
| 1305 | ac_tool_prefix= |
| 1306 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1307 | |
| 1308 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1309 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1310 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1311 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1312 | ac_ls_di=`ls -di .` && |
| 1313 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1314 | as_fn_error $? "working directory cannot be determined" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1315 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1316 | as_fn_error $? "pwd does not report name of working directory" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1317 | |
| 1318 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1319 | # Find the source files, if location was not specified. |
| 1320 | if test -z "$srcdir"; then |
| 1321 | ac_srcdir_defaulted=yes |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1322 | # Try the directory containing this script, then the parent directory. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1323 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1324 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1325 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1326 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1327 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1328 | $as_echo X"$as_myself" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1329 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1330 | s//\1/ |
| 1331 | q |
| 1332 | } |
| 1333 | /^X\(\/\/\)[^/].*/{ |
| 1334 | s//\1/ |
| 1335 | q |
| 1336 | } |
| 1337 | /^X\(\/\/\)$/{ |
| 1338 | s//\1/ |
| 1339 | q |
| 1340 | } |
| 1341 | /^X\(\/\).*/{ |
| 1342 | s//\1/ |
| 1343 | q |
| 1344 | } |
| 1345 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1346 | srcdir=$ac_confdir |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1347 | if test ! -r "$srcdir/$ac_unique_file"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1348 | srcdir=.. |
| 1349 | fi |
| 1350 | else |
| 1351 | ac_srcdir_defaulted=no |
| 1352 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1353 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1354 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1355 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1356 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1357 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1358 | ac_abs_confdir=`( |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1359 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1360 | pwd)` |
| 1361 | # When building in place, set srcdir=. |
| 1362 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1363 | srcdir=. |
| 1364 | fi |
| 1365 | # Remove unnecessary trailing slashes from srcdir. |
| 1366 | # Double slashes in file names in object file debugging info |
| 1367 | # mess up M-x gdb in Emacs. |
| 1368 | case $srcdir in |
| 1369 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1370 | esac |
| 1371 | for ac_var in $ac_precious_vars; do |
| 1372 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1373 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1374 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1375 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1376 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1377 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1378 | # |
| 1379 | # Report the --help message. |
| 1380 | # |
| 1381 | if test "$ac_init_help" = "long"; then |
| 1382 | # Omit some internal or obsolete options to make the list less imposing. |
| 1383 | # 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] | 1384 | cat <<_ACEOF |
Alexandre Julliard | 24e7b5f | 2011-06-10 20:08:11 +0200 | [diff] [blame] | 1385 | \`configure' configures Wine 1.3.22 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1386 | |
| 1387 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1388 | |
| 1389 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1390 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1391 | |
| 1392 | Defaults for the options are specified in brackets. |
| 1393 | |
| 1394 | Configuration: |
| 1395 | -h, --help display this help and exit |
| 1396 | --help=short display options specific to this package |
| 1397 | --help=recursive display the short help of all the included packages |
| 1398 | -V, --version display version information and exit |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1399 | -q, --quiet, --silent do not print \`checking ...' messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1400 | --cache-file=FILE cache test results in FILE [disabled] |
| 1401 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1402 | -n, --no-create do not create output files |
| 1403 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1404 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1405 | Installation directories: |
| 1406 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1407 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1408 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1409 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1410 | |
| 1411 | By default, \`make install' will install all the files in |
| 1412 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1413 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1414 | for instance \`--prefix=\$HOME'. |
| 1415 | |
| 1416 | For better control, use the options below. |
| 1417 | |
| 1418 | Fine tuning of the installation directories: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1419 | --bindir=DIR user executables [EPREFIX/bin] |
| 1420 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1421 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1422 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1423 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1424 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1425 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1426 | --includedir=DIR C header files [PREFIX/include] |
| 1427 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1428 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1429 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1430 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1431 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1432 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1433 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] |
| 1434 | --htmldir=DIR html documentation [DOCDIR] |
| 1435 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1436 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1437 | --psdir=DIR ps documentation [DOCDIR] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1438 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1439 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1440 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1441 | |
| 1442 | X features: |
| 1443 | --x-includes=DIR X include files are in DIR |
| 1444 | --x-libraries=DIR X library files are in DIR |
| 1445 | |
| 1446 | System types: |
| 1447 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1448 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1449 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1450 | fi |
| 1451 | |
| 1452 | if test -n "$ac_init_help"; then |
| 1453 | case $ac_init_help in |
Alexandre Julliard | 24e7b5f | 2011-06-10 20:08:11 +0200 | [diff] [blame] | 1454 | short | recursive ) echo "Configuration of Wine 1.3.22:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1455 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1456 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1457 | |
| 1458 | Optional Features: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1459 | --disable-option-checking ignore unrecognized --enable/--with options |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1460 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1461 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1462 | --disable-win16 do not include Win16 support |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1463 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 1464 | binaries) |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 1465 | --disable-tests do not build the regression tests |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 1466 | --enable-maintainer-mode |
| 1467 | enable maintainer-specific build rules |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 1468 | --disable-largefile omit support for large files |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1469 | |
| 1470 | Optional Packages: |
| 1471 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1472 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1473 | --without-alsa do not use the Alsa sound support |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1474 | --without-capi do not use CAPI (ISDN support) |
| 1475 | --without-cms do not use CMS (color management support) |
| 1476 | --without-coreaudio do not use the CoreAudio sound support |
| 1477 | --without-cups do not use CUPS |
| 1478 | --without-curses do not use (n)curses |
| 1479 | --without-esd do not use the EsounD sound support |
| 1480 | --without-fontconfig do not use fontconfig |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 1481 | --without-freetype do not use the FreeType library |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 1482 | --without-gettextpo do not use the GetTextPO library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1483 | --without-gphoto do not use gphoto (Digital Camera support) |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 1484 | --without-glu do not use the GLU library |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 1485 | --without-gnutls do not use GnuTLS (schannel support) |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 1486 | --without-gsm do not use libgsm (GSM 06.10 codec support) |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 1487 | --without-gstreamer do not use GStreamer (codecs support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1488 | --without-hal do not use HAL (dynamic device support) |
| 1489 | --without-jack do not use the Jack sound support |
| 1490 | --without-jpeg do not use JPEG |
| 1491 | --without-ldap do not use LDAP |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 1492 | --without-mpg123 do not use the mpg123 library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1493 | --without-nas do not use the NAS sound support |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 1494 | --without-openal do not use OpenAL |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 1495 | --without-opencl do not use OpenCL |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1496 | --without-opengl do not use OpenGL |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1497 | --without-openssl do not use OpenSSL |
| 1498 | --without-oss do not use the OSS sound support |
| 1499 | --without-png do not use PNG |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 1500 | --without-pthread do not use the pthread library |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1501 | --without-sane do not use SANE (scanner support) |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 1502 | --without-tiff do not use TIFF |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 1503 | --without-v4l do not use v4l1 (v4l support) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1504 | --without-xcomposite do not use the Xcomposite extension |
| 1505 | --without-xcursor do not use the Xcursor extension |
| 1506 | --without-xinerama do not use Xinerama (multi-monitor support) |
| 1507 | --without-xinput do not use the Xinput extension |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 1508 | --without-xinput2 do not use the Xinput 2 extension |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1509 | --without-xml do not use XML |
| 1510 | --without-xrandr do not use Xrandr (resolution changes) |
| 1511 | --without-xrender do not use the Xrender extension |
| 1512 | --without-xshape do not use the Xshape extension |
| 1513 | --without-xshm do not use XShm (shared memory extension) |
| 1514 | --without-xslt do not use XSLT |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 1515 | --without-xxf86vm do not use XFree video mode extension |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 1516 | --without-zlib do not use Zlib (data compression) |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 1517 | --with-wine-tools=DIR use Wine tools from directory DIR |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 1518 | --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1519 | --with-x use the X Window System |
| 1520 | |
| 1521 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1522 | CC C compiler command |
| 1523 | CFLAGS C compiler flags |
| 1524 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1525 | nonstandard directory <lib dir> |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 1526 | LIBS libraries to pass to the linker, e.g. -l<library> |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1527 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1528 | you have headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 1529 | CXX C++ compiler command |
| 1530 | CXXFLAGS C++ compiler flags |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1531 | CPP C preprocessor |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 1532 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1533 | |
| 1534 | Use these variables to override the choices made by `configure' or to help |
| 1535 | it to find libraries and programs with nonstandard names/locations. |
| 1536 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1537 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1538 | Wine home page: <http://www.winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1539 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1540 | ac_status=$? |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1541 | fi |
| 1542 | |
| 1543 | if test "$ac_init_help" = "recursive"; then |
| 1544 | # If there are subdirs, report their specific --help. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1545 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1546 | test -d "$ac_dir" || |
| 1547 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1548 | continue |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1549 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1550 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1551 | case "$ac_dir" in |
| 1552 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1553 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1554 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1555 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1556 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1557 | case $ac_top_builddir_sub in |
| 1558 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1559 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1560 | esac ;; |
| 1561 | esac |
| 1562 | ac_abs_top_builddir=$ac_pwd |
| 1563 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1564 | # for backward compatibility: |
| 1565 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1566 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1567 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1568 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1569 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1570 | ac_top_srcdir=$ac_top_builddir_sub |
| 1571 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1572 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1573 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1574 | ac_top_srcdir=$srcdir |
| 1575 | ac_abs_top_srcdir=$srcdir ;; |
| 1576 | *) # Relative name. |
| 1577 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1578 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1579 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1580 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1581 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1582 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1583 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1584 | # Check for guested configure. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1585 | if test -f "$ac_srcdir/configure.gnu"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1586 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1587 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1588 | elif test -f "$ac_srcdir/configure"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1589 | echo && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 1590 | $SHELL "$ac_srcdir/configure" --help=recursive |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1591 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 1592 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1593 | fi || ac_status=$? |
| 1594 | cd "$ac_pwd" || { ac_status=$?; break; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1595 | done |
| 1596 | fi |
| 1597 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1598 | test -n "$ac_init_help" && exit $ac_status |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1599 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1600 | cat <<\_ACEOF |
Alexandre Julliard | 24e7b5f | 2011-06-10 20:08:11 +0200 | [diff] [blame] | 1601 | Wine configure 1.3.22 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1602 | generated by GNU Autoconf 2.68 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1603 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1604 | Copyright (C) 2010 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1605 | This configure script is free software; the Free Software Foundation |
| 1606 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1607 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 1608 | exit |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1609 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1610 | |
| 1611 | ## ------------------------ ## |
| 1612 | ## Autoconf initialization. ## |
| 1613 | ## ------------------------ ## |
| 1614 | |
| 1615 | # ac_fn_c_try_compile LINENO |
| 1616 | # -------------------------- |
| 1617 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1618 | ac_fn_c_try_compile () |
| 1619 | { |
| 1620 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1621 | rm -f conftest.$ac_objext |
| 1622 | if { { ac_try="$ac_compile" |
| 1623 | case "(($ac_try" in |
| 1624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1625 | *) ac_try_echo=$ac_try;; |
| 1626 | esac |
| 1627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1628 | $as_echo "$ac_try_echo"; } >&5 |
| 1629 | (eval "$ac_compile") 2>conftest.err |
| 1630 | ac_status=$? |
| 1631 | if test -s conftest.err; then |
| 1632 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1633 | cat conftest.er1 >&5 |
| 1634 | mv -f conftest.er1 conftest.err |
| 1635 | fi |
| 1636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1637 | test $ac_status = 0; } && { |
| 1638 | test -z "$ac_c_werror_flag" || |
| 1639 | test ! -s conftest.err |
| 1640 | } && test -s conftest.$ac_objext; then : |
| 1641 | ac_retval=0 |
| 1642 | else |
| 1643 | $as_echo "$as_me: failed program was:" >&5 |
| 1644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1645 | |
| 1646 | ac_retval=1 |
| 1647 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1648 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1649 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1650 | |
| 1651 | } # ac_fn_c_try_compile |
| 1652 | |
| 1653 | # ac_fn_cxx_try_compile LINENO |
| 1654 | # ---------------------------- |
| 1655 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1656 | ac_fn_cxx_try_compile () |
| 1657 | { |
| 1658 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1659 | rm -f conftest.$ac_objext |
| 1660 | if { { ac_try="$ac_compile" |
| 1661 | case "(($ac_try" in |
| 1662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1663 | *) ac_try_echo=$ac_try;; |
| 1664 | esac |
| 1665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1666 | $as_echo "$ac_try_echo"; } >&5 |
| 1667 | (eval "$ac_compile") 2>conftest.err |
| 1668 | ac_status=$? |
| 1669 | if test -s conftest.err; then |
| 1670 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1671 | cat conftest.er1 >&5 |
| 1672 | mv -f conftest.er1 conftest.err |
| 1673 | fi |
| 1674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1675 | test $ac_status = 0; } && { |
| 1676 | test -z "$ac_cxx_werror_flag" || |
| 1677 | test ! -s conftest.err |
| 1678 | } && test -s conftest.$ac_objext; then : |
| 1679 | ac_retval=0 |
| 1680 | else |
| 1681 | $as_echo "$as_me: failed program was:" >&5 |
| 1682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1683 | |
| 1684 | ac_retval=1 |
| 1685 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1686 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1687 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1688 | |
| 1689 | } # ac_fn_cxx_try_compile |
| 1690 | |
| 1691 | # ac_fn_c_try_link LINENO |
| 1692 | # ----------------------- |
| 1693 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1694 | ac_fn_c_try_link () |
| 1695 | { |
| 1696 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1697 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1698 | if { { ac_try="$ac_link" |
| 1699 | case "(($ac_try" in |
| 1700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1701 | *) ac_try_echo=$ac_try;; |
| 1702 | esac |
| 1703 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1704 | $as_echo "$ac_try_echo"; } >&5 |
| 1705 | (eval "$ac_link") 2>conftest.err |
| 1706 | ac_status=$? |
| 1707 | if test -s conftest.err; then |
| 1708 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1709 | cat conftest.er1 >&5 |
| 1710 | mv -f conftest.er1 conftest.err |
| 1711 | fi |
| 1712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1713 | test $ac_status = 0; } && { |
| 1714 | test -z "$ac_c_werror_flag" || |
| 1715 | test ! -s conftest.err |
| 1716 | } && test -s conftest$ac_exeext && { |
| 1717 | test "$cross_compiling" = yes || |
| 1718 | $as_test_x conftest$ac_exeext |
| 1719 | }; then : |
| 1720 | ac_retval=0 |
| 1721 | else |
| 1722 | $as_echo "$as_me: failed program was:" >&5 |
| 1723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1724 | |
| 1725 | ac_retval=1 |
| 1726 | fi |
| 1727 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1728 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1729 | # interfere with the next link command; also delete a directory that is |
| 1730 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1731 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1732 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1733 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1734 | |
| 1735 | } # ac_fn_c_try_link |
| 1736 | |
| 1737 | # ac_fn_c_try_cpp LINENO |
| 1738 | # ---------------------- |
| 1739 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1740 | ac_fn_c_try_cpp () |
| 1741 | { |
| 1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1743 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1744 | case "(($ac_try" in |
| 1745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1746 | *) ac_try_echo=$ac_try;; |
| 1747 | esac |
| 1748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1749 | $as_echo "$ac_try_echo"; } >&5 |
| 1750 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1751 | ac_status=$? |
| 1752 | if test -s conftest.err; then |
| 1753 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1754 | cat conftest.er1 >&5 |
| 1755 | mv -f conftest.er1 conftest.err |
| 1756 | fi |
| 1757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1758 | test $ac_status = 0; } > conftest.i && { |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1759 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1760 | test ! -s conftest.err |
| 1761 | }; then : |
| 1762 | ac_retval=0 |
| 1763 | else |
| 1764 | $as_echo "$as_me: failed program was:" >&5 |
| 1765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1766 | |
| 1767 | ac_retval=1 |
| 1768 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1770 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1771 | |
| 1772 | } # ac_fn_c_try_cpp |
| 1773 | |
| 1774 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1775 | # ------------------------------------------------------- |
| 1776 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1777 | # the include files in INCLUDES and setting the cache variable VAR |
| 1778 | # accordingly. |
| 1779 | ac_fn_c_check_header_mongrel () |
| 1780 | { |
| 1781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1782 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1784 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1785 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1786 | $as_echo_n "(cached) " >&6 |
| 1787 | fi |
| 1788 | eval ac_res=\$$3 |
| 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1790 | $as_echo "$ac_res" >&6; } |
| 1791 | else |
| 1792 | # Is the header compilable? |
| 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1794 | $as_echo_n "checking $2 usability... " >&6; } |
| 1795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1796 | /* end confdefs.h. */ |
| 1797 | $4 |
| 1798 | #include <$2> |
| 1799 | _ACEOF |
| 1800 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1801 | ac_header_compiler=yes |
| 1802 | else |
| 1803 | ac_header_compiler=no |
| 1804 | fi |
| 1805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1807 | $as_echo "$ac_header_compiler" >&6; } |
| 1808 | |
| 1809 | # Is the header present? |
| 1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1811 | $as_echo_n "checking $2 presence... " >&6; } |
| 1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1813 | /* end confdefs.h. */ |
| 1814 | #include <$2> |
| 1815 | _ACEOF |
| 1816 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1817 | ac_header_preproc=yes |
| 1818 | else |
| 1819 | ac_header_preproc=no |
| 1820 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1821 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1823 | $as_echo "$ac_header_preproc" >&6; } |
| 1824 | |
| 1825 | # So? What about this header? |
| 1826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1827 | yes:no: ) |
| 1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1829 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1831 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1832 | ;; |
| 1833 | no:yes:* ) |
| 1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1835 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1837 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1839 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1841 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1843 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1844 | ( $as_echo "## ------------------------------------ ## |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1845 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 1846 | ## ------------------------------------ ##" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1847 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1848 | ;; |
| 1849 | esac |
| 1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1851 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1852 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1853 | $as_echo_n "(cached) " >&6 |
| 1854 | else |
| 1855 | eval "$3=\$ac_header_compiler" |
| 1856 | fi |
| 1857 | eval ac_res=\$$3 |
| 1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1859 | $as_echo "$ac_res" >&6; } |
| 1860 | fi |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1861 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1862 | |
| 1863 | } # ac_fn_c_check_header_mongrel |
| 1864 | |
| 1865 | # ac_fn_c_try_run LINENO |
| 1866 | # ---------------------- |
| 1867 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1868 | # that executables *can* be run. |
| 1869 | ac_fn_c_try_run () |
| 1870 | { |
| 1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1872 | if { { ac_try="$ac_link" |
| 1873 | case "(($ac_try" in |
| 1874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1875 | *) ac_try_echo=$ac_try;; |
| 1876 | esac |
| 1877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1878 | $as_echo "$ac_try_echo"; } >&5 |
| 1879 | (eval "$ac_link") 2>&5 |
| 1880 | ac_status=$? |
| 1881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1882 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1883 | { { case "(($ac_try" in |
| 1884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1885 | *) ac_try_echo=$ac_try;; |
| 1886 | esac |
| 1887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1888 | $as_echo "$ac_try_echo"; } >&5 |
| 1889 | (eval "$ac_try") 2>&5 |
| 1890 | ac_status=$? |
| 1891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1892 | test $ac_status = 0; }; }; then : |
| 1893 | ac_retval=0 |
| 1894 | else |
| 1895 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1896 | $as_echo "$as_me: failed program was:" >&5 |
| 1897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1898 | |
| 1899 | ac_retval=$ac_status |
| 1900 | fi |
| 1901 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1902 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 1903 | as_fn_set_status $ac_retval |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1904 | |
| 1905 | } # ac_fn_c_try_run |
| 1906 | |
| 1907 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1908 | # ------------------------------------------------------- |
| 1909 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1910 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1911 | ac_fn_c_check_header_compile () |
| 1912 | { |
| 1913 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1915 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1916 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1917 | $as_echo_n "(cached) " >&6 |
| 1918 | else |
| 1919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1920 | /* end confdefs.h. */ |
| 1921 | $4 |
| 1922 | #include <$2> |
| 1923 | _ACEOF |
| 1924 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1925 | eval "$3=yes" |
| 1926 | else |
| 1927 | eval "$3=no" |
| 1928 | fi |
| 1929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1930 | fi |
| 1931 | eval ac_res=\$$3 |
| 1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1933 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1934 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1935 | |
| 1936 | } # ac_fn_c_check_header_compile |
| 1937 | |
| 1938 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1939 | # ---------------------------------- |
| 1940 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1941 | ac_fn_c_check_func () |
| 1942 | { |
| 1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1945 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 1946 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 1947 | $as_echo_n "(cached) " >&6 |
| 1948 | else |
| 1949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1950 | /* end confdefs.h. */ |
| 1951 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1952 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1953 | #define $2 innocuous_$2 |
| 1954 | |
| 1955 | /* System header to define __stub macros and hopefully few prototypes, |
| 1956 | which can conflict with char $2 (); below. |
| 1957 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1958 | <limits.h> exists even on freestanding compilers. */ |
| 1959 | |
| 1960 | #ifdef __STDC__ |
| 1961 | # include <limits.h> |
| 1962 | #else |
| 1963 | # include <assert.h> |
| 1964 | #endif |
| 1965 | |
| 1966 | #undef $2 |
| 1967 | |
| 1968 | /* Override any GCC internal prototype to avoid an error. |
| 1969 | Use char because int might match the return type of a GCC |
| 1970 | builtin and then its argument prototype would still apply. */ |
| 1971 | #ifdef __cplusplus |
| 1972 | extern "C" |
| 1973 | #endif |
| 1974 | char $2 (); |
| 1975 | /* The GNU C library defines this for functions which it implements |
| 1976 | to always fail with ENOSYS. Some functions are actually named |
| 1977 | something starting with __ and the normal name is an alias. */ |
| 1978 | #if defined __stub_$2 || defined __stub___$2 |
| 1979 | choke me |
| 1980 | #endif |
| 1981 | |
| 1982 | int |
| 1983 | main () |
| 1984 | { |
| 1985 | return $2 (); |
| 1986 | ; |
| 1987 | return 0; |
| 1988 | } |
| 1989 | _ACEOF |
| 1990 | if ac_fn_c_try_link "$LINENO"; then : |
| 1991 | eval "$3=yes" |
| 1992 | else |
| 1993 | eval "$3=no" |
| 1994 | fi |
| 1995 | rm -f core conftest.err conftest.$ac_objext \ |
| 1996 | conftest$ac_exeext conftest.$ac_ext |
| 1997 | fi |
| 1998 | eval ac_res=\$$3 |
| 1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2000 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2001 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2002 | |
| 2003 | } # ac_fn_c_check_func |
| 2004 | |
| 2005 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2006 | # ---------------------------------------------------- |
| 2007 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2008 | # INCLUDES, setting cache variable VAR accordingly. |
| 2009 | ac_fn_c_check_member () |
| 2010 | { |
| 2011 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2013 | $as_echo_n "checking for $2.$3... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2014 | if eval \${$4+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2015 | $as_echo_n "(cached) " >&6 |
| 2016 | else |
| 2017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2018 | /* end confdefs.h. */ |
| 2019 | $5 |
| 2020 | int |
| 2021 | main () |
| 2022 | { |
| 2023 | static $2 ac_aggr; |
| 2024 | if (ac_aggr.$3) |
| 2025 | return 0; |
| 2026 | ; |
| 2027 | return 0; |
| 2028 | } |
| 2029 | _ACEOF |
| 2030 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2031 | eval "$4=yes" |
| 2032 | else |
| 2033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2034 | /* end confdefs.h. */ |
| 2035 | $5 |
| 2036 | int |
| 2037 | main () |
| 2038 | { |
| 2039 | static $2 ac_aggr; |
| 2040 | if (sizeof ac_aggr.$3) |
| 2041 | return 0; |
| 2042 | ; |
| 2043 | return 0; |
| 2044 | } |
| 2045 | _ACEOF |
| 2046 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2047 | eval "$4=yes" |
| 2048 | else |
| 2049 | eval "$4=no" |
| 2050 | fi |
| 2051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2052 | fi |
| 2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2054 | fi |
| 2055 | eval ac_res=\$$4 |
| 2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2057 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2058 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2059 | |
| 2060 | } # ac_fn_c_check_member |
| 2061 | |
| 2062 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2063 | # ------------------------------------------- |
| 2064 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2065 | # variable VAR accordingly. |
| 2066 | ac_fn_c_check_type () |
| 2067 | { |
| 2068 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2070 | $as_echo_n "checking for $2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2071 | if eval \${$3+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2072 | $as_echo_n "(cached) " >&6 |
| 2073 | else |
| 2074 | eval "$3=no" |
| 2075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2076 | /* end confdefs.h. */ |
| 2077 | $4 |
| 2078 | int |
| 2079 | main () |
| 2080 | { |
| 2081 | if (sizeof ($2)) |
| 2082 | return 0; |
| 2083 | ; |
| 2084 | return 0; |
| 2085 | } |
| 2086 | _ACEOF |
| 2087 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2089 | /* end confdefs.h. */ |
| 2090 | $4 |
| 2091 | int |
| 2092 | main () |
| 2093 | { |
| 2094 | if (sizeof (($2))) |
| 2095 | return 0; |
| 2096 | ; |
| 2097 | return 0; |
| 2098 | } |
| 2099 | _ACEOF |
| 2100 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2101 | |
| 2102 | else |
| 2103 | eval "$3=yes" |
| 2104 | fi |
| 2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2106 | fi |
| 2107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2108 | fi |
| 2109 | eval ac_res=\$$3 |
| 2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2111 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2112 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2113 | |
| 2114 | } # ac_fn_c_check_type |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2115 | cat >config.log <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2116 | This file contains any messages produced by compilers while |
| 2117 | running configure, to aid debugging if configure makes a mistake. |
| 2118 | |
Alexandre Julliard | 24e7b5f | 2011-06-10 20:08:11 +0200 | [diff] [blame] | 2119 | It was created by Wine $as_me 1.3.22, which was |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2120 | generated by GNU Autoconf 2.68. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2121 | |
| 2122 | $ $0 $@ |
| 2123 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2124 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2125 | exec 5>>config.log |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2126 | { |
| 2127 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2128 | ## --------- ## |
| 2129 | ## Platform. ## |
| 2130 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2131 | |
| 2132 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2133 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2134 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2135 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2136 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2137 | |
| 2138 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2139 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2140 | |
| 2141 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2142 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2143 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2144 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2145 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2146 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2147 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2148 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2149 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2150 | |
| 2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2152 | for as_dir in $PATH |
| 2153 | do |
| 2154 | IFS=$as_save_IFS |
| 2155 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2156 | $as_echo "PATH: $as_dir" |
| 2157 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2158 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2159 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2160 | } >&5 |
| 2161 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2162 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2163 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2164 | |
| 2165 | ## ----------- ## |
| 2166 | ## Core tests. ## |
| 2167 | ## ----------- ## |
| 2168 | |
| 2169 | _ACEOF |
| 2170 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2171 | |
| 2172 | # Keep a trace of the command line. |
| 2173 | # 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] | 2174 | # 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] | 2175 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2176 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2177 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2178 | ac_configure_args0= |
| 2179 | ac_configure_args1= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2180 | ac_must_keep_next=false |
| 2181 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2182 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2183 | for ac_arg |
| 2184 | do |
| 2185 | case $ac_arg in |
| 2186 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2187 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2188 | | -silent | --silent | --silen | --sile | --sil) |
| 2189 | continue ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2190 | *\'*) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2191 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2192 | esac |
| 2193 | case $ac_pass in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2194 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2195 | 2) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2196 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2197 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2198 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2199 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2200 | case $ac_arg in |
| 2201 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2202 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2203 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2204 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2205 | case "$ac_configure_args0 " in |
| 2206 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2207 | esac |
| 2208 | ;; |
| 2209 | -* ) ac_must_keep_next=true ;; |
| 2210 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2211 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2212 | as_fn_append ac_configure_args " '$ac_arg'" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2213 | ;; |
| 2214 | esac |
| 2215 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2216 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2217 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2218 | { ac_configure_args1=; unset ac_configure_args1;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2219 | |
| 2220 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2221 | # config.log. We remove comments because anyway the quotes in there |
| 2222 | # would cause problems or look ugly. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2223 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2224 | # 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] | 2225 | trap 'exit_status=$? |
| 2226 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2227 | { |
| 2228 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2229 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2230 | $as_echo "## ---------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2231 | ## Cache variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2232 | ## ---------------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2233 | echo |
| 2234 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2235 | ( |
| 2236 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2237 | eval ac_val=\$$ac_var |
| 2238 | case $ac_val in #( |
| 2239 | *${as_nl}*) |
| 2240 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2241 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2242 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2243 | esac |
| 2244 | case $ac_var in #( |
| 2245 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2246 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2247 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2248 | esac ;; |
| 2249 | esac |
| 2250 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2251 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2252 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2253 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2254 | sed -n \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2255 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2256 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2257 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2258 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2259 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2260 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2261 | esac | |
| 2262 | sort |
| 2263 | ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2264 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2265 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2266 | $as_echo "## ----------------- ## |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2267 | ## Output variables. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2268 | ## ----------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2269 | echo |
| 2270 | for ac_var in $ac_subst_vars |
| 2271 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2272 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2273 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2274 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2275 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2276 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2277 | done | sort |
| 2278 | echo |
| 2279 | |
| 2280 | if test -n "$ac_subst_files"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2281 | $as_echo "## ------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2282 | ## File substitutions. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2283 | ## ------------------- ##" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2284 | echo |
| 2285 | for ac_var in $ac_subst_files |
| 2286 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2287 | eval ac_val=\$$ac_var |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2288 | case $ac_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2289 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2290 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2291 | $as_echo "$ac_var='\''$ac_val'\''" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2292 | done | sort |
| 2293 | echo |
| 2294 | fi |
| 2295 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2296 | if test -s confdefs.h; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2297 | $as_echo "## ----------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2298 | ## confdefs.h. ## |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2299 | ## ----------- ##" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2300 | echo |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2301 | cat confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2302 | echo |
| 2303 | fi |
| 2304 | test "$ac_signal" != 0 && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2305 | $as_echo "$as_me: caught signal $ac_signal" |
| 2306 | $as_echo "$as_me: exit $exit_status" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2307 | } >&5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2308 | rm -f core *.core core.conftest.* && |
| 2309 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2310 | exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2311 | ' 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2312 | for ac_signal in 1 2 13 15; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2313 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2314 | done |
| 2315 | ac_signal=0 |
| 2316 | |
| 2317 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2318 | rm -f -r conftest* confdefs.h |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2319 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2320 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2321 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2322 | # Predefined preprocessor variables. |
| 2323 | |
| 2324 | cat >>confdefs.h <<_ACEOF |
| 2325 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2326 | _ACEOF |
| 2327 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2328 | cat >>confdefs.h <<_ACEOF |
| 2329 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2330 | _ACEOF |
| 2331 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2332 | cat >>confdefs.h <<_ACEOF |
| 2333 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2334 | _ACEOF |
| 2335 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2336 | cat >>confdefs.h <<_ACEOF |
| 2337 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2338 | _ACEOF |
| 2339 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2340 | cat >>confdefs.h <<_ACEOF |
| 2341 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2342 | _ACEOF |
| 2343 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2344 | cat >>confdefs.h <<_ACEOF |
| 2345 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2346 | _ACEOF |
| 2347 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2348 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2349 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2350 | # Prefer an explicitly selected file to automatically selected ones. |
| 2351 | ac_site_file1=NONE |
| 2352 | ac_site_file2=NONE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2353 | if test -n "$CONFIG_SITE"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2354 | # We do not want a PATH search for config.site. |
| 2355 | case $CONFIG_SITE in #(( |
| 2356 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2357 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2358 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2359 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2360 | elif test "x$prefix" != xNONE; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2361 | ac_site_file1=$prefix/share/config.site |
| 2362 | ac_site_file2=$prefix/etc/config.site |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2363 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2364 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2365 | ac_site_file2=$ac_default_prefix/etc/config.site |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2366 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2367 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2368 | do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2369 | test "x$ac_site_file" = xNONE && continue |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2370 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2372 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2373 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2374 | . "$ac_site_file" \ |
| 2375 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2377 | as_fn_error $? "failed to load site script $ac_site_file |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2378 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2379 | fi |
| 2380 | done |
| 2381 | |
| 2382 | if test -r "$cache_file"; then |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 2383 | # Some versions of bash will fail to source /dev/null (special files |
| 2384 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2385 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2387 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2388 | case $cache_file in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2389 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2390 | *) . "./$cache_file";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2391 | esac |
| 2392 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2393 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2395 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2396 | >$cache_file |
| 2397 | fi |
| 2398 | |
| 2399 | # Check that the precious variables saved in the cache have kept the same |
| 2400 | # value. |
| 2401 | ac_cache_corrupted=false |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2402 | for ac_var in $ac_precious_vars; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2403 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2404 | eval ac_new_set=\$ac_env_${ac_var}_set |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2405 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2406 | eval ac_new_val=\$ac_env_${ac_var}_value |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2407 | case $ac_old_set,$ac_new_set in |
| 2408 | set,) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2410 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2411 | ac_cache_corrupted=: ;; |
| 2412 | ,set) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2414 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2415 | ac_cache_corrupted=: ;; |
| 2416 | ,);; |
| 2417 | *) |
| 2418 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2419 | # differences in whitespace do not lead to failure. |
| 2420 | ac_old_val_w=`echo x $ac_old_val` |
| 2421 | ac_new_val_w=`echo x $ac_new_val` |
| 2422 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2424 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2425 | ac_cache_corrupted=: |
| 2426 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2428 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2429 | eval $ac_var=\$ac_old_val |
| 2430 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2432 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2434 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2435 | fi;; |
| 2436 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2437 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2438 | if test "$ac_new_set" = set; then |
| 2439 | case $ac_new_val in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2440 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2441 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2442 | esac |
| 2443 | case " $ac_configure_args " in |
| 2444 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2445 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2446 | esac |
| 2447 | fi |
| 2448 | done |
| 2449 | if $ac_cache_corrupted; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2451 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2453 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2454 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2455 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2456 | ## -------------------- ## |
| 2457 | ## Main body of script. ## |
| 2458 | ## -------------------- ## |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2459 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2460 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2461 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2465 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2466 | |
| 2467 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2468 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2469 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2470 | ac_aux_dir= |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2471 | for ac_dir in tools "$srcdir"/tools; do |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2472 | if test -f "$ac_dir/install-sh"; then |
| 2473 | ac_aux_dir=$ac_dir |
| 2474 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2475 | break |
| 2476 | elif test -f "$ac_dir/install.sh"; then |
| 2477 | ac_aux_dir=$ac_dir |
| 2478 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2479 | break |
| 2480 | elif test -f "$ac_dir/shtool"; then |
| 2481 | ac_aux_dir=$ac_dir |
| 2482 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2483 | break |
| 2484 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2485 | done |
| 2486 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2487 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2488 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2489 | |
| 2490 | # These three variables are undocumented and unsupported, |
| 2491 | # and are intended to be withdrawn in a future Autoconf release. |
| 2492 | # They can cause serious problems if a builder's source tree is in a directory |
| 2493 | # whose full name contains unusual characters. |
| 2494 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2495 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2496 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2497 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2498 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2499 | |
| 2500 | |
Alexandre Julliard | d59227e | 2010-02-20 12:36:04 +0100 | [diff] [blame] | 2501 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2502 | # Check whether --enable-win16 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2503 | if test "${enable_win16+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2504 | enableval=$enable_win16; |
| 2505 | fi |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 2506 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2507 | # Check whether --enable-win64 was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2508 | if test "${enable_win64+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2509 | enableval=$enable_win64; |
| 2510 | fi |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2511 | |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2512 | # Check whether --enable-tests was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2513 | if test "${enable_tests+set}" = set; then : |
Alexandre Julliard | 35078f4 | 2008-11-21 10:16:12 +0100 | [diff] [blame] | 2514 | enableval=$enable_tests; |
| 2515 | fi |
| 2516 | |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2517 | # Check whether --enable-maintainer-mode was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2518 | if test "${enable_maintainer_mode+set}" = set; then : |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2519 | enableval=$enable_maintainer_mode; |
Alexandre Julliard | 9d03722 | 2008-03-20 13:00:12 +0100 | [diff] [blame] | 2520 | fi |
| 2521 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 2522 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2523 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2524 | # Check whether --with-alsa was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2525 | if test "${with_alsa+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2526 | withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi |
| 2527 | fi |
| 2528 | |
| 2529 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2530 | # Check whether --with-capi was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2531 | if test "${with_capi+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2532 | withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi |
| 2533 | fi |
| 2534 | |
| 2535 | |
| 2536 | # Check whether --with-cms was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2537 | if test "${with_cms+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2538 | withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi |
| 2539 | fi |
| 2540 | |
| 2541 | |
| 2542 | # Check whether --with-coreaudio was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2543 | if test "${with_coreaudio+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2544 | withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi |
| 2545 | fi |
| 2546 | |
| 2547 | |
| 2548 | # Check whether --with-cups was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2549 | if test "${with_cups+set}" = set; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 2550 | withval=$with_cups; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2551 | fi |
| 2552 | |
| 2553 | |
| 2554 | # Check whether --with-curses was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2555 | if test "${with_curses+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2556 | withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi |
| 2557 | fi |
| 2558 | |
| 2559 | |
| 2560 | # Check whether --with-esd was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2561 | if test "${with_esd+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2562 | withval=$with_esd; |
| 2563 | fi |
| 2564 | |
| 2565 | |
| 2566 | # Check whether --with-fontconfig was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2567 | if test "${with_fontconfig+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2568 | withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi |
| 2569 | fi |
| 2570 | |
| 2571 | |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2572 | # Check whether --with-freetype was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2573 | if test "${with_freetype+set}" = set; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 2574 | withval=$with_freetype; |
| 2575 | fi |
| 2576 | |
| 2577 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 2578 | # Check whether --with-gettextpo was given. |
| 2579 | if test "${with_gettextpo+set}" = set; then : |
| 2580 | withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi |
| 2581 | fi |
| 2582 | |
| 2583 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2584 | # Check whether --with-gphoto was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2585 | if test "${with_gphoto+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2586 | withval=$with_gphoto; |
| 2587 | fi |
| 2588 | |
| 2589 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2590 | # Check whether --with-glu was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2591 | if test "${with_glu+set}" = set; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 2592 | withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi |
| 2593 | fi |
| 2594 | |
| 2595 | |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2596 | # Check whether --with-gnutls was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2597 | if test "${with_gnutls+set}" = set; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 2598 | withval=$with_gnutls; |
| 2599 | fi |
| 2600 | |
| 2601 | |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 2602 | # Check whether --with-gsm was given. |
| 2603 | if test "${with_gsm+set}" = set; then : |
| 2604 | withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 2605 | fi |
| 2606 | |
| 2607 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 2608 | # Check whether --with-gstreamer was given. |
| 2609 | if test "${with_gstreamer+set}" = set; then : |
| 2610 | withval=$with_gstreamer; |
| 2611 | fi |
| 2612 | |
| 2613 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2614 | # Check whether --with-hal was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2615 | if test "${with_hal+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2616 | withval=$with_hal; |
| 2617 | fi |
| 2618 | |
| 2619 | |
| 2620 | # Check whether --with-jack was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2621 | if test "${with_jack+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2622 | withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi |
| 2623 | fi |
| 2624 | |
| 2625 | |
| 2626 | # Check whether --with-jpeg was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2627 | if test "${with_jpeg+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2628 | withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi |
| 2629 | fi |
| 2630 | |
| 2631 | |
| 2632 | # Check whether --with-ldap was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2633 | if test "${with_ldap+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2634 | withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi |
| 2635 | fi |
| 2636 | |
| 2637 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 2638 | # Check whether --with-mpg123 was given. |
| 2639 | if test "${with_mpg123+set}" = set; then : |
| 2640 | withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi |
| 2641 | fi |
| 2642 | |
| 2643 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2644 | # Check whether --with-nas was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2645 | if test "${with_nas+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2646 | withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi |
| 2647 | fi |
| 2648 | |
| 2649 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 2650 | # Check whether --with-openal was given. |
| 2651 | if test "${with_openal+set}" = set; then : |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 2652 | withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 2653 | fi |
| 2654 | |
| 2655 | |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 2656 | # Check whether --with-opencl was given. |
| 2657 | if test "${with_opencl+set}" = set; then : |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 2658 | withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 2659 | fi |
| 2660 | |
| 2661 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2662 | # Check whether --with-opengl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2663 | if test "${with_opengl+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2664 | withval=$with_opengl; |
| 2665 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2666 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 2667 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2668 | # Check whether --with-openssl was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2669 | if test "${with_openssl+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2670 | withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi |
| 2671 | fi |
| 2672 | |
| 2673 | |
| 2674 | # Check whether --with-oss was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2675 | if test "${with_oss+set}" = set; then : |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 2676 | withval=$with_oss; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2677 | fi |
| 2678 | |
| 2679 | |
| 2680 | # Check whether --with-png was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2681 | if test "${with_png+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2682 | withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi |
| 2683 | fi |
| 2684 | |
| 2685 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2686 | # Check whether --with-pthread was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2687 | if test "${with_pthread+set}" = set; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 2688 | withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi |
| 2689 | fi |
| 2690 | |
| 2691 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2692 | # Check whether --with-sane was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2693 | if test "${with_sane+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2694 | withval=$with_sane; |
| 2695 | fi |
| 2696 | |
| 2697 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 2698 | # Check whether --with-tiff was given. |
| 2699 | if test "${with_tiff+set}" = set; then : |
| 2700 | withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi |
| 2701 | fi |
| 2702 | |
| 2703 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 2704 | # Check whether --with-v4l was given. |
| 2705 | if test "${with_v4l+set}" = set; then : |
| 2706 | withval=$with_v4l; |
| 2707 | fi |
| 2708 | |
| 2709 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2710 | # Check whether --with-xcomposite was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2711 | if test "${with_xcomposite+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2712 | withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi |
| 2713 | fi |
| 2714 | |
| 2715 | |
| 2716 | # Check whether --with-xcursor was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2717 | if test "${with_xcursor+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2718 | withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi |
| 2719 | fi |
| 2720 | |
| 2721 | |
| 2722 | # Check whether --with-xinerama was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2723 | if test "${with_xinerama+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2724 | withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi |
| 2725 | fi |
| 2726 | |
| 2727 | |
| 2728 | # Check whether --with-xinput was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2729 | if test "${with_xinput+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2730 | withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi |
| 2731 | fi |
| 2732 | |
| 2733 | |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 2734 | # Check whether --with-xinput2 was given. |
| 2735 | if test "${with_xinput2+set}" = set; then : |
| 2736 | withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi |
| 2737 | fi |
| 2738 | |
| 2739 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2740 | # Check whether --with-xml was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2741 | if test "${with_xml+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2742 | withval=$with_xml; |
| 2743 | fi |
| 2744 | |
| 2745 | |
| 2746 | # Check whether --with-xrandr was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2747 | if test "${with_xrandr+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2748 | withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi |
| 2749 | fi |
| 2750 | |
| 2751 | |
| 2752 | # Check whether --with-xrender was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2753 | if test "${with_xrender+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2754 | withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi |
| 2755 | fi |
| 2756 | |
| 2757 | |
| 2758 | # Check whether --with-xshape was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2759 | if test "${with_xshape+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2760 | withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi |
| 2761 | fi |
| 2762 | |
| 2763 | |
| 2764 | # Check whether --with-xshm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2765 | if test "${with_xshm+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2766 | withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi |
| 2767 | fi |
| 2768 | |
| 2769 | |
| 2770 | # Check whether --with-xslt was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2771 | if test "${with_xslt+set}" = set; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2772 | withval=$with_xslt; |
| 2773 | fi |
| 2774 | |
| 2775 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 2776 | # Check whether --with-xxf86vm was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2777 | if test "${with_xxf86vm+set}" = set; then : |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 2778 | withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2779 | fi |
| 2780 | |
| 2781 | |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 2782 | # Check whether --with-zlib was given. |
| 2783 | if test "${with_zlib+set}" = set; then : |
| 2784 | withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi |
| 2785 | fi |
| 2786 | |
| 2787 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 2788 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2789 | # Check whether --with-wine-tools was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2790 | if test "${with_wine_tools+set}" = set; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2791 | withval=$with_wine_tools; |
| 2792 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2793 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2794 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 2795 | # Check whether --with-wine64 was given. |
| 2796 | if test "${with_wine64+set}" = set; then : |
| 2797 | withval=$with_wine64; |
| 2798 | fi |
| 2799 | |
| 2800 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2801 | # Make sure we can run config.sub. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2802 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2803 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 2804 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2806 | $as_echo_n "checking build system type... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2807 | if ${ac_cv_build+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2808 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2809 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2810 | ac_build_alias=$build_alias |
| 2811 | test "x$ac_build_alias" = x && |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2812 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2813 | test "x$ac_build_alias" = x && |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2814 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2815 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2816 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2817 | |
| 2818 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2820 | $as_echo "$ac_cv_build" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2821 | case $ac_cv_build in |
| 2822 | *-*-*) ;; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2823 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2824 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2825 | build=$ac_cv_build |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2826 | ac_save_IFS=$IFS; IFS='-' |
| 2827 | set x $ac_cv_build |
| 2828 | shift |
| 2829 | build_cpu=$1 |
| 2830 | build_vendor=$2 |
| 2831 | shift; shift |
| 2832 | # Remember, the first character of IFS is used to create $*, |
| 2833 | # except with old shells: |
| 2834 | build_os=$* |
| 2835 | IFS=$ac_save_IFS |
| 2836 | 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] | 2837 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2838 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2840 | $as_echo_n "checking host system type... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2841 | if ${ac_cv_host+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2842 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2843 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2844 | if test "x$host_alias" = x; then |
| 2845 | ac_cv_host=$ac_cv_build |
| 2846 | else |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2847 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2848 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2849 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2850 | |
| 2851 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2853 | $as_echo "$ac_cv_host" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2854 | case $ac_cv_host in |
| 2855 | *-*-*) ;; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2856 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2857 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2858 | host=$ac_cv_host |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2859 | ac_save_IFS=$IFS; IFS='-' |
| 2860 | set x $ac_cv_host |
| 2861 | shift |
| 2862 | host_cpu=$1 |
| 2863 | host_vendor=$2 |
| 2864 | shift; shift |
| 2865 | # Remember, the first character of IFS is used to create $*, |
| 2866 | # except with old shells: |
| 2867 | host_os=$* |
| 2868 | IFS=$ac_save_IFS |
| 2869 | 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] | 2870 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2871 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2872 | |
Alexandre Julliard | 73b724e | 2006-12-28 11:40:19 +0100 | [diff] [blame] | 2873 | case "$srcdir" in |
| 2874 | .) ;; |
| 2875 | *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2876 | as_fn_error $? "you are building out of the source tree, but the source tree contains object files. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2877 | You need to run 'make distclean' in the source tree first." "$LINENO" 5 |
Alexandre Julliard | 73b724e | 2006-12-28 11:40:19 +0100 | [diff] [blame] | 2878 | fi ;; |
| 2879 | esac |
| 2880 | |
Alexandre Julliard | 71440f3 | 2005-05-19 14:28:17 +0000 | [diff] [blame] | 2881 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2883 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2884 | set x ${MAKE-make} |
| 2885 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2886 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2887 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2888 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2889 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2890 | SHELL = /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2891 | all: |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2892 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2893 | _ACEOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 2894 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2895 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2896 | *@@@%%%=?*=@@@%%%*) |
| 2897 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2898 | *) |
| 2899 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2900 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2901 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2902 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 2903 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2905 | $as_echo "yes" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2906 | SET_MAKE= |
| 2907 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2909 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2910 | SET_MAKE="MAKE=${MAKE-make}" |
| 2911 | fi |
| 2912 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2913 | ac_ext=c |
| 2914 | ac_cpp='$CPP $CPPFLAGS' |
| 2915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2918 | if test -n "$ac_tool_prefix"; then |
| 2919 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2920 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2922 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2923 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2924 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2925 | else |
| 2926 | if test -n "$CC"; then |
| 2927 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2928 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2930 | for as_dir in $PATH |
| 2931 | do |
| 2932 | IFS=$as_save_IFS |
| 2933 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2934 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 2935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2936 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2938 | break 2 |
| 2939 | fi |
| 2940 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2941 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2942 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2943 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2944 | fi |
| 2945 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2946 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2947 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2949 | $as_echo "$CC" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2950 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2952 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2953 | fi |
| 2954 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2955 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2956 | fi |
| 2957 | if test -z "$ac_cv_prog_CC"; then |
| 2958 | ac_ct_CC=$CC |
| 2959 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2960 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2962 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 2963 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2964 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2965 | else |
| 2966 | if test -n "$ac_ct_CC"; then |
| 2967 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2968 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2970 | for as_dir in $PATH |
| 2971 | do |
| 2972 | IFS=$as_save_IFS |
| 2973 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2974 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 2975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2976 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2978 | break 2 |
| 2979 | fi |
| 2980 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2981 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2982 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2983 | |
| 2984 | fi |
| 2985 | fi |
| 2986 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2987 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2989 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2990 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 2992 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2993 | fi |
| 2994 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 2995 | if test "x$ac_ct_CC" = x; then |
| 2996 | CC="" |
| 2997 | else |
| 2998 | case $cross_compiling:$ac_tool_warned in |
| 2999 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3001 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3002 | ac_tool_warned=yes ;; |
| 3003 | esac |
| 3004 | CC=$ac_ct_CC |
| 3005 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3006 | else |
| 3007 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3008 | fi |
| 3009 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3010 | if test -z "$CC"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3011 | if test -n "$ac_tool_prefix"; then |
| 3012 | # 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] | 3013 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3015 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3016 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3017 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3018 | else |
| 3019 | if test -n "$CC"; then |
| 3020 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3021 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3023 | for as_dir in $PATH |
| 3024 | do |
| 3025 | IFS=$as_save_IFS |
| 3026 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3027 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3029 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3031 | break 2 |
| 3032 | fi |
| 3033 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3034 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3035 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3036 | |
| 3037 | fi |
| 3038 | fi |
| 3039 | CC=$ac_cv_prog_CC |
| 3040 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3042 | $as_echo "$CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3043 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3045 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3046 | fi |
| 3047 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3048 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3049 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3050 | fi |
| 3051 | if test -z "$CC"; then |
| 3052 | # Extract the first word of "cc", so it can be a program name with args. |
| 3053 | set dummy cc; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3055 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3056 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3057 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3058 | else |
| 3059 | if test -n "$CC"; then |
| 3060 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3061 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3062 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3064 | for as_dir in $PATH |
| 3065 | do |
| 3066 | IFS=$as_save_IFS |
| 3067 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3068 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3070 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3071 | ac_prog_rejected=yes |
| 3072 | continue |
| 3073 | fi |
| 3074 | ac_cv_prog_CC="cc" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3076 | break 2 |
| 3077 | fi |
| 3078 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3079 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3080 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3081 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3082 | if test $ac_prog_rejected = yes; then |
| 3083 | # We found a bogon in the path, so make sure we never use it. |
| 3084 | set dummy $ac_cv_prog_CC |
| 3085 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3086 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3087 | # We chose a different compiler from the bogus one. |
| 3088 | # However, it has the same basename, so the bogon will be chosen |
| 3089 | # first if we set CC to just the basename; use the full file name. |
| 3090 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3091 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3092 | fi |
| 3093 | fi |
| 3094 | fi |
| 3095 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3096 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3097 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3099 | $as_echo "$CC" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3100 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3102 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3103 | fi |
| 3104 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3105 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3106 | fi |
| 3107 | if test -z "$CC"; then |
| 3108 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3109 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3110 | do |
| 3111 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3112 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3114 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3115 | if ${ac_cv_prog_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3116 | $as_echo_n "(cached) " >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3117 | else |
| 3118 | if test -n "$CC"; then |
| 3119 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3120 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3122 | for as_dir in $PATH |
| 3123 | do |
| 3124 | IFS=$as_save_IFS |
| 3125 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3126 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3128 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3130 | break 2 |
| 3131 | fi |
| 3132 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3133 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3134 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3135 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3136 | fi |
| 3137 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3138 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3139 | if test -n "$CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3141 | $as_echo "$CC" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3142 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3144 | $as_echo "no" >&6; } |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3145 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3146 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3147 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3148 | test -n "$CC" && break |
| 3149 | done |
| 3150 | fi |
| 3151 | if test -z "$CC"; then |
| 3152 | ac_ct_CC=$CC |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3153 | for ac_prog in cl.exe |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3154 | do |
| 3155 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3156 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3158 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3159 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3160 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3161 | else |
| 3162 | if test -n "$ac_ct_CC"; then |
| 3163 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3164 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3166 | for as_dir in $PATH |
| 3167 | do |
| 3168 | IFS=$as_save_IFS |
| 3169 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3170 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3172 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3174 | break 2 |
| 3175 | fi |
| 3176 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3177 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3178 | IFS=$as_save_IFS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3179 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3180 | fi |
| 3181 | fi |
| 3182 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3183 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3185 | $as_echo "$ac_ct_CC" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3186 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3188 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3189 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3190 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3191 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3192 | test -n "$ac_ct_CC" && break |
| 3193 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3194 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3195 | if test "x$ac_ct_CC" = x; then |
| 3196 | CC="" |
| 3197 | else |
| 3198 | case $cross_compiling:$ac_tool_warned in |
| 3199 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3202 | ac_tool_warned=yes ;; |
| 3203 | esac |
| 3204 | CC=$ac_ct_CC |
| 3205 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3206 | fi |
| 3207 | |
| 3208 | fi |
| 3209 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3210 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3211 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3212 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3213 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3214 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3215 | |
| 3216 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3217 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3218 | set X $ac_compile |
| 3219 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3220 | for ac_option in --version -v -V -qversion; do |
| 3221 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3222 | case "(($ac_try" in |
| 3223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3224 | *) ac_try_echo=$ac_try;; |
| 3225 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3226 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3227 | $as_echo "$ac_try_echo"; } >&5 |
| 3228 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3229 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3230 | if test -s conftest.err; then |
| 3231 | sed '10a\ |
| 3232 | ... rest of stderr output deleted ... |
| 3233 | 10q' conftest.err >conftest.er1 |
| 3234 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3235 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3236 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3238 | test $ac_status = 0; } |
| 3239 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3240 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3242 | /* end confdefs.h. */ |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3243 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3244 | int |
| 3245 | main () |
| 3246 | { |
| 3247 | |
| 3248 | ; |
| 3249 | return 0; |
| 3250 | } |
| 3251 | _ACEOF |
| 3252 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3253 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3254 | # Try to create an executable without -o first, disregard a.out. |
| 3255 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3256 | # of exeext. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3258 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3259 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3260 | |
| 3261 | # The possible output files: |
| 3262 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3263 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3264 | ac_rmfiles= |
| 3265 | for ac_file in $ac_files |
| 3266 | do |
| 3267 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3268 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3269 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3270 | esac |
| 3271 | done |
| 3272 | rm -f $ac_rmfiles |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3273 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3274 | if { { ac_try="$ac_link_default" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3275 | case "(($ac_try" in |
| 3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3277 | *) ac_try_echo=$ac_try;; |
| 3278 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3280 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3281 | (eval "$ac_link_default") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3282 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3284 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3285 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3286 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3287 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3288 | # so that the user can short-circuit this test for compilers unknown to |
| 3289 | # Autoconf. |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3290 | for ac_file in $ac_files '' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3291 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3292 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3293 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3294 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3295 | ;; |
| 3296 | [ab].out ) |
| 3297 | # We found the default executable, but exeext='' is most |
| 3298 | # certainly right. |
| 3299 | break;; |
| 3300 | *.* ) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3301 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3302 | then :; else |
| 3303 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3304 | fi |
| 3305 | # We set ac_cv_exeext here because the later test for it is not |
| 3306 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3307 | # argument, so we may need to know it at that point already. |
| 3308 | # Even if this section looks crufty: it has the advantage of |
| 3309 | # actually working. |
| 3310 | break;; |
| 3311 | * ) |
| 3312 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3313 | esac |
| 3314 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3315 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3316 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3317 | else |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 3318 | ac_file='' |
| 3319 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3320 | if test -z "$ac_file"; then : |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3322 | $as_echo "no" >&6; } |
| 3323 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3325 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3326 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3327 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3328 | as_fn_error 77 "C compiler cannot create executables |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3329 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3330 | else |
| 3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3332 | $as_echo "yes" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3333 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3335 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3337 | $as_echo "$ac_file" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3338 | ac_exeext=$ac_cv_exeext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3339 | |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3340 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3341 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3343 | $as_echo_n "checking for suffix of executables... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3344 | if { { ac_try="$ac_link" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3345 | case "(($ac_try" in |
| 3346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3347 | *) ac_try_echo=$ac_try;; |
| 3348 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3349 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3350 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3351 | (eval "$ac_link") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3352 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3354 | test $ac_status = 0; }; then : |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3355 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3356 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3357 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3358 | # `rm'. |
| 3359 | for ac_file in conftest.exe conftest conftest.*; do |
| 3360 | test -f "$ac_file" || continue |
| 3361 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3362 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3363 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3364 | break;; |
| 3365 | * ) break;; |
| 3366 | esac |
| 3367 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3368 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3369 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3370 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3371 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3372 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3373 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3374 | rm -f conftest conftest$ac_cv_exeext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3376 | $as_echo "$ac_cv_exeext" >&6; } |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3377 | |
| 3378 | rm -f conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3379 | EXEEXT=$ac_cv_exeext |
| 3380 | ac_exeext=$EXEEXT |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3382 | /* end confdefs.h. */ |
| 3383 | #include <stdio.h> |
| 3384 | int |
| 3385 | main () |
| 3386 | { |
| 3387 | FILE *f = fopen ("conftest.out", "w"); |
| 3388 | return ferror (f) || fclose (f) != 0; |
| 3389 | |
| 3390 | ; |
| 3391 | return 0; |
| 3392 | } |
| 3393 | _ACEOF |
| 3394 | ac_clean_files="$ac_clean_files conftest.out" |
| 3395 | # Check that the compiler produces executables we can run. If not, either |
| 3396 | # the compiler is broken, or we cross compile. |
| 3397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3398 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3399 | if test "$cross_compiling" != yes; then |
| 3400 | { { ac_try="$ac_link" |
| 3401 | case "(($ac_try" in |
| 3402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3403 | *) ac_try_echo=$ac_try;; |
| 3404 | esac |
| 3405 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3406 | $as_echo "$ac_try_echo"; } >&5 |
| 3407 | (eval "$ac_link") 2>&5 |
| 3408 | ac_status=$? |
| 3409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3410 | test $ac_status = 0; } |
| 3411 | if { ac_try='./conftest$ac_cv_exeext' |
| 3412 | { { case "(($ac_try" in |
| 3413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3414 | *) ac_try_echo=$ac_try;; |
| 3415 | esac |
| 3416 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3417 | $as_echo "$ac_try_echo"; } >&5 |
| 3418 | (eval "$ac_try") 2>&5 |
| 3419 | ac_status=$? |
| 3420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3421 | test $ac_status = 0; }; }; then |
| 3422 | cross_compiling=no |
| 3423 | else |
| 3424 | if test "$cross_compiling" = maybe; then |
| 3425 | cross_compiling=yes |
| 3426 | else |
| 3427 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3428 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3429 | as_fn_error $? "cannot run C compiled programs. |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3430 | If you meant to cross compile, use \`--host'. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3431 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3432 | fi |
| 3433 | fi |
| 3434 | fi |
| 3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3436 | $as_echo "$cross_compiling" >&6; } |
| 3437 | |
| 3438 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3439 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3441 | $as_echo_n "checking for suffix of object files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3442 | if ${ac_cv_objext+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3443 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3444 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3446 | /* end confdefs.h. */ |
| 3447 | |
| 3448 | int |
| 3449 | main () |
| 3450 | { |
| 3451 | |
| 3452 | ; |
| 3453 | return 0; |
| 3454 | } |
| 3455 | _ACEOF |
| 3456 | rm -f conftest.o conftest.obj |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3457 | if { { ac_try="$ac_compile" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3458 | case "(($ac_try" in |
| 3459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3460 | *) ac_try_echo=$ac_try;; |
| 3461 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3462 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3463 | $as_echo "$ac_try_echo"; } >&5 |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3464 | (eval "$ac_compile") 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3465 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3466 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3467 | test $ac_status = 0; }; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3468 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3469 | test -f "$ac_file" || continue; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3470 | case $ac_file in |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3471 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3472 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3473 | break;; |
| 3474 | esac |
| 3475 | done |
| 3476 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3477 | $as_echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3479 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 3482 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3483 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3484 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3485 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3486 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3488 | $as_echo "$ac_cv_objext" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3489 | OBJEXT=$ac_cv_objext |
| 3490 | ac_objext=$OBJEXT |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3492 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3493 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3494 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3495 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3497 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3498 | |
| 3499 | int |
| 3500 | main () |
| 3501 | { |
| 3502 | #ifndef __GNUC__ |
| 3503 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3504 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3505 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3506 | ; |
| 3507 | return 0; |
| 3508 | } |
| 3509 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3510 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3511 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3512 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3513 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3514 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3516 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3517 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3518 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3520 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3521 | if test $ac_compiler_gnu = yes; then |
| 3522 | GCC=yes |
| 3523 | else |
| 3524 | GCC= |
| 3525 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3526 | ac_test_CFLAGS=${CFLAGS+set} |
| 3527 | ac_save_CFLAGS=$CFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3529 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3530 | if ${ac_cv_prog_cc_g+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3531 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3532 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3533 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3534 | ac_c_werror_flag=yes |
| 3535 | ac_cv_prog_cc_g=no |
| 3536 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3538 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3539 | |
| 3540 | int |
| 3541 | main () |
| 3542 | { |
| 3543 | |
| 3544 | ; |
| 3545 | return 0; |
| 3546 | } |
| 3547 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3548 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3549 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3550 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3551 | CFLAGS="" |
| 3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3553 | /* end confdefs.h. */ |
| 3554 | |
| 3555 | int |
| 3556 | main () |
| 3557 | { |
| 3558 | |
| 3559 | ; |
| 3560 | return 0; |
| 3561 | } |
| 3562 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3563 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3564 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3565 | else |
| 3566 | ac_c_werror_flag=$ac_save_c_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3567 | CFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3569 | /* end confdefs.h. */ |
| 3570 | |
| 3571 | int |
| 3572 | main () |
| 3573 | { |
| 3574 | |
| 3575 | ; |
| 3576 | return 0; |
| 3577 | } |
| 3578 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3579 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3580 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3581 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3583 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3585 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3587 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3588 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3590 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3591 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3592 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3593 | elif test $ac_cv_prog_cc_g = yes; then |
| 3594 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3595 | CFLAGS="-g -O2" |
| 3596 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3597 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3598 | fi |
| 3599 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3600 | if test "$GCC" = yes; then |
| 3601 | CFLAGS="-O2" |
| 3602 | else |
| 3603 | CFLAGS= |
| 3604 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3605 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3607 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3608 | if ${ac_cv_prog_cc_c89+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3609 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3610 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3611 | ac_cv_prog_cc_c89=no |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3612 | ac_save_CC=$CC |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3614 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3615 | #include <stdarg.h> |
| 3616 | #include <stdio.h> |
| 3617 | #include <sys/types.h> |
| 3618 | #include <sys/stat.h> |
| 3619 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3620 | struct buf { int x; }; |
| 3621 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3622 | static char *e (p, i) |
| 3623 | char **p; |
| 3624 | int i; |
| 3625 | { |
| 3626 | return p[i]; |
| 3627 | } |
| 3628 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3629 | { |
| 3630 | char *s; |
| 3631 | va_list v; |
| 3632 | va_start (v,p); |
| 3633 | s = g (p, va_arg (v,int)); |
| 3634 | va_end (v); |
| 3635 | return s; |
| 3636 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3637 | |
| 3638 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3639 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3640 | These don't provoke an error unfortunately, instead are silently treated |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3641 | 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] | 3642 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3643 | 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] | 3644 | that's true only with -std. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3645 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3646 | |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 3647 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3648 | inside strings and character constants. */ |
| 3649 | #define FOO(x) 'x' |
| 3650 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3651 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3652 | int test (int i, double x); |
| 3653 | struct s1 {int (*f) (int a);}; |
| 3654 | struct s2 {int (*f) (double a);}; |
| 3655 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3656 | int argc; |
| 3657 | char **argv; |
| 3658 | int |
| 3659 | main () |
| 3660 | { |
| 3661 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3662 | ; |
| 3663 | return 0; |
| 3664 | } |
| 3665 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3666 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3667 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3668 | do |
| 3669 | CC="$ac_save_CC $ac_arg" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3670 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3671 | ac_cv_prog_cc_c89=$ac_arg |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3672 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3673 | rm -f core conftest.err conftest.$ac_objext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3674 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3675 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3676 | rm -f conftest.$ac_ext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3677 | CC=$ac_save_CC |
| 3678 | |
| 3679 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3680 | # AC_CACHE_VAL |
| 3681 | case "x$ac_cv_prog_cc_c89" in |
| 3682 | x) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3684 | $as_echo "none needed" >&6; } ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3685 | xno) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3687 | $as_echo "unsupported" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3688 | *) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3689 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3691 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3692 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3693 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3694 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3695 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3696 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3697 | ac_ext=c |
| 3698 | ac_cpp='$CPP $CPPFLAGS' |
| 3699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3702 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3703 | ac_ext=cpp |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3704 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3705 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3706 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3707 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3708 | if test -z "$CXX"; then |
| 3709 | if test -n "$CCC"; then |
| 3710 | CXX=$CCC |
| 3711 | else |
| 3712 | if test -n "$ac_tool_prefix"; then |
| 3713 | 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] | 3714 | do |
| 3715 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3716 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3718 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3719 | if ${ac_cv_prog_CXX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3720 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3721 | else |
| 3722 | if test -n "$CXX"; then |
| 3723 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3724 | else |
| 3725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3726 | for as_dir in $PATH |
| 3727 | do |
| 3728 | IFS=$as_save_IFS |
| 3729 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3730 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3732 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3734 | break 2 |
| 3735 | fi |
| 3736 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3737 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3738 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3739 | |
| 3740 | fi |
| 3741 | fi |
| 3742 | CXX=$ac_cv_prog_CXX |
| 3743 | if test -n "$CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3745 | $as_echo "$CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3746 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3748 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3749 | fi |
| 3750 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3751 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3752 | test -n "$CXX" && break |
| 3753 | done |
| 3754 | fi |
| 3755 | if test -z "$CXX"; then |
| 3756 | ac_ct_CXX=$CXX |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3757 | 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] | 3758 | do |
| 3759 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3760 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3762 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3763 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3764 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3765 | else |
| 3766 | if test -n "$ac_ct_CXX"; then |
| 3767 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3768 | else |
| 3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3770 | for as_dir in $PATH |
| 3771 | do |
| 3772 | IFS=$as_save_IFS |
| 3773 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3774 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3776 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3778 | break 2 |
| 3779 | fi |
| 3780 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3781 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3782 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3783 | |
| 3784 | fi |
| 3785 | fi |
| 3786 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3787 | if test -n "$ac_ct_CXX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3789 | $as_echo "$ac_ct_CXX" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3790 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3792 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3793 | fi |
| 3794 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3795 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3796 | test -n "$ac_ct_CXX" && break |
| 3797 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3798 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3799 | if test "x$ac_ct_CXX" = x; then |
| 3800 | CXX="g++" |
| 3801 | else |
| 3802 | case $cross_compiling:$ac_tool_warned in |
| 3803 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3805 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3806 | ac_tool_warned=yes ;; |
| 3807 | esac |
| 3808 | CXX=$ac_ct_CXX |
| 3809 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3810 | fi |
| 3811 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3812 | fi |
| 3813 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3814 | # Provide some information about the compiler. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3815 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3816 | set X $ac_compile |
| 3817 | ac_compiler=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3818 | for ac_option in --version -v -V -qversion; do |
| 3819 | { { ac_try="$ac_compiler $ac_option >&5" |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3820 | case "(($ac_try" in |
| 3821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3822 | *) ac_try_echo=$ac_try;; |
| 3823 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3824 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3825 | $as_echo "$ac_try_echo"; } >&5 |
| 3826 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3827 | ac_status=$? |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3828 | if test -s conftest.err; then |
| 3829 | sed '10a\ |
| 3830 | ... rest of stderr output deleted ... |
| 3831 | 10q' conftest.err >conftest.er1 |
| 3832 | cat conftest.er1 >&5 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3833 | fi |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 3834 | rm -f conftest.er1 conftest.err |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3836 | test $ac_status = 0; } |
| 3837 | done |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3838 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3840 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3841 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3842 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3843 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3845 | /* end confdefs.h. */ |
| 3846 | |
| 3847 | int |
| 3848 | main () |
| 3849 | { |
| 3850 | #ifndef __GNUC__ |
| 3851 | choke me |
| 3852 | #endif |
| 3853 | |
| 3854 | ; |
| 3855 | return 0; |
| 3856 | } |
| 3857 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3858 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3859 | ac_compiler_gnu=yes |
| 3860 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3861 | ac_compiler_gnu=no |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3862 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3864 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3865 | |
| 3866 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3868 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3869 | if test $ac_compiler_gnu = yes; then |
| 3870 | GXX=yes |
| 3871 | else |
| 3872 | GXX= |
| 3873 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3874 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3875 | ac_save_CXXFLAGS=$CXXFLAGS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3877 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3878 | if ${ac_cv_prog_cxx_g+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3879 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3880 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3881 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3882 | ac_cxx_werror_flag=yes |
| 3883 | ac_cv_prog_cxx_g=no |
| 3884 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3886 | /* end confdefs.h. */ |
| 3887 | |
| 3888 | int |
| 3889 | main () |
| 3890 | { |
| 3891 | |
| 3892 | ; |
| 3893 | return 0; |
| 3894 | } |
| 3895 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3896 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3897 | ac_cv_prog_cxx_g=yes |
| 3898 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3899 | CXXFLAGS="" |
| 3900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3901 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3902 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3903 | int |
| 3904 | main () |
| 3905 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3906 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3907 | ; |
| 3908 | return 0; |
| 3909 | } |
| 3910 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3911 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3912 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3913 | else |
| 3914 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3915 | CXXFLAGS="-g" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3917 | /* end confdefs.h. */ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3918 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3919 | int |
| 3920 | main () |
| 3921 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3922 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3923 | ; |
| 3924 | return 0; |
| 3925 | } |
| 3926 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3927 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3928 | ac_cv_prog_cxx_g=yes |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3929 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3931 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3933 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 3934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3935 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3936 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3938 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3939 | if test "$ac_test_CXXFLAGS" = set; then |
| 3940 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3941 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3942 | if test "$GXX" = yes; then |
| 3943 | CXXFLAGS="-g -O2" |
| 3944 | else |
| 3945 | CXXFLAGS="-g" |
| 3946 | fi |
| 3947 | else |
| 3948 | if test "$GXX" = yes; then |
| 3949 | CXXFLAGS="-O2" |
| 3950 | else |
| 3951 | CXXFLAGS= |
| 3952 | fi |
| 3953 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3954 | ac_ext=c |
| 3955 | ac_cpp='$CPP $CPPFLAGS' |
| 3956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3959 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3960 | if test -n "$ac_tool_prefix"; then |
| 3961 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 3962 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3964 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 3965 | if ${ac_cv_prog_CPPBIN+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3966 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3967 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3968 | if test -n "$CPPBIN"; then |
| 3969 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3970 | else |
| 3971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3972 | for as_dir in $PATH |
| 3973 | do |
| 3974 | IFS=$as_save_IFS |
| 3975 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3976 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 3977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3978 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3980 | break 2 |
| 3981 | fi |
| 3982 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3983 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3984 | IFS=$as_save_IFS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3985 | |
| 3986 | fi |
| 3987 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3988 | CPPBIN=$ac_cv_prog_CPPBIN |
| 3989 | if test -n "$CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3991 | $as_echo "$CPPBIN" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3992 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 3994 | $as_echo "no" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 3995 | fi |
| 3996 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 3997 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 3998 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 3999 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 4000 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4001 | # Extract the first word of "cpp", so it can be a program name with args. |
| 4002 | set dummy cpp; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4004 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4005 | if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4006 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4007 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4008 | if test -n "$ac_ct_CPPBIN"; then |
| 4009 | 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] | 4010 | else |
| 4011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4012 | for as_dir in $PATH |
| 4013 | do |
| 4014 | IFS=$as_save_IFS |
| 4015 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4016 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4018 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4020 | break 2 |
| 4021 | fi |
| 4022 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4023 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4024 | IFS=$as_save_IFS |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4025 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4026 | fi |
| 4027 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4028 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 4029 | if test -n "$ac_ct_CPPBIN"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4031 | $as_echo "$ac_ct_CPPBIN" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4032 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4034 | $as_echo "no" >&6; } |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4035 | fi |
| 4036 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4037 | if test "x$ac_ct_CPPBIN" = x; then |
| 4038 | CPPBIN="cpp" |
| 4039 | else |
| 4040 | case $cross_compiling:$ac_tool_warned in |
| 4041 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4043 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4044 | ac_tool_warned=yes ;; |
| 4045 | esac |
| 4046 | CPPBIN=$ac_ct_CPPBIN |
| 4047 | fi |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4048 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 4049 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 4050 | fi |
| 4051 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4052 | |
Alexandre Julliard | 1aea4ef | 2009-08-27 13:35:46 +0200 | [diff] [blame] | 4053 | cat >>confdefs.h <<_ACEOF |
| 4054 | #define EXEEXT "$ac_exeext" |
| 4055 | _ACEOF |
| 4056 | |
| 4057 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4058 | case $host in |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4059 | *-darwin*) |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4060 | if test "x$enable_win64" = "xyes" |
Ken Thomases | 4266433 | 2009-05-01 22:59:52 -0500 | [diff] [blame] | 4061 | then |
| 4062 | CC="$CC -m64" |
| 4063 | CXX="$CXX -m64" |
| 4064 | LD="${LD:-ld} -arch x86_64" |
| 4065 | AS="${AS:-as} -arch x86_64" |
| 4066 | host_cpu="x86_64" |
| 4067 | notice_platform="64-bit " |
| 4068 | TARGETFLAGS="-m64" |
| 4069 | |
| 4070 | else |
| 4071 | CC="$CC -m32" |
| 4072 | CXX="$CXX -m32" |
| 4073 | LD="${LD:-ld} -arch i386" |
| 4074 | AS="${AS:-as} -arch i386" |
| 4075 | host_cpu="i386" |
| 4076 | notice_platform="32-bit " |
| 4077 | TARGETFLAGS="-m32" |
| 4078 | |
| 4079 | enable_win16=${enable_win16:-yes} |
| 4080 | fi |
| 4081 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4082 | x86_64*) |
Alexandre Julliard | 6b4ed0f | 2009-01-12 19:29:43 +0100 | [diff] [blame] | 4083 | if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes" |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4084 | then |
| 4085 | CC="$CC -m32" |
| 4086 | CXX="$CXX -m32" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4088 | $as_echo_n "checking whether $CC works... " >&6; } |
| 4089 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4091 | /* end confdefs.h. */ |
| 4092 | |
| 4093 | int |
| 4094 | main () |
| 4095 | { |
| 4096 | |
| 4097 | ; |
| 4098 | return 0; |
| 4099 | } |
| 4100 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4101 | if ac_fn_c_try_link "$LINENO"; then : |
| 4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4103 | $as_echo "yes" >&6; } |
| 4104 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4106 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4107 | as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5 |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4108 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4109 | rm -f core conftest.err conftest.$ac_objext \ |
| 4110 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4111 | LD="${LD:-ld} -m elf_i386" |
| 4112 | AS="${AS:-as} --32" |
| 4113 | host_cpu="i386" |
| 4114 | notice_platform="32-bit " |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4115 | TARGETFLAGS="-m32" |
| 4116 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4117 | enable_win16=${enable_win16:-yes} |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4118 | else |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4119 | if test "x${GCC}" = "xyes" |
| 4120 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4122 | $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4124 | /* end confdefs.h. */ |
| 4125 | #include <stdarg.h> |
| 4126 | int |
| 4127 | main () |
| 4128 | { |
| 4129 | void func(__builtin_ms_va_list *args); |
| 4130 | ; |
| 4131 | return 0; |
| 4132 | } |
| 4133 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4134 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4136 | $as_echo "yes" >&6; } |
| 4137 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4139 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4140 | as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5 |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4141 | fi |
Alexandre Julliard | 8812d24 | 2009-06-14 11:19:54 +0200 | [diff] [blame] | 4142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4143 | fi |
Alexandre Julliard | 07f77c4 | 2009-01-15 21:17:51 +0100 | [diff] [blame] | 4144 | TARGETFLAGS="-m64" |
| 4145 | |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4146 | fi |
| 4147 | ;; |
Alexandre Julliard | 391fce6 | 2009-04-02 12:59:52 +0200 | [diff] [blame] | 4148 | *-mingw32*|*-cygwin*) |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4149 | enable_win16=${enable_win16:-no} |
Alexandre Goujon | ac0a38c | 2010-03-01 21:39:40 +0100 | [diff] [blame] | 4150 | CFLAGS="$CFLAGS -D_WIN32" |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4151 | ;; |
| 4152 | i[3456789]86*) |
| 4153 | enable_win16=${enable_win16:-yes} |
| 4154 | ;; |
Alexandre Julliard | dfa66db | 2009-01-12 15:25:44 +0100 | [diff] [blame] | 4155 | esac |
| 4156 | |
Alexandre Julliard | 9981f4c | 2009-02-26 15:00:12 +0100 | [diff] [blame] | 4157 | enable_win16=${enable_win16:-no} |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 4158 | enable_win64=${enable_win64:-no} |
Alexandre Julliard | 776820e | 2009-02-23 17:46:33 +0100 | [diff] [blame] | 4159 | |
Alexandre Julliard | 9508155 | 2010-02-09 19:08:17 +0100 | [diff] [blame] | 4160 | enable_winetest=${enable_winetest:-$enable_tests} |
| 4161 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4162 | if test -n "$with_wine64" |
| 4163 | then |
| 4164 | if test "x$enable_win64" = "xyes" |
| 4165 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4166 | as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive. |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4167 | --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5 |
| 4168 | fi |
Alexandre Julliard | 9064777 | 2009-08-13 19:48:42 +0200 | [diff] [blame] | 4169 | WOW64_DISABLE=\# |
| 4170 | |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4171 | enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4172 | enable_server=${enable_server:-no} |
| 4173 | enable_tools=${enable_tools:-no} |
Alexandre Julliard | b326532 | 2010-04-21 12:28:22 +0200 | [diff] [blame] | 4174 | elif test "x$enable_win64" = "xyes" |
| 4175 | then |
| 4176 | test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4177 | fi |
| 4178 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4180 | $as_echo_n "checking for the directory containing the Wine tools... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4181 | if ${wine_cv_toolsdir+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4182 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4183 | else |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4184 | wine_cv_toolsdir="$with_wine_tools" |
| 4185 | if test -z "$with_wine_tools"; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4186 | if test "$cross_compiling" = "yes"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4187 | as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5 |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4188 | elif test -n "$with_wine64"; then |
| 4189 | wine_cv_toolsdir="$with_wine64" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4190 | fi |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4191 | fi |
| 4192 | if test -z "$wine_cv_toolsdir"; then |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4193 | wine_cv_toolsdir="\$(top_builddir)" |
Alexandre Julliard | 39a75d3 | 2009-08-13 19:45:31 +0200 | [diff] [blame] | 4194 | elif test -d "$wine_cv_toolsdir/tools/winebuild"; then |
| 4195 | case "$wine_cv_toolsdir" in |
| 4196 | /*) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4197 | *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;; |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4198 | esac |
| 4199 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4200 | as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4201 | fi |
| 4202 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4204 | $as_echo "$wine_cv_toolsdir" >&6; } |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4205 | TOOLSDIR=$wine_cv_toolsdir |
| 4206 | |
Alexandre Julliard | 4d135d9 | 2009-02-16 13:08:44 +0100 | [diff] [blame] | 4207 | if test -n "$host_alias" -a "$host_alias" != "$build_alias" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4208 | then |
Alexandre Julliard | 0fea4a5 | 2009-02-12 10:28:23 +0100 | [diff] [blame] | 4209 | TARGETFLAGS="-b $host_alias $TARGETFLAGS" |
Alexandre Julliard | 424cb27 | 2008-12-26 17:54:50 +0100 | [diff] [blame] | 4210 | |
| 4211 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 4212 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4213 | for ac_prog in flex |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4214 | do |
| 4215 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4216 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4218 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4219 | if ${ac_cv_prog_FLEX+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4220 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4221 | else |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4222 | if test -n "$FLEX"; then |
| 4223 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4224 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4226 | for as_dir in $PATH |
| 4227 | do |
| 4228 | IFS=$as_save_IFS |
| 4229 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4230 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4232 | ac_cv_prog_FLEX="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4234 | break 2 |
| 4235 | fi |
| 4236 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4237 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4238 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4239 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4240 | fi |
| 4241 | fi |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4242 | FLEX=$ac_cv_prog_FLEX |
| 4243 | if test -n "$FLEX"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4245 | $as_echo "$FLEX" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4246 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4248 | $as_echo "no" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4249 | fi |
| 4250 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4251 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4252 | test -n "$FLEX" && break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4253 | done |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4254 | test -n "$FLEX" || FLEX="none" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4255 | |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 4256 | if test "$FLEX" = "none" |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4257 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4258 | as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4259 | fi |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5 |
| 4261 | $as_echo_n "checking whether flex is recent enough... " >&6; } |
| 4262 | cat >conftest.l <<EOF |
| 4263 | %top{ |
| 4264 | #include "prediluvian.h" |
| 4265 | } |
| 4266 | %% |
| 4267 | EOF |
Alexandre Julliard | 27816c7 | 2010-07-28 11:04:46 +0200 | [diff] [blame] | 4268 | if $FLEX -t conftest.l >/dev/null 2>&5 |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4269 | then |
| 4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4271 | $as_echo "yes" >&6; } |
| 4272 | else |
| 4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4274 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4275 | as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5 |
Michael Stefaniuc | ce30733 | 2009-12-29 18:07:02 +0100 | [diff] [blame] | 4276 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4277 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4278 | for ac_prog in bison |
| 4279 | do |
| 4280 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4281 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4283 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4284 | if ${ac_cv_prog_BISON+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4285 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4286 | else |
| 4287 | if test -n "$BISON"; then |
| 4288 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 4289 | else |
| 4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4291 | for as_dir in $PATH |
| 4292 | do |
| 4293 | IFS=$as_save_IFS |
| 4294 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4295 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4297 | ac_cv_prog_BISON="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4299 | break 2 |
| 4300 | fi |
| 4301 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4302 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4303 | IFS=$as_save_IFS |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4304 | |
| 4305 | fi |
| 4306 | fi |
| 4307 | BISON=$ac_cv_prog_BISON |
| 4308 | if test -n "$BISON"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4310 | $as_echo "$BISON" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4311 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4313 | $as_echo "no" >&6; } |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4314 | fi |
| 4315 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4316 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4317 | test -n "$BISON" && break |
| 4318 | done |
| 4319 | test -n "$BISON" || BISON="none" |
| 4320 | |
| 4321 | if test "$BISON" = "none" |
| 4322 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4323 | as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5 |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4324 | fi |
| 4325 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4326 | if test -n "$ac_tool_prefix"; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4327 | for ac_prog in ar gar |
| 4328 | do |
| 4329 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4330 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4332 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4333 | if ${ac_cv_prog_AR+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4334 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4335 | else |
| 4336 | if test -n "$AR"; then |
| 4337 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4338 | else |
| 4339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4340 | for as_dir in $PATH |
| 4341 | do |
| 4342 | IFS=$as_save_IFS |
| 4343 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4344 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4346 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4348 | break 2 |
| 4349 | fi |
| 4350 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4351 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4352 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4353 | |
| 4354 | fi |
| 4355 | fi |
| 4356 | AR=$ac_cv_prog_AR |
| 4357 | if test -n "$AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4359 | $as_echo "$AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4360 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4362 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4363 | fi |
| 4364 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4365 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4366 | test -n "$AR" && break |
| 4367 | done |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4368 | fi |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4369 | if test -z "$AR"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4370 | ac_ct_AR=$AR |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4371 | for ac_prog in ar gar |
| 4372 | do |
| 4373 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4374 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4376 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4377 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4378 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4379 | else |
| 4380 | if test -n "$ac_ct_AR"; then |
| 4381 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4382 | else |
| 4383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4384 | for as_dir in $PATH |
| 4385 | do |
| 4386 | IFS=$as_save_IFS |
| 4387 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4388 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4390 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4392 | break 2 |
| 4393 | fi |
| 4394 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4395 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4396 | IFS=$as_save_IFS |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4397 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4398 | fi |
| 4399 | fi |
| 4400 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4401 | if test -n "$ac_ct_AR"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4403 | $as_echo "$ac_ct_AR" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4404 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4406 | $as_echo "no" >&6; } |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4407 | fi |
| 4408 | |
Francois Gouget | 86bd046 | 2008-06-26 14:05:57 +0200 | [diff] [blame] | 4409 | |
| 4410 | test -n "$ac_ct_AR" && break |
| 4411 | done |
| 4412 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4413 | if test "x$ac_ct_AR" = x; then |
| 4414 | AR="ar" |
| 4415 | else |
| 4416 | case $cross_compiling:$ac_tool_warned in |
| 4417 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4419 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4420 | ac_tool_warned=yes ;; |
| 4421 | esac |
| 4422 | AR=$ac_ct_AR |
| 4423 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4424 | fi |
| 4425 | |
Rob Shearman | 0c694d7 | 2008-03-04 15:53:41 +0000 | [diff] [blame] | 4426 | ARFLAGS=rc |
| 4427 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4428 | if test -n "$ac_tool_prefix"; then |
| 4429 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4430 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4432 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4433 | if ${ac_cv_prog_RANLIB+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4434 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4435 | else |
| 4436 | if test -n "$RANLIB"; then |
| 4437 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4438 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4440 | for as_dir in $PATH |
| 4441 | do |
| 4442 | IFS=$as_save_IFS |
| 4443 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4444 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4446 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4448 | break 2 |
| 4449 | fi |
| 4450 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4451 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4452 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4453 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4454 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4455 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4456 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4457 | if test -n "$RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4459 | $as_echo "$RANLIB" >&6; } |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4460 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4462 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4463 | fi |
| 4464 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4465 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4466 | fi |
| 4467 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4468 | ac_ct_RANLIB=$RANLIB |
| 4469 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4470 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4472 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4473 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4474 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4475 | else |
| 4476 | if test -n "$ac_ct_RANLIB"; then |
| 4477 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4478 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4480 | for as_dir in $PATH |
| 4481 | do |
| 4482 | IFS=$as_save_IFS |
| 4483 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4484 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4486 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4488 | break 2 |
| 4489 | fi |
| 4490 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4491 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4492 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4493 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4494 | fi |
| 4495 | fi |
| 4496 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4497 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4499 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4500 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4502 | $as_echo "no" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4503 | fi |
| 4504 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4505 | if test "x$ac_ct_RANLIB" = x; then |
| 4506 | RANLIB=":" |
| 4507 | else |
| 4508 | case $cross_compiling:$ac_tool_warned in |
| 4509 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4512 | ac_tool_warned=yes ;; |
| 4513 | esac |
| 4514 | RANLIB=$ac_ct_RANLIB |
| 4515 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4516 | else |
| 4517 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4518 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4519 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4521 | $as_echo_n "checking whether ln -s works... " >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4522 | LN_S=$as_ln_s |
| 4523 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4525 | $as_echo "yes" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4526 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4528 | $as_echo "no, using $LN_S" >&6; } |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4529 | fi |
| 4530 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4532 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4533 | if ${ac_cv_path_GREP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4534 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4535 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4536 | if test -z "$GREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4537 | ac_path_GREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4538 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4540 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4541 | do |
| 4542 | IFS=$as_save_IFS |
| 4543 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4544 | for ac_prog in grep ggrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4546 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4547 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4548 | # Check for GNU ac_path_GREP and select it if it is found. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4549 | # Check for GNU $ac_path_GREP |
| 4550 | case `"$ac_path_GREP" --version 2>&1` in |
| 4551 | *GNU*) |
| 4552 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4553 | *) |
| 4554 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4555 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4556 | while : |
| 4557 | do |
| 4558 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4559 | mv "conftest.tmp" "conftest.in" |
| 4560 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4561 | $as_echo 'GREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4562 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4563 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4564 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4565 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4566 | # Best one so far, save it but keep looking for a better one |
| 4567 | ac_cv_path_GREP="$ac_path_GREP" |
| 4568 | ac_path_GREP_max=$ac_count |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4569 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4570 | # 10*(2^10) chars as input seems more than enough |
| 4571 | test $ac_count -gt 10 && break |
| 4572 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4573 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4574 | esac |
| 4575 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4576 | $ac_path_GREP_found && break 3 |
| 4577 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4578 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4579 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4580 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4581 | if test -z "$ac_cv_path_GREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4582 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4583 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4584 | else |
| 4585 | ac_cv_path_GREP=$GREP |
| 4586 | fi |
| 4587 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4588 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4590 | $as_echo "$ac_cv_path_GREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4591 | GREP="$ac_cv_path_GREP" |
| 4592 | |
| 4593 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4595 | $as_echo_n "checking for egrep... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4596 | if ${ac_cv_path_EGREP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4597 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4598 | else |
| 4599 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4600 | then ac_cv_path_EGREP="$GREP -E" |
| 4601 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4602 | if test -z "$EGREP"; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4603 | ac_path_EGREP_found=false |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4604 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4606 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4607 | do |
| 4608 | IFS=$as_save_IFS |
| 4609 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4610 | for ac_prog in egrep; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4612 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4613 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4614 | # Check for GNU ac_path_EGREP and select it if it is found. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4615 | # Check for GNU $ac_path_EGREP |
| 4616 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4617 | *GNU*) |
| 4618 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4619 | *) |
| 4620 | ac_count=0 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4621 | $as_echo_n 0123456789 >"conftest.in" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4622 | while : |
| 4623 | do |
| 4624 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4625 | mv "conftest.tmp" "conftest.in" |
| 4626 | cp "conftest.in" "conftest.nl" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4627 | $as_echo 'EGREP' >> "conftest.nl" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4628 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4629 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4630 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4631 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4632 | # Best one so far, save it but keep looking for a better one |
| 4633 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4634 | ac_path_EGREP_max=$ac_count |
| 4635 | fi |
| 4636 | # 10*(2^10) chars as input seems more than enough |
| 4637 | test $ac_count -gt 10 && break |
| 4638 | done |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 4639 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4640 | esac |
| 4641 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4642 | $ac_path_EGREP_found && break 3 |
| 4643 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4644 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4645 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4646 | IFS=$as_save_IFS |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4647 | if test -z "$ac_cv_path_EGREP"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 4648 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4649 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4650 | else |
| 4651 | ac_cv_path_EGREP=$EGREP |
| 4652 | fi |
| 4653 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4654 | fi |
| 4655 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4657 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4658 | EGREP="$ac_cv_path_EGREP" |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 4659 | |
| 4660 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4661 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4662 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4664 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4665 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4666 | $as_echo_n "(cached) " >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4667 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4668 | case $LDCONFIG in |
| 4669 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4670 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4671 | ;; |
| 4672 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4674 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4675 | do |
| 4676 | IFS=$as_save_IFS |
| 4677 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4678 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4680 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4682 | break 2 |
| 4683 | fi |
| 4684 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4685 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4686 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4687 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4688 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4689 | ;; |
| 4690 | esac |
| 4691 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4692 | LDCONFIG=$ac_cv_path_LDCONFIG |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4693 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4695 | $as_echo "$LDCONFIG" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4696 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4698 | $as_echo "no" >&6; } |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4699 | fi |
| 4700 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4701 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4702 | # Find a good install program. We prefer a C program (faster), |
| 4703 | # so one script is as good as another. But avoid the broken or |
| 4704 | # incompatible versions: |
| 4705 | # SysV /etc/install, /usr/sbin/install |
| 4706 | # SunOS /usr/etc/install |
| 4707 | # IRIX /sbin/install |
| 4708 | # AIX /bin/install |
| 4709 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4710 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4711 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4712 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4713 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4714 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4715 | # Reject install programs that cannot install multiple files. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4717 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4718 | if test -z "$INSTALL"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4719 | if ${ac_cv_path_install+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4720 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4721 | else |
| 4722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4723 | for as_dir in $PATH |
| 4724 | do |
| 4725 | IFS=$as_save_IFS |
| 4726 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4727 | # Account for people who put trailing slashes in PATH elements. |
| 4728 | case $as_dir/ in #(( |
| 4729 | ./ | .// | /[cC]/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4730 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4731 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4732 | /usr/ucb/* ) ;; |
| 4733 | *) |
| 4734 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4735 | # Don't use installbsd from OSF since it installs stuff as root |
| 4736 | # by default. |
| 4737 | for ac_prog in ginstall scoinst install; do |
| 4738 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4739 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4740 | if test $ac_prog = install && |
| 4741 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4742 | # AIX install. It has an incompatible calling convention. |
| 4743 | : |
| 4744 | elif test $ac_prog = install && |
| 4745 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4746 | # program-specific install script used by HP pwplus--don't use. |
| 4747 | : |
| 4748 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4749 | rm -rf conftest.one conftest.two conftest.dir |
| 4750 | echo one > conftest.one |
| 4751 | echo two > conftest.two |
| 4752 | mkdir conftest.dir |
| 4753 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4754 | test -s conftest.one && test -s conftest.two && |
| 4755 | test -s conftest.dir/conftest.one && |
| 4756 | test -s conftest.dir/conftest.two |
| 4757 | then |
| 4758 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4759 | break 3 |
| 4760 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4761 | fi |
| 4762 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4763 | done |
| 4764 | done |
| 4765 | ;; |
| 4766 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4767 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4768 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4769 | IFS=$as_save_IFS |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4770 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4771 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4772 | |
| 4773 | fi |
| 4774 | if test "${ac_cv_path_install+set}" = set; then |
| 4775 | INSTALL=$ac_cv_path_install |
| 4776 | else |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4777 | # As a last resort, use the slow shell script. Don't cache a |
| 4778 | # value for INSTALL within a source directory, because that will |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4779 | # break other packages using the cache if that directory is |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4780 | # removed, or if the value is a relative name. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4781 | INSTALL=$ac_install_sh |
| 4782 | fi |
| 4783 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4785 | $as_echo "$INSTALL" >&6; } |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4786 | |
| 4787 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4788 | # It thinks the first close brace ends the variable substitution. |
| 4789 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4790 | |
| 4791 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4792 | |
| 4793 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4794 | |
| 4795 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 4796 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 4797 | *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4798 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4799 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4800 | for ac_prog in lclint lint |
| 4801 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4802 | # 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] | 4803 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4805 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4806 | if ${ac_cv_prog_LINT+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4807 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4808 | else |
| 4809 | if test -n "$LINT"; then |
| 4810 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4811 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4813 | for as_dir in $PATH |
| 4814 | do |
| 4815 | IFS=$as_save_IFS |
| 4816 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4817 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4819 | ac_cv_prog_LINT="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4821 | break 2 |
| 4822 | fi |
| 4823 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4824 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4825 | IFS=$as_save_IFS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4826 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4827 | fi |
| 4828 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4829 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4830 | if test -n "$LINT"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4832 | $as_echo "$LINT" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4833 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4835 | $as_echo "no" >&6; } |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4836 | fi |
| 4837 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4838 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4839 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4840 | done |
| 4841 | |
| 4842 | if test "$LINT" = "lint" |
| 4843 | then |
| 4844 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4845 | fi |
| 4846 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4847 | |
| 4848 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4849 | for ac_prog in fontforge |
| 4850 | do |
| 4851 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4852 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4854 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4855 | if ${ac_cv_prog_FONTFORGE+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4856 | $as_echo_n "(cached) " >&6 |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4857 | else |
| 4858 | if test -n "$FONTFORGE"; then |
| 4859 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 4860 | else |
| 4861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4862 | for as_dir in $PATH |
| 4863 | do |
| 4864 | IFS=$as_save_IFS |
| 4865 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4866 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4868 | ac_cv_prog_FONTFORGE="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4870 | break 2 |
| 4871 | fi |
| 4872 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4873 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4874 | IFS=$as_save_IFS |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4875 | |
| 4876 | fi |
| 4877 | fi |
| 4878 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 4879 | if test -n "$FONTFORGE"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4881 | $as_echo "$FONTFORGE" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4882 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4884 | $as_echo "no" >&6; } |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4885 | fi |
| 4886 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4887 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 4888 | test -n "$FONTFORGE" && break |
| 4889 | done |
| 4890 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 4891 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4892 | for ac_prog in pkg-config |
| 4893 | do |
| 4894 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4895 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4897 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4898 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4899 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4900 | else |
| 4901 | if test -n "$PKG_CONFIG"; then |
| 4902 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 4903 | else |
| 4904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4905 | for as_dir in $PATH |
| 4906 | do |
| 4907 | IFS=$as_save_IFS |
| 4908 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4909 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 4910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4911 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4913 | break 2 |
| 4914 | fi |
| 4915 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4916 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4917 | IFS=$as_save_IFS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4918 | |
| 4919 | fi |
| 4920 | fi |
| 4921 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 4922 | if test -n "$PKG_CONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4924 | $as_echo "$PKG_CONFIG" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4925 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4927 | $as_echo "no" >&6; } |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4928 | fi |
| 4929 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 4930 | |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 4931 | test -n "$PKG_CONFIG" && break |
| 4932 | done |
| 4933 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" |
| 4934 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4935 | for ac_prog in rsvg |
| 4936 | do |
| 4937 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4938 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4940 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4941 | if ${ac_cv_prog_RSVG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4942 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4943 | else |
| 4944 | if test -n "$RSVG"; then |
| 4945 | ac_cv_prog_RSVG="$RSVG" # Let the user override the test. |
| 4946 | else |
| 4947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4948 | for as_dir in $PATH |
| 4949 | do |
| 4950 | IFS=$as_save_IFS |
| 4951 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4952 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4953 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4954 | ac_cv_prog_RSVG="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4956 | break 2 |
| 4957 | fi |
| 4958 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4959 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4960 | IFS=$as_save_IFS |
| 4961 | |
| 4962 | fi |
| 4963 | fi |
| 4964 | RSVG=$ac_cv_prog_RSVG |
| 4965 | if test -n "$RSVG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4967 | $as_echo "$RSVG" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4968 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 4970 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 4971 | fi |
| 4972 | |
| 4973 | |
| 4974 | test -n "$RSVG" && break |
| 4975 | done |
| 4976 | test -n "$RSVG" || RSVG="false" |
| 4977 | |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 4978 | for ac_prog in convert |
| 4979 | do |
| 4980 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4981 | set dummy $ac_prog; ac_word=$2 |
| 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4983 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 4984 | if ${ac_cv_prog_CONVERT+:} false; then : |
Joel Holdsworth | 476a2be | 2010-04-05 11:15:03 +0100 | [diff] [blame] | 4985 | $as_echo_n "(cached) " >&6 |
| 4986 | else |
| 4987 | if test -n "$CONVERT"; then |
| 4988 | ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test. |
| 4989 | else |
| 4990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4991 | for as_dir in $PATH |
| 4992 | do |
| 4993 | IFS=$as_save_IFS |
| 4994 | test -z "$as_dir" && as_dir=. |
| 4995 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4997 | ac_cv_prog_CONVERT="$ac_prog" |
| 4998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4999 | break 2 |
| 5000 | fi |
| 5001 | done |
| 5002 | done |
| 5003 | IFS=$as_save_IFS |
| 5004 | |
| 5005 | fi |
| 5006 | fi |
| 5007 | CONVERT=$ac_cv_prog_CONVERT |
| 5008 | if test -n "$CONVERT"; then |
| 5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5 |
| 5010 | $as_echo "$CONVERT" >&6; } |
| 5011 | else |
| 5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5013 | $as_echo "no" >&6; } |
| 5014 | fi |
| 5015 | |
| 5016 | |
| 5017 | test -n "$CONVERT" && break |
| 5018 | done |
| 5019 | test -n "$CONVERT" || CONVERT="false" |
| 5020 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5021 | for ac_prog in icotool |
| 5022 | do |
| 5023 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5024 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5026 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5027 | if ${ac_cv_prog_ICOTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5028 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5029 | else |
| 5030 | if test -n "$ICOTOOL"; then |
| 5031 | ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test. |
| 5032 | else |
| 5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5034 | for as_dir in $PATH |
| 5035 | do |
| 5036 | IFS=$as_save_IFS |
| 5037 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5038 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5040 | ac_cv_prog_ICOTOOL="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5042 | break 2 |
| 5043 | fi |
| 5044 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5045 | done |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5046 | IFS=$as_save_IFS |
| 5047 | |
| 5048 | fi |
| 5049 | fi |
| 5050 | ICOTOOL=$ac_cv_prog_ICOTOOL |
| 5051 | if test -n "$ICOTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5053 | $as_echo "$ICOTOOL" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5054 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5056 | $as_echo "no" >&6; } |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5057 | fi |
| 5058 | |
| 5059 | |
| 5060 | test -n "$ICOTOOL" && break |
| 5061 | done |
| 5062 | test -n "$ICOTOOL" || ICOTOOL="false" |
| 5063 | |
| 5064 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5065 | if test "x$enable_maintainer_mode" != "xyes" |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5066 | then |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 5067 | MAINTAINER_MODE=\# |
| 5068 | |
| 5069 | else |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5070 | if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi |
| 5071 | if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5072 | |
| 5073 | if test "$CONVERT" = false |
| 5074 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5075 | as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5 |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5076 | else |
| 5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5 |
| 5078 | $as_echo_n "checking for recent enough imagemagick... " >&6; } |
| 5079 | convert_version=`convert --version | head -n1` |
| 5080 | if test "x$convert_version" != "x" |
| 5081 | then |
| 5082 | convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5083 | convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'` |
| 5084 | if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6 |
| 5085 | then |
| 5086 | CONVERT=false |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5087 | fi |
| 5088 | fi |
| 5089 | if test "$CONVERT" = false |
| 5090 | then |
| 5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5 |
| 5092 | $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5093 | as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5 |
Joel Holdsworth | b9eae1e | 2010-05-16 23:07:40 +0100 | [diff] [blame] | 5094 | else |
| 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5 |
| 5096 | $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; } |
| 5097 | fi |
| 5098 | fi |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5099 | |
| 5100 | if test "$ICOTOOL" = false |
| 5101 | then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5102 | as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5 |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5103 | else |
| 5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5 |
| 5105 | $as_echo_n "checking for recent enough icotool... " >&6; } |
| 5106 | icotool_version=`icotool --version | head -n1` |
| 5107 | if test "x$icotool_version" != "x" |
| 5108 | then |
Joel Holdsworth | 9571f78 | 2010-05-16 23:07:33 +0100 | [diff] [blame] | 5109 | icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'` |
| 5110 | icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'` |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5111 | if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29 |
| 5112 | then |
| 5113 | ICOTOOL=false |
| 5114 | as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons." |
| 5115 | fi |
| 5116 | fi |
| 5117 | if test "$ICOTOOL" = false |
| 5118 | then |
| 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5120 | $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5121 | as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5 |
Joel Holdsworth | 425f138 | 2010-04-05 11:14:47 +0100 | [diff] [blame] | 5122 | else |
| 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5 |
| 5124 | $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; } |
| 5125 | fi |
| 5126 | fi |
| 5127 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 5128 | fi |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5129 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5130 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5132 | $as_echo_n "checking for i386_set_ldt in -li386... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5133 | if ${ac_cv_lib_i386_i386_set_ldt+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5134 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5135 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5136 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5137 | LIBS="-li386 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5139 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5140 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5141 | /* Override any GCC internal prototype to avoid an error. |
| 5142 | Use char because int might match the return type of a GCC |
| 5143 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5144 | #ifdef __cplusplus |
| 5145 | extern "C" |
| 5146 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5147 | char i386_set_ldt (); |
| 5148 | int |
| 5149 | main () |
| 5150 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5151 | return i386_set_ldt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5152 | ; |
| 5153 | return 0; |
| 5154 | } |
| 5155 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5156 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5157 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5158 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5159 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5160 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5161 | rm -f core conftest.err conftest.$ac_objext \ |
| 5162 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5163 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5164 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5166 | $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5167 | if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5168 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5169 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5170 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5171 | |
| 5172 | LIBS="-li386 $LIBS" |
| 5173 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5174 | fi |
| 5175 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5177 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5178 | if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5179 | $as_echo_n "(cached) " >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5180 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5181 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5182 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5184 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5185 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5186 | /* Override any GCC internal prototype to avoid an error. |
| 5187 | Use char because int might match the return type of a GCC |
| 5188 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5189 | #ifdef __cplusplus |
| 5190 | extern "C" |
| 5191 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5192 | char _oss_ioctl (); |
| 5193 | int |
| 5194 | main () |
| 5195 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5196 | return _oss_ioctl (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5197 | ; |
| 5198 | return 0; |
| 5199 | } |
| 5200 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5201 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5202 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5203 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5204 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5205 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5206 | rm -f core conftest.err conftest.$ac_objext \ |
| 5207 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5208 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5209 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5211 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5212 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5213 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5214 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5215 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5216 | |
| 5217 | LIBS="-lossaudio $LIBS" |
| 5218 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5219 | fi |
| 5220 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5221 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5222 | XLIB="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5223 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5224 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 5225 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5226 | |
Alexandre Julliard | 8277602 | 2005-08-08 11:17:25 +0000 | [diff] [blame] | 5227 | |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5228 | # Check whether --enable-largefile was given. |
| 5229 | if test "${enable_largefile+set}" = set; then : |
| 5230 | enableval=$enable_largefile; |
| 5231 | fi |
| 5232 | |
| 5233 | if test "$enable_largefile" != no; then |
| 5234 | |
| 5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5236 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5237 | if ${ac_cv_sys_largefile_CC+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5238 | $as_echo_n "(cached) " >&6 |
| 5239 | else |
| 5240 | ac_cv_sys_largefile_CC=no |
| 5241 | if test "$GCC" != yes; then |
| 5242 | ac_save_CC=$CC |
| 5243 | while :; do |
| 5244 | # IRIX 6.2 and later do not support large files by default, |
| 5245 | # so use the C compiler's -n32 option if that helps. |
| 5246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5247 | /* end confdefs.h. */ |
| 5248 | #include <sys/types.h> |
| 5249 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5250 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5251 | since some C++ compilers masquerading as C compilers |
| 5252 | incorrectly reject 9223372036854775807. */ |
| 5253 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5254 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5255 | && LARGE_OFF_T % 2147483647 == 1) |
| 5256 | ? 1 : -1]; |
| 5257 | int |
| 5258 | main () |
| 5259 | { |
| 5260 | |
| 5261 | ; |
| 5262 | return 0; |
| 5263 | } |
| 5264 | _ACEOF |
| 5265 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5266 | break |
| 5267 | fi |
| 5268 | rm -f core conftest.err conftest.$ac_objext |
| 5269 | CC="$CC -n32" |
| 5270 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5271 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5272 | fi |
| 5273 | rm -f core conftest.err conftest.$ac_objext |
| 5274 | break |
| 5275 | done |
| 5276 | CC=$ac_save_CC |
| 5277 | rm -f conftest.$ac_ext |
| 5278 | fi |
| 5279 | fi |
| 5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5281 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5282 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5283 | CC=$CC$ac_cv_sys_largefile_CC |
| 5284 | fi |
| 5285 | |
| 5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5287 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5288 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5289 | $as_echo_n "(cached) " >&6 |
| 5290 | else |
| 5291 | while :; do |
| 5292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5293 | /* end confdefs.h. */ |
| 5294 | #include <sys/types.h> |
| 5295 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5296 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5297 | since some C++ compilers masquerading as C compilers |
| 5298 | incorrectly reject 9223372036854775807. */ |
| 5299 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5300 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5301 | && LARGE_OFF_T % 2147483647 == 1) |
| 5302 | ? 1 : -1]; |
| 5303 | int |
| 5304 | main () |
| 5305 | { |
| 5306 | |
| 5307 | ; |
| 5308 | return 0; |
| 5309 | } |
| 5310 | _ACEOF |
| 5311 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5312 | ac_cv_sys_file_offset_bits=no; break |
| 5313 | fi |
| 5314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5316 | /* end confdefs.h. */ |
| 5317 | #define _FILE_OFFSET_BITS 64 |
| 5318 | #include <sys/types.h> |
| 5319 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5320 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5321 | since some C++ compilers masquerading as C compilers |
| 5322 | incorrectly reject 9223372036854775807. */ |
| 5323 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5324 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5325 | && LARGE_OFF_T % 2147483647 == 1) |
| 5326 | ? 1 : -1]; |
| 5327 | int |
| 5328 | main () |
| 5329 | { |
| 5330 | |
| 5331 | ; |
| 5332 | return 0; |
| 5333 | } |
| 5334 | _ACEOF |
| 5335 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5336 | ac_cv_sys_file_offset_bits=64; break |
| 5337 | fi |
| 5338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5339 | ac_cv_sys_file_offset_bits=unknown |
| 5340 | break |
| 5341 | done |
| 5342 | fi |
| 5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5344 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5345 | case $ac_cv_sys_file_offset_bits in #( |
| 5346 | no | unknown) ;; |
| 5347 | *) |
| 5348 | cat >>confdefs.h <<_ACEOF |
| 5349 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5350 | _ACEOF |
| 5351 | ;; |
| 5352 | esac |
| 5353 | rm -rf conftest* |
| 5354 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5356 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5357 | if ${ac_cv_sys_large_files+:} false; then : |
Eric Pouech | bc56c4e | 2009-08-25 19:33:28 +0200 | [diff] [blame] | 5358 | $as_echo_n "(cached) " >&6 |
| 5359 | else |
| 5360 | while :; do |
| 5361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5362 | /* end confdefs.h. */ |
| 5363 | #include <sys/types.h> |
| 5364 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5365 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5366 | since some C++ compilers masquerading as C compilers |
| 5367 | incorrectly reject 9223372036854775807. */ |
| 5368 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5369 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5370 | && LARGE_OFF_T % 2147483647 == 1) |
| 5371 | ? 1 : -1]; |
| 5372 | int |
| 5373 | main () |
| 5374 | { |
| 5375 | |
| 5376 | ; |
| 5377 | return 0; |
| 5378 | } |
| 5379 | _ACEOF |
| 5380 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5381 | ac_cv_sys_large_files=no; break |
| 5382 | fi |
| 5383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5385 | /* end confdefs.h. */ |
| 5386 | #define _LARGE_FILES 1 |
| 5387 | #include <sys/types.h> |
| 5388 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5389 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5390 | since some C++ compilers masquerading as C compilers |
| 5391 | incorrectly reject 9223372036854775807. */ |
| 5392 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5393 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5394 | && LARGE_OFF_T % 2147483647 == 1) |
| 5395 | ? 1 : -1]; |
| 5396 | int |
| 5397 | main () |
| 5398 | { |
| 5399 | |
| 5400 | ; |
| 5401 | return 0; |
| 5402 | } |
| 5403 | _ACEOF |
| 5404 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5405 | ac_cv_sys_large_files=1; break |
| 5406 | fi |
| 5407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5408 | ac_cv_sys_large_files=unknown |
| 5409 | break |
| 5410 | done |
| 5411 | fi |
| 5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5413 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 5414 | case $ac_cv_sys_large_files in #( |
| 5415 | no | unknown) ;; |
| 5416 | *) |
| 5417 | cat >>confdefs.h <<_ACEOF |
| 5418 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5419 | _ACEOF |
| 5420 | ;; |
| 5421 | esac |
| 5422 | rm -rf conftest* |
| 5423 | fi |
| 5424 | fi |
| 5425 | |
| 5426 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5427 | ac_ext=c |
| 5428 | ac_cpp='$CPP $CPPFLAGS' |
| 5429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5433 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5434 | # On Suns, sometimes $CPP names a directory. |
| 5435 | if test -n "$CPP" && test -d "$CPP"; then |
| 5436 | CPP= |
| 5437 | fi |
| 5438 | if test -z "$CPP"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5439 | if ${ac_cv_prog_CPP+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5440 | $as_echo_n "(cached) " >&6 |
| 5441 | else |
| 5442 | # Double quotes because CPP needs to be expanded |
| 5443 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5444 | do |
| 5445 | ac_preproc_ok=false |
| 5446 | for ac_c_preproc_warn_flag in '' yes |
| 5447 | do |
| 5448 | # Use a header file that comes with gcc, so configuring glibc |
| 5449 | # with a fresh cross-compiler works. |
| 5450 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5451 | # <limits.h> exists even on freestanding compilers. |
| 5452 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5453 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5455 | /* end confdefs.h. */ |
| 5456 | #ifdef __STDC__ |
| 5457 | # include <limits.h> |
| 5458 | #else |
| 5459 | # include <assert.h> |
| 5460 | #endif |
| 5461 | Syntax error |
| 5462 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5463 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5464 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5465 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5466 | # Broken: fails on valid input. |
| 5467 | continue |
| 5468 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5469 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5470 | |
| 5471 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5472 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5474 | /* end confdefs.h. */ |
| 5475 | #include <ac_nonexistent.h> |
| 5476 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5477 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5478 | # Broken: success on invalid input. |
| 5479 | continue |
| 5480 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5481 | # Passes both tests. |
| 5482 | ac_preproc_ok=: |
| 5483 | break |
| 5484 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5485 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5486 | |
| 5487 | done |
| 5488 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5489 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5490 | if $ac_preproc_ok; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5491 | break |
| 5492 | fi |
| 5493 | |
| 5494 | done |
| 5495 | ac_cv_prog_CPP=$CPP |
| 5496 | |
| 5497 | fi |
| 5498 | CPP=$ac_cv_prog_CPP |
| 5499 | else |
| 5500 | ac_cv_prog_CPP=$CPP |
| 5501 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5503 | $as_echo "$CPP" >&6; } |
| 5504 | ac_preproc_ok=false |
| 5505 | for ac_c_preproc_warn_flag in '' yes |
| 5506 | do |
| 5507 | # Use a header file that comes with gcc, so configuring glibc |
| 5508 | # with a fresh cross-compiler works. |
| 5509 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5510 | # <limits.h> exists even on freestanding compilers. |
| 5511 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5512 | # not just through cpp. "Syntax error" is here to catch this case. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5514 | /* end confdefs.h. */ |
| 5515 | #ifdef __STDC__ |
| 5516 | # include <limits.h> |
| 5517 | #else |
| 5518 | # include <assert.h> |
| 5519 | #endif |
| 5520 | Syntax error |
| 5521 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5522 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5523 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5524 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5525 | # Broken: fails on valid input. |
| 5526 | continue |
| 5527 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5528 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5529 | |
| 5530 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5531 | # can be detected and how. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5533 | /* end confdefs.h. */ |
| 5534 | #include <ac_nonexistent.h> |
| 5535 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5536 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5537 | # Broken: success on invalid input. |
| 5538 | continue |
| 5539 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5540 | # Passes both tests. |
| 5541 | ac_preproc_ok=: |
| 5542 | break |
| 5543 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5544 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5545 | |
| 5546 | done |
| 5547 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5548 | rm -f conftest.i conftest.err conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5549 | if $ac_preproc_ok; then : |
| 5550 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5551 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5552 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5553 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5554 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5555 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 5556 | fi |
| 5557 | |
| 5558 | ac_ext=c |
| 5559 | ac_cpp='$CPP $CPPFLAGS' |
| 5560 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5561 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5562 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5563 | |
| 5564 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5566 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5567 | if ${ac_cv_header_stdc+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5568 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5569 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5571 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5572 | #include <stdlib.h> |
| 5573 | #include <stdarg.h> |
| 5574 | #include <string.h> |
| 5575 | #include <float.h> |
| 5576 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5577 | int |
| 5578 | main () |
| 5579 | { |
| 5580 | |
| 5581 | ; |
| 5582 | return 0; |
| 5583 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5584 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5585 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5586 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5587 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5588 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5589 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 5590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5591 | |
| 5592 | if test $ac_cv_header_stdc = yes; then |
| 5593 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5595 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5596 | #include <string.h> |
| 5597 | |
| 5598 | _ACEOF |
| 5599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5600 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5601 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5602 | else |
| 5603 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5604 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5605 | rm -f conftest* |
| 5606 | |
| 5607 | fi |
| 5608 | |
| 5609 | if test $ac_cv_header_stdc = yes; then |
| 5610 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5612 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5613 | #include <stdlib.h> |
| 5614 | |
| 5615 | _ACEOF |
| 5616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5617 | $EGREP "free" >/dev/null 2>&1; then : |
| 5618 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5619 | else |
| 5620 | ac_cv_header_stdc=no |
| 5621 | fi |
| 5622 | rm -f conftest* |
| 5623 | |
| 5624 | fi |
| 5625 | |
| 5626 | if test $ac_cv_header_stdc = yes; then |
| 5627 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5628 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5629 | : |
| 5630 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5632 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5633 | #include <ctype.h> |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5634 | #include <stdlib.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5635 | #if ((' ' & 0x0FF) == 0x020) |
| 5636 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5637 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5638 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5639 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5640 | (('a' <= (c) && (c) <= 'i') \ |
| 5641 | || ('j' <= (c) && (c) <= 'r') \ |
| 5642 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5643 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5644 | #endif |
| 5645 | |
| 5646 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5647 | int |
| 5648 | main () |
| 5649 | { |
| 5650 | int i; |
| 5651 | for (i = 0; i < 256; i++) |
| 5652 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5653 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5654 | return 2; |
| 5655 | return 0; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5656 | } |
| 5657 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5658 | if ac_fn_c_try_run "$LINENO"; then : |
| 5659 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5660 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5661 | ac_cv_header_stdc=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5662 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5663 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5664 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5665 | fi |
| 5666 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5667 | fi |
| 5668 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5670 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5671 | if test $ac_cv_header_stdc = yes; then |
| 5672 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5673 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5674 | |
| 5675 | fi |
| 5676 | |
| 5677 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5678 | 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] | 5679 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5680 | do : |
| 5681 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5682 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5683 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5684 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5685 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5686 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5687 | _ACEOF |
| 5688 | |
| 5689 | fi |
| 5690 | |
| 5691 | done |
| 5692 | |
| 5693 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5694 | for ac_header in \ |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 5695 | AL/al.h \ |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 5696 | ApplicationServices/ApplicationServices.h \ |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 5697 | AudioToolbox/AudioConverter.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5698 | AudioUnit/AudioUnit.h \ |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 5699 | AudioUnit/AudioComponent.h \ |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 5700 | CL/cl.h \ |
Pierre d'Herbemont | 0888451 | 2006-10-24 15:26:33 +0200 | [diff] [blame] | 5701 | Carbon/Carbon.h \ |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 5702 | CoreAudio/CoreAudio.h \ |
Alexandre Julliard | 66f45a5 | 2006-11-06 13:33:16 +0100 | [diff] [blame] | 5703 | DiskArbitration/DiskArbitration.h \ |
Phil Krylov | 0f6c039 | 2005-07-01 19:15:26 +0000 | [diff] [blame] | 5704 | IOKit/IOKitLib.h \ |
Aric Stewart | 225a494 | 2009-03-10 14:59:20 -0500 | [diff] [blame] | 5705 | IOKit/hid/IOHIDLib.h \ |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 5706 | OpenAL/al.h \ |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 5707 | OpenCL/opencl.h \ |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 5708 | QuickTime/ImageCompression.h \ |
Ken Thomases | 25ed687 | 2011-03-13 18:58:44 -0500 | [diff] [blame] | 5709 | Security/Security.h \ |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 5710 | alias.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5711 | alsa/asoundlib.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5712 | arpa/inet.h \ |
| 5713 | arpa/nameser.h \ |
Maarten Lankhorst | 888eaae | 2005-04-27 09:46:25 +0000 | [diff] [blame] | 5714 | asm/types.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5715 | capi20.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5716 | curses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5717 | direct.h \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 5718 | dirent.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5719 | dlfcn.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5720 | elf.h \ |
| 5721 | float.h \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 5722 | fnmatch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5723 | fontconfig/fontconfig.h \ |
| 5724 | getopt.h \ |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 5725 | gettext-po.h \ |
Alexandre Julliard | 46678dc | 2008-12-09 17:09:42 +0100 | [diff] [blame] | 5726 | grp.h \ |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 5727 | gsm.h \ |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 5728 | gsm/gsm.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5729 | ieeefp.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5730 | inet/mib2.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5731 | io.h \ |
| 5732 | jack/jack.h \ |
| 5733 | jpeglib.h \ |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 5734 | kstat.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5735 | lber.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5736 | lcms.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5737 | lcms/lcms.h \ |
Hans Leidekker | ea524de | 2005-07-15 16:39:42 +0000 | [diff] [blame] | 5738 | ldap.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5739 | link.h \ |
| 5740 | linux/cdrom.h \ |
| 5741 | linux/compiler.h \ |
| 5742 | linux/hdreg.h \ |
| 5743 | linux/input.h \ |
| 5744 | linux/ioctl.h \ |
| 5745 | linux/joystick.h \ |
| 5746 | linux/major.h \ |
| 5747 | linux/param.h \ |
| 5748 | linux/serial.h \ |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 5749 | linux/types.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5750 | linux/ucdrom.h \ |
Ken Thomases | d35c0e8 | 2009-03-11 09:05:53 -0500 | [diff] [blame] | 5751 | mach-o/nlist.h \ |
Austin English | 95740b3 | 2010-10-08 00:33:52 -0700 | [diff] [blame] | 5752 | mach-o/loader.h \ |
Alexandre Julliard | 150b5dc | 2006-12-29 20:02:02 +0100 | [diff] [blame] | 5753 | mach/mach.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5754 | mach/machine.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5755 | machine/cpu.h \ |
Emmanuel Maillard | 64c0778 | 2005-05-18 18:20:23 +0000 | [diff] [blame] | 5756 | machine/limits.h \ |
Austin English | 40b3d2e | 2010-05-23 21:18:17 -0500 | [diff] [blame] | 5757 | machine/sysarch.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5758 | mntent.h \ |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 5759 | mpg123.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5760 | ncurses.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5761 | netdb.h \ |
| 5762 | netinet/in.h \ |
| 5763 | netinet/in_systm.h \ |
| 5764 | netinet/tcp.h \ |
| 5765 | netinet/tcp_fsm.h \ |
Robert Shearman | 1e5153c | 2005-12-01 11:18:43 +0100 | [diff] [blame] | 5766 | openssl/err.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5767 | openssl/ssl.h \ |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 5768 | png.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame] | 5769 | poll.h \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 5770 | port.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5771 | process.h \ |
| 5772 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5773 | pwd.h \ |
| 5774 | regex.h \ |
| 5775 | sched.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5776 | scsi/scsi.h \ |
| 5777 | scsi/scsi_ioctl.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5778 | scsi/sg.h \ |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 5779 | stdbool.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5780 | stdint.h \ |
| 5781 | strings.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5782 | stropts.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5783 | sys/asoundlib.h \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 5784 | sys/attr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5785 | sys/cdio.h \ |
| 5786 | sys/elf32.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5787 | sys/epoll.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 5788 | sys/errno.h \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 5789 | sys/event.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5790 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5791 | sys/filio.h \ |
Alexandre Julliard | 61a7036 | 2009-06-26 15:45:03 +0200 | [diff] [blame] | 5792 | sys/inotify.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5793 | sys/ioctl.h \ |
| 5794 | sys/ipc.h \ |
Gerald Pfeifer | ebe0484 | 2005-08-22 09:33:37 +0000 | [diff] [blame] | 5795 | sys/limits.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5796 | sys/link.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5797 | sys/mman.h \ |
| 5798 | sys/modem.h \ |
| 5799 | sys/msg.h \ |
Hans Leidekker | 0844b70 | 2006-01-26 13:23:08 +0100 | [diff] [blame] | 5800 | sys/mtio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5801 | sys/param.h \ |
| 5802 | sys/poll.h \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 5803 | sys/prctl.h \ |
Austin English | 94021a1 | 2009-01-20 17:42:53 -0600 | [diff] [blame] | 5804 | sys/protosw.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5805 | sys/ptrace.h \ |
Mike McCormack | 0cd0626 | 2006-03-01 01:07:04 +0900 | [diff] [blame] | 5806 | sys/resource.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5807 | sys/scsiio.h \ |
| 5808 | sys/shm.h \ |
| 5809 | sys/signal.h \ |
| 5810 | sys/socket.h \ |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5811 | sys/socketvar.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5812 | sys/sockio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5813 | sys/statvfs.h \ |
| 5814 | sys/strtio.h \ |
| 5815 | sys/syscall.h \ |
Alexandre Julliard | 801d9c3 | 2009-03-10 17:05:58 +0100 | [diff] [blame] | 5816 | sys/tihdr.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5817 | sys/time.h \ |
Austin English | 8b19591 | 2009-01-21 21:59:11 -0600 | [diff] [blame] | 5818 | sys/timeout.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5819 | sys/times.h \ |
| 5820 | sys/uio.h \ |
| 5821 | sys/un.h \ |
Alexandre Julliard | 66eb4bd | 2008-12-09 19:33:06 +0100 | [diff] [blame] | 5822 | sys/utsname.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5823 | sys/vm86.h \ |
| 5824 | sys/wait.h \ |
| 5825 | syscall.h \ |
| 5826 | termios.h \ |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 5827 | tiffio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5828 | unistd.h \ |
| 5829 | utime.h \ |
John Reiser | 0a2c94e | 2008-07-24 13:31:53 -0700 | [diff] [blame] | 5830 | valgrind/memcheck.h \ |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 5831 | valgrind/valgrind.h \ |
| 5832 | zlib.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5833 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5834 | do : |
| 5835 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5836 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5837 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5838 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5839 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5840 | _ACEOF |
| 5841 | |
| 5842 | fi |
| 5843 | |
| 5844 | done |
| 5845 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5847 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 5848 | if ${ac_cv_header_stat_broken+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5849 | $as_echo_n "(cached) " >&6 |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5850 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5852 | /* end confdefs.h. */ |
| 5853 | #include <sys/types.h> |
| 5854 | #include <sys/stat.h> |
| 5855 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5856 | #if defined S_ISBLK && defined S_IFDIR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5857 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5858 | #endif |
| 5859 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5860 | #if defined S_ISBLK && defined S_IFCHR |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5861 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5862 | #endif |
| 5863 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5864 | #if defined S_ISLNK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5865 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5866 | #endif |
| 5867 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 5868 | #if defined S_ISSOCK && defined S_IFREG |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5869 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5870 | #endif |
| 5871 | |
| 5872 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5873 | if ac_fn_c_try_compile "$LINENO"; then : |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5874 | ac_cv_header_stat_broken=no |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5875 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5876 | ac_cv_header_stat_broken=yes |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5877 | fi |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 5878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5879 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5881 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5882 | if test $ac_cv_header_stat_broken = yes; then |
| 5883 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5884 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 5885 | |
| 5886 | fi |
| 5887 | |
| 5888 | |
| 5889 | |
Austin English | 51094be | 2008-12-27 14:53:53 -0600 | [diff] [blame] | 5890 | for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5891 | do : |
| 5892 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5893 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h> |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5894 | #ifdef HAVE_SYS_PARAM_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5895 | # include <sys/param.h> |
| 5896 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5897 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5898 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5899 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5900 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5901 | _ACEOF |
| 5902 | |
| 5903 | fi |
| 5904 | |
| 5905 | done |
| 5906 | |
| 5907 | |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5908 | for ac_header in \ |
| 5909 | netinet/ip.h \ |
| 5910 | net/if.h \ |
| 5911 | net/if_arp.h \ |
| 5912 | net/if_dl.h \ |
| 5913 | net/if_types.h \ |
| 5914 | net/route.h \ |
| 5915 | netinet/if_ether.h \ |
Austin English | 337067a | 2009-01-22 10:44:06 -0600 | [diff] [blame] | 5916 | netinet/if_inarp.h \ |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5917 | netinet/in_pcb.h \ |
| 5918 | netinet/ip_icmp.h \ |
| 5919 | netinet/ip_var.h \ |
| 5920 | netinet/udp.h \ |
| 5921 | netipx/ipx.h \ |
| 5922 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5923 | do : |
| 5924 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5925 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h> |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5926 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5927 | # include <sys/socket.h> |
| 5928 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5929 | #ifdef HAVE_SYS_SOCKETVAR_H |
Ken Thomases | a609fee | 2007-10-19 16:18:17 -0500 | [diff] [blame] | 5930 | # include <sys/socketvar.h> |
| 5931 | #endif |
Austin English | bb3f258 | 2009-01-26 23:34:42 -0600 | [diff] [blame] | 5932 | #ifdef HAVE_NET_ROUTE_H |
| 5933 | # include <net/route.h> |
| 5934 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5935 | #ifdef HAVE_NETINET_IN_H |
Ken Thomases | ffd78b1 | 2007-10-19 16:18:27 -0500 | [diff] [blame] | 5936 | # include <netinet/in.h> |
| 5937 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 5938 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 5939 | # include <netinet/in_systm.h> |
| 5940 | #endif |
Alexandre Julliard | d7e846c | 2009-01-30 14:01:12 +0100 | [diff] [blame] | 5941 | #ifdef HAVE_NET_IF_H |
| 5942 | # include <net/if.h> |
| 5943 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5944 | #ifdef HAVE_NETINET_IP_H |
| 5945 | # include <netinet/ip.h> |
| 5946 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5947 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5948 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5949 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 5950 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 5951 | _ACEOF |
| 5952 | |
| 5953 | fi |
| 5954 | |
| 5955 | done |
| 5956 | |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5957 | |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 5958 | for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5959 | do : |
| 5960 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5961 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h> |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 5962 | #ifdef HAVE_ALIAS_H |
| 5963 | # include <alias.h> |
| 5964 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5965 | #ifdef HAVE_SYS_SOCKET_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5966 | # include <sys/socket.h> |
| 5967 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5968 | #ifdef HAVE_SYS_SOCKETVAR_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5969 | # include <sys/socketvar.h> |
| 5970 | #endif |
Austin English | 53d3c46 | 2009-01-26 23:47:49 -0600 | [diff] [blame] | 5971 | #ifdef HAVE_SYS_TIMEOUT_H |
| 5972 | # include <sys/timeout.h> |
| 5973 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 5974 | #ifdef HAVE_NETINET_IN_H |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5975 | # include <netinet/in.h> |
| 5976 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 5977 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 5978 | # include <netinet/in_systm.h> |
| 5979 | #endif |
Alexandre Julliard | dfb308a | 2008-06-27 14:06:47 +0200 | [diff] [blame] | 5980 | #ifdef HAVE_NETINET_IP_H |
| 5981 | # include <netinet/ip.h> |
| 5982 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 5983 | #ifdef HAVE_NETINET_IP_VAR_H |
| 5984 | # include <netinet/ip_var.h> |
| 5985 | #endif |
Eric Durbin | 020b0ef | 2008-06-24 22:45:51 -0500 | [diff] [blame] | 5986 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 5987 | # include <netinet/ip_icmp.h> |
| 5988 | #endif |
Eric Durbin | 6d4eab9 | 2008-06-24 22:44:13 -0500 | [diff] [blame] | 5989 | #ifdef HAVE_NETINET_UDP_H |
| 5990 | # include <netinet/udp.h> |
| 5991 | #endif |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 5992 | #ifdef HAVE_NETINET_TCP_H |
| 5993 | # include <netinet/tcp.h> |
| 5994 | #endif |
Austin English | 0317393 | 2009-01-23 13:29:42 -0600 | [diff] [blame] | 5995 | #ifdef HAVE_NETINET_TCP_TIMER_H |
| 5996 | #include <netinet/tcp_timer.h> |
| 5997 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 5998 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 5999 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6000 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6001 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mark Adams | 2569635 | 2007-07-10 23:39:21 -0400 | [diff] [blame] | 6002 | _ACEOF |
| 6003 | |
| 6004 | fi |
| 6005 | |
| 6006 | done |
| 6007 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6008 | |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6009 | for ac_header in linux/ipx.h linux/irda.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6010 | do : |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6011 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6012 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h> |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6013 | #ifdef HAVE_ASM_TYPES_H |
| 6014 | # include <asm/types.h> |
| 6015 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6016 | #ifdef HAVE_SYS_SOCKET_H |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6017 | # include <sys/socket.h> |
| 6018 | #endif |
Francois Gouget | da1a352 | 2008-12-28 10:35:02 +0100 | [diff] [blame] | 6019 | #ifdef HAVE_LINUX_TYPES_H |
| 6020 | # include <linux/types.h> |
| 6021 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6022 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6023 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6024 | cat >>confdefs.h <<_ACEOF |
Juan Lang | 0ce420d | 2009-08-12 09:14:16 -0700 | [diff] [blame] | 6025 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6026 | _ACEOF |
| 6027 | |
| 6028 | fi |
| 6029 | |
| 6030 | done |
| 6031 | |
| 6032 | |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6033 | for ac_header in mach-o/dyld_images.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6034 | do : |
| 6035 | ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6036 | # include <stdbool.h> |
| 6037 | #endif |
| 6038 | #ifdef HAVE_STDINT_H |
| 6039 | # include <stdint.h> |
| 6040 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6041 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6042 | if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then : |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6043 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6044 | #define HAVE_MACH_O_DYLD_IMAGES_H 1 |
Austin English | 2d7ccb3 | 2009-06-13 18:01:24 -0500 | [diff] [blame] | 6045 | _ACEOF |
| 6046 | |
| 6047 | fi |
| 6048 | |
| 6049 | done |
| 6050 | |
| 6051 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6052 | for ac_header in resolv.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6053 | do : |
| 6054 | ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h> |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6055 | #ifdef HAVE_SYS_SOCKET_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6056 | # include <sys/socket.h> |
| 6057 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6058 | #ifdef HAVE_NETINET_IN_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6059 | # include <netinet/in.h> |
| 6060 | #endif |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6061 | #ifdef HAVE_ARPA_NAMESER_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6062 | # include <arpa/nameser.h> |
| 6063 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6064 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6065 | if test "x$ac_cv_header_resolv_h" = xyes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6066 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6067 | #define HAVE_RESOLV_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6068 | _ACEOF |
| 6069 | |
| 6070 | fi |
| 6071 | |
| 6072 | done |
| 6073 | |
| 6074 | |
Juan Lang | e3c0e30 | 2010-03-11 18:36:46 -0800 | [diff] [blame] | 6075 | for ac_header in ifaddrs.h |
| 6076 | do : |
| 6077 | ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h> |
| 6078 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6079 | if test "x$ac_cv_header_ifaddrs_h" = xyes; then : |
Juan Lang | e3c0e30 | 2010-03-11 18:36:46 -0800 | [diff] [blame] | 6080 | cat >>confdefs.h <<_ACEOF |
| 6081 | #define HAVE_IFADDRS_H 1 |
| 6082 | _ACEOF |
| 6083 | |
| 6084 | fi |
| 6085 | |
| 6086 | done |
| 6087 | |
| 6088 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6089 | for ac_header in ucontext.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6090 | do : |
| 6091 | ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h> |
| 6092 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6093 | if test "x$ac_cv_header_ucontext_h" = xyes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6094 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6095 | #define HAVE_UCONTEXT_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6096 | _ACEOF |
| 6097 | |
| 6098 | fi |
| 6099 | |
| 6100 | done |
| 6101 | |
| 6102 | |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6103 | for ac_header in sys/thr.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6104 | do : |
| 6105 | ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h> |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 6106 | #ifdef HAVE_UCONTEXT_H |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6107 | #include <ucontext.h> |
| 6108 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6109 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6110 | if test "x$ac_cv_header_sys_thr_h" = xyes; then : |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6111 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6112 | #define HAVE_SYS_THR_H 1 |
Tijl Coosemans | 60833da | 2007-08-08 00:25:24 +0200 | [diff] [blame] | 6113 | _ACEOF |
| 6114 | |
| 6115 | fi |
| 6116 | |
| 6117 | done |
| 6118 | |
| 6119 | |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6120 | for ac_header in pthread_np.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6121 | do : |
| 6122 | ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6123 | #include <pthread.h> |
| 6124 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6125 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6126 | if test "x$ac_cv_header_pthread_np_h" = xyes; then : |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6127 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6128 | #define HAVE_PTHREAD_NP_H 1 |
Gerald Pfeifer | 4ff90b4 | 2006-08-21 20:00:20 +0200 | [diff] [blame] | 6129 | _ACEOF |
| 6130 | |
| 6131 | fi |
| 6132 | |
| 6133 | done |
| 6134 | |
| 6135 | |
Francois Gouget | faf05df | 2006-08-07 21:52:36 +0200 | [diff] [blame] | 6136 | for ac_header in linux/videodev.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6137 | do : |
| 6138 | ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6139 | #include <sys/time.h> |
| 6140 | #endif |
| 6141 | #include <sys/types.h> |
| 6142 | #ifdef HAVE_ASM_TYPES_H |
| 6143 | #include <asm/types.h> |
| 6144 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6145 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6146 | if test "x$ac_cv_header_linux_videodev_h" = xyes; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6147 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6148 | #define HAVE_LINUX_VIDEODEV_H 1 |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 6149 | _ACEOF |
| 6150 | |
| 6151 | fi |
| 6152 | |
| 6153 | done |
| 6154 | |
| 6155 | |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6156 | for ac_header in linux/capi.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6157 | do : |
| 6158 | ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user |
| 6159 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6160 | if test "x$ac_cv_header_linux_capi_h" = xyes; then : |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6161 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6162 | #define HAVE_LINUX_CAPI_H 1 |
Alexandre Julliard | b079add | 2006-02-24 11:46:17 +0100 | [diff] [blame] | 6163 | _ACEOF |
| 6164 | |
| 6165 | fi |
| 6166 | |
| 6167 | done |
| 6168 | |
| 6169 | |
| 6170 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6171 | DLLEXT="" |
| 6172 | |
| 6173 | DLLFLAGS="-D_REENTRANT" |
| 6174 | |
| 6175 | LDSHARED="" |
| 6176 | |
| 6177 | LDDLLFLAGS="" |
| 6178 | |
| 6179 | LIBEXT="so" |
| 6180 | |
| 6181 | IMPLIBEXT="def" |
| 6182 | |
| 6183 | LDRPATH_INSTALL="" |
| 6184 | |
| 6185 | LDRPATH_LOCAL="" |
| 6186 | |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6187 | STATIC_IMPLIBEXT="def.a" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6188 | # Extract the first word of "ldd", so it can be a program name with args. |
| 6189 | set dummy ldd; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6191 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6192 | if ${ac_cv_path_LDD+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6193 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6194 | else |
| 6195 | case $LDD in |
| 6196 | [\\/]* | ?:[\\/]*) |
| 6197 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 6198 | ;; |
| 6199 | *) |
| 6200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6201 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 6202 | for as_dir in $as_dummy |
| 6203 | do |
| 6204 | IFS=$as_save_IFS |
| 6205 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6207 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6208 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6210 | break 2 |
| 6211 | fi |
| 6212 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6213 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6214 | IFS=$as_save_IFS |
| 6215 | |
| 6216 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 6217 | ;; |
| 6218 | esac |
| 6219 | fi |
| 6220 | LDD=$ac_cv_path_LDD |
| 6221 | if test -n "$LDD"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6223 | $as_echo "$LDD" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6224 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6226 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6227 | fi |
| 6228 | |
| 6229 | |
| 6230 | |
| 6231 | case $host_os in |
| 6232 | cygwin*|mingw32*) |
| 6233 | if test -n "$ac_tool_prefix"; then |
| 6234 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6235 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6237 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6238 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6239 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6240 | else |
| 6241 | if test -n "$DLLTOOL"; then |
| 6242 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6243 | else |
| 6244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6245 | for as_dir in $PATH |
| 6246 | do |
| 6247 | IFS=$as_save_IFS |
| 6248 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6249 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6251 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6253 | break 2 |
| 6254 | fi |
| 6255 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6256 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6257 | IFS=$as_save_IFS |
| 6258 | |
| 6259 | fi |
| 6260 | fi |
| 6261 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6262 | if test -n "$DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6264 | $as_echo "$DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6265 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6267 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6268 | fi |
| 6269 | |
| 6270 | |
| 6271 | fi |
| 6272 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6273 | ac_ct_DLLTOOL=$DLLTOOL |
| 6274 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6275 | set dummy dlltool; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6277 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6278 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6279 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6280 | else |
| 6281 | if test -n "$ac_ct_DLLTOOL"; then |
| 6282 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6283 | else |
| 6284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6285 | for as_dir in $PATH |
| 6286 | do |
| 6287 | IFS=$as_save_IFS |
| 6288 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6289 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6291 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6293 | break 2 |
| 6294 | fi |
| 6295 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6296 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6297 | IFS=$as_save_IFS |
| 6298 | |
| 6299 | fi |
| 6300 | fi |
| 6301 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6302 | if test -n "$ac_ct_DLLTOOL"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6304 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6305 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6307 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6308 | fi |
| 6309 | |
| 6310 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6311 | DLLTOOL="false" |
| 6312 | else |
| 6313 | case $cross_compiling:$ac_tool_warned in |
| 6314 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6316 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6317 | ac_tool_warned=yes ;; |
| 6318 | esac |
| 6319 | DLLTOOL=$ac_ct_DLLTOOL |
| 6320 | fi |
| 6321 | else |
| 6322 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6323 | fi |
| 6324 | |
| 6325 | if test -n "$ac_tool_prefix"; then |
| 6326 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 6327 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6329 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6330 | if ${ac_cv_prog_DLLWRAP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6331 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6332 | else |
| 6333 | if test -n "$DLLWRAP"; then |
| 6334 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 6335 | else |
| 6336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6337 | for as_dir in $PATH |
| 6338 | do |
| 6339 | IFS=$as_save_IFS |
| 6340 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6341 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6343 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6345 | break 2 |
| 6346 | fi |
| 6347 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6348 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6349 | IFS=$as_save_IFS |
| 6350 | |
| 6351 | fi |
| 6352 | fi |
| 6353 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 6354 | if test -n "$DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6356 | $as_echo "$DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6357 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6359 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6360 | fi |
| 6361 | |
| 6362 | |
| 6363 | fi |
| 6364 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 6365 | ac_ct_DLLWRAP=$DLLWRAP |
| 6366 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 6367 | set dummy dllwrap; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6369 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6370 | if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6371 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6372 | else |
| 6373 | if test -n "$ac_ct_DLLWRAP"; then |
| 6374 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 6375 | else |
| 6376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6377 | for as_dir in $PATH |
| 6378 | do |
| 6379 | IFS=$as_save_IFS |
| 6380 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6381 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6383 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6385 | break 2 |
| 6386 | fi |
| 6387 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6388 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6389 | IFS=$as_save_IFS |
| 6390 | |
| 6391 | fi |
| 6392 | fi |
| 6393 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 6394 | if test -n "$ac_ct_DLLWRAP"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6396 | $as_echo "$ac_ct_DLLWRAP" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6397 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6399 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6400 | fi |
| 6401 | |
| 6402 | if test "x$ac_ct_DLLWRAP" = x; then |
| 6403 | DLLWRAP="false" |
| 6404 | else |
| 6405 | case $cross_compiling:$ac_tool_warned in |
| 6406 | yes:) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6408 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6409 | ac_tool_warned=yes ;; |
| 6410 | esac |
| 6411 | DLLWRAP=$ac_ct_DLLWRAP |
| 6412 | fi |
| 6413 | else |
| 6414 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 6415 | fi |
| 6416 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6417 | if test "$DLLWRAP" = "false"; then |
| 6418 | LIBEXT="a" |
| 6419 | else |
| 6420 | LIBEXT="dll" |
| 6421 | fi |
| 6422 | IMPLIBEXT="a" |
Alexandre Julliard | 950a0f8 | 2010-01-26 21:10:14 +0100 | [diff] [blame] | 6423 | STATIC_IMPLIBEXT="a" |
Alexandre Julliard | ec1ebfb | 2008-09-04 12:29:07 +0200 | [diff] [blame] | 6424 | enable_iphlpapi=${enable_iphlpapi:-no} |
| 6425 | enable_kernel32=${enable_kernel32:-no} |
| 6426 | enable_msvcrt=${enable_msvcrt:-no} |
| 6427 | enable_ntdll=${enable_ntdll:-no} |
| 6428 | enable_ws2_32=${enable_ws2_32:-no} |
| 6429 | enable_loader=${enable_loader:-no} |
| 6430 | enable_server=${enable_server:-no} |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 6431 | with_x=${with_x:-no} |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 6432 | with_pthread=${with_pthread:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6433 | ;; |
| 6434 | darwin*|macosx*) |
| 6435 | DLLEXT=".so" |
| 6436 | LIBEXT="dylib" |
| 6437 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6438 | LDDLLFLAGS="-bundle -multiply_defined suppress" |
| 6439 | LIBWINE_LDFLAGS="-multiply_defined suppress" |
| 6440 | LDSHARED="\$(CC) -dynamiclib" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6441 | LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@" |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 6442 | COREFOUNDATIONLIB="-framework CoreFoundation" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6443 | |
| 6444 | IOKITLIB="-framework IOKit -framework CoreFoundation" |
| 6445 | |
Ken Thomases | 21137cd | 2011-01-05 07:25:23 -0600 | [diff] [blame] | 6446 | APPLICATIONSERVICESLIB="-framework ApplicationServices" |
| 6447 | |
Alexandre Julliard | 691bdbd | 2009-06-23 20:51:37 +0200 | [diff] [blame] | 6448 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6449 | |
| 6450 | if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes" |
| 6451 | then |
| 6452 | DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation" |
| 6453 | |
| 6454 | fi |
Alexandre Julliard | 45db348 | 2011-03-14 14:25:45 +0100 | [diff] [blame] | 6455 | if test "$ac_cv_header_Security_Security_h" = "yes" |
| 6456 | then |
| 6457 | SECURITYLIB="-framework Security -framework CoreFoundation" |
| 6458 | |
| 6459 | with_gnutls=${with_gnutls:-no} |
| 6460 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6461 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" |
| 6462 | then |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6463 | if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes" |
| 6464 | then |
| 6465 | COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6466 | |
Charles Davis | 459d942 | 2011-01-29 16:45:53 -0700 | [diff] [blame] | 6467 | else |
| 6468 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI" |
| 6469 | |
| 6470 | fi |
Charles Davis | b149d7b | 2011-01-29 16:45:54 -0700 | [diff] [blame] | 6471 | ac_save_LIBS="$LIBS" |
| 6472 | LIBS="$LIBS $COREAUDIO" |
| 6473 | for ac_func in AUGraphAddNode |
| 6474 | do : |
| 6475 | ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6476 | if test "x$ac_cv_func_AUGraphAddNode" = xyes; then : |
Charles Davis | b149d7b | 2011-01-29 16:45:54 -0700 | [diff] [blame] | 6477 | cat >>confdefs.h <<_ACEOF |
| 6478 | #define HAVE_AUGRAPHADDNODE 1 |
| 6479 | _ACEOF |
| 6480 | |
| 6481 | fi |
| 6482 | done |
| 6483 | |
| 6484 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6485 | fi |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6486 | if test "$ac_cv_header_OpenAL_al_h" = "yes" |
| 6487 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6488 | FRAMEWORK_OPENAL="-framework OpenAL" |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6489 | |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 6490 | |
| 6491 | cat >>confdefs.h <<_ACEOF |
| 6492 | #define HAVE_OPENAL 1 |
| 6493 | _ACEOF |
| 6494 | |
| 6495 | ac_cv_lib_openal=yes |
Ken Thomases | 0b08f19 | 2009-09-09 22:23:35 -0500 | [diff] [blame] | 6496 | fi |
Alexandre Julliard | fac6741 | 2010-12-03 14:16:55 +0100 | [diff] [blame] | 6497 | if test "$ac_cv_header_OpenCL_opencl_h" = "yes" |
| 6498 | then |
| 6499 | LIBOPENCL="-framework OpenCL" |
| 6500 | |
| 6501 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 6502 | fi |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6503 | if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" |
| 6504 | then |
| 6505 | ac_save_LIBS="$LIBS" |
| 6506 | LIBS="$LIBS $IOKITLIB" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6507 | for ac_func in IOHIDManagerCreate |
| 6508 | do : |
| 6509 | ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6510 | if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then : |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6511 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6512 | #define HAVE_IOHIDMANAGERCREATE 1 |
Alexandre Julliard | 81f8c03 | 2009-03-11 16:49:55 +0100 | [diff] [blame] | 6513 | _ACEOF |
| 6514 | |
| 6515 | fi |
| 6516 | done |
| 6517 | |
| 6518 | LIBS="$ac_save_LIBS" |
| 6519 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6520 | case $host_cpu in |
| 6521 | *powerpc*) |
| 6522 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;; |
| 6523 | esac |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 6524 | if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes" |
| 6525 | then |
| 6526 | QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo" |
| 6527 | |
| 6528 | enable_wineqtdecoder=${enable_wineqtdecoder:-yes} |
| 6529 | else |
| 6530 | as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported." |
| 6531 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6532 | if test "$ac_cv_header_Carbon_Carbon_h" = "yes" |
| 6533 | then |
| 6534 | CARBONLIB="-framework Carbon" |
| 6535 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 6536 | enable_winequartz_drv=${enable_winequartz_drv:-yes} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6537 | fi |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6538 | if test "x$enable_win16" = "xyes" |
| 6539 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6541 | $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6542 | if test "$cross_compiling" = yes; then : |
| 6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6544 | $as_echo "cross-compiling, assuming yes" >&6; } |
| 6545 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6547 | /* end confdefs.h. */ |
| 6548 | asm(".text\n" |
| 6549 | "bad:\tnop;nop\n" |
| 6550 | "good:\tnop;nop\n\t" |
| 6551 | ".globl _testfunc\n" |
| 6552 | "_testfunc:\tcallw good"); |
| 6553 | extern void testfunc(); |
| 6554 | int |
| 6555 | main () |
| 6556 | { |
| 6557 | unsigned short *p = (unsigned short *)testfunc; |
| 6558 | return p[0] != 0xe866 || p[1] != 0xfffa |
| 6559 | ; |
| 6560 | return 0; |
| 6561 | } |
| 6562 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6563 | if ac_fn_c_try_run "$LINENO"; then : |
| 6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6565 | $as_echo "yes" >&6; } |
| 6566 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6568 | $as_echo "no" >&6; } |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6569 | as_fn_error $? "Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support." "$LINENO" 5 |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6570 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6571 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6572 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6573 | fi |
| 6574 | |
Alexandre Julliard | cc8eb6b | 2009-06-23 13:04:49 +0200 | [diff] [blame] | 6575 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6576 | ;; |
| 6577 | *) |
| 6578 | DLLFLAGS="$DLLFLAGS -fPIC" |
| 6579 | DLLEXT=".so" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6581 | $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6582 | if ${ac_cv_c_dll_gnuelf+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6583 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6584 | else |
| 6585 | ac_wine_try_cflags_saved=$CFLAGS |
| 6586 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6588 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6589 | void myfunc() {} |
| 6590 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6591 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6592 | ac_cv_c_dll_gnuelf="yes" |
| 6593 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6594 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6595 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6596 | rm -f core conftest.err conftest.$ac_objext \ |
| 6597 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6598 | CFLAGS=$ac_wine_try_cflags_saved |
| 6599 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6601 | $as_echo "$ac_cv_c_dll_gnuelf" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6602 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 6603 | then |
| 6604 | LDSHARED="\$(CC) -shared" |
| 6605 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6607 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6608 | if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6609 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6610 | else |
| 6611 | ac_wine_try_cflags_saved=$CFLAGS |
| 6612 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6614 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6615 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6616 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6617 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6618 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes |
| 6619 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6620 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6621 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6622 | rm -f core conftest.err conftest.$ac_objext \ |
| 6623 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6624 | CFLAGS=$ac_wine_try_cflags_saved |
| 6625 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6627 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6628 | if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6629 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 6630 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6632 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6633 | if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6634 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6635 | else |
| 6636 | ac_wine_try_cflags_saved=$CFLAGS |
| 6637 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6639 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6640 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6641 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6642 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6643 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes |
| 6644 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6645 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6646 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6647 | rm -f core conftest.err conftest.$ac_objext \ |
| 6648 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6649 | CFLAGS=$ac_wine_try_cflags_saved |
| 6650 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6652 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6653 | if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6654 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" |
| 6655 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6656 | fi |
| 6657 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6659 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6660 | if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6661 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6662 | else |
| 6663 | ac_wine_try_cflags_saved=$CFLAGS |
| 6664 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6666 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6667 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6668 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6669 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6670 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes |
| 6671 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6672 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6673 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6674 | rm -f core conftest.err conftest.$ac_objext \ |
| 6675 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6676 | CFLAGS=$ac_wine_try_cflags_saved |
| 6677 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6679 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6680 | if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6681 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 6682 | fi |
| 6683 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6685 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6686 | if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6687 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6688 | else |
| 6689 | ac_wine_try_cflags_saved=$CFLAGS |
| 6690 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6692 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6693 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6694 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6695 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6696 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes |
| 6697 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6698 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6699 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6700 | rm -f core conftest.err conftest.$ac_objext \ |
| 6701 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6702 | CFLAGS=$ac_wine_try_cflags_saved |
| 6703 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6705 | $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6706 | if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6707 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 6708 | fi |
| 6709 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6710 | echo '{ global: *; };' >conftest.map |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6711 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh` |
| 6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6713 | $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6714 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6715 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6716 | else |
| 6717 | ac_wine_try_cflags_saved=$CFLAGS |
| 6718 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6720 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6721 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6722 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6723 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6724 | eval "$as_ac_var=yes" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6725 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6726 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6727 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6728 | rm -f core conftest.err conftest.$ac_objext \ |
| 6729 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6730 | CFLAGS=$ac_wine_try_cflags_saved |
| 6731 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6732 | eval ac_res=\$$as_ac_var |
| 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6734 | $as_echo "$ac_res" >&6; } |
| 6735 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6736 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 6737 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6738 | rm -f conftest.map |
| 6739 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6741 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6742 | if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6743 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6744 | else |
| 6745 | ac_wine_try_cflags_saved=$CFLAGS |
| 6746 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6748 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6749 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6750 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6751 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6752 | ac_cv_cflags__fPIC__Wl___export_dynamic=yes |
| 6753 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6754 | ac_cv_cflags__fPIC__Wl___export_dynamic=no |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6755 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6756 | rm -f core conftest.err conftest.$ac_objext \ |
| 6757 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6758 | CFLAGS=$ac_wine_try_cflags_saved |
| 6759 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6761 | $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6762 | if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6763 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 6764 | |
| 6765 | fi |
| 6766 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6767 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6769 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6770 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6771 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6772 | else |
| 6773 | ac_wine_try_cflags_saved=$CFLAGS |
| 6774 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6776 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6777 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6778 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6779 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6780 | eval "$as_ac_var=yes" |
| 6781 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6782 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6783 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6784 | rm -f core conftest.err conftest.$ac_objext \ |
| 6785 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6786 | CFLAGS=$ac_wine_try_cflags_saved |
| 6787 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6788 | eval ac_res=\$$as_ac_var |
| 6789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6790 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6791 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6792 | LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6793 | LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6794 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6795 | as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh` |
| 6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6797 | $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6798 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6799 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6800 | else |
| 6801 | ac_wine_try_cflags_saved=$CFLAGS |
| 6802 | CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6804 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6805 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6806 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6807 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6808 | eval "$as_ac_var=yes" |
| 6809 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6810 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6811 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6812 | rm -f core conftest.err conftest.$ac_objext \ |
| 6813 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6814 | CFLAGS=$ac_wine_try_cflags_saved |
| 6815 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6816 | eval ac_res=\$$as_ac_var |
| 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6818 | $as_echo "$ac_res" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6819 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6820 | LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 6821 | LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6822 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6823 | fi |
| 6824 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6826 | $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6827 | if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6828 | $as_echo_n "(cached) " >&6 |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6829 | else |
| 6830 | ac_wine_try_cflags_saved=$CFLAGS |
| 6831 | CFLAGS="$CFLAGS -Wl,--enable-new-dtags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6833 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6834 | int main(int argc, char **argv) { return 0; } |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6835 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6836 | if ac_fn_c_try_link "$LINENO"; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6837 | ac_cv_cflags__Wl___enable_new_dtags=yes |
| 6838 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6839 | ac_cv_cflags__Wl___enable_new_dtags=no |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6840 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6841 | rm -f core conftest.err conftest.$ac_objext \ |
| 6842 | conftest$ac_exeext conftest.$ac_ext |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6843 | CFLAGS=$ac_wine_try_cflags_saved |
| 6844 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6846 | $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6847 | if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then : |
Tomas Carnecky | f4077ae | 2007-07-30 22:38:55 +0200 | [diff] [blame] | 6848 | LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags" |
| 6849 | fi |
| 6850 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6851 | case $host_cpu in |
| 6852 | *i[3456789]86* | x86_64) |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6853 | as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh` |
| 6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6855 | $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6856 | if eval \${$as_ac_var+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6857 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6858 | else |
| 6859 | ac_wine_try_cflags_saved=$CFLAGS |
| 6860 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6862 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 6863 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6864 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6865 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6866 | eval "$as_ac_var=yes" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6867 | else |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6868 | eval "$as_ac_var=no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6869 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6870 | rm -f core conftest.err conftest.$ac_objext \ |
| 6871 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6872 | CFLAGS=$ac_wine_try_cflags_saved |
| 6873 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6874 | eval ac_res=\$$as_ac_var |
| 6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6876 | $as_echo "$ac_res" >&6; } |
| 6877 | if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then : |
Francois Gouget | 5f694dd | 2010-11-26 16:18:32 +0100 | [diff] [blame] | 6878 | case $host_os in |
| 6879 | freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;; |
| 6880 | *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;; |
| 6881 | esac |
| 6882 | |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6883 | fi |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 6884 | # Extract the first word of "prelink", so it can be a program name with args. |
| 6885 | set dummy prelink; ac_word=$2 |
| 6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6887 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6888 | if ${ac_cv_path_PRELINK+:} false; then : |
Alexandre Julliard | b5d824b | 2010-08-24 13:42:10 +0200 | [diff] [blame] | 6889 | $as_echo_n "(cached) " >&6 |
| 6890 | else |
| 6891 | case $PRELINK in |
| 6892 | [\\/]* | ?:[\\/]*) |
| 6893 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. |
| 6894 | ;; |
| 6895 | *) |
| 6896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6897 | for as_dir in /sbin /usr/sbin $PATH |
| 6898 | do |
| 6899 | IFS=$as_save_IFS |
| 6900 | test -z "$as_dir" && as_dir=. |
| 6901 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6903 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
| 6904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6905 | break 2 |
| 6906 | fi |
| 6907 | done |
| 6908 | done |
| 6909 | IFS=$as_save_IFS |
| 6910 | |
| 6911 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
| 6912 | ;; |
| 6913 | esac |
| 6914 | fi |
| 6915 | PRELINK=$ac_cv_path_PRELINK |
| 6916 | if test -n "$PRELINK"; then |
| 6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5 |
| 6918 | $as_echo "$PRELINK" >&6; } |
| 6919 | else |
| 6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6921 | $as_echo "no" >&6; } |
| 6922 | fi |
| 6923 | |
| 6924 | |
| 6925 | if test "x$PRELINK" = xfalse |
| 6926 | then |
| 6927 | as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly." |
| 6928 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6929 | ;; |
| 6930 | esac |
| 6931 | |
| 6932 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6934 | $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6935 | if ${ac_cv_c_dll_unixware+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6936 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6937 | else |
| 6938 | ac_wine_try_cflags_saved=$CFLAGS |
| 6939 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6941 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6942 | void myfunc() {} |
| 6943 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6944 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6945 | ac_cv_c_dll_unixware="yes" |
| 6946 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6947 | ac_cv_c_dll_unixware="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6948 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6949 | rm -f core conftest.err conftest.$ac_objext \ |
| 6950 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6951 | CFLAGS=$ac_wine_try_cflags_saved |
| 6952 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6954 | $as_echo "$ac_cv_c_dll_unixware" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6955 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 6956 | then |
| 6957 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 6958 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
| 6959 | |
| 6960 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6962 | $as_echo_n "checking whether we can build an HP-UX dll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 6963 | if ${ac_cv_c_dll_hpux+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6964 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6965 | else |
| 6966 | ac_wine_try_cflags_saved=$CFLAGS |
| 6967 | CFLAGS="$CFLAGS -shared" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6969 | /* end confdefs.h. */ |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6970 | void myfunc() {} |
| 6971 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6972 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6973 | ac_cv_c_dll_hpux="yes" |
| 6974 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6975 | ac_cv_c_dll_hpux="no" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6976 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6977 | rm -f core conftest.err conftest.$ac_objext \ |
| 6978 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6979 | CFLAGS=$ac_wine_try_cflags_saved |
| 6980 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 6982 | $as_echo "$ac_cv_c_dll_hpux" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6983 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 6984 | then |
| 6985 | LIBEXT="sl" |
| 6986 | DLLEXT=".sl" |
| 6987 | LDDLLFLAGS="-shared -fPIC" |
| 6988 | LDSHARED="\$(CC) -shared" |
| 6989 | fi |
| 6990 | fi |
| 6991 | fi |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 6992 | ;; |
| 6993 | esac |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6994 | |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 6995 | enable_wineqtdecoder=${enable_wineqtdecoder:-no} |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 6996 | enable_winequartz_drv=${enable_winequartz_drv:-no} |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 6997 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 6998 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 6999 | as_fn_error $? "could not find a way to build shared libraries. |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7000 | It is currently not possible to build Wine without shared library |
| 7001 | (.so) support to allow transparent switch between .so and .dll files. |
| 7002 | If you are using Linux, you will need a newer binutils. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7003 | " "$LINENO" 5 |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7004 | fi |
| 7005 | |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 7006 | CROSSTEST_DISABLE=\# |
| 7007 | |
| 7008 | if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll" |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7009 | then |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7010 | case "$host_cpu" in |
| 7011 | i[3456789]86*) |
Jacek Caban | 0b6bfad | 2010-12-21 18:08:38 +0100 | [diff] [blame] | 7012 | ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;; |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7013 | x86_64) |
Vincent Povirk | d210375 | 2010-10-11 15:55:40 -0500 | [diff] [blame] | 7014 | ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;; |
Alexandre Julliard | a91fb21 | 2009-12-07 15:36:09 +0100 | [diff] [blame] | 7015 | *) |
| 7016 | ac_prefix_list="" ;; |
| 7017 | esac |
| 7018 | for ac_prog in $ac_prefix_list |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7019 | do |
| 7020 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7021 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7023 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7024 | if ${ac_cv_prog_CROSSCC+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7025 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7026 | else |
| 7027 | if test -n "$CROSSCC"; then |
| 7028 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 7029 | else |
| 7030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7031 | for as_dir in $PATH |
| 7032 | do |
| 7033 | IFS=$as_save_IFS |
| 7034 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7035 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7037 | ac_cv_prog_CROSSCC="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7039 | break 2 |
| 7040 | fi |
| 7041 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7042 | done |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7043 | IFS=$as_save_IFS |
| 7044 | |
| 7045 | fi |
| 7046 | fi |
| 7047 | CROSSCC=$ac_cv_prog_CROSSCC |
| 7048 | if test -n "$CROSSCC"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7050 | $as_echo "$CROSSCC" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7051 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7053 | $as_echo "no" >&6; } |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7054 | fi |
| 7055 | |
| 7056 | |
| 7057 | test -n "$CROSSCC" && break |
| 7058 | done |
| 7059 | test -n "$CROSSCC" || CROSSCC="false" |
| 7060 | |
Alexandre Julliard | 9fb8198 | 2008-10-11 21:19:53 +0200 | [diff] [blame] | 7061 | if test "$CROSSCC" != "false" |
| 7062 | then |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7063 | ac_save_CC="$CC" |
| 7064 | CC="$CROSSCC" |
| 7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5 |
| 7066 | $as_echo_n "checking whether $CROSSCC works... " >&6; } |
| 7067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7068 | /* end confdefs.h. */ |
Alexandre Julliard | a2d88ab | 2009-05-30 17:08:06 +0200 | [diff] [blame] | 7069 | |
Alexandre Julliard | c2a29db | 2010-08-04 13:16:19 +0200 | [diff] [blame] | 7070 | int |
| 7071 | main () |
| 7072 | { |
| 7073 | |
| 7074 | ; |
| 7075 | return 0; |
| 7076 | } |
| 7077 | _ACEOF |
| 7078 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7080 | $as_echo "yes" >&6; } |
| 7081 | set x $CROSSCC |
| 7082 | shift |
| 7083 | target="" |
| 7084 | while test $# -ge 1 |
| 7085 | do |
| 7086 | case "$1" in |
| 7087 | *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;; |
| 7088 | esac |
| 7089 | shift |
| 7090 | done |
| 7091 | if test -n "$target" |
| 7092 | then |
| 7093 | CROSSTEST_DISABLE="" |
| 7094 | CROSSTARGET="$target" |
| 7095 | |
| 7096 | fi |
| 7097 | else |
| 7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7099 | $as_echo "no" >&6; } |
| 7100 | fi |
| 7101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7102 | CC="$ac_save_CC" |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7103 | fi |
Alexandre Julliard | a309762 | 2007-07-02 17:27:48 +0200 | [diff] [blame] | 7104 | fi |
| 7105 | |
| 7106 | |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7107 | if test "$ac_cv_header_pthread_h" = "yes" |
| 7108 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7110 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7111 | if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7112 | $as_echo_n "(cached) " >&6 |
| 7113 | else |
| 7114 | ac_check_lib_save_LIBS=$LIBS |
| 7115 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7117 | /* end confdefs.h. */ |
| 7118 | |
| 7119 | /* Override any GCC internal prototype to avoid an error. |
| 7120 | Use char because int might match the return type of a GCC |
| 7121 | builtin and then its argument prototype would still apply. */ |
| 7122 | #ifdef __cplusplus |
| 7123 | extern "C" |
| 7124 | #endif |
| 7125 | char pthread_create (); |
| 7126 | int |
| 7127 | main () |
| 7128 | { |
| 7129 | return pthread_create (); |
| 7130 | ; |
| 7131 | return 0; |
| 7132 | } |
| 7133 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7134 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7135 | ac_cv_lib_pthread_pthread_create=yes |
| 7136 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7137 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7138 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7139 | rm -f core conftest.err conftest.$ac_objext \ |
| 7140 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7141 | LIBS=$ac_check_lib_save_LIBS |
| 7142 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7144 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7145 | if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7146 | LIBPTHREAD="-lpthread" |
| 7147 | |
| 7148 | fi |
| 7149 | |
| 7150 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7151 | if test "x$LIBPTHREAD" = "x"; then : |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7152 | case "x$with_pthread" in |
| 7153 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7154 | *) as_fn_error $? "pthread ${notice_platform}development files not found. |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7155 | Wine cannot support threads without libpthread. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7156 | Use the --without-pthread option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | c891f6b | 2009-02-11 20:41:50 +0100 | [diff] [blame] | 7157 | esac |
| 7158 | fi |
| 7159 | |
| 7160 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7162 | $as_echo_n "checking for X... " >&6; } |
| 7163 | |
| 7164 | |
| 7165 | # Check whether --with-x was given. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7166 | if test "${with_x+set}" = set; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7167 | withval=$with_x; |
| 7168 | fi |
| 7169 | |
| 7170 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 7171 | if test "x$with_x" = xno; then |
| 7172 | # The user explicitly disabled X. |
| 7173 | have_x=disabled |
| 7174 | else |
| 7175 | case $x_includes,$x_libraries in #( |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7176 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 7177 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7178 | $as_echo_n "(cached) " >&6 |
| 7179 | else |
| 7180 | # One or both of the vars are not set, and there is no cached value. |
| 7181 | ac_x_includes=no ac_x_libraries=no |
| 7182 | rm -f -r conftest.dir |
| 7183 | if mkdir conftest.dir; then |
| 7184 | cd conftest.dir |
| 7185 | cat >Imakefile <<'_ACEOF' |
| 7186 | incroot: |
| 7187 | @echo incroot='${INCROOT}' |
| 7188 | usrlibdir: |
| 7189 | @echo usrlibdir='${USRLIBDIR}' |
| 7190 | libdir: |
| 7191 | @echo libdir='${LIBDIR}' |
| 7192 | _ACEOF |
| 7193 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7194 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7195 | for ac_var in incroot usrlibdir libdir; do |
| 7196 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 7197 | done |
| 7198 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 7199 | for ac_extension in a so sl dylib la dll; do |
| 7200 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 7201 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 7202 | ac_im_usrlibdir=$ac_im_libdir; break |
| 7203 | fi |
| 7204 | done |
| 7205 | # Screen out bogus values from the imake configuration. They are |
| 7206 | # bogus both because they are the default anyway, and because |
| 7207 | # using them would break gcc on systems where it needs fixed includes. |
| 7208 | case $ac_im_incroot in |
| 7209 | /usr/include) ac_x_includes= ;; |
| 7210 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 7211 | esac |
| 7212 | case $ac_im_usrlibdir in |
| 7213 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 7214 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 7215 | esac |
| 7216 | fi |
| 7217 | cd .. |
| 7218 | rm -f -r conftest.dir |
| 7219 | fi |
| 7220 | |
| 7221 | # Standard set of common directories for X headers. |
| 7222 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 7223 | ac_x_header_dirs=' |
| 7224 | /usr/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7225 | /usr/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7226 | /usr/X11R6/include |
| 7227 | /usr/X11R5/include |
| 7228 | /usr/X11R4/include |
| 7229 | |
| 7230 | /usr/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7231 | /usr/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7232 | /usr/include/X11R6 |
| 7233 | /usr/include/X11R5 |
| 7234 | /usr/include/X11R4 |
| 7235 | |
| 7236 | /usr/local/X11/include |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7237 | /usr/local/X11R7/include |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7238 | /usr/local/X11R6/include |
| 7239 | /usr/local/X11R5/include |
| 7240 | /usr/local/X11R4/include |
| 7241 | |
| 7242 | /usr/local/include/X11 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7243 | /usr/local/include/X11R7 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7244 | /usr/local/include/X11R6 |
| 7245 | /usr/local/include/X11R5 |
| 7246 | /usr/local/include/X11R4 |
| 7247 | |
| 7248 | /usr/X386/include |
| 7249 | /usr/x386/include |
| 7250 | /usr/XFree86/include/X11 |
| 7251 | |
| 7252 | /usr/include |
| 7253 | /usr/local/include |
| 7254 | /usr/unsupported/include |
| 7255 | /usr/athena/include |
| 7256 | /usr/local/x11r5/include |
| 7257 | /usr/lpp/Xamples/include |
| 7258 | |
| 7259 | /usr/openwin/include |
| 7260 | /usr/openwin/share/include' |
| 7261 | |
| 7262 | if test "$ac_x_includes" = no; then |
| 7263 | # Guess where to find include files, by looking for Xlib.h. |
| 7264 | # First, try using that file with no special directory specified. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7266 | /* end confdefs.h. */ |
| 7267 | #include <X11/Xlib.h> |
| 7268 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7269 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7270 | # We can compile using X headers with no special include directory. |
| 7271 | ac_x_includes= |
| 7272 | else |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7273 | for ac_dir in $ac_x_header_dirs; do |
| 7274 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 7275 | ac_x_includes=$ac_dir |
| 7276 | break |
| 7277 | fi |
| 7278 | done |
| 7279 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7280 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7281 | fi # $ac_x_includes = no |
| 7282 | |
| 7283 | if test "$ac_x_libraries" = no; then |
| 7284 | # Check for the libraries. |
| 7285 | # See if we find them without any special options. |
| 7286 | # Don't add to $LIBS permanently. |
| 7287 | ac_save_LIBS=$LIBS |
| 7288 | LIBS="-lX11 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7290 | /* end confdefs.h. */ |
| 7291 | #include <X11/Xlib.h> |
| 7292 | int |
| 7293 | main () |
| 7294 | { |
| 7295 | XrmInitialize () |
| 7296 | ; |
| 7297 | return 0; |
| 7298 | } |
| 7299 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7300 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7301 | LIBS=$ac_save_LIBS |
| 7302 | # We can link X programs with no special library path. |
| 7303 | ac_x_libraries= |
| 7304 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7305 | LIBS=$ac_save_LIBS |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7306 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 7307 | do |
| 7308 | # Don't even attempt the hair of trying to link an X program! |
| 7309 | for ac_extension in a so sl dylib la dll; do |
| 7310 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 7311 | ac_x_libraries=$ac_dir |
| 7312 | break 2 |
| 7313 | fi |
| 7314 | done |
| 7315 | done |
| 7316 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7317 | rm -f core conftest.err conftest.$ac_objext \ |
| 7318 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7319 | fi # $ac_x_libraries = no |
| 7320 | |
| 7321 | case $ac_x_includes,$ac_x_libraries in #( |
| 7322 | no,* | *,no | *\'*) |
| 7323 | # Didn't find X, or a directory has "'" in its name. |
| 7324 | ac_cv_have_x="have_x=no";; #( |
| 7325 | *) |
| 7326 | # Record where we found X for the cache. |
| 7327 | ac_cv_have_x="have_x=yes\ |
| 7328 | ac_x_includes='$ac_x_includes'\ |
| 7329 | ac_x_libraries='$ac_x_libraries'" |
| 7330 | esac |
| 7331 | fi |
| 7332 | ;; #( |
| 7333 | *) have_x=yes;; |
| 7334 | esac |
| 7335 | eval "$ac_cv_have_x" |
| 7336 | fi # $with_x != no |
| 7337 | |
| 7338 | if test "$have_x" != yes; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7340 | $as_echo "$have_x" >&6; } |
| 7341 | no_x=yes |
| 7342 | else |
| 7343 | # If each of the values was on the command line, it overrides each guess. |
| 7344 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 7345 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 7346 | # Update the cache value to reflect the command line values. |
| 7347 | ac_cv_have_x="have_x=yes\ |
| 7348 | ac_x_includes='$x_includes'\ |
| 7349 | ac_x_libraries='$x_libraries'" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7351 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 7352 | fi |
| 7353 | |
| 7354 | if test "$no_x" = yes; then |
| 7355 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 7356 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7357 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7358 | |
| 7359 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 7360 | else |
| 7361 | if test -n "$x_includes"; then |
| 7362 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7363 | fi |
| 7364 | |
| 7365 | # It would also be nice to do this for all -L options, not just this one. |
| 7366 | if test -n "$x_libraries"; then |
| 7367 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7368 | # For Solaris; some versions of Sun CC require a space after -R and |
| 7369 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7371 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 7372 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 7373 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 7374 | ac_c_werror_flag=yes |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7376 | /* end confdefs.h. */ |
| 7377 | |
| 7378 | int |
| 7379 | main () |
| 7380 | { |
| 7381 | |
| 7382 | ; |
| 7383 | return 0; |
| 7384 | } |
| 7385 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7386 | if ac_fn_c_try_link "$LINENO"; then : |
| 7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7388 | $as_echo "no" >&6; } |
| 7389 | X_LIBS="$X_LIBS -R$x_libraries" |
| 7390 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7391 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 7392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7393 | /* end confdefs.h. */ |
| 7394 | |
| 7395 | int |
| 7396 | main () |
| 7397 | { |
| 7398 | |
| 7399 | ; |
| 7400 | return 0; |
| 7401 | } |
| 7402 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7403 | if ac_fn_c_try_link "$LINENO"; then : |
| 7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7405 | $as_echo "yes" >&6; } |
| 7406 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7407 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7409 | $as_echo "neither works" >&6; } |
| 7410 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7411 | rm -f core conftest.err conftest.$ac_objext \ |
| 7412 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7413 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7414 | rm -f core conftest.err conftest.$ac_objext \ |
| 7415 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7416 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 7417 | LIBS=$ac_xsave_LIBS |
| 7418 | fi |
| 7419 | |
| 7420 | # Check for system-dependent libraries X programs must link with. |
| 7421 | # Do this before checking for the system-independent R6 libraries |
| 7422 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 7423 | |
| 7424 | if test "$ISC" = yes; then |
| 7425 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 7426 | else |
| 7427 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 7428 | # libraries were built with DECnet support. And Karl Berry says |
| 7429 | # the Alpha needs dnet_stub (dnet does not exist). |
| 7430 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7432 | /* end confdefs.h. */ |
| 7433 | |
| 7434 | /* Override any GCC internal prototype to avoid an error. |
| 7435 | Use char because int might match the return type of a GCC |
| 7436 | builtin and then its argument prototype would still apply. */ |
| 7437 | #ifdef __cplusplus |
| 7438 | extern "C" |
| 7439 | #endif |
| 7440 | char XOpenDisplay (); |
| 7441 | int |
| 7442 | main () |
| 7443 | { |
| 7444 | return XOpenDisplay (); |
| 7445 | ; |
| 7446 | return 0; |
| 7447 | } |
| 7448 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7449 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7450 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7451 | else |
| 7452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7453 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7454 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7455 | $as_echo_n "(cached) " >&6 |
| 7456 | else |
| 7457 | ac_check_lib_save_LIBS=$LIBS |
| 7458 | LIBS="-ldnet $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7460 | /* end confdefs.h. */ |
| 7461 | |
| 7462 | /* Override any GCC internal prototype to avoid an error. |
| 7463 | Use char because int might match the return type of a GCC |
| 7464 | builtin and then its argument prototype would still apply. */ |
| 7465 | #ifdef __cplusplus |
| 7466 | extern "C" |
| 7467 | #endif |
| 7468 | char dnet_ntoa (); |
| 7469 | int |
| 7470 | main () |
| 7471 | { |
| 7472 | return dnet_ntoa (); |
| 7473 | ; |
| 7474 | return 0; |
| 7475 | } |
| 7476 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7477 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7478 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 7479 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7480 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7481 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7482 | rm -f core conftest.err conftest.$ac_objext \ |
| 7483 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7484 | LIBS=$ac_check_lib_save_LIBS |
| 7485 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7487 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7488 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7489 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 7490 | fi |
| 7491 | |
| 7492 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7494 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7495 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7496 | $as_echo_n "(cached) " >&6 |
| 7497 | else |
| 7498 | ac_check_lib_save_LIBS=$LIBS |
| 7499 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7501 | /* end confdefs.h. */ |
| 7502 | |
| 7503 | /* Override any GCC internal prototype to avoid an error. |
| 7504 | Use char because int might match the return type of a GCC |
| 7505 | builtin and then its argument prototype would still apply. */ |
| 7506 | #ifdef __cplusplus |
| 7507 | extern "C" |
| 7508 | #endif |
| 7509 | char dnet_ntoa (); |
| 7510 | int |
| 7511 | main () |
| 7512 | { |
| 7513 | return dnet_ntoa (); |
| 7514 | ; |
| 7515 | return 0; |
| 7516 | } |
| 7517 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7518 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7519 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 7520 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7521 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7522 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7523 | rm -f core conftest.err conftest.$ac_objext \ |
| 7524 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7525 | LIBS=$ac_check_lib_save_LIBS |
| 7526 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7528 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7529 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7530 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 7531 | fi |
| 7532 | |
| 7533 | fi |
| 7534 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7535 | rm -f core conftest.err conftest.$ac_objext \ |
| 7536 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7537 | LIBS="$ac_xsave_LIBS" |
| 7538 | |
| 7539 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 7540 | # to get the SysV transport functions. |
| 7541 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 7542 | # needs -lnsl. |
| 7543 | # The nsl library prevents programs from opening the X display |
| 7544 | # on Irix 5.2, according to T.E. Dickey. |
| 7545 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 7546 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7547 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7548 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7549 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7550 | fi |
| 7551 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7552 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7554 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7555 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7556 | $as_echo_n "(cached) " >&6 |
| 7557 | else |
| 7558 | ac_check_lib_save_LIBS=$LIBS |
| 7559 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7561 | /* end confdefs.h. */ |
| 7562 | |
| 7563 | /* Override any GCC internal prototype to avoid an error. |
| 7564 | Use char because int might match the return type of a GCC |
| 7565 | builtin and then its argument prototype would still apply. */ |
| 7566 | #ifdef __cplusplus |
| 7567 | extern "C" |
| 7568 | #endif |
| 7569 | char gethostbyname (); |
| 7570 | int |
| 7571 | main () |
| 7572 | { |
| 7573 | return gethostbyname (); |
| 7574 | ; |
| 7575 | return 0; |
| 7576 | } |
| 7577 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7578 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7579 | ac_cv_lib_nsl_gethostbyname=yes |
| 7580 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7581 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7582 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7583 | rm -f core conftest.err conftest.$ac_objext \ |
| 7584 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7585 | LIBS=$ac_check_lib_save_LIBS |
| 7586 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7588 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7589 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7590 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 7591 | fi |
| 7592 | |
| 7593 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7595 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7596 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7597 | $as_echo_n "(cached) " >&6 |
| 7598 | else |
| 7599 | ac_check_lib_save_LIBS=$LIBS |
| 7600 | LIBS="-lbsd $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7602 | /* end confdefs.h. */ |
| 7603 | |
| 7604 | /* Override any GCC internal prototype to avoid an error. |
| 7605 | Use char because int might match the return type of a GCC |
| 7606 | builtin and then its argument prototype would still apply. */ |
| 7607 | #ifdef __cplusplus |
| 7608 | extern "C" |
| 7609 | #endif |
| 7610 | char gethostbyname (); |
| 7611 | int |
| 7612 | main () |
| 7613 | { |
| 7614 | return gethostbyname (); |
| 7615 | ; |
| 7616 | return 0; |
| 7617 | } |
| 7618 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7619 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7620 | ac_cv_lib_bsd_gethostbyname=yes |
| 7621 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7622 | ac_cv_lib_bsd_gethostbyname=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7623 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7624 | rm -f core conftest.err conftest.$ac_objext \ |
| 7625 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7626 | LIBS=$ac_check_lib_save_LIBS |
| 7627 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7629 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7630 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7631 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7632 | fi |
| 7633 | |
| 7634 | fi |
| 7635 | fi |
| 7636 | |
| 7637 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7638 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7639 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 7640 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7641 | # variants that don't use the name server (or something). -lsocket |
| 7642 | # must be given before -lnsl if both are needed. We assume that |
| 7643 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7644 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7645 | if test "x$ac_cv_func_connect" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7646 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7647 | fi |
| 7648 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7649 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7651 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7652 | if ${ac_cv_lib_socket_connect+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7653 | $as_echo_n "(cached) " >&6 |
| 7654 | else |
| 7655 | ac_check_lib_save_LIBS=$LIBS |
| 7656 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7658 | /* end confdefs.h. */ |
| 7659 | |
| 7660 | /* Override any GCC internal prototype to avoid an error. |
| 7661 | Use char because int might match the return type of a GCC |
| 7662 | builtin and then its argument prototype would still apply. */ |
| 7663 | #ifdef __cplusplus |
| 7664 | extern "C" |
| 7665 | #endif |
| 7666 | char connect (); |
| 7667 | int |
| 7668 | main () |
| 7669 | { |
| 7670 | return connect (); |
| 7671 | ; |
| 7672 | return 0; |
| 7673 | } |
| 7674 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7675 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7676 | ac_cv_lib_socket_connect=yes |
| 7677 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7678 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7679 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7680 | rm -f core conftest.err conftest.$ac_objext \ |
| 7681 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7682 | LIBS=$ac_check_lib_save_LIBS |
| 7683 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7685 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7686 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7687 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 7688 | fi |
| 7689 | |
| 7690 | fi |
| 7691 | |
| 7692 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7693 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7694 | if test "x$ac_cv_func_remove" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7695 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7696 | fi |
| 7697 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7698 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7700 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7701 | if ${ac_cv_lib_posix_remove+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7702 | $as_echo_n "(cached) " >&6 |
| 7703 | else |
| 7704 | ac_check_lib_save_LIBS=$LIBS |
| 7705 | LIBS="-lposix $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7707 | /* end confdefs.h. */ |
| 7708 | |
| 7709 | /* Override any GCC internal prototype to avoid an error. |
| 7710 | Use char because int might match the return type of a GCC |
| 7711 | builtin and then its argument prototype would still apply. */ |
| 7712 | #ifdef __cplusplus |
| 7713 | extern "C" |
| 7714 | #endif |
| 7715 | char remove (); |
| 7716 | int |
| 7717 | main () |
| 7718 | { |
| 7719 | return remove (); |
| 7720 | ; |
| 7721 | return 0; |
| 7722 | } |
| 7723 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7724 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7725 | ac_cv_lib_posix_remove=yes |
| 7726 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7727 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7728 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7729 | rm -f core conftest.err conftest.$ac_objext \ |
| 7730 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7731 | LIBS=$ac_check_lib_save_LIBS |
| 7732 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7734 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7735 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7736 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 7737 | fi |
| 7738 | |
| 7739 | fi |
| 7740 | |
| 7741 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7742 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7743 | if test "x$ac_cv_func_shmat" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7744 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7745 | fi |
| 7746 | |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7747 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7749 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7750 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7751 | $as_echo_n "(cached) " >&6 |
| 7752 | else |
| 7753 | ac_check_lib_save_LIBS=$LIBS |
| 7754 | LIBS="-lipc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7756 | /* end confdefs.h. */ |
| 7757 | |
| 7758 | /* Override any GCC internal prototype to avoid an error. |
| 7759 | Use char because int might match the return type of a GCC |
| 7760 | builtin and then its argument prototype would still apply. */ |
| 7761 | #ifdef __cplusplus |
| 7762 | extern "C" |
| 7763 | #endif |
| 7764 | char shmat (); |
| 7765 | int |
| 7766 | main () |
| 7767 | { |
| 7768 | return shmat (); |
| 7769 | ; |
| 7770 | return 0; |
| 7771 | } |
| 7772 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7773 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7774 | ac_cv_lib_ipc_shmat=yes |
| 7775 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7776 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7777 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7778 | rm -f core conftest.err conftest.$ac_objext \ |
| 7779 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7780 | LIBS=$ac_check_lib_save_LIBS |
| 7781 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7783 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7784 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7785 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 7786 | fi |
| 7787 | |
| 7788 | fi |
| 7789 | fi |
| 7790 | |
| 7791 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 7792 | ac_save_LDFLAGS=$LDFLAGS |
| 7793 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7794 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7795 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7796 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7797 | # These have to be linked with before -lX11, unlike the other |
| 7798 | # libraries we check for below, so use a different variable. |
| 7799 | # John Interrante, Karl Berry |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7801 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7802 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7803 | $as_echo_n "(cached) " >&6 |
| 7804 | else |
| 7805 | ac_check_lib_save_LIBS=$LIBS |
| 7806 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7808 | /* end confdefs.h. */ |
| 7809 | |
| 7810 | /* Override any GCC internal prototype to avoid an error. |
| 7811 | Use char because int might match the return type of a GCC |
| 7812 | builtin and then its argument prototype would still apply. */ |
| 7813 | #ifdef __cplusplus |
| 7814 | extern "C" |
| 7815 | #endif |
| 7816 | char IceConnectionNumber (); |
| 7817 | int |
| 7818 | main () |
| 7819 | { |
| 7820 | return IceConnectionNumber (); |
| 7821 | ; |
| 7822 | return 0; |
| 7823 | } |
| 7824 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7825 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7826 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 7827 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7828 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7829 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7830 | rm -f core conftest.err conftest.$ac_objext \ |
| 7831 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7832 | LIBS=$ac_check_lib_save_LIBS |
| 7833 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7835 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7836 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
Alexandre Julliard | 40664c0 | 2009-02-11 20:40:58 +0100 | [diff] [blame] | 7837 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 7838 | fi |
| 7839 | |
| 7840 | LDFLAGS=$ac_save_LDFLAGS |
| 7841 | |
| 7842 | fi |
| 7843 | |
| 7844 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7845 | if test "$have_x" = "yes" |
| 7846 | then |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7847 | XLIB="-lX11" |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7848 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7849 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 7850 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7852 | $as_echo_n "checking for -lX11... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7853 | if ${ac_cv_lib_soname_X11+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7854 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7855 | else |
| 7856 | ac_check_soname_save_LIBS=$LIBS |
| 7857 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7859 | /* end confdefs.h. */ |
| 7860 | |
| 7861 | /* Override any GCC internal prototype to avoid an error. |
| 7862 | Use char because int might match the return type of a GCC |
| 7863 | builtin and then its argument prototype would still apply. */ |
| 7864 | #ifdef __cplusplus |
| 7865 | extern "C" |
| 7866 | #endif |
| 7867 | char XCreateWindow (); |
| 7868 | int |
| 7869 | main () |
| 7870 | { |
| 7871 | return XCreateWindow (); |
| 7872 | ; |
| 7873 | return 0; |
| 7874 | } |
| 7875 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7876 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7877 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 7878 | dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7879 | dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep "libX11\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 7880 | *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 7881 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7882 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7883 | rm -f core conftest.err conftest.$ac_objext \ |
| 7884 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7885 | LIBS=$ac_check_soname_save_LIBS |
| 7886 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7887 | if test "x$ac_cv_lib_soname_X11" = "x"; then : |
| 7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7889 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7890 | |
| 7891 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7893 | $as_echo "$ac_cv_lib_soname_X11" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7894 | |
| 7895 | cat >>confdefs.h <<_ACEOF |
| 7896 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 7897 | _ACEOF |
| 7898 | |
| 7899 | |
| 7900 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7902 | $as_echo_n "checking for -lXext... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7903 | if ${ac_cv_lib_soname_Xext+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7904 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7905 | else |
| 7906 | ac_check_soname_save_LIBS=$LIBS |
| 7907 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7909 | /* end confdefs.h. */ |
| 7910 | |
| 7911 | /* Override any GCC internal prototype to avoid an error. |
| 7912 | Use char because int might match the return type of a GCC |
| 7913 | builtin and then its argument prototype would still apply. */ |
| 7914 | #ifdef __cplusplus |
| 7915 | extern "C" |
| 7916 | #endif |
| 7917 | char XextCreateExtension (); |
| 7918 | int |
| 7919 | main () |
| 7920 | { |
| 7921 | return XextCreateExtension (); |
| 7922 | ; |
| 7923 | return 0; |
| 7924 | } |
| 7925 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7926 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7927 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 7928 | dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7929 | dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep "libXext\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 7930 | *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 7931 | esac |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7932 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7933 | rm -f core conftest.err conftest.$ac_objext \ |
| 7934 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7935 | LIBS=$ac_check_soname_save_LIBS |
| 7936 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7937 | if test "x$ac_cv_lib_soname_Xext" = "x"; then : |
| 7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7939 | $as_echo "not found" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7940 | |
| 7941 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7943 | $as_echo "$ac_cv_lib_soname_Xext" >&6; } |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7944 | |
| 7945 | cat >>confdefs.h <<_ACEOF |
| 7946 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 7947 | _ACEOF |
| 7948 | |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7949 | XLIB="-lXext $XLIB" |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 7950 | fi |
| 7951 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7952 | for ac_header in X11/Xlib.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7953 | X11/XKBlib.h \ |
| 7954 | X11/Xutil.h \ |
Andrew Riedi | 23e2cb1 | 2007-03-22 12:06:19 -0700 | [diff] [blame] | 7955 | X11/Xcursor/Xcursor.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7956 | X11/extensions/shape.h \ |
| 7957 | X11/extensions/XInput.h \ |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 7958 | X11/extensions/XInput2.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7959 | X11/extensions/XShm.h \ |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 7960 | X11/extensions/Xcomposite.h \ |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 7961 | X11/extensions/Xinerama.h \ |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7962 | X11/extensions/Xrandr.h \ |
| 7963 | X11/extensions/Xrender.h \ |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 7964 | X11/extensions/xf86vmode.h \ |
| 7965 | X11/extensions/xf86vmproto.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7966 | do : |
| 7967 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7968 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 7969 | # include <X11/Xlib.h> |
| 7970 | #endif |
| 7971 | #ifdef HAVE_X11_XUTIL_H |
| 7972 | # include <X11/Xutil.h> |
| 7973 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7974 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 7975 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7976 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7977 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7978 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7979 | |
| 7980 | fi |
| 7981 | |
| 7982 | done |
| 7983 | |
| 7984 | |
| 7985 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 7986 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7988 | $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 7989 | if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 7990 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7991 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7992 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 7993 | LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 7994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7995 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7996 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 7997 | /* Override any GCC internal prototype to avoid an error. |
| 7998 | Use char because int might match the return type of a GCC |
| 7999 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8000 | #ifdef __cplusplus |
| 8001 | extern "C" |
| 8002 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8003 | char XkbQueryExtension (); |
| 8004 | int |
| 8005 | main () |
| 8006 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8007 | return XkbQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8008 | ; |
| 8009 | return 0; |
| 8010 | } |
| 8011 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8012 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8013 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8014 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8015 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8016 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8017 | rm -f core conftest.err conftest.$ac_objext \ |
| 8018 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8019 | LIBS=$ac_check_lib_save_LIBS |
| 8020 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8022 | $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8023 | if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then : |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8024 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8025 | $as_echo "#define HAVE_XKB 1" >>confdefs.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8026 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8027 | fi |
| 8028 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8029 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8030 | |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8031 | if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes" |
| 8032 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8034 | $as_echo_n "checking for -lXcursor... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8035 | if ${ac_cv_lib_soname_Xcursor+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8036 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8037 | else |
| 8038 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8039 | LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8041 | /* end confdefs.h. */ |
| 8042 | |
| 8043 | /* Override any GCC internal prototype to avoid an error. |
| 8044 | Use char because int might match the return type of a GCC |
| 8045 | builtin and then its argument prototype would still apply. */ |
| 8046 | #ifdef __cplusplus |
| 8047 | extern "C" |
| 8048 | #endif |
| 8049 | char XcursorImageLoadCursor (); |
| 8050 | int |
| 8051 | main () |
| 8052 | { |
| 8053 | return XcursorImageLoadCursor (); |
| 8054 | ; |
| 8055 | return 0; |
| 8056 | } |
| 8057 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8058 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8059 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8060 | dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8061 | dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep "libXcursor\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8062 | *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8063 | esac |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8064 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8065 | rm -f core conftest.err conftest.$ac_objext \ |
| 8066 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8067 | LIBS=$ac_check_soname_save_LIBS |
| 8068 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8069 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
| 8070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8071 | $as_echo "not found" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8072 | |
| 8073 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8075 | $as_echo "$ac_cv_lib_soname_Xcursor" >&6; } |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8076 | |
| 8077 | cat >>confdefs.h <<_ACEOF |
| 8078 | #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor" |
| 8079 | _ACEOF |
| 8080 | |
| 8081 | |
| 8082 | fi |
Alexandre Julliard | 19a988a | 2007-07-09 22:42:28 +0200 | [diff] [blame] | 8083 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8084 | if test "x$ac_cv_lib_soname_Xcursor" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8085 | case "x$with_xcursor" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8086 | x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8087 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8088 | *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8089 | This is an error since --with-xcursor was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8090 | esac |
| 8091 | fi |
| 8092 | |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8093 | if test "$ac_cv_header_X11_extensions_XInput_h" = "yes" |
| 8094 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8096 | $as_echo_n "checking for -lXi... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8097 | if ${ac_cv_lib_soname_Xi+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8098 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8099 | else |
| 8100 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8101 | LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8103 | /* end confdefs.h. */ |
| 8104 | |
| 8105 | /* Override any GCC internal prototype to avoid an error. |
| 8106 | Use char because int might match the return type of a GCC |
| 8107 | builtin and then its argument prototype would still apply. */ |
| 8108 | #ifdef __cplusplus |
| 8109 | extern "C" |
| 8110 | #endif |
| 8111 | char XOpenDevice (); |
| 8112 | int |
| 8113 | main () |
| 8114 | { |
| 8115 | return XOpenDevice (); |
| 8116 | ; |
| 8117 | return 0; |
| 8118 | } |
| 8119 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8120 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8121 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8122 | dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8123 | dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep "libXi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8124 | *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8125 | esac |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8126 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8127 | rm -f core conftest.err conftest.$ac_objext \ |
| 8128 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8129 | LIBS=$ac_check_soname_save_LIBS |
| 8130 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8131 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
| 8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8133 | $as_echo "not found" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8134 | |
| 8135 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8137 | $as_echo "$ac_cv_lib_soname_Xi" >&6; } |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8138 | |
| 8139 | cat >>confdefs.h <<_ACEOF |
| 8140 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 8141 | _ACEOF |
| 8142 | |
| 8143 | |
| 8144 | fi |
Alexandre Julliard | d68d433 | 2007-07-09 22:42:49 +0200 | [diff] [blame] | 8145 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8146 | if test "x$ac_cv_lib_soname_Xi" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8147 | case "x$with_xinput" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8148 | x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8149 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8150 | *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8151 | This is an error since --with-xinput was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8152 | esac |
| 8153 | fi |
| 8154 | |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 8155 | if test "x$ac_cv_lib_soname_Xi" != x |
| 8156 | then |
| 8157 | if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then : |
| 8158 | case "x$with_xinput2" in |
| 8159 | x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;; |
| 8160 | xno) ;; |
| 8161 | *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8162 | This is an error since --with-xinput2 was requested." "$LINENO" 5 ;; |
Alexandre Julliard | 77e05ce | 2011-04-13 18:51:50 +0200 | [diff] [blame] | 8163 | esac |
| 8164 | fi |
| 8165 | fi |
| 8166 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8167 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 8168 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8170 | $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8171 | if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8172 | $as_echo_n "(cached) " >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8173 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8174 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8175 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8177 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8178 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8179 | /* Override any GCC internal prototype to avoid an error. |
| 8180 | Use char because int might match the return type of a GCC |
| 8181 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8182 | #ifdef __cplusplus |
| 8183 | extern "C" |
| 8184 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8185 | char XShmQueryExtension (); |
| 8186 | int |
| 8187 | main () |
| 8188 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8189 | return XShmQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8190 | ; |
| 8191 | return 0; |
| 8192 | } |
| 8193 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8194 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8195 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8196 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8197 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8198 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8199 | rm -f core conftest.err conftest.$ac_objext \ |
| 8200 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8201 | LIBS=$ac_check_lib_save_LIBS |
| 8202 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8204 | $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8205 | if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then : |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8206 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8207 | $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8208 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8209 | fi |
| 8210 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8211 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8212 | if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8213 | case "x$with_xshm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8214 | x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8215 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8216 | *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8217 | This is an error since --with-xshm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8218 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8219 | fi |
| 8220 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8221 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 8222 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8224 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8225 | if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8226 | $as_echo_n "(cached) " >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8227 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8228 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8229 | LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8231 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8232 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8233 | /* Override any GCC internal prototype to avoid an error. |
| 8234 | Use char because int might match the return type of a GCC |
| 8235 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8236 | #ifdef __cplusplus |
| 8237 | extern "C" |
| 8238 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8239 | char XShapeQueryExtension (); |
| 8240 | int |
| 8241 | main () |
| 8242 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8243 | return XShapeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8244 | ; |
| 8245 | return 0; |
| 8246 | } |
| 8247 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8248 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8249 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8250 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8251 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8252 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8253 | rm -f core conftest.err conftest.$ac_objext \ |
| 8254 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8255 | LIBS=$ac_check_lib_save_LIBS |
| 8256 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8258 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8259 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8260 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8261 | $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8262 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8263 | fi |
| 8264 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8265 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8266 | if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8267 | case "x$with_xshape" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8268 | x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8269 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8270 | *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8271 | This is an error since --with-xshape was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8272 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8273 | fi |
| 8274 | |
André Hentschel | 7b285a4 | 2009-09-19 19:08:09 +0200 | [diff] [blame] | 8275 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes" |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8276 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8278 | $as_echo_n "checking for -lXxf86vm... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8279 | if ${ac_cv_lib_soname_Xxf86vm+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8280 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8281 | else |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8282 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8283 | LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8285 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8286 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8287 | /* Override any GCC internal prototype to avoid an error. |
| 8288 | Use char because int might match the return type of a GCC |
| 8289 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8290 | #ifdef __cplusplus |
| 8291 | extern "C" |
| 8292 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8293 | char XF86VidModeQueryExtension (); |
| 8294 | int |
| 8295 | main () |
| 8296 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8297 | return XF86VidModeQueryExtension (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8298 | ; |
| 8299 | return 0; |
| 8300 | } |
| 8301 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8302 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8303 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8304 | dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8305 | dylib) ac_cv_lib_soname_Xxf86vm=`otool -L conftest$ac_exeext | grep "libXxf86vm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXxf86vm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8306 | *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8307 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8308 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8309 | rm -f core conftest.err conftest.$ac_objext \ |
| 8310 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8311 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8312 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8313 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
| 8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8315 | $as_echo "not found" >&6; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8316 | |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8317 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8319 | $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; } |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8320 | |
| 8321 | cat >>confdefs.h <<_ACEOF |
| 8322 | #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8323 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8324 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8325 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8326 | fi |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8327 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8328 | if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then : |
Francois Gouget | a49beb4 | 2008-06-26 14:02:17 +0200 | [diff] [blame] | 8329 | case "x$with_xxf86vm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8330 | x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8331 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8332 | *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8333 | This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8334 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8335 | fi |
| 8336 | |
Alexandre Julliard | a851854 | 2007-07-09 22:43:45 +0200 | [diff] [blame] | 8337 | if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x" |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8338 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8340 | $as_echo_n "checking for -lXrender... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8341 | if ${ac_cv_lib_soname_Xrender+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8342 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8343 | else |
| 8344 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8345 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8347 | /* end confdefs.h. */ |
| 8348 | |
| 8349 | /* Override any GCC internal prototype to avoid an error. |
| 8350 | Use char because int might match the return type of a GCC |
| 8351 | builtin and then its argument prototype would still apply. */ |
| 8352 | #ifdef __cplusplus |
| 8353 | extern "C" |
| 8354 | #endif |
| 8355 | char XRenderQueryExtension (); |
| 8356 | int |
| 8357 | main () |
| 8358 | { |
| 8359 | return XRenderQueryExtension (); |
| 8360 | ; |
| 8361 | return 0; |
| 8362 | } |
| 8363 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8364 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8365 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8366 | dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8367 | dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep "libXrender\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8368 | *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8369 | esac |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8370 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8371 | rm -f core conftest.err conftest.$ac_objext \ |
| 8372 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8373 | LIBS=$ac_check_soname_save_LIBS |
| 8374 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8375 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
| 8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8377 | $as_echo "not found" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8378 | |
| 8379 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8381 | $as_echo "$ac_cv_lib_soname_Xrender" >&6; } |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8382 | |
| 8383 | cat >>confdefs.h <<_ACEOF |
| 8384 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 8385 | _ACEOF |
| 8386 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8388 | $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8389 | if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8390 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8391 | else |
| 8392 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8393 | LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8395 | /* end confdefs.h. */ |
| 8396 | |
| 8397 | /* Override any GCC internal prototype to avoid an error. |
| 8398 | Use char because int might match the return type of a GCC |
| 8399 | builtin and then its argument prototype would still apply. */ |
| 8400 | #ifdef __cplusplus |
| 8401 | extern "C" |
| 8402 | #endif |
| 8403 | char XRenderSetPictureTransform (); |
| 8404 | int |
| 8405 | main () |
| 8406 | { |
| 8407 | return XRenderSetPictureTransform (); |
| 8408 | ; |
| 8409 | return 0; |
| 8410 | } |
| 8411 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8412 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8413 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 8414 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8415 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8416 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8417 | rm -f core conftest.err conftest.$ac_objext \ |
| 8418 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8419 | LIBS=$ac_check_lib_save_LIBS |
| 8420 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8422 | $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8423 | if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then : |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8424 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8425 | $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8426 | |
| 8427 | fi |
| 8428 | |
| 8429 | fi |
| 8430 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8431 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8432 | if test "x$ac_cv_lib_soname_Xrender" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8433 | case "x$with_xrender" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8434 | x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8435 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8436 | *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8437 | This is an error since --with-xrender was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8438 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8439 | fi |
| 8440 | |
Alexandre Julliard | 629639e | 2007-07-04 12:47:57 +0200 | [diff] [blame] | 8441 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x" |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8442 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8444 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8445 | #include <X11/Xlib.h> |
| 8446 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8447 | int |
| 8448 | main () |
| 8449 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8450 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8451 | ; |
| 8452 | return 0; |
| 8453 | } |
| 8454 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8455 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8457 | $as_echo_n "checking for -lXrandr... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8458 | if ${ac_cv_lib_soname_Xrandr+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8459 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8460 | else |
| 8461 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8462 | LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8464 | /* end confdefs.h. */ |
| 8465 | |
| 8466 | /* Override any GCC internal prototype to avoid an error. |
| 8467 | Use char because int might match the return type of a GCC |
| 8468 | builtin and then its argument prototype would still apply. */ |
| 8469 | #ifdef __cplusplus |
| 8470 | extern "C" |
| 8471 | #endif |
| 8472 | char XRRQueryExtension (); |
| 8473 | int |
| 8474 | main () |
| 8475 | { |
| 8476 | return XRRQueryExtension (); |
| 8477 | ; |
| 8478 | return 0; |
| 8479 | } |
| 8480 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8481 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8482 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8483 | dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8484 | dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep "libXrandr\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8485 | *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8486 | esac |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8487 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8488 | rm -f core conftest.err conftest.$ac_objext \ |
| 8489 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8490 | LIBS=$ac_check_soname_save_LIBS |
| 8491 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8492 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
| 8493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8494 | $as_echo "not found" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8495 | |
| 8496 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8498 | $as_echo "$ac_cv_lib_soname_Xrandr" >&6; } |
Alexandre Julliard | af928ec | 2007-07-04 12:45:03 +0200 | [diff] [blame] | 8499 | |
| 8500 | cat >>confdefs.h <<_ACEOF |
| 8501 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 8502 | _ACEOF |
| 8503 | |
| 8504 | |
| 8505 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8506 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8508 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8509 | if test "x$ac_cv_lib_soname_Xrandr" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8510 | case "x$with_xrandr" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8511 | x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8512 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8513 | *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8514 | This is an error since --with-xrandr was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8515 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8516 | fi |
| 8517 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8518 | if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes" |
| 8519 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8521 | /* end confdefs.h. */ |
| 8522 | #include <X11/Xlib.h> |
| 8523 | #include <X11/extensions/Xinerama.h> |
| 8524 | int |
| 8525 | main () |
| 8526 | { |
| 8527 | static typeof(XineramaQueryScreens) * func; |
| 8528 | ; |
| 8529 | return 0; |
| 8530 | } |
| 8531 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8532 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8534 | $as_echo_n "checking for -lXinerama... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8535 | if ${ac_cv_lib_soname_Xinerama+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8536 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8537 | else |
| 8538 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8539 | LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8541 | /* end confdefs.h. */ |
| 8542 | |
| 8543 | /* Override any GCC internal prototype to avoid an error. |
| 8544 | Use char because int might match the return type of a GCC |
| 8545 | builtin and then its argument prototype would still apply. */ |
| 8546 | #ifdef __cplusplus |
| 8547 | extern "C" |
| 8548 | #endif |
| 8549 | char XineramaQueryScreens (); |
| 8550 | int |
| 8551 | main () |
| 8552 | { |
| 8553 | return XineramaQueryScreens (); |
| 8554 | ; |
| 8555 | return 0; |
| 8556 | } |
| 8557 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8558 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8559 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8560 | dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8561 | dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep "libXinerama\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8562 | *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8563 | esac |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8564 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8565 | rm -f core conftest.err conftest.$ac_objext \ |
| 8566 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8567 | LIBS=$ac_check_soname_save_LIBS |
| 8568 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8569 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
| 8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8571 | $as_echo "not found" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8572 | |
| 8573 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8575 | $as_echo "$ac_cv_lib_soname_Xinerama" >&6; } |
Alexandre Julliard | 35d2fd7 | 2007-07-04 12:48:50 +0200 | [diff] [blame] | 8576 | |
| 8577 | cat >>confdefs.h <<_ACEOF |
| 8578 | #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama" |
| 8579 | _ACEOF |
| 8580 | |
| 8581 | |
| 8582 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8583 | fi |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8585 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8586 | if test "x$ac_cv_lib_soname_Xinerama" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8587 | case "x$with_xinerama" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8588 | x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8589 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8590 | *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8591 | This is an error since --with-xinerama was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8592 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8593 | fi |
| 8594 | |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8595 | if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes" |
| 8596 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8598 | $as_echo_n "checking for -lXcomposite... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8599 | if ${ac_cv_lib_soname_Xcomposite+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8600 | $as_echo_n "(cached) " >&6 |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8601 | else |
| 8602 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8603 | LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8605 | /* end confdefs.h. */ |
| 8606 | |
| 8607 | /* Override any GCC internal prototype to avoid an error. |
| 8608 | Use char because int might match the return type of a GCC |
| 8609 | builtin and then its argument prototype would still apply. */ |
| 8610 | #ifdef __cplusplus |
| 8611 | extern "C" |
| 8612 | #endif |
| 8613 | char XCompositeRedirectWindow (); |
| 8614 | int |
| 8615 | main () |
| 8616 | { |
| 8617 | return XCompositeRedirectWindow (); |
| 8618 | ; |
| 8619 | return 0; |
| 8620 | } |
| 8621 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8622 | if ac_fn_c_try_link "$LINENO"; then : |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8623 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8624 | dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8625 | dylib) ac_cv_lib_soname_Xcomposite=`otool -L conftest$ac_exeext | grep "libXcomposite\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcomposite\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8626 | *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8627 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8628 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8629 | rm -f core conftest.err conftest.$ac_objext \ |
| 8630 | conftest$ac_exeext conftest.$ac_ext |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8631 | LIBS=$ac_check_soname_save_LIBS |
| 8632 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8633 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
| 8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8635 | $as_echo "not found" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8636 | |
| 8637 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8639 | $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; } |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8640 | |
| 8641 | cat >>confdefs.h <<_ACEOF |
| 8642 | #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite" |
| 8643 | _ACEOF |
| 8644 | |
| 8645 | |
| 8646 | fi |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8647 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8648 | if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8649 | case "x$with_xcomposite" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8650 | x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8651 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8652 | *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8653 | This is an error since --with-xcomposite was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8654 | esac |
Chris Robinson | 4258465 | 2007-09-22 18:19:08 -0700 | [diff] [blame] | 8655 | fi |
| 8656 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8657 | ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8658 | #include <X11/Xlib.h> |
| 8659 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8660 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8661 | if test "x$ac_cv_member_XICCallback_callback" = xyes; then : |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8662 | |
| 8663 | cat >>confdefs.h <<_ACEOF |
| 8664 | #define HAVE_XICCALLBACK_CALLBACK 1 |
| 8665 | _ACEOF |
| 8666 | |
| 8667 | |
| 8668 | fi |
Alexandre Julliard | a8575a8 | 2011-04-12 21:16:15 +0200 | [diff] [blame] | 8669 | ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H |
| 8670 | #include <X11/Xlib.h> |
| 8671 | #endif |
| 8672 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8673 | if test "x$ac_cv_member_XEvent_xcookie" = xyes; then : |
Alexandre Julliard | a8575a8 | 2011-04-12 21:16:15 +0200 | [diff] [blame] | 8674 | |
| 8675 | cat >>confdefs.h <<_ACEOF |
| 8676 | #define HAVE_XEVENT_XCOOKIE 1 |
| 8677 | _ACEOF |
| 8678 | |
| 8679 | |
| 8680 | fi |
Kusanagi Kouichi | 75e4022 | 2008-04-16 00:34:54 +0900 | [diff] [blame] | 8681 | |
| 8682 | |
Alexandre Julliard | 7d00b05 | 2006-10-23 13:46:34 +0200 | [diff] [blame] | 8683 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8684 | opengl_msg="" |
| 8685 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8686 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8687 | for ac_header in GL/gl.h GL/glx.h GL/glu.h |
| 8688 | do : |
| 8689 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8690 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8691 | # include <GL/glx.h> |
| 8692 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8693 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8694 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8695 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8696 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8697 | _ACEOF |
| 8698 | |
| 8699 | fi |
| 8700 | |
| 8701 | done |
| 8702 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 8703 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
| 8704 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8706 | $as_echo_n "checking for up-to-date OpenGL version... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8707 | if ${wine_cv_opengl_header_version_OK+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8708 | $as_echo_n "(cached) " >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8709 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8711 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8712 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8713 | int |
| 8714 | main () |
| 8715 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8716 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8721 | if ac_fn_c_try_compile "$LINENO"; then : |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8722 | wine_cv_opengl_header_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8723 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8724 | wine_cv_opengl_header_version_OK="no" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8725 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 8726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8727 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8729 | $as_echo "$wine_cv_opengl_header_version_OK" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8730 | |
Alexandre Julliard | cc6a08c | 2006-08-24 14:34:22 +0200 | [diff] [blame] | 8731 | if test "$wine_cv_opengl_header_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8732 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8734 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8735 | if ${ac_cv_lib_soname_GL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8736 | $as_echo_n "(cached) " >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8737 | else |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8738 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8739 | LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8741 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8742 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8743 | /* Override any GCC internal prototype to avoid an error. |
| 8744 | Use char because int might match the return type of a GCC |
| 8745 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8746 | #ifdef __cplusplus |
| 8747 | extern "C" |
| 8748 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8749 | char glXCreateContext (); |
| 8750 | int |
| 8751 | main () |
| 8752 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8753 | return glXCreateContext (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8754 | ; |
| 8755 | return 0; |
| 8756 | } |
| 8757 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8758 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8759 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8760 | dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8761 | dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8762 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8763 | esac |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8764 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8765 | rm -f core conftest.err conftest.$ac_objext \ |
| 8766 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8767 | LIBS=$ac_check_soname_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8768 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8769 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8771 | $as_echo "not found" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8773 | $as_echo_n "checking for -lGL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8774 | if ${ac_cv_lib_soname_GL+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8775 | $as_echo_n "(cached) " >&6 |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8776 | else |
| 8777 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8778 | LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8780 | /* end confdefs.h. */ |
| 8781 | |
| 8782 | /* Override any GCC internal prototype to avoid an error. |
| 8783 | Use char because int might match the return type of a GCC |
| 8784 | builtin and then its argument prototype would still apply. */ |
| 8785 | #ifdef __cplusplus |
| 8786 | extern "C" |
| 8787 | #endif |
| 8788 | char glXCreateContext (); |
| 8789 | int |
| 8790 | main () |
| 8791 | { |
| 8792 | return glXCreateContext (); |
| 8793 | ; |
| 8794 | return 0; |
| 8795 | } |
| 8796 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8797 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8798 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8799 | dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8800 | dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8801 | *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8802 | esac |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8803 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8804 | rm -f core conftest.err conftest.$ac_objext \ |
| 8805 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8806 | LIBS=$ac_check_soname_save_LIBS |
| 8807 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8808 | if test "x$ac_cv_lib_soname_GL" = "x"; then : |
| 8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8810 | $as_echo "not found" >&6; } |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8811 | if test -f /usr/X11R6/lib/libGL.a |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8812 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8813 | opengl_msg="/usr/X11R6/lib/libGL.a is present on your system. |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8814 | This probably prevents linking to OpenGL. Try deleting the file and restarting configure." |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8815 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8816 | opengl_msg="No OpenGL library found on this system." |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8817 | fi |
| 8818 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8820 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8821 | |
| 8822 | cat >>confdefs.h <<_ACEOF |
| 8823 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8824 | _ACEOF |
| 8825 | |
| 8826 | OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL" |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8827 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8828 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Francois Gouget | d701ee2 | 2007-12-18 10:17:20 +0100 | [diff] [blame] | 8829 | |
| 8830 | fi |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8831 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8833 | $as_echo "$ac_cv_lib_soname_GL" >&6; } |
Alexandre Julliard | 31353e1 | 2007-07-04 12:44:12 +0200 | [diff] [blame] | 8834 | |
| 8835 | cat >>confdefs.h <<_ACEOF |
| 8836 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 8837 | _ACEOF |
| 8838 | |
| 8839 | OPENGL_LIBS="-lGL" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8840 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8841 | $as_echo "#define HAVE_OPENGL 1" >>confdefs.h |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8842 | |
Alexandre Julliard | c84c478 | 2006-09-22 09:36:12 +0200 | [diff] [blame] | 8843 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8844 | if test "$ac_cv_header_GL_glu_h" = "yes" |
| 8845 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8847 | $as_echo_n "checking for -lGLU... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8848 | if ${ac_cv_lib_soname_GLU+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8849 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8850 | else |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8851 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8852 | LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8854 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8855 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8856 | /* Override any GCC internal prototype to avoid an error. |
| 8857 | Use char because int might match the return type of a GCC |
| 8858 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8859 | #ifdef __cplusplus |
| 8860 | extern "C" |
| 8861 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8862 | char gluLookAt (); |
| 8863 | int |
| 8864 | main () |
| 8865 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8866 | return gluLookAt (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8867 | ; |
| 8868 | return 0; |
| 8869 | } |
| 8870 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8871 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8872 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 8873 | dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8874 | dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 8875 | *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 8876 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8877 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8878 | rm -f core conftest.err conftest.$ac_objext \ |
| 8879 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8880 | LIBS=$ac_check_soname_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8881 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8882 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
| 8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8884 | $as_echo "not found" >&6; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8885 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8886 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8888 | $as_echo "$ac_cv_lib_soname_GLU" >&6; } |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8889 | |
| 8890 | cat >>confdefs.h <<_ACEOF |
| 8891 | #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU" |
| 8892 | _ACEOF |
| 8893 | |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 8894 | |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8895 | fi |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8896 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8897 | if test "x$ac_cv_lib_soname_GLU" = "x"; then : |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8898 | case "x$with_glu" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8899 | x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8900 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8901 | *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8902 | This is an error since --with-glu was requested." "$LINENO" 5 ;; |
Alexandre Julliard | ad79873 | 2008-05-01 13:29:02 +0200 | [diff] [blame] | 8903 | esac |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8904 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 8905 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8906 | opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8907 | fi |
Roderick Colenbrander | bc66d7e | 2006-08-24 01:11:27 +0200 | [diff] [blame] | 8908 | else |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8909 | opengl_msg="OpenGL development headers not found." |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8910 | fi |
Alexandre Julliard | 8e9504d | 2008-09-24 13:11:11 +0200 | [diff] [blame] | 8911 | test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no} |
| 8912 | test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no} |
| 8913 | else |
| 8914 | enable_opengl32=${enable_opengl32:-no} |
| 8915 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8916 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8917 | if test -n "$opengl_msg"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8918 | case "x$with_opengl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 8919 | x) as_fn_append wine_warnings "|$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8920 | OpenGL and Direct3D won't be supported." ;; |
| 8921 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 8922 | *) as_fn_error $? "$opengl_msg |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8923 | OpenGL and Direct3D won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8924 | This is an error since --with-opengl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 8925 | esac |
| 8926 | fi |
| 8927 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8928 | NASLIBS="" |
| 8929 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8930 | for ac_header in audio/audiolib.h |
| 8931 | do : |
| 8932 | ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8933 | if test "x$ac_cv_header_audio_audiolib_h" = xyes; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8934 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8935 | #define HAVE_AUDIO_AUDIOLIB_H 1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8936 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8937 | for ac_header in audio/soundlib.h |
| 8938 | do : |
| 8939 | ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h> |
| 8940 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8941 | if test "x$ac_cv_header_audio_soundlib_h" = xyes; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8942 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8943 | #define HAVE_AUDIO_SOUNDLIB_H 1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8944 | _ACEOF |
| 8945 | |
| 8946 | fi |
| 8947 | |
| 8948 | done |
| 8949 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8951 | $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8952 | if ${ac_cv_lib_audio_AuCreateFlow+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8953 | $as_echo_n "(cached) " >&6 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8954 | else |
| 8955 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 8956 | LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8958 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8959 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8960 | /* Override any GCC internal prototype to avoid an error. |
| 8961 | Use char because int might match the return type of a GCC |
| 8962 | builtin and then its argument prototype would still apply. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8963 | #ifdef __cplusplus |
| 8964 | extern "C" |
| 8965 | #endif |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8966 | char AuCreateFlow (); |
| 8967 | int |
| 8968 | main () |
| 8969 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 8970 | return AuCreateFlow (); |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8971 | ; |
| 8972 | return 0; |
| 8973 | } |
| 8974 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8975 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8976 | ac_cv_lib_audio_AuCreateFlow=yes |
| 8977 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8978 | ac_cv_lib_audio_AuCreateFlow=no |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8979 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8980 | rm -f core conftest.err conftest.$ac_objext \ |
| 8981 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8982 | LIBS=$ac_check_lib_save_LIBS |
| 8983 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8985 | $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8986 | if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes; then : |
Alexandre Julliard | 4c71946 | 2011-03-28 22:13:38 +0200 | [diff] [blame] | 8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8988 | $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 8989 | if ${ac_cv_lib_Xau_XauGetBestAuthByAddr+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 8990 | $as_echo_n "(cached) " >&6 |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 8991 | else |
| 8992 | ac_check_lib_save_LIBS=$LIBS |
| 8993 | LIBS="-lXau $X_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 8994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 8995 | /* end confdefs.h. */ |
| 8996 | |
| 8997 | /* Override any GCC internal prototype to avoid an error. |
| 8998 | Use char because int might match the return type of a GCC |
| 8999 | builtin and then its argument prototype would still apply. */ |
| 9000 | #ifdef __cplusplus |
| 9001 | extern "C" |
| 9002 | #endif |
| 9003 | char XauGetBestAuthByAddr (); |
| 9004 | int |
| 9005 | main () |
| 9006 | { |
| 9007 | return XauGetBestAuthByAddr (); |
| 9008 | ; |
| 9009 | return 0; |
| 9010 | } |
| 9011 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9012 | if ac_fn_c_try_link "$LINENO"; then : |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9013 | ac_cv_lib_Xau_XauGetBestAuthByAddr=yes |
| 9014 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9015 | ac_cv_lib_Xau_XauGetBestAuthByAddr=no |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9016 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9017 | rm -f core conftest.err conftest.$ac_objext \ |
| 9018 | conftest$ac_exeext conftest.$ac_ext |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9019 | LIBS=$ac_check_lib_save_LIBS |
| 9020 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9022 | $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9023 | if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = xyes; then : |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 9024 | NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS" |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9025 | else |
Alexandre Julliard | fd03c50 | 2009-08-17 15:11:08 +0200 | [diff] [blame] | 9026 | NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS" |
Gerald Pfeifer | 575d894 | 2007-03-25 00:44:50 +0100 | [diff] [blame] | 9027 | fi |
| 9028 | |
| 9029 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9030 | fi |
| 9031 | |
| 9032 | fi |
| 9033 | |
| 9034 | done |
| 9035 | |
| 9036 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9037 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9038 | else |
| 9039 | XLIB="" |
| 9040 | X_CFLAGS="" |
| 9041 | X_LIBS="" |
Alexandre Julliard | dbb535e | 2008-08-25 12:12:28 +0200 | [diff] [blame] | 9042 | enable_winex11_drv=${enable_winex11_drv:-no} |
| 9043 | enable_opengl32=${enable_opengl32:-no} |
| 9044 | enable_glu32=${enable_glu32:-no} |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9045 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9046 | if test "x$XLIB" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9047 | case "x$with_x" in |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9048 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9049 | *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built |
Gerald Pfeifer | 5805d8b | 2010-09-19 21:10:13 +0200 | [diff] [blame] | 9050 | without X support, which probably isn't what you want. You will need |
| 9051 | to install ${notice_platform}development packages of Xlib/Xfree86 at the very least. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9052 | Use the --without-x option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9053 | esac |
| 9054 | fi |
| 9055 | |
Adam Martinson | 2eb2f71 | 2010-12-28 12:46:09 -0600 | [diff] [blame] | 9056 | if test "$ac_cv_header_CL_cl_h" = "yes" |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9057 | then |
| 9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5 |
| 9059 | $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9060 | if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then : |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9061 | $as_echo_n "(cached) " >&6 |
| 9062 | else |
| 9063 | ac_check_lib_save_LIBS=$LIBS |
| 9064 | LIBS="-lOpenCL $LIBS" |
| 9065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9066 | /* end confdefs.h. */ |
| 9067 | |
| 9068 | /* Override any GCC internal prototype to avoid an error. |
| 9069 | Use char because int might match the return type of a GCC |
| 9070 | builtin and then its argument prototype would still apply. */ |
| 9071 | #ifdef __cplusplus |
| 9072 | extern "C" |
| 9073 | #endif |
| 9074 | char clGetPlatformInfo (); |
| 9075 | int |
| 9076 | main () |
| 9077 | { |
| 9078 | return clGetPlatformInfo (); |
| 9079 | ; |
| 9080 | return 0; |
| 9081 | } |
| 9082 | _ACEOF |
| 9083 | if ac_fn_c_try_link "$LINENO"; then : |
| 9084 | ac_cv_lib_OpenCL_clGetPlatformInfo=yes |
| 9085 | else |
| 9086 | ac_cv_lib_OpenCL_clGetPlatformInfo=no |
| 9087 | fi |
| 9088 | rm -f core conftest.err conftest.$ac_objext \ |
| 9089 | conftest$ac_exeext conftest.$ac_ext |
| 9090 | LIBS=$ac_check_lib_save_LIBS |
| 9091 | fi |
| 9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5 |
| 9093 | $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9094 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then : |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9095 | LIBOPENCL="-lOpenCL" |
| 9096 | |
| 9097 | fi |
| 9098 | |
| 9099 | fi |
| 9100 | if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then : |
| 9101 | case "x$with_opencl" in |
| 9102 | x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;; |
| 9103 | xno) ;; |
| 9104 | *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9105 | This is an error since --with-opencl was requested." "$LINENO" 5 ;; |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 9106 | esac |
| 9107 | fi |
| 9108 | test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no} |
| 9109 | |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 9110 | |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9111 | XML2LIBS="" |
| 9112 | |
| 9113 | XML2INCL="" |
| 9114 | |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9115 | XSLTINCL="" |
| 9116 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9117 | if test "x$with_xml" != "xno" |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9118 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9119 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9120 | if test "$PKG_CONFIG" != "false" |
| 9121 | then |
| 9122 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
| 9123 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" |
| 9124 | else |
| 9125 | ac_xml_libs="`xml2-config --libs 2>/dev/null`" |
| 9126 | ac_xml_cflags="`xml2-config --cflags 2>/dev/null`" |
| 9127 | fi |
| 9128 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9129 | for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9130 | do : |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9131 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9132 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9133 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9134 | cat >>confdefs.h <<_ACEOF |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9135 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9136 | _ACEOF |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9137 | |
| 9138 | fi |
| 9139 | |
| 9140 | done |
| 9141 | |
| 9142 | if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes" |
| 9143 | then |
| 9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9145 | $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9146 | if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9147 | $as_echo_n "(cached) " >&6 |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9148 | else |
| 9149 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9150 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9152 | /* end confdefs.h. */ |
| 9153 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9154 | /* Override any GCC internal prototype to avoid an error. |
| 9155 | Use char because int might match the return type of a GCC |
| 9156 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9157 | #ifdef __cplusplus |
| 9158 | extern "C" |
| 9159 | #endif |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9160 | char xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9161 | int |
| 9162 | main () |
| 9163 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9164 | return xmlParseMemory (); |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9165 | ; |
| 9166 | return 0; |
| 9167 | } |
| 9168 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9169 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 90c75bd | 2005-08-08 18:36:53 +0000 | [diff] [blame] | 9170 | ac_cv_lib_xml2_xmlParseMemory=yes |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9171 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9172 | ac_cv_lib_xml2_xmlParseMemory=no |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9173 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9174 | rm -f core conftest.err conftest.$ac_objext \ |
| 9175 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9176 | LIBS=$ac_check_lib_save_LIBS |
| 9177 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9179 | $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9180 | if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then : |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9181 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9182 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9183 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9184 | XML2LIBS="$ac_xml_libs" |
| 9185 | XML2INCL="$ac_xml_cflags" |
Mike McCormack | dcc2d6c | 2005-08-02 11:29:04 +0000 | [diff] [blame] | 9186 | fi |
| 9187 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9189 | $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9190 | if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9191 | $as_echo_n "(cached) " >&6 |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9192 | else |
| 9193 | ac_check_lib_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9194 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9196 | /* end confdefs.h. */ |
| 9197 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9198 | /* Override any GCC internal prototype to avoid an error. |
| 9199 | Use char because int might match the return type of a GCC |
| 9200 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9201 | #ifdef __cplusplus |
| 9202 | extern "C" |
| 9203 | #endif |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9204 | char xmlReadMemory (); |
| 9205 | int |
| 9206 | main () |
| 9207 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9208 | return xmlReadMemory (); |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9209 | ; |
| 9210 | return 0; |
| 9211 | } |
| 9212 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9213 | if ac_fn_c_try_link "$LINENO"; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9214 | ac_cv_lib_xml2_xmlReadMemory=yes |
| 9215 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9216 | ac_cv_lib_xml2_xmlReadMemory=no |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9217 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9218 | rm -f core conftest.err conftest.$ac_objext \ |
| 9219 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9220 | LIBS=$ac_check_lib_save_LIBS |
| 9221 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9223 | $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9224 | if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then : |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9225 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9226 | $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h |
Mike McCormack | 70adb8f | 2005-08-12 10:35:17 +0000 | [diff] [blame] | 9227 | |
| 9228 | fi |
| 9229 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9231 | $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9232 | if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9233 | $as_echo_n "(cached) " >&6 |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9234 | else |
| 9235 | ac_check_lib_save_LIBS=$LIBS |
| 9236 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9238 | /* end confdefs.h. */ |
| 9239 | |
| 9240 | /* Override any GCC internal prototype to avoid an error. |
| 9241 | Use char because int might match the return type of a GCC |
| 9242 | builtin and then its argument prototype would still apply. */ |
| 9243 | #ifdef __cplusplus |
| 9244 | extern "C" |
| 9245 | #endif |
| 9246 | char xmlNewDocPI (); |
| 9247 | int |
| 9248 | main () |
| 9249 | { |
| 9250 | return xmlNewDocPI (); |
| 9251 | ; |
| 9252 | return 0; |
| 9253 | } |
| 9254 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9255 | if ac_fn_c_try_link "$LINENO"; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9256 | ac_cv_lib_xml2_xmlNewDocPI=yes |
| 9257 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9258 | ac_cv_lib_xml2_xmlNewDocPI=no |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9259 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9260 | rm -f core conftest.err conftest.$ac_objext \ |
| 9261 | conftest$ac_exeext conftest.$ac_ext |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9262 | LIBS=$ac_check_lib_save_LIBS |
| 9263 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9265 | $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9266 | if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then : |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9267 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9268 | $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h |
Lei Zhang | 6a530ab | 2006-11-29 15:59:03 -0800 | [diff] [blame] | 9269 | |
| 9270 | fi |
| 9271 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5 |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9273 | $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9274 | if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then : |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9275 | $as_echo_n "(cached) " >&6 |
| 9276 | else |
| 9277 | ac_check_lib_save_LIBS=$LIBS |
| 9278 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9280 | /* end confdefs.h. */ |
| 9281 | |
| 9282 | /* Override any GCC internal prototype to avoid an error. |
| 9283 | Use char because int might match the return type of a GCC |
| 9284 | builtin and then its argument prototype would still apply. */ |
| 9285 | #ifdef __cplusplus |
| 9286 | extern "C" |
| 9287 | #endif |
| 9288 | char xmlSchemaSetParserStructuredErrors (); |
| 9289 | int |
| 9290 | main () |
| 9291 | { |
| 9292 | return xmlSchemaSetParserStructuredErrors (); |
| 9293 | ; |
| 9294 | return 0; |
| 9295 | } |
| 9296 | _ACEOF |
| 9297 | if ac_fn_c_try_link "$LINENO"; then : |
| 9298 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes |
| 9299 | else |
| 9300 | ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no |
| 9301 | fi |
| 9302 | rm -f core conftest.err conftest.$ac_objext \ |
| 9303 | conftest$ac_exeext conftest.$ac_ext |
| 9304 | LIBS=$ac_check_lib_save_LIBS |
| 9305 | fi |
| 9306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5 |
| 9307 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9308 | if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then : |
Adam Martinson | 6ee2231 | 2010-11-22 20:54:54 -0600 | [diff] [blame] | 9309 | |
| 9310 | $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h |
| 9311 | |
| 9312 | fi |
| 9313 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5 |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9315 | $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9316 | if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then : |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9317 | $as_echo_n "(cached) " >&6 |
| 9318 | else |
| 9319 | ac_check_lib_save_LIBS=$LIBS |
| 9320 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9322 | /* end confdefs.h. */ |
| 9323 | |
| 9324 | /* Override any GCC internal prototype to avoid an error. |
| 9325 | Use char because int might match the return type of a GCC |
| 9326 | builtin and then its argument prototype would still apply. */ |
| 9327 | #ifdef __cplusplus |
| 9328 | extern "C" |
| 9329 | #endif |
| 9330 | char xmlSchemaSetValidStructuredErrors (); |
| 9331 | int |
| 9332 | main () |
| 9333 | { |
| 9334 | return xmlSchemaSetValidStructuredErrors (); |
| 9335 | ; |
| 9336 | return 0; |
| 9337 | } |
| 9338 | _ACEOF |
| 9339 | if ac_fn_c_try_link "$LINENO"; then : |
| 9340 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes |
| 9341 | else |
| 9342 | ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no |
| 9343 | fi |
| 9344 | rm -f core conftest.err conftest.$ac_objext \ |
| 9345 | conftest$ac_exeext conftest.$ac_ext |
| 9346 | LIBS=$ac_check_lib_save_LIBS |
| 9347 | fi |
| 9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5 |
| 9349 | $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9350 | if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then : |
Adam Martinson | be4d0e9 | 2010-11-01 14:11:16 -0500 | [diff] [blame] | 9351 | |
| 9352 | $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h |
| 9353 | |
| 9354 | fi |
| 9355 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5 |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9357 | $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9358 | if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then : |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9359 | $as_echo_n "(cached) " >&6 |
| 9360 | else |
| 9361 | ac_check_lib_save_LIBS=$LIBS |
| 9362 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
| 9363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9364 | /* end confdefs.h. */ |
| 9365 | |
| 9366 | /* Override any GCC internal prototype to avoid an error. |
| 9367 | Use char because int might match the return type of a GCC |
| 9368 | builtin and then its argument prototype would still apply. */ |
| 9369 | #ifdef __cplusplus |
| 9370 | extern "C" |
| 9371 | #endif |
| 9372 | char xmlFirstElementChild (); |
| 9373 | int |
| 9374 | main () |
| 9375 | { |
| 9376 | return xmlFirstElementChild (); |
| 9377 | ; |
| 9378 | return 0; |
| 9379 | } |
| 9380 | _ACEOF |
| 9381 | if ac_fn_c_try_link "$LINENO"; then : |
| 9382 | ac_cv_lib_xml2_xmlFirstElementChild=yes |
| 9383 | else |
| 9384 | ac_cv_lib_xml2_xmlFirstElementChild=no |
| 9385 | fi |
| 9386 | rm -f core conftest.err conftest.$ac_objext \ |
| 9387 | conftest$ac_exeext conftest.$ac_ext |
| 9388 | LIBS=$ac_check_lib_save_LIBS |
| 9389 | fi |
| 9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5 |
| 9391 | $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9392 | if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then : |
Adam Martinson | 82f73c8 | 2010-11-11 15:16:24 -0600 | [diff] [blame] | 9393 | |
| 9394 | $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h |
| 9395 | |
| 9396 | fi |
| 9397 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9398 | ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h> |
Adam Martinson | 9408b49 | 2010-11-02 17:20:08 -0500 | [diff] [blame] | 9399 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9400 | if test "x$ac_cv_type_xmlDocProperties" = xyes; then : |
Adam Martinson | 9408b49 | 2010-11-02 17:20:08 -0500 | [diff] [blame] | 9401 | |
| 9402 | $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h |
| 9403 | |
| 9404 | fi |
| 9405 | |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9406 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9407 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9408 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9409 | if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9410 | case "x$with_xml" in |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9411 | x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9412 | xno) ;; |
Andrew Nguyen | 6097f2f | 2011-02-21 05:01:50 -0600 | [diff] [blame] | 9413 | *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9414 | This is an error since --with-xml was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9415 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9416 | fi |
| 9417 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9418 | if test "x$with_xslt" != "xno" |
Emmanuel Maillard | 2a98b40 | 2007-06-22 02:58:39 +0200 | [diff] [blame] | 9419 | then |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9420 | if test "$PKG_CONFIG" != "false" |
| 9421 | then |
| 9422 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
| 9423 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" |
| 9424 | else |
| 9425 | ac_xslt_libs="`xslt-config --libs 2>/dev/null`" |
| 9426 | ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`" |
| 9427 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9428 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9429 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9430 | for ac_header in libxslt/pattern.h libxslt/transform.h |
| 9431 | do : |
| 9432 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9433 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H |
Vincent Béron | d7f6424 | 2005-09-15 09:39:09 +0000 | [diff] [blame] | 9434 | # include <libxslt/pattern.h> |
| 9435 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9436 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9437 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9438 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9439 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9440 | _ACEOF |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9441 | |
| 9442 | fi |
| 9443 | |
| 9444 | done |
| 9445 | |
| 9446 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9447 | if test "$ac_cv_header_libxslt_transform_h" = "yes" |
| 9448 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9450 | $as_echo_n "checking for -lxslt... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9451 | if ${ac_cv_lib_soname_xslt+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9452 | $as_echo_n "(cached) " >&6 |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9453 | else |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9454 | ac_check_soname_save_LIBS=$LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9455 | LIBS="-lxslt $ac_xslt_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9457 | /* end confdefs.h. */ |
| 9458 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9459 | /* Override any GCC internal prototype to avoid an error. |
| 9460 | Use char because int might match the return type of a GCC |
| 9461 | builtin and then its argument prototype would still apply. */ |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9462 | #ifdef __cplusplus |
| 9463 | extern "C" |
| 9464 | #endif |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9465 | char xsltCompilePattern (); |
| 9466 | int |
| 9467 | main () |
| 9468 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9469 | return xsltCompilePattern (); |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9470 | ; |
| 9471 | return 0; |
| 9472 | } |
| 9473 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9474 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9475 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9476 | dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9477 | dylib) ac_cv_lib_soname_xslt=`otool -L conftest$ac_exeext | grep "libxslt\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libxslt\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9478 | *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9479 | esac |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9480 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9481 | rm -f core conftest.err conftest.$ac_objext \ |
| 9482 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9483 | LIBS=$ac_check_soname_save_LIBS |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9484 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9485 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
| 9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9487 | $as_echo "not found" >&6; } |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9488 | |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9489 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5 |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9491 | $as_echo "$ac_cv_lib_soname_xslt" >&6; } |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9492 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9493 | cat >>confdefs.h <<_ACEOF |
| 9494 | #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9495 | _ACEOF |
Mike McCormack | f3719a8 | 2005-09-03 09:39:38 +0000 | [diff] [blame] | 9496 | |
Francois Gouget | 3d384f1 | 2008-11-17 19:29:32 +0100 | [diff] [blame] | 9497 | XSLTINCL="$ac_xslt_cflags" |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9498 | fi |
Lei Zhang | 9d7f7bf | 2008-04-17 13:00:22 -0700 | [diff] [blame] | 9499 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9500 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9501 | if test "x$ac_cv_lib_soname_xslt" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9502 | case "x$with_xslt" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9503 | x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9504 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9505 | *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9506 | This is an error since --with-xslt was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9507 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9508 | fi |
| 9509 | |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9510 | HALINCL="" |
| 9511 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9512 | if test "x$with_hal" != "xno" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9513 | then |
| 9514 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9515 | if test "$PKG_CONFIG" != "false" |
| 9516 | then |
| 9517 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
| 9518 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" |
| 9519 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
| 9520 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9521 | for ac_header in dbus/dbus.h hal/libhal.h |
| 9522 | do : |
| 9523 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9524 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9525 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9526 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9527 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9528 | _ACEOF |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9529 | |
| 9530 | fi |
| 9531 | |
| 9532 | done |
| 9533 | |
| 9534 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" |
| 9535 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9537 | $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9538 | if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9539 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9540 | else |
| 9541 | ac_check_lib_save_LIBS=$LIBS |
| 9542 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9544 | /* end confdefs.h. */ |
| 9545 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9546 | /* Override any GCC internal prototype to avoid an error. |
| 9547 | Use char because int might match the return type of a GCC |
| 9548 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9549 | #ifdef __cplusplus |
| 9550 | extern "C" |
| 9551 | #endif |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9552 | char dbus_connection_close (); |
| 9553 | int |
| 9554 | main () |
| 9555 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9556 | return dbus_connection_close (); |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9557 | ; |
| 9558 | return 0; |
| 9559 | } |
| 9560 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9561 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9562 | ac_cv_lib_dbus_1_dbus_connection_close=yes |
| 9563 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9564 | ac_cv_lib_dbus_1_dbus_connection_close=no |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9565 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9566 | rm -f core conftest.err conftest.$ac_objext \ |
| 9567 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9568 | LIBS=$ac_check_lib_save_LIBS |
| 9569 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9571 | $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9572 | if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9574 | $as_echo_n "checking for -lhal... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9575 | if ${ac_cv_lib_soname_hal+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9576 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9577 | else |
| 9578 | ac_check_soname_save_LIBS=$LIBS |
| 9579 | LIBS="-lhal $ac_hal_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9581 | /* end confdefs.h. */ |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9582 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9583 | /* Override any GCC internal prototype to avoid an error. |
| 9584 | Use char because int might match the return type of a GCC |
| 9585 | builtin and then its argument prototype would still apply. */ |
| 9586 | #ifdef __cplusplus |
| 9587 | extern "C" |
| 9588 | #endif |
| 9589 | char libhal_ctx_new (); |
| 9590 | int |
| 9591 | main () |
| 9592 | { |
| 9593 | return libhal_ctx_new (); |
| 9594 | ; |
| 9595 | return 0; |
| 9596 | } |
| 9597 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9598 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9599 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9600 | dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9601 | dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep "libhal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9602 | *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9603 | esac |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9604 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9605 | rm -f core conftest.err conftest.$ac_objext \ |
| 9606 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9607 | LIBS=$ac_check_soname_save_LIBS |
| 9608 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9609 | if test "x$ac_cv_lib_soname_hal" = "x"; then : |
| 9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9611 | $as_echo "not found" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9612 | |
| 9613 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9615 | $as_echo "$ac_cv_lib_soname_hal" >&6; } |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9616 | |
| 9617 | cat >>confdefs.h <<_ACEOF |
| 9618 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9619 | _ACEOF |
| 9620 | |
Alexandre Julliard | c1099bb | 2007-07-02 17:28:33 +0200 | [diff] [blame] | 9621 | HALINCL="$ac_hal_cflags" |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9622 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9623 | fi |
| 9624 | |
Alexandre Julliard | b18b9f3 | 2006-04-18 19:10:59 +0200 | [diff] [blame] | 9625 | fi |
Alexandre Julliard | 0006898 | 2006-04-18 16:47:53 +0200 | [diff] [blame] | 9626 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9627 | fi |
Alexandre Julliard | d806273 | 2010-04-26 06:57:49 -0500 | [diff] [blame] | 9628 | if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9629 | case "x$with_hal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9630 | x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9631 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9632 | *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9633 | This is an error since --with-hal was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9634 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9635 | fi |
| 9636 | |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9637 | if test "x$with_gnutls" != "xno" |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9638 | then |
| 9639 | ac_save_CPPFLAGS="$CPPFLAGS" |
Francois Gouget | 295a0cd | 2009-01-09 20:22:22 +0100 | [diff] [blame] | 9640 | if test "$PKG_CONFIG" != "false" |
| 9641 | then |
| 9642 | ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`" |
| 9643 | ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`" |
| 9644 | CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags" |
| 9645 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9646 | ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9647 | if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9649 | /* end confdefs.h. */ |
| 9650 | #include <gnutls/gnutls.h> |
| 9651 | int |
| 9652 | main () |
| 9653 | { |
Henri Verbeet | 8c4a297 | 2008-12-30 09:45:20 +0100 | [diff] [blame] | 9654 | typeof(gnutls_mac_get_key_size) *pfunc; |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9655 | ; |
| 9656 | return 0; |
| 9657 | } |
| 9658 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9659 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9661 | $as_echo_n "checking for -lgnutls... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9662 | if ${ac_cv_lib_soname_gnutls+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9663 | $as_echo_n "(cached) " >&6 |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9664 | else |
| 9665 | ac_check_soname_save_LIBS=$LIBS |
| 9666 | LIBS="-lgnutls $ac_gnutls_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9668 | /* end confdefs.h. */ |
| 9669 | |
| 9670 | /* Override any GCC internal prototype to avoid an error. |
| 9671 | Use char because int might match the return type of a GCC |
| 9672 | builtin and then its argument prototype would still apply. */ |
| 9673 | #ifdef __cplusplus |
| 9674 | extern "C" |
| 9675 | #endif |
| 9676 | char gnutls_global_init (); |
| 9677 | int |
| 9678 | main () |
| 9679 | { |
| 9680 | return gnutls_global_init (); |
| 9681 | ; |
| 9682 | return 0; |
| 9683 | } |
| 9684 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9685 | if ac_fn_c_try_link "$LINENO"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9686 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9687 | dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9688 | dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9689 | *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9690 | esac |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9691 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9692 | rm -f core conftest.err conftest.$ac_objext \ |
| 9693 | conftest$ac_exeext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9694 | LIBS=$ac_check_soname_save_LIBS |
| 9695 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9696 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
| 9697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9698 | $as_echo "not found" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9699 | |
| 9700 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9702 | $as_echo "$ac_cv_lib_soname_gnutls" >&6; } |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9703 | |
| 9704 | cat >>confdefs.h <<_ACEOF |
| 9705 | #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls" |
| 9706 | _ACEOF |
| 9707 | |
| 9708 | GNUTLSINCL="$ac_gnutls_cflags" |
| 9709 | |
| 9710 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9711 | fi |
Francois Gouget | 3aae954 | 2008-10-24 11:24:58 +0200 | [diff] [blame] | 9712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9713 | fi |
| 9714 | |
| 9715 | |
| 9716 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9717 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9718 | if test "x$ac_cv_lib_soname_gnutls" = "x"; then : |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9719 | case "x$with_gnutls" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9720 | x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9721 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9722 | *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9723 | This is an error since --with-gnutls was requested." "$LINENO" 5 ;; |
Henri Verbeet | 874c9ef | 2008-09-22 22:13:19 +0200 | [diff] [blame] | 9724 | esac |
| 9725 | fi |
| 9726 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9727 | CURSESLIBS="" |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9728 | if test "$ac_cv_header_ncurses_h" = "yes" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 9729 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9731 | $as_echo_n "checking for -lncurses... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9732 | if ${ac_cv_lib_soname_ncurses+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9733 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9734 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9735 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9736 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9738 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9739 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9740 | /* Override any GCC internal prototype to avoid an error. |
| 9741 | Use char because int might match the return type of a GCC |
| 9742 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9743 | #ifdef __cplusplus |
| 9744 | extern "C" |
| 9745 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9746 | char waddch (); |
| 9747 | int |
| 9748 | main () |
| 9749 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9750 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9751 | ; |
| 9752 | return 0; |
| 9753 | } |
| 9754 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9755 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9756 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9757 | dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9758 | dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9759 | *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9760 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9761 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9762 | rm -f core conftest.err conftest.$ac_objext \ |
| 9763 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9764 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9765 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9766 | if test "x$ac_cv_lib_soname_ncurses" = "x"; then : |
| 9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9768 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9769 | |
| 9770 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9772 | $as_echo "$ac_cv_lib_soname_ncurses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9773 | |
| 9774 | cat >>confdefs.h <<_ACEOF |
| 9775 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 9776 | _ACEOF |
| 9777 | |
| 9778 | CURSESLIBS="-lncurses" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9779 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9780 | elif test "$ac_cv_header_curses_h" = "yes" |
| 9781 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9783 | $as_echo_n "checking for -lcurses... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9784 | if ${ac_cv_lib_soname_curses+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9785 | $as_echo_n "(cached) " >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9786 | else |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9787 | ac_check_soname_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9788 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9790 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9791 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9792 | /* Override any GCC internal prototype to avoid an error. |
| 9793 | Use char because int might match the return type of a GCC |
| 9794 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9795 | #ifdef __cplusplus |
| 9796 | extern "C" |
| 9797 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9798 | char waddch (); |
| 9799 | int |
| 9800 | main () |
| 9801 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9802 | return waddch (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9803 | ; |
| 9804 | return 0; |
| 9805 | } |
| 9806 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9807 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9808 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9809 | dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9810 | dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep "libcurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9811 | *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9812 | esac |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9813 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9814 | rm -f core conftest.err conftest.$ac_objext \ |
| 9815 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9816 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9817 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9818 | if test "x$ac_cv_lib_soname_curses" = "x"; then : |
| 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9820 | $as_echo "not found" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9821 | |
| 9822 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9824 | $as_echo "$ac_cv_lib_soname_curses" >&6; } |
Alexandre Julliard | d078377 | 2007-07-02 17:28:50 +0200 | [diff] [blame] | 9825 | |
| 9826 | cat >>confdefs.h <<_ACEOF |
| 9827 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 9828 | _ACEOF |
| 9829 | |
| 9830 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9831 | fi |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9832 | fi |
| 9833 | ac_save_LIBS="$LIBS" |
| 9834 | LIBS="$LIBS $CURSESLIBS" |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9835 | for ac_func in mousemask |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9836 | do : |
| 9837 | ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9838 | if test "x$ac_cv_func_mousemask" = xyes; then : |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9839 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9840 | #define HAVE_MOUSEMASK 1 |
Alexandre Julliard | f5f37a8 | 2006-06-27 16:41:43 +0200 | [diff] [blame] | 9841 | _ACEOF |
| 9842 | |
| 9843 | fi |
| 9844 | done |
| 9845 | |
Alexandre Julliard | 8f1d42e | 2006-12-16 17:01:37 +0100 | [diff] [blame] | 9846 | LIBS="$ac_save_LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9847 | if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9848 | case "x$with_curses" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9849 | x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9850 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9851 | *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9852 | This is an error since --with-curses was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9853 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9854 | fi |
| 9855 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9856 | if test "x$with_sane" != "xno" |
| 9857 | then |
| 9858 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9859 | # Extract the first word of "sane-config", so it can be a program name with args. |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9860 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9862 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9863 | if ${ac_cv_prog_sane_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9864 | $as_echo_n "(cached) " >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9865 | else |
| 9866 | if test -n "$sane_devel"; then |
| 9867 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9868 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9870 | for as_dir in $PATH |
| 9871 | do |
| 9872 | IFS=$as_save_IFS |
| 9873 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9874 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 9875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9876 | ac_cv_prog_sane_devel="sane-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9878 | break 2 |
| 9879 | fi |
| 9880 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9881 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9882 | IFS=$as_save_IFS |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9883 | |
| 9884 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9885 | fi |
| 9886 | fi |
| 9887 | sane_devel=$ac_cv_prog_sane_devel |
| 9888 | if test -n "$sane_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9890 | $as_echo "$sane_devel" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9891 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9893 | $as_echo "no" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9894 | fi |
| 9895 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 9896 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 9897 | if test "$sane_devel" != "no" |
| 9898 | then |
| 9899 | ac_sane_incl="`$sane_devel --cflags`" |
| 9900 | ac_sane_libs="`$sane_devel --ldflags`" |
| 9901 | CPPFLAGS="$CPPFLAGS $ac_sane_incl" |
| 9902 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9903 | ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9904 | if test "x$ac_cv_header_sane_sane_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9906 | $as_echo_n "checking for -lsane... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9907 | if ${ac_cv_lib_soname_sane+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9908 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9909 | else |
| 9910 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | a9d7bab | 2008-07-20 22:41:41 +0200 | [diff] [blame] | 9911 | LIBS="-lsane $ac_sane_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9913 | /* end confdefs.h. */ |
| 9914 | |
| 9915 | /* Override any GCC internal prototype to avoid an error. |
| 9916 | Use char because int might match the return type of a GCC |
| 9917 | builtin and then its argument prototype would still apply. */ |
| 9918 | #ifdef __cplusplus |
| 9919 | extern "C" |
| 9920 | #endif |
| 9921 | char sane_init (); |
| 9922 | int |
| 9923 | main () |
| 9924 | { |
| 9925 | return sane_init (); |
| 9926 | ; |
| 9927 | return 0; |
| 9928 | } |
| 9929 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9930 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9931 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9932 | dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9933 | dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 9934 | *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 9935 | esac |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9936 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9937 | rm -f core conftest.err conftest.$ac_objext \ |
| 9938 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9939 | LIBS=$ac_check_soname_save_LIBS |
| 9940 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9941 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
| 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9943 | $as_echo "not found" >&6; } |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9944 | |
| 9945 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 9947 | $as_echo "$ac_cv_lib_soname_sane" >&6; } |
Alexandre Julliard | 418e74b | 2007-07-02 19:42:13 +0200 | [diff] [blame] | 9948 | |
| 9949 | cat >>confdefs.h <<_ACEOF |
| 9950 | #define SONAME_LIBSANE "$ac_cv_lib_soname_sane" |
| 9951 | _ACEOF |
| 9952 | |
| 9953 | SANEINCL="$ac_sane_incl" |
| 9954 | |
| 9955 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9956 | fi |
| 9957 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9958 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9959 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9960 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 9961 | if test "x$ac_cv_lib_soname_sane" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9962 | case "x$with_sane" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 9963 | x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9964 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 9965 | *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9966 | This is an error since --with-sane was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 9967 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 9968 | fi |
| 9969 | |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 9970 | if test "x$with_v4l" != "xno" |
| 9971 | then |
| 9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5 |
| 9973 | $as_echo_n "checking for -lv4l1... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 9974 | if ${ac_cv_lib_soname_v4l1+:} false; then : |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 9975 | $as_echo_n "(cached) " >&6 |
| 9976 | else |
| 9977 | ac_check_soname_save_LIBS=$LIBS |
| 9978 | LIBS="-lv4l1 $LIBS" |
| 9979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9980 | /* end confdefs.h. */ |
| 9981 | |
| 9982 | /* Override any GCC internal prototype to avoid an error. |
| 9983 | Use char because int might match the return type of a GCC |
| 9984 | builtin and then its argument prototype would still apply. */ |
| 9985 | #ifdef __cplusplus |
| 9986 | extern "C" |
| 9987 | #endif |
| 9988 | char v4l1_open (); |
| 9989 | int |
| 9990 | main () |
| 9991 | { |
| 9992 | return v4l1_open (); |
| 9993 | ; |
| 9994 | return 0; |
| 9995 | } |
| 9996 | _ACEOF |
| 9997 | if ac_fn_c_try_link "$LINENO"; then : |
| 9998 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 9999 | dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10000 | dylib) ac_cv_lib_soname_v4l1=`otool -L conftest$ac_exeext | grep "libv4l1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libv4l1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 10001 | *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10002 | esac |
| 10003 | fi |
| 10004 | rm -f core conftest.err conftest.$ac_objext \ |
| 10005 | conftest$ac_exeext conftest.$ac_ext |
| 10006 | LIBS=$ac_check_soname_save_LIBS |
| 10007 | fi |
| 10008 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 10010 | $as_echo "not found" >&6; } |
| 10011 | |
| 10012 | else |
| 10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5 |
| 10014 | $as_echo "$ac_cv_lib_soname_v4l1" >&6; } |
| 10015 | |
| 10016 | cat >>confdefs.h <<_ACEOF |
| 10017 | #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1" |
| 10018 | _ACEOF |
| 10019 | |
| 10020 | |
| 10021 | fi |
| 10022 | fi |
| 10023 | if test "x$ac_cv_lib_soname_v4l1" = "x"; then : |
| 10024 | case "x$with_v4l" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10025 | x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10026 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10027 | *) as_fn_error $? "libv4l ${notice_platform}development files not found. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10028 | This is an error since --with-v4l was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | bf6f075 | 2010-01-28 23:27:12 +0100 | [diff] [blame] | 10029 | esac |
| 10030 | fi |
| 10031 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10032 | if test "x$with_gphoto" != "xno" |
| 10033 | then |
| 10034 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10035 | # Extract the first word of "gphoto2-config", so it can be a program name with args. |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10036 | set dummy gphoto2-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10038 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10039 | if ${ac_cv_prog_gphoto2_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10040 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10041 | else |
| 10042 | if test -n "$gphoto2_devel"; then |
| 10043 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. |
| 10044 | else |
| 10045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10046 | for as_dir in $PATH |
| 10047 | do |
| 10048 | IFS=$as_save_IFS |
| 10049 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10050 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10052 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10054 | break 2 |
| 10055 | fi |
| 10056 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10057 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10058 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10059 | |
| 10060 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" |
| 10061 | fi |
| 10062 | fi |
| 10063 | gphoto2_devel=$ac_cv_prog_gphoto2_devel |
| 10064 | if test -n "$gphoto2_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10066 | $as_echo "$gphoto2_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10067 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10069 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10070 | fi |
| 10071 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10072 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10073 | # Extract the first word of "gphoto2-port-config", so it can be a program name with args. |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10074 | set dummy gphoto2-port-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10076 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10077 | if ${ac_cv_prog_gphoto2port_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10078 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10079 | else |
| 10080 | if test -n "$gphoto2port_devel"; then |
| 10081 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. |
| 10082 | else |
| 10083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10084 | for as_dir in $PATH |
| 10085 | do |
| 10086 | IFS=$as_save_IFS |
| 10087 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10088 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10090 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10092 | break 2 |
| 10093 | fi |
| 10094 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10095 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10096 | IFS=$as_save_IFS |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10097 | |
| 10098 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" |
| 10099 | fi |
| 10100 | fi |
| 10101 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel |
| 10102 | if test -n "$gphoto2port_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10104 | $as_echo "$gphoto2port_devel" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10105 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10107 | $as_echo "no" >&6; } |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10108 | fi |
| 10109 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10110 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10111 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" |
| 10112 | then |
| 10113 | ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" |
| 10114 | ac_gphoto2_libs="" |
| 10115 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` |
| 10116 | do |
| 10117 | case "$i" in |
| 10118 | -L/usr/lib|-L/usr/lib64) ;; |
| 10119 | -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";; |
| 10120 | esac |
| 10121 | done |
| 10122 | CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl" |
| 10123 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10124 | ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10125 | ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10126 | if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10128 | $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10129 | if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10130 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10131 | else |
| 10132 | ac_check_lib_save_LIBS=$LIBS |
Francois Gouget | 4bc03fe | 2008-07-21 17:10:45 +0200 | [diff] [blame] | 10133 | LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10135 | /* end confdefs.h. */ |
| 10136 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10137 | /* Override any GCC internal prototype to avoid an error. |
| 10138 | Use char because int might match the return type of a GCC |
| 10139 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10140 | #ifdef __cplusplus |
| 10141 | extern "C" |
| 10142 | #endif |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10143 | char gp_camera_new (); |
| 10144 | int |
| 10145 | main () |
| 10146 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10147 | return gp_camera_new (); |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10148 | ; |
| 10149 | return 0; |
| 10150 | } |
| 10151 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10152 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10153 | ac_cv_lib_gphoto2_gp_camera_new=yes |
| 10154 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10155 | ac_cv_lib_gphoto2_gp_camera_new=no |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10156 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10157 | rm -f core conftest.err conftest.$ac_objext \ |
| 10158 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10159 | LIBS=$ac_check_lib_save_LIBS |
| 10160 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10162 | $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10163 | if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then : |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10164 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10165 | $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10166 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10167 | GPHOTO2LIBS="$ac_gphoto2_libs" |
| 10168 | |
| 10169 | GPHOTO2INCL="$ac_gphoto2_incl" |
| 10170 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10171 | fi |
| 10172 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10173 | fi |
| 10174 | |
| 10175 | |
Marcus Meissner | 40e7ef3 | 2006-05-08 20:09:37 +0200 | [diff] [blame] | 10176 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10177 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10178 | if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10179 | case "x$with_gphoto" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10180 | x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10181 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10182 | *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10183 | This is an error since --with-gphoto was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10184 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10185 | fi |
| 10186 | |
| 10187 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10188 | if test "$ac_cv_header_resolv_h" = "yes" |
| 10189 | then |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10190 | ac_save_LIBS="$LIBS" |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10191 | for lib in '' -lresolv |
| 10192 | do |
| 10193 | LIBS="$lib $ac_save_LIBS" |
| 10194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10195 | /* end confdefs.h. */ |
Rob Shearman | ba34921 | 2009-01-02 12:12:06 +0000 | [diff] [blame] | 10196 | #ifdef HAVE_NETINET_IN_H |
| 10197 | #include <netinet/in.h> |
| 10198 | #endif |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10199 | #include <resolv.h> |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10200 | int |
| 10201 | main () |
| 10202 | { |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10203 | res_query("foo",ns_c_in,0,0,0); |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10204 | ; |
| 10205 | return 0; |
| 10206 | } |
| 10207 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10208 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10209 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10210 | $as_echo "#define HAVE_RESOLV 1" >>confdefs.h |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10211 | |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10212 | RESOLVLIBS="$lib" |
| 10213 | |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10214 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10215 | rm -f core conftest.err conftest.$ac_objext \ |
| 10216 | conftest$ac_exeext conftest.$ac_ext |
Tijl Coosemans | e7ec164 | 2010-09-23 18:20:31 +0200 | [diff] [blame] | 10217 | if test "${RESOLVLIBS+set}" = set; then |
| 10218 | break |
| 10219 | fi |
| 10220 | done |
Alexandre Julliard | 4a9a3d7 | 2008-12-26 19:36:27 +0100 | [diff] [blame] | 10221 | LIBS="$ac_save_LIBS" |
Hans Leidekker | 2d6d4e9 | 2006-04-09 18:36:01 +0200 | [diff] [blame] | 10222 | fi |
| 10223 | |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10224 | LCMSLIBS="" |
| 10225 | |
| 10226 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
| 10227 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10229 | $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10230 | if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10231 | $as_echo_n "(cached) " >&6 |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10232 | else |
| 10233 | ac_check_lib_save_LIBS=$LIBS |
| 10234 | LIBS="-llcms $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10236 | /* end confdefs.h. */ |
| 10237 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10238 | /* Override any GCC internal prototype to avoid an error. |
| 10239 | Use char because int might match the return type of a GCC |
| 10240 | builtin and then its argument prototype would still apply. */ |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10241 | #ifdef __cplusplus |
| 10242 | extern "C" |
| 10243 | #endif |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10244 | char cmsOpenProfileFromFile (); |
| 10245 | int |
| 10246 | main () |
| 10247 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10248 | return cmsOpenProfileFromFile (); |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10249 | ; |
| 10250 | return 0; |
| 10251 | } |
| 10252 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10253 | if ac_fn_c_try_link "$LINENO"; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10254 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 10255 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10256 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10257 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10258 | rm -f core conftest.err conftest.$ac_objext \ |
| 10259 | conftest$ac_exeext conftest.$ac_ext |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10260 | LIBS=$ac_check_lib_save_LIBS |
| 10261 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10263 | $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10264 | if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then : |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10265 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10266 | $as_echo "#define HAVE_LCMS 1" >>confdefs.h |
Hans Leidekker | d344702 | 2005-07-15 10:09:43 +0000 | [diff] [blame] | 10267 | |
| 10268 | LCMSLIBS="-llcms" |
| 10269 | fi |
| 10270 | |
| 10271 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10272 | if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10273 | case "x$with_cms" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 10274 | x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10275 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10276 | *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10277 | This is an error since --with-cms was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 10278 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 10279 | fi |
| 10280 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10281 | if test "x$with_freetype" != "xno" |
| 10282 | then |
| 10283 | for ac_prog in freetype-config freetype2-config |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10284 | do |
| 10285 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10286 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10288 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10289 | if ${ac_cv_prog_ft_devel+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10290 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10291 | else |
| 10292 | if test -n "$ft_devel"; then |
| 10293 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 10294 | else |
| 10295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10296 | for as_dir in $PATH |
| 10297 | do |
| 10298 | IFS=$as_save_IFS |
| 10299 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10300 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10302 | ac_cv_prog_ft_devel="$ac_prog" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10304 | break 2 |
| 10305 | fi |
| 10306 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10307 | done |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10308 | IFS=$as_save_IFS |
| 10309 | |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10310 | fi |
| 10311 | fi |
| 10312 | ft_devel=$ac_cv_prog_ft_devel |
| 10313 | if test -n "$ft_devel"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10315 | $as_echo "$ft_devel" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10316 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10318 | $as_echo "no" >&6; } |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10319 | fi |
| 10320 | |
| 10321 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10322 | test -n "$ft_devel" && break |
| 10323 | done |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10324 | test -n "$ft_devel" || ft_devel="no" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10325 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10326 | if test "$ft_devel" != "no" |
| 10327 | then |
| 10328 | ac_freetype_incl=`$ft_devel --cflags` |
| 10329 | ac_freetype_libs=`$ft_devel --libs` |
| 10330 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10331 | ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10333 | $as_echo_n "checking for -lfreetype... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10334 | if ${ac_cv_lib_soname_freetype+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10335 | $as_echo_n "(cached) " >&6 |
Mike McCormack | d9ef88c | 2006-07-24 15:24:44 +0900 | [diff] [blame] | 10336 | else |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10337 | ac_check_soname_save_LIBS=$LIBS |
| 10338 | LIBS="-lfreetype $ac_freetype_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10340 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10341 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10342 | /* Override any GCC internal prototype to avoid an error. |
| 10343 | Use char because int might match the return type of a GCC |
| 10344 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10345 | #ifdef __cplusplus |
| 10346 | extern "C" |
| 10347 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10348 | char FT_Init_FreeType (); |
| 10349 | int |
| 10350 | main () |
| 10351 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10352 | return FT_Init_FreeType (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10353 | ; |
| 10354 | return 0; |
| 10355 | } |
| 10356 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10357 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10358 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10359 | dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10360 | dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep "libfreetype\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 10361 | *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 10362 | esac |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10363 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10364 | rm -f core conftest.err conftest.$ac_objext \ |
| 10365 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10366 | LIBS=$ac_check_soname_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10367 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10368 | if test "x$ac_cv_lib_soname_freetype" = "x"; then : |
| 10369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10370 | $as_echo "not found" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10371 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10372 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10374 | $as_echo "$ac_cv_lib_soname_freetype" >&6; } |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10375 | |
| 10376 | cat >>confdefs.h <<_ACEOF |
| 10377 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 10378 | _ACEOF |
| 10379 | |
| 10380 | ft_lib=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10381 | fi |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10382 | if test "$ft_lib" = "yes" |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10383 | then |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10384 | ac_save_CPPFLAGS="$CPPFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10385 | CPPFLAGS="$ac_freetype_incl $CPPFLAGS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10386 | for ac_header in ft2build.h \ |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10387 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10388 | freetype/ftglyph.h \ |
Dmitry Timoshkov | b0d1590 | 2007-09-20 19:10:31 +0900 | [diff] [blame] | 10389 | freetype/fttypes.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10390 | freetype/tttables.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10391 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 10392 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10393 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10394 | freetype/ftwinfnt.h \ |
Huw Davies | 603d21c | 2006-01-24 10:57:35 +0100 | [diff] [blame] | 10395 | freetype/ftmodapi.h \ |
ByeongSik Jeon | 028617b | 2008-12-10 23:50:44 +0900 | [diff] [blame] | 10396 | freetype/ftlcdfil.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10397 | freetype/internal/sfnt.h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10398 | do : |
| 10399 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10400 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H |
Francois Gouget | 9e67edf | 2008-03-06 12:34:48 +0100 | [diff] [blame] | 10401 | # include <ft2build.h> |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10402 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10403 | " |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10404 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10405 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10406 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10407 | _ACEOF |
| 10408 | |
| 10409 | fi |
| 10410 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10411 | done |
| 10412 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10414 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10415 | #include <ft2build.h> |
| 10416 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10417 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10418 | if ac_fn_c_try_cpp "$LINENO"; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10419 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10420 | $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10421 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10422 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10423 | else |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10424 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10425 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10426 | rm -f conftest.err conftest.i conftest.$ac_ext |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10427 | ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h> |
| 10428 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10429 | if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then : |
Huw Davies | d8a6c27 | 2006-02-22 12:24:25 +0000 | [diff] [blame] | 10430 | |
| 10431 | cat >>confdefs.h <<_ACEOF |
| 10432 | #define HAVE_FT_TRUETYPEENGINETYPE 1 |
| 10433 | _ACEOF |
| 10434 | |
| 10435 | |
| 10436 | fi |
| 10437 | |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10438 | ac_save_CFLAGS="$CFLAGS" |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10439 | CFLAGS="$CFLAGS $ac_freetype_libs" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10440 | for ac_func in FT_Load_Sfnt_Table |
| 10441 | do : |
| 10442 | ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10443 | if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then : |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10444 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10445 | #define HAVE_FT_LOAD_SFNT_TABLE 1 |
Huw Davies | 35bca77 | 2006-04-12 12:14:27 +0100 | [diff] [blame] | 10446 | _ACEOF |
| 10447 | |
| 10448 | fi |
| 10449 | done |
| 10450 | |
| 10451 | CFLAGS="$ac_save_CFLAGS" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10452 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10453 | 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] | 10454 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10455 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10456 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10457 | |
Alexandre Julliard | 24a55f3 | 2007-07-09 22:43:20 +0200 | [diff] [blame] | 10458 | FREETYPELIBS="$ac_freetype_libs" |
| 10459 | |
| 10460 | FREETYPEINCL="$ac_freetype_incl" |
| 10461 | |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10462 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10463 | fi |
| 10464 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10465 | if test "x$FREETYPELIBS" = "x"; then : |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10466 | case "x$with_freetype" in |
| 10467 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10468 | *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10469 | Use the --without-freetype option if you really want this." "$LINENO" 5 ;; |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10470 | esac |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10471 | fi |
Alexandre Julliard | 6de0af1 | 2008-08-25 14:41:03 +0200 | [diff] [blame] | 10472 | test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no} |
Alexandre Julliard | a20c0e1 | 2008-05-21 14:55:53 +0200 | [diff] [blame] | 10473 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10475 | $as_echo_n "checking for parport header/ppdev.h... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10476 | if ${ac_cv_c_ppdev+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10477 | $as_echo_n "(cached) " >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 10478 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10480 | /* end confdefs.h. */ |
Yann Droneaud | dd33ee9 | 2010-03-08 14:46:46 +0100 | [diff] [blame] | 10481 | #ifdef HAVE_SYS_IOCTL_H |
| 10482 | # include <sys/ioctl.h> |
| 10483 | #endif |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10484 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10485 | int |
| 10486 | main () |
| 10487 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10488 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10489 | ; |
| 10490 | return 0; |
| 10491 | } |
| 10492 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10493 | if ac_fn_c_try_compile "$LINENO"; then : |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10494 | ac_cv_c_ppdev="yes" |
| 10495 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10496 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10497 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10499 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10501 | $as_echo "$ac_cv_c_ppdev" >&6; } |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10502 | if test "$ac_cv_c_ppdev" = "yes" |
| 10503 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10504 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10505 | $as_echo "#define HAVE_PPDEV 1" >>confdefs.h |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10506 | |
| 10507 | fi |
| 10508 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10509 | ac_wine_check_funcs_save_LIBS="$LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10510 | LIBS="$LIBS $LIBPTHREAD" |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10511 | for ac_func in \ |
Tijl Coosemans | fc8172f | 2006-08-05 23:31:07 +0200 | [diff] [blame] | 10512 | pthread_attr_get_np \ |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10513 | pthread_getattr_np \ |
| 10514 | pthread_get_stackaddr_np \ |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10515 | pthread_get_stacksize_np |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10516 | do : |
| 10517 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10518 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 10519 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10520 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10521 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10522 | _ACEOF |
| 10523 | |
| 10524 | fi |
| 10525 | done |
| 10526 | |
Alexandre Julliard | 2d1a627 | 2006-02-11 20:54:06 +0100 | [diff] [blame] | 10527 | LIBS="$ac_wine_check_funcs_save_LIBS" |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10528 | |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10529 | if test "$ac_cv_header_zlib_h" = "yes" |
| 10530 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10532 | $as_echo_n "checking for inflate in -lz... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10533 | if ${ac_cv_lib_z_inflate+:} false; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10534 | $as_echo_n "(cached) " >&6 |
| 10535 | else |
| 10536 | ac_check_lib_save_LIBS=$LIBS |
| 10537 | LIBS="-lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10539 | /* end confdefs.h. */ |
| 10540 | |
| 10541 | /* Override any GCC internal prototype to avoid an error. |
| 10542 | Use char because int might match the return type of a GCC |
| 10543 | builtin and then its argument prototype would still apply. */ |
| 10544 | #ifdef __cplusplus |
| 10545 | extern "C" |
| 10546 | #endif |
| 10547 | char inflate (); |
| 10548 | int |
| 10549 | main () |
| 10550 | { |
| 10551 | return inflate (); |
| 10552 | ; |
| 10553 | return 0; |
| 10554 | } |
| 10555 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10556 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10557 | ac_cv_lib_z_inflate=yes |
| 10558 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10559 | ac_cv_lib_z_inflate=no |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10560 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10561 | rm -f core conftest.err conftest.$ac_objext \ |
| 10562 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10563 | LIBS=$ac_check_lib_save_LIBS |
| 10564 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10566 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10567 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10568 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10569 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10570 | |
| 10571 | ZLIB="-lz" |
| 10572 | |
| 10573 | fi |
| 10574 | |
| 10575 | fi |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 10576 | if test "x$ZLIB" = "x"; then : |
| 10577 | case "x$with_zlib" in |
| 10578 | x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;; |
| 10579 | xno) ;; |
| 10580 | *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10581 | This is an error since --with-zlib was requested." "$LINENO" 5 ;; |
Alexandre Julliard | ba6a41a | 2011-02-18 13:07:27 +0100 | [diff] [blame] | 10582 | esac |
| 10583 | fi |
Jacek Caban | 11ca05f | 2009-05-29 23:35:13 +0200 | [diff] [blame] | 10584 | |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10585 | if test "x$enable_tools" != xno |
| 10586 | then |
| 10587 | if test "$ac_cv_header_gettext_po_h" = "yes" |
| 10588 | then |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5 |
| 10590 | $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10591 | if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10592 | $as_echo_n "(cached) " >&6 |
| 10593 | else |
| 10594 | ac_check_lib_save_LIBS=$LIBS |
| 10595 | LIBS="-lgettextpo $LIBS" |
| 10596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10597 | /* end confdefs.h. */ |
| 10598 | |
| 10599 | /* Override any GCC internal prototype to avoid an error. |
| 10600 | Use char because int might match the return type of a GCC |
| 10601 | builtin and then its argument prototype would still apply. */ |
| 10602 | #ifdef __cplusplus |
| 10603 | extern "C" |
| 10604 | #endif |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10605 | char po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10606 | int |
| 10607 | main () |
| 10608 | { |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10609 | return po_message_msgctxt (); |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10610 | ; |
| 10611 | return 0; |
| 10612 | } |
| 10613 | _ACEOF |
| 10614 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10615 | ac_cv_lib_gettextpo_po_message_msgctxt=yes |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10616 | else |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10617 | ac_cv_lib_gettextpo_po_message_msgctxt=no |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10618 | fi |
| 10619 | rm -f core conftest.err conftest.$ac_objext \ |
| 10620 | conftest$ac_exeext conftest.$ac_ext |
| 10621 | LIBS=$ac_check_lib_save_LIBS |
| 10622 | fi |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5 |
| 10624 | $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10625 | if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then : |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10626 | |
| 10627 | $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h |
| 10628 | |
| 10629 | LIBGETTEXTPO="-lgettextpo" |
| 10630 | |
| 10631 | fi |
| 10632 | |
| 10633 | fi |
| 10634 | if test "x$LIBGETTEXTPO" = "x"; then : |
| 10635 | case "x$with_gettextpo" in |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10636 | x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;; |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10637 | xno) ;; |
Alexandre Julliard | 88155ca | 2011-01-08 15:53:26 +0100 | [diff] [blame] | 10638 | *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10639 | This is an error since --with-gettextpo was requested." "$LINENO" 5 ;; |
Alexandre Julliard | 0e79c5c | 2011-01-04 11:16:50 +0100 | [diff] [blame] | 10640 | esac |
| 10641 | fi |
| 10642 | fi |
| 10643 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10644 | if test "x$with_esd" != xno |
| 10645 | then |
| 10646 | save_CFLAGS="$CFLAGS" |
| 10647 | # Extract the first word of "esd-config", so it can be a program name with args. |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10648 | set dummy esd-config; ac_word=$2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10650 | $as_echo_n "checking for $ac_word... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10651 | if ${ac_cv_path_ESDCONFIG+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10652 | $as_echo_n "(cached) " >&6 |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10653 | else |
| 10654 | case $ESDCONFIG in |
| 10655 | [\\/]* | ?:[\\/]*) |
| 10656 | ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path. |
| 10657 | ;; |
| 10658 | *) |
| 10659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10660 | for as_dir in $PATH |
| 10661 | do |
| 10662 | IFS=$as_save_IFS |
| 10663 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10664 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 10665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10666 | ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10668 | break 2 |
| 10669 | fi |
| 10670 | done |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10671 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10672 | IFS=$as_save_IFS |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10673 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10674 | test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10675 | ;; |
| 10676 | esac |
| 10677 | fi |
| 10678 | ESDCONFIG=$ac_cv_path_ESDCONFIG |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10679 | if test -n "$ESDCONFIG"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10681 | $as_echo "$ESDCONFIG" >&6; } |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10682 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10684 | $as_echo "no" >&6; } |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10685 | fi |
| 10686 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10687 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10688 | if test "x$ESDCONFIG" != "xno" |
| 10689 | then |
| 10690 | ac_esd_incl="" |
| 10691 | for i in `$ESDCONFIG --cflags` |
| 10692 | do |
| 10693 | case "$i" in |
| 10694 | -I*) ac_esd_incl="$ac_esd_incl $i";; |
| 10695 | esac |
| 10696 | done |
| 10697 | ac_esd_libs=`$ESDCONFIG --libs` |
| 10698 | CFLAGS="$CFLAGS $ac_esd_incl" |
| 10699 | fi |
Shunichi Fuji | 4bf77d6 | 2009-01-20 15:24:46 +0900 | [diff] [blame] | 10700 | ac_esd_libs=${ac_esd_libs:-"-lesd"} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10701 | ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10702 | if test "x$ac_cv_header_esd_h" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10704 | $as_echo_n "checking for esd_open_sound in -lesd... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10705 | if ${ac_cv_lib_esd_esd_open_sound+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10706 | $as_echo_n "(cached) " >&6 |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10707 | else |
| 10708 | ac_check_lib_save_LIBS=$LIBS |
Francois Gouget | e9b1a40 | 2008-07-21 23:41:21 +0200 | [diff] [blame] | 10709 | LIBS="-lesd $ac_esd_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10711 | /* end confdefs.h. */ |
| 10712 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10713 | /* Override any GCC internal prototype to avoid an error. |
| 10714 | Use char because int might match the return type of a GCC |
| 10715 | builtin and then its argument prototype would still apply. */ |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10716 | #ifdef __cplusplus |
| 10717 | extern "C" |
| 10718 | #endif |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10719 | char esd_open_sound (); |
| 10720 | int |
| 10721 | main () |
| 10722 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10723 | return esd_open_sound (); |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10724 | ; |
| 10725 | return 0; |
| 10726 | } |
| 10727 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10728 | if ac_fn_c_try_link "$LINENO"; then : |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10729 | ac_cv_lib_esd_esd_open_sound=yes |
| 10730 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10731 | ac_cv_lib_esd_esd_open_sound=no |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10732 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10733 | rm -f core conftest.err conftest.$ac_objext \ |
| 10734 | conftest$ac_exeext conftest.$ac_ext |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10735 | LIBS=$ac_check_lib_save_LIBS |
| 10736 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10738 | $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10739 | if test "x$ac_cv_lib_esd_esd_open_sound" = xyes; then : |
Francois Gouget | e9b1a40 | 2008-07-21 23:41:21 +0200 | [diff] [blame] | 10740 | ESDINCL="$ac_esd_incl" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10741 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10742 | ESDLIBS="$ac_esd_libs" |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10743 | |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10744 | fi |
| 10745 | |
Francois Gouget | 3fe5d80 | 2009-01-14 14:16:06 +0100 | [diff] [blame] | 10746 | fi |
| 10747 | |
| 10748 | |
Peter Åstrand | 7a15eb9 | 2005-08-03 15:53:26 +0000 | [diff] [blame] | 10749 | CFLAGS="$save_CFLAGS" |
| 10750 | fi |
| 10751 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10752 | if test "x$with_gstreamer" != "xno" |
| 10753 | then |
| 10754 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10755 | if test "$PKG_CONFIG" != "false"; then |
| 10756 | ac_gst_incl="" |
| 10757 | for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null` |
| 10758 | do |
| 10759 | case "$i" in |
| 10760 | -I*) ac_gst_incl="$ac_gst_incl $i";; |
| 10761 | esac |
| 10762 | done |
| 10763 | ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`" |
| 10764 | CPPFLAGS="$CPPFLAGS $ac_gst_incl" |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10765 | ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10766 | if test "x$ac_cv_header_gst_gstpad_h" = xyes; then : |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10767 | ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10768 | if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then : |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5 |
| 10770 | $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10771 | if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then : |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10772 | $as_echo_n "(cached) " >&6 |
| 10773 | else |
| 10774 | ac_check_lib_save_LIBS=$LIBS |
| 10775 | LIBS="-lgstreamer-0.10 $LIBS" |
| 10776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10777 | /* end confdefs.h. */ |
| 10778 | |
| 10779 | /* Override any GCC internal prototype to avoid an error. |
| 10780 | Use char because int might match the return type of a GCC |
| 10781 | builtin and then its argument prototype would still apply. */ |
| 10782 | #ifdef __cplusplus |
| 10783 | extern "C" |
| 10784 | #endif |
| 10785 | char gst_pad_get_caps_reffed (); |
| 10786 | int |
| 10787 | main () |
| 10788 | { |
| 10789 | return gst_pad_get_caps_reffed (); |
| 10790 | ; |
| 10791 | return 0; |
| 10792 | } |
| 10793 | _ACEOF |
| 10794 | if ac_fn_c_try_link "$LINENO"; then : |
| 10795 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes |
| 10796 | else |
| 10797 | ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no |
| 10798 | fi |
| 10799 | rm -f core conftest.err conftest.$ac_objext \ |
| 10800 | conftest$ac_exeext conftest.$ac_ext |
| 10801 | LIBS=$ac_check_lib_save_LIBS |
| 10802 | fi |
| 10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5 |
| 10804 | $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10805 | if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5 |
| 10807 | $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10808 | if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10809 | $as_echo_n "(cached) " >&6 |
| 10810 | else |
| 10811 | ac_check_lib_save_LIBS=$LIBS |
| 10812 | LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS" |
| 10813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10814 | /* end confdefs.h. */ |
| 10815 | |
| 10816 | /* Override any GCC internal prototype to avoid an error. |
| 10817 | Use char because int might match the return type of a GCC |
| 10818 | builtin and then its argument prototype would still apply. */ |
| 10819 | #ifdef __cplusplus |
| 10820 | extern "C" |
| 10821 | #endif |
| 10822 | char gst_app_buffer_new (); |
| 10823 | int |
| 10824 | main () |
| 10825 | { |
| 10826 | return gst_app_buffer_new (); |
| 10827 | ; |
| 10828 | return 0; |
| 10829 | } |
| 10830 | _ACEOF |
| 10831 | if ac_fn_c_try_link "$LINENO"; then : |
| 10832 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes |
| 10833 | else |
| 10834 | ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no |
| 10835 | fi |
| 10836 | rm -f core conftest.err conftest.$ac_objext \ |
| 10837 | conftest$ac_exeext conftest.$ac_ext |
| 10838 | LIBS=$ac_check_lib_save_LIBS |
| 10839 | fi |
| 10840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5 |
| 10841 | $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10842 | if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10843 | GSTREAMER_LIBS="$ac_gst_libs" |
| 10844 | |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10845 | GSTREAMER_INCL="$ac_gst_incl" |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10846 | |
| 10847 | fi |
| 10848 | |
| 10849 | fi |
| 10850 | |
Andrew Nguyen | de41797 | 2010-10-29 00:26:04 -0500 | [diff] [blame] | 10851 | fi |
| 10852 | |
| 10853 | |
| 10854 | fi |
| 10855 | |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10856 | |
| 10857 | fi |
| 10858 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10859 | fi |
Alexandre Julliard | fa3ddd8 | 2011-01-14 15:59:51 +0100 | [diff] [blame] | 10860 | if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then : |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10861 | case "x$with_gstreamer" in |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10862 | x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;; |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10863 | xno) ;; |
Detlef Riekenberg | 654bb4a | 2010-12-12 22:48:56 +0100 | [diff] [blame] | 10864 | *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10865 | This is an error since --with-gstreamer was requested." "$LINENO" 5 ;; |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 10866 | esac |
| 10867 | fi |
| 10868 | test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no} |
| 10869 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10870 | ALSALIBS="" |
| 10871 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10872 | 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] | 10873 | then |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5 |
| 10875 | $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10876 | if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10877 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10878 | else |
| 10879 | ac_check_lib_save_LIBS=$LIBS |
| 10880 | LIBS="-lasound $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10882 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10883 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10884 | /* Override any GCC internal prototype to avoid an error. |
| 10885 | Use char because int might match the return type of a GCC |
| 10886 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10887 | #ifdef __cplusplus |
| 10888 | extern "C" |
| 10889 | #endif |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10890 | char snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10891 | int |
| 10892 | main () |
| 10893 | { |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10894 | return snd_pcm_hw_params_get_access_mask (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10895 | ; |
| 10896 | return 0; |
| 10897 | } |
| 10898 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10899 | if ac_fn_c_try_link "$LINENO"; then : |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10900 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10901 | else |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10902 | ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10903 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10904 | rm -f core conftest.err conftest.$ac_objext \ |
| 10905 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10906 | LIBS=$ac_check_lib_save_LIBS |
| 10907 | fi |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5 |
| 10909 | $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10910 | if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10912 | /* end confdefs.h. */ |
| 10913 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 10914 | #include <alsa/asoundlib.h> |
| 10915 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 10916 | #include <sys/asoundlib.h> |
| 10917 | #endif |
| 10918 | int |
| 10919 | main () |
| 10920 | { |
Austin English | aeb78cb | 2011-01-12 01:43:46 -0800 | [diff] [blame] | 10921 | int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL) |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10922 | ; |
| 10923 | return 0; |
| 10924 | } |
| 10925 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10926 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 255cc21 | 2011-03-28 22:07:26 +0200 | [diff] [blame] | 10927 | ALSALIBS="-lasound" |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 10928 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 10929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10930 | fi |
| 10931 | |
| 10932 | fi |
| 10933 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10934 | if test "x$with_oss" != xno |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10935 | then |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10936 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10937 | if test -f /etc/oss.conf |
| 10938 | then |
| 10939 | . /etc/oss.conf |
| 10940 | fi |
| 10941 | ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include" |
| 10942 | CPPFLAGS="$CPPFLAGS $ac_oss_incl" |
| 10943 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
| 10944 | if test "x$ac_cv_header_sys_soundcard_h" = xyes; then : |
| 10945 | ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h> |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10946 | " |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10947 | if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then : |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10948 | |
| 10949 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10950 | #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1 |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10951 | _ACEOF |
| 10952 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10953 | OSS4INCL="$ac_oss_incl" |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10954 | |
| 10955 | fi |
| 10956 | |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 10957 | fi |
| 10958 | |
| 10959 | |
| 10960 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10961 | if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes |
Andrew Eikum | be33232 | 2011-04-27 09:12:36 -0500 | [diff] [blame] | 10962 | then |
| 10963 | as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported." |
| 10964 | fi |
| 10965 | fi |
| 10966 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10967 | |
Alexandre Julliard | 7348214 | 2005-08-03 19:21:04 +0000 | [diff] [blame] | 10968 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" |
| 10969 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10971 | $as_echo_n "checking for -lcapi20... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 10972 | if ${ac_cv_lib_soname_capi20+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 10973 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10974 | else |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10975 | ac_check_soname_save_LIBS=$LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10976 | LIBS="-lcapi20 $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10978 | /* end confdefs.h. */ |
| 10979 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10980 | /* Override any GCC internal prototype to avoid an error. |
| 10981 | Use char because int might match the return type of a GCC |
| 10982 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10983 | #ifdef __cplusplus |
| 10984 | extern "C" |
| 10985 | #endif |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10986 | char capi20_register (); |
| 10987 | int |
| 10988 | main () |
| 10989 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 10990 | return capi20_register (); |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 10991 | ; |
| 10992 | return 0; |
| 10993 | } |
| 10994 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 10995 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10996 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 10997 | dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 10998 | dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep "libcapi20\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 10999 | *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11000 | esac |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11001 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11002 | rm -f core conftest.err conftest.$ac_objext \ |
| 11003 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11004 | LIBS=$ac_check_soname_save_LIBS |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11005 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11006 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
| 11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11008 | $as_echo "not found" >&6; } |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11009 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11010 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11012 | $as_echo "$ac_cv_lib_soname_capi20" >&6; } |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11013 | |
| 11014 | cat >>confdefs.h <<_ACEOF |
| 11015 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11016 | _ACEOF |
| 11017 | |
Alexandre Julliard | 3336e9b | 2007-07-02 17:29:17 +0200 | [diff] [blame] | 11018 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11019 | fi |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11020 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11021 | if test "x$ac_cv_lib_soname_capi20" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11022 | case "x$with_capi" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11023 | x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11024 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11025 | *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11026 | This is an error since --with-capi was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11027 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 11028 | fi |
| 11029 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11030 | CUPSINCL="" |
| 11031 | |
| 11032 | if test "x$with_cups" != "xno" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11033 | then |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11034 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11035 | ac_cups_cflags=`cups-config --cflags 2>/dev/null` |
Alexandre Julliard | a991a56 | 2008-07-28 12:04:46 +0200 | [diff] [blame] | 11036 | ac_cups_libs=`cups-config --ldflags 2>/dev/null` |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11037 | CPPFLAGS="$CPPFLAGS $ac_cups_cflags" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11038 | for ac_header in cups/cups.h |
| 11039 | do : |
| 11040 | ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11041 | if test "x$ac_cv_header_cups_cups_h" = xyes; then : |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11042 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11043 | #define HAVE_CUPS_CUPS_H 1 |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11044 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11046 | $as_echo_n "checking for -lcups... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11047 | if ${ac_cv_lib_soname_cups+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11048 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11049 | else |
| 11050 | ac_check_soname_save_LIBS=$LIBS |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11051 | LIBS="-lcups $ac_cups_libs $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11053 | /* end confdefs.h. */ |
| 11054 | |
| 11055 | /* Override any GCC internal prototype to avoid an error. |
| 11056 | Use char because int might match the return type of a GCC |
| 11057 | builtin and then its argument prototype would still apply. */ |
| 11058 | #ifdef __cplusplus |
| 11059 | extern "C" |
| 11060 | #endif |
| 11061 | char cupsGetDefault (); |
| 11062 | int |
| 11063 | main () |
| 11064 | { |
| 11065 | return cupsGetDefault (); |
| 11066 | ; |
| 11067 | return 0; |
| 11068 | } |
| 11069 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11070 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11071 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11072 | dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11073 | dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep "libcups\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11074 | *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11075 | esac |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11076 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11077 | rm -f core conftest.err conftest.$ac_objext \ |
| 11078 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11079 | LIBS=$ac_check_soname_save_LIBS |
| 11080 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11081 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
| 11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11083 | $as_echo "not found" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11084 | |
| 11085 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11087 | $as_echo "$ac_cv_lib_soname_cups" >&6; } |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11088 | |
| 11089 | cat >>confdefs.h <<_ACEOF |
| 11090 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 11091 | _ACEOF |
| 11092 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11093 | CUPSINCL="$ac_cups_cflags" |
| 11094 | fi |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11095 | fi |
| 11096 | |
Francois Gouget | 289ea33 | 2008-07-24 16:09:07 +0200 | [diff] [blame] | 11097 | done |
| 11098 | |
| 11099 | CPPFLAGS="$ac_save_CPPFLAGS" |
Alexandre Julliard | 702d355 | 2007-07-02 17:30:44 +0200 | [diff] [blame] | 11100 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11101 | if test "x$ac_cv_lib_soname_cups" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11102 | case "x$with_cups" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11103 | x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11104 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11105 | *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11106 | This is an error since --with-cups was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11107 | esac |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 11108 | fi |
| 11109 | |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11110 | if test "$ac_cv_header_jack_jack_h" = "yes" |
| 11111 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11113 | $as_echo_n "checking for -ljack... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11114 | if ${ac_cv_lib_soname_jack+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11115 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11116 | else |
| 11117 | ac_check_soname_save_LIBS=$LIBS |
| 11118 | LIBS="-ljack $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11120 | /* end confdefs.h. */ |
| 11121 | |
| 11122 | /* Override any GCC internal prototype to avoid an error. |
| 11123 | Use char because int might match the return type of a GCC |
| 11124 | builtin and then its argument prototype would still apply. */ |
| 11125 | #ifdef __cplusplus |
| 11126 | extern "C" |
| 11127 | #endif |
| 11128 | char jack_client_new (); |
| 11129 | int |
| 11130 | main () |
| 11131 | { |
| 11132 | return jack_client_new (); |
| 11133 | ; |
| 11134 | return 0; |
| 11135 | } |
| 11136 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11137 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11138 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11139 | dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Francois Gouget | 90a6fb0 | 2008-07-11 17:47:23 +0200 | [diff] [blame] | 11140 | dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11141 | *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11142 | esac |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11143 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11144 | rm -f core conftest.err conftest.$ac_objext \ |
| 11145 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11146 | LIBS=$ac_check_soname_save_LIBS |
| 11147 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11148 | if test "x$ac_cv_lib_soname_jack" = "x"; then : |
| 11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11150 | $as_echo "not found" >&6; } |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11151 | |
| 11152 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11154 | $as_echo "$ac_cv_lib_soname_jack" >&6; } |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11155 | |
| 11156 | cat >>confdefs.h <<_ACEOF |
| 11157 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 11158 | _ACEOF |
| 11159 | |
| 11160 | |
| 11161 | fi |
Alexandre Julliard | 34200c3 | 2007-07-02 17:31:19 +0200 | [diff] [blame] | 11162 | fi |
| 11163 | |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11164 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 11165 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11167 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11168 | if ${ac_cv_lib_soname_fontconfig+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11169 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11170 | else |
| 11171 | ac_check_soname_save_LIBS=$LIBS |
| 11172 | LIBS="-lfontconfig $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11174 | /* end confdefs.h. */ |
| 11175 | |
| 11176 | /* Override any GCC internal prototype to avoid an error. |
| 11177 | Use char because int might match the return type of a GCC |
| 11178 | builtin and then its argument prototype would still apply. */ |
| 11179 | #ifdef __cplusplus |
| 11180 | extern "C" |
| 11181 | #endif |
| 11182 | char FcInit (); |
| 11183 | int |
| 11184 | main () |
| 11185 | { |
| 11186 | return FcInit (); |
| 11187 | ; |
| 11188 | return 0; |
| 11189 | } |
| 11190 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11191 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11192 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11193 | dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11194 | dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11195 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11196 | esac |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11197 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11198 | rm -f core conftest.err conftest.$ac_objext \ |
| 11199 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11200 | LIBS=$ac_check_soname_save_LIBS |
| 11201 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11202 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11204 | $as_echo "not found" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11205 | |
| 11206 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11208 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11209 | |
| 11210 | cat >>confdefs.h <<_ACEOF |
| 11211 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11212 | _ACEOF |
| 11213 | |
| 11214 | |
| 11215 | fi |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11216 | elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno" |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11217 | then |
| 11218 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11219 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11220 | $as_unset ac_cv_header_fontconfig_fontconfig_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11221 | for ac_header in fontconfig/fontconfig.h |
| 11222 | do : |
| 11223 | ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11224 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11225 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11226 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11227 | _ACEOF |
| 11228 | |
| 11229 | fi |
| 11230 | |
| 11231 | done |
| 11232 | |
| 11233 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11234 | if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes" |
| 11235 | then |
| 11236 | FONTCONFIGINCL="$X_CFLAGS" |
| 11237 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11239 | $as_echo_n "checking for -lfontconfig... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11240 | if ${ac_cv_lib_soname_fontconfig+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11241 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11242 | else |
| 11243 | ac_check_soname_save_LIBS=$LIBS |
| 11244 | LIBS="-lfontconfig $X_LIBS $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11246 | /* end confdefs.h. */ |
| 11247 | |
| 11248 | /* Override any GCC internal prototype to avoid an error. |
| 11249 | Use char because int might match the return type of a GCC |
| 11250 | builtin and then its argument prototype would still apply. */ |
| 11251 | #ifdef __cplusplus |
| 11252 | extern "C" |
| 11253 | #endif |
| 11254 | char FcInit (); |
| 11255 | int |
| 11256 | main () |
| 11257 | { |
| 11258 | return FcInit (); |
| 11259 | ; |
| 11260 | return 0; |
| 11261 | } |
| 11262 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11263 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11264 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11265 | dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11266 | dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11267 | *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11268 | esac |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11269 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11270 | rm -f core conftest.err conftest.$ac_objext \ |
| 11271 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11272 | LIBS=$ac_check_soname_save_LIBS |
| 11273 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11274 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
| 11275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11276 | $as_echo "not found" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11277 | |
| 11278 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11280 | $as_echo "$ac_cv_lib_soname_fontconfig" >&6; } |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11281 | |
| 11282 | cat >>confdefs.h <<_ACEOF |
| 11283 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 11284 | _ACEOF |
| 11285 | |
| 11286 | |
| 11287 | fi |
Alexandre Julliard | 5c07673 | 2007-10-17 17:04:01 +0200 | [diff] [blame] | 11288 | fi |
Alexandre Julliard | ccd5f28 | 2007-07-02 17:31:48 +0200 | [diff] [blame] | 11289 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11290 | if test "x$ac_cv_lib_soname_fontconfig" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11291 | case "x$with_fontconfig" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11292 | x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11293 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11294 | *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11295 | This is an error since --with-fontconfig was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11296 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11297 | fi |
| 11298 | |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11299 | if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes" |
| 11300 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11302 | $as_echo_n "checking for -lssl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11303 | if ${ac_cv_lib_soname_ssl+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11304 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11305 | else |
| 11306 | ac_check_soname_save_LIBS=$LIBS |
| 11307 | LIBS="-lssl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11309 | /* end confdefs.h. */ |
| 11310 | |
| 11311 | /* Override any GCC internal prototype to avoid an error. |
| 11312 | Use char because int might match the return type of a GCC |
| 11313 | builtin and then its argument prototype would still apply. */ |
| 11314 | #ifdef __cplusplus |
| 11315 | extern "C" |
| 11316 | #endif |
| 11317 | char SSL_library_init (); |
| 11318 | int |
| 11319 | main () |
| 11320 | { |
| 11321 | return SSL_library_init (); |
| 11322 | ; |
| 11323 | return 0; |
| 11324 | } |
| 11325 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11326 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11327 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11328 | dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11329 | dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11330 | *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11331 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11332 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11333 | rm -f core conftest.err conftest.$ac_objext \ |
| 11334 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11335 | LIBS=$ac_check_soname_save_LIBS |
| 11336 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11337 | if test "x$ac_cv_lib_soname_ssl" = "x"; then : |
| 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11339 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11340 | |
| 11341 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11343 | $as_echo "$ac_cv_lib_soname_ssl" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11344 | |
| 11345 | cat >>confdefs.h <<_ACEOF |
| 11346 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 11347 | _ACEOF |
| 11348 | |
| 11349 | |
| 11350 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11352 | $as_echo_n "checking for -lcrypto... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11353 | if ${ac_cv_lib_soname_crypto+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11354 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11355 | else |
| 11356 | ac_check_soname_save_LIBS=$LIBS |
| 11357 | LIBS="-lcrypto $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11359 | /* end confdefs.h. */ |
| 11360 | |
| 11361 | /* Override any GCC internal prototype to avoid an error. |
| 11362 | Use char because int might match the return type of a GCC |
| 11363 | builtin and then its argument prototype would still apply. */ |
| 11364 | #ifdef __cplusplus |
| 11365 | extern "C" |
| 11366 | #endif |
| 11367 | char BIO_new_socket (); |
| 11368 | int |
| 11369 | main () |
| 11370 | { |
| 11371 | return BIO_new_socket (); |
| 11372 | ; |
| 11373 | return 0; |
| 11374 | } |
| 11375 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11376 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11377 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11378 | dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11379 | dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11380 | *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11381 | esac |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11382 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11383 | rm -f core conftest.err conftest.$ac_objext \ |
| 11384 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11385 | LIBS=$ac_check_soname_save_LIBS |
| 11386 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11387 | if test "x$ac_cv_lib_soname_crypto" = "x"; then : |
| 11388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11389 | $as_echo "not found" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11390 | |
| 11391 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11393 | $as_echo "$ac_cv_lib_soname_crypto" >&6; } |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11394 | |
| 11395 | cat >>confdefs.h <<_ACEOF |
| 11396 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 11397 | _ACEOF |
| 11398 | |
| 11399 | |
| 11400 | fi |
Alexandre Julliard | f91909b | 2007-07-02 17:32:09 +0200 | [diff] [blame] | 11401 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11402 | if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11403 | case "x$with_openssl" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11404 | x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11405 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11406 | *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11407 | This is an error since --with-openssl was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11408 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11409 | fi |
| 11410 | |
Maarten Lankhorst | c186d8a | 2009-08-05 11:35:50 +0200 | [diff] [blame] | 11411 | if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes" |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11412 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11414 | $as_echo_n "checking for -lgsm... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11415 | if ${ac_cv_lib_soname_gsm+:} false; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11416 | $as_echo_n "(cached) " >&6 |
| 11417 | else |
| 11418 | ac_check_soname_save_LIBS=$LIBS |
| 11419 | LIBS="-lgsm $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11421 | /* end confdefs.h. */ |
| 11422 | |
| 11423 | /* Override any GCC internal prototype to avoid an error. |
| 11424 | Use char because int might match the return type of a GCC |
| 11425 | builtin and then its argument prototype would still apply. */ |
| 11426 | #ifdef __cplusplus |
| 11427 | extern "C" |
| 11428 | #endif |
| 11429 | char gsm_create (); |
| 11430 | int |
| 11431 | main () |
| 11432 | { |
| 11433 | return gsm_create (); |
| 11434 | ; |
| 11435 | return 0; |
| 11436 | } |
| 11437 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11438 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11439 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11440 | dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11441 | dylib) ac_cv_lib_soname_gsm=`otool -L conftest$ac_exeext | grep "libgsm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgsm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11442 | *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11443 | esac |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11444 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11445 | rm -f core conftest.err conftest.$ac_objext \ |
| 11446 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11447 | LIBS=$ac_check_soname_save_LIBS |
| 11448 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11449 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
| 11450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11451 | $as_echo "not found" >&6; } |
| 11452 | |
| 11453 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5 |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11455 | $as_echo "$ac_cv_lib_soname_gsm" >&6; } |
| 11456 | |
| 11457 | cat >>confdefs.h <<_ACEOF |
| 11458 | #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm" |
| 11459 | _ACEOF |
| 11460 | |
| 11461 | |
| 11462 | fi |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11463 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11464 | if test "x$ac_cv_lib_soname_gsm" = "x"; then : |
Alexandre Julliard | 6ce32e0 | 2009-08-19 15:53:04 +0200 | [diff] [blame] | 11465 | case "x$with_gsm" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11466 | x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11467 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11468 | *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11469 | This is an error since --with-gsm was requested." "$LINENO" 5 ;; |
Maarten Lankhorst | 58b5a3f | 2009-08-03 15:48:32 +0200 | [diff] [blame] | 11470 | esac |
| 11471 | fi |
| 11472 | |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11473 | if test "$ac_cv_header_jpeglib_h" = "yes" |
| 11474 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11476 | $as_echo_n "checking for -ljpeg... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11477 | if ${ac_cv_lib_soname_jpeg+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11478 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11479 | else |
| 11480 | ac_check_soname_save_LIBS=$LIBS |
| 11481 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11483 | /* end confdefs.h. */ |
| 11484 | |
| 11485 | /* Override any GCC internal prototype to avoid an error. |
| 11486 | Use char because int might match the return type of a GCC |
| 11487 | builtin and then its argument prototype would still apply. */ |
| 11488 | #ifdef __cplusplus |
| 11489 | extern "C" |
| 11490 | #endif |
| 11491 | char jpeg_start_decompress (); |
| 11492 | int |
| 11493 | main () |
| 11494 | { |
| 11495 | return jpeg_start_decompress (); |
| 11496 | ; |
| 11497 | return 0; |
| 11498 | } |
| 11499 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11500 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11501 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11502 | dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11503 | dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep "libjpeg\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11504 | *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11505 | esac |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11506 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11507 | rm -f core conftest.err conftest.$ac_objext \ |
| 11508 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11509 | LIBS=$ac_check_soname_save_LIBS |
| 11510 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11511 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
| 11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11513 | $as_echo "not found" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11514 | |
| 11515 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11517 | $as_echo "$ac_cv_lib_soname_jpeg" >&6; } |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11518 | |
| 11519 | cat >>confdefs.h <<_ACEOF |
| 11520 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 11521 | _ACEOF |
| 11522 | |
| 11523 | |
| 11524 | fi |
Alexandre Julliard | d0fddf4 | 2007-07-02 19:53:14 +0200 | [diff] [blame] | 11525 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11526 | if test "x$ac_cv_lib_soname_jpeg" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11527 | case "x$with_jpeg" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11528 | x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11529 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11530 | *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11531 | This is an error since --with-jpeg was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11532 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11533 | fi |
| 11534 | |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11535 | if test "$ac_cv_header_png_h" = "yes" |
| 11536 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11538 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11539 | if ${ac_cv_lib_soname_png+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11540 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11541 | else |
| 11542 | ac_check_soname_save_LIBS=$LIBS |
Austin English | fe8879e | 2008-12-28 19:10:19 -0600 | [diff] [blame] | 11543 | LIBS="-lpng -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11545 | /* end confdefs.h. */ |
| 11546 | |
| 11547 | /* Override any GCC internal prototype to avoid an error. |
| 11548 | Use char because int might match the return type of a GCC |
| 11549 | builtin and then its argument prototype would still apply. */ |
| 11550 | #ifdef __cplusplus |
| 11551 | extern "C" |
| 11552 | #endif |
| 11553 | char png_create_read_struct (); |
| 11554 | int |
| 11555 | main () |
| 11556 | { |
| 11557 | return png_create_read_struct (); |
| 11558 | ; |
| 11559 | return 0; |
| 11560 | } |
| 11561 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11562 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11563 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11564 | dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11565 | dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11566 | *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11567 | esac |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11568 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11569 | rm -f core conftest.err conftest.$ac_objext \ |
| 11570 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11571 | LIBS=$ac_check_soname_save_LIBS |
| 11572 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11573 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11575 | $as_echo "not found" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11576 | |
| 11577 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11579 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11580 | |
| 11581 | cat >>confdefs.h <<_ACEOF |
| 11582 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11583 | _ACEOF |
| 11584 | |
| 11585 | |
| 11586 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11588 | $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11589 | if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then : |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11590 | $as_echo_n "(cached) " >&6 |
| 11591 | else |
| 11592 | ac_check_lib_save_LIBS=$LIBS |
| 11593 | LIBS="-lpng -lm -lz $LIBS" |
| 11594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11595 | /* end confdefs.h. */ |
| 11596 | |
| 11597 | /* Override any GCC internal prototype to avoid an error. |
| 11598 | Use char because int might match the return type of a GCC |
| 11599 | builtin and then its argument prototype would still apply. */ |
| 11600 | #ifdef __cplusplus |
| 11601 | extern "C" |
| 11602 | #endif |
| 11603 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11604 | int |
| 11605 | main () |
| 11606 | { |
| 11607 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11608 | ; |
| 11609 | return 0; |
| 11610 | } |
| 11611 | _ACEOF |
| 11612 | if ac_fn_c_try_link "$LINENO"; then : |
| 11613 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11614 | else |
| 11615 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11616 | fi |
| 11617 | rm -f core conftest.err conftest.$ac_objext \ |
| 11618 | conftest$ac_exeext conftest.$ac_ext |
| 11619 | LIBS=$ac_check_lib_save_LIBS |
| 11620 | fi |
| 11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11622 | $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11623 | if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then : |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11624 | |
| 11625 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11626 | |
| 11627 | |
| 11628 | fi |
| 11629 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11630 | elif test -n "$X_CFLAGS" -a "x$with_png" != "xno" |
| 11631 | then |
| 11632 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11633 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11634 | $as_unset ac_cv_header_png_h |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11635 | for ac_header in png.h |
| 11636 | do : |
| 11637 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11638 | if test "x$ac_cv_header_png_h" = xyes; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11639 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11640 | #define HAVE_PNG_H 1 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11641 | _ACEOF |
| 11642 | |
| 11643 | fi |
| 11644 | |
| 11645 | done |
| 11646 | |
| 11647 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11648 | if test "$ac_cv_header_png_h" = "yes" |
| 11649 | then |
| 11650 | PNGINCL="$X_CFLAGS" |
| 11651 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11653 | $as_echo_n "checking for -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11654 | if ${ac_cv_lib_soname_png+:} false; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11655 | $as_echo_n "(cached) " >&6 |
| 11656 | else |
| 11657 | ac_check_soname_save_LIBS=$LIBS |
| 11658 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11660 | /* end confdefs.h. */ |
| 11661 | |
| 11662 | /* Override any GCC internal prototype to avoid an error. |
| 11663 | Use char because int might match the return type of a GCC |
| 11664 | builtin and then its argument prototype would still apply. */ |
| 11665 | #ifdef __cplusplus |
| 11666 | extern "C" |
| 11667 | #endif |
| 11668 | char png_create_read_struct (); |
| 11669 | int |
| 11670 | main () |
| 11671 | { |
| 11672 | return png_create_read_struct (); |
| 11673 | ; |
| 11674 | return 0; |
| 11675 | } |
| 11676 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11677 | if ac_fn_c_try_link "$LINENO"; then : |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11678 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 11679 | dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11680 | dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11681 | *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11682 | esac |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11683 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11684 | rm -f core conftest.err conftest.$ac_objext \ |
| 11685 | conftest$ac_exeext conftest.$ac_ext |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11686 | LIBS=$ac_check_soname_save_LIBS |
| 11687 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11688 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
| 11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11690 | $as_echo "not found" >&6; } |
| 11691 | |
| 11692 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5 |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11694 | $as_echo "$ac_cv_lib_soname_png" >&6; } |
| 11695 | |
| 11696 | cat >>confdefs.h <<_ACEOF |
| 11697 | #define SONAME_LIBPNG "$ac_cv_lib_soname_png" |
| 11698 | _ACEOF |
| 11699 | |
| 11700 | |
| 11701 | fi |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 |
| 11703 | $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11704 | if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then : |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11705 | $as_echo_n "(cached) " >&6 |
| 11706 | else |
| 11707 | ac_check_lib_save_LIBS=$LIBS |
| 11708 | LIBS="-lpng $X_LIBS -lm -lz $LIBS" |
| 11709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11710 | /* end confdefs.h. */ |
| 11711 | |
| 11712 | /* Override any GCC internal prototype to avoid an error. |
| 11713 | Use char because int might match the return type of a GCC |
| 11714 | builtin and then its argument prototype would still apply. */ |
| 11715 | #ifdef __cplusplus |
| 11716 | extern "C" |
| 11717 | #endif |
| 11718 | char png_set_expand_gray_1_2_4_to_8 (); |
| 11719 | int |
| 11720 | main () |
| 11721 | { |
| 11722 | return png_set_expand_gray_1_2_4_to_8 (); |
| 11723 | ; |
| 11724 | return 0; |
| 11725 | } |
| 11726 | _ACEOF |
| 11727 | if ac_fn_c_try_link "$LINENO"; then : |
| 11728 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes |
| 11729 | else |
| 11730 | ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no |
| 11731 | fi |
| 11732 | rm -f core conftest.err conftest.$ac_objext \ |
| 11733 | conftest$ac_exeext conftest.$ac_ext |
| 11734 | LIBS=$ac_check_lib_save_LIBS |
| 11735 | fi |
| 11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 |
| 11737 | $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11738 | if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then : |
Marcus Meissner | 615e0e6 | 2010-02-27 23:13:21 +0100 | [diff] [blame] | 11739 | $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h |
| 11740 | |
| 11741 | fi |
| 11742 | |
Joerg-Cyril.Hoehle@t-systems.com | 85b6189 | 2009-05-23 12:39:50 +0200 | [diff] [blame] | 11743 | fi |
Alexandre Julliard | 0030215 | 2007-07-02 19:54:00 +0200 | [diff] [blame] | 11744 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11745 | if test "x$ac_cv_lib_soname_png" = "x"; then : |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11746 | case "x$with_png" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11747 | x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11748 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11749 | *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11750 | This is an error since --with-png was requested." "$LINENO" 5 ;; |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 11751 | esac |
Alexandre Julliard | 7f67496 | 2007-07-10 15:22:18 +0200 | [diff] [blame] | 11752 | fi |
| 11753 | |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11754 | if test "$ac_cv_header_tiffio_h" = "yes" |
| 11755 | then |
| 11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5 |
| 11757 | $as_echo_n "checking for -ltiff... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11758 | if ${ac_cv_lib_soname_tiff+:} false; then : |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11759 | $as_echo_n "(cached) " >&6 |
| 11760 | else |
| 11761 | ac_check_soname_save_LIBS=$LIBS |
| 11762 | LIBS="-ltiff $LIBS" |
| 11763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11764 | /* end confdefs.h. */ |
| 11765 | |
| 11766 | /* Override any GCC internal prototype to avoid an error. |
| 11767 | Use char because int might match the return type of a GCC |
| 11768 | builtin and then its argument prototype would still apply. */ |
| 11769 | #ifdef __cplusplus |
| 11770 | extern "C" |
| 11771 | #endif |
| 11772 | char TIFFClientOpen (); |
| 11773 | int |
| 11774 | main () |
| 11775 | { |
| 11776 | return TIFFClientOpen (); |
| 11777 | ; |
| 11778 | return 0; |
| 11779 | } |
| 11780 | _ACEOF |
| 11781 | if ac_fn_c_try_link "$LINENO"; then : |
| 11782 | case "$LIBEXT" in |
| 11783 | dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11784 | dylib) ac_cv_lib_soname_tiff=`otool -L conftest$ac_exeext | grep "libtiff\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libtiff\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11785 | *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11786 | esac |
| 11787 | fi |
| 11788 | rm -f core conftest.err conftest.$ac_objext \ |
| 11789 | conftest$ac_exeext conftest.$ac_ext |
| 11790 | LIBS=$ac_check_soname_save_LIBS |
| 11791 | fi |
| 11792 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11794 | $as_echo "not found" >&6; } |
| 11795 | |
| 11796 | else |
| 11797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5 |
| 11798 | $as_echo "$ac_cv_lib_soname_tiff" >&6; } |
| 11799 | |
| 11800 | cat >>confdefs.h <<_ACEOF |
| 11801 | #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff" |
| 11802 | _ACEOF |
| 11803 | |
| 11804 | |
| 11805 | fi |
| 11806 | fi |
| 11807 | if test "x$ac_cv_lib_soname_tiff" = "x"; then : |
| 11808 | case "x$with_tiff" in |
| 11809 | x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;; |
| 11810 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11811 | *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11812 | This is an error since --with-tiff was requested." "$LINENO" 5 ;; |
Vincent Povirk | 73cd569 | 2010-03-08 17:07:29 -0600 | [diff] [blame] | 11813 | esac |
| 11814 | fi |
| 11815 | |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11816 | if test "$ac_cv_header_mpg123_h" = "yes" |
| 11817 | then |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5 |
| 11819 | $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11820 | if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11821 | $as_echo_n "(cached) " >&6 |
| 11822 | else |
| 11823 | ac_check_lib_save_LIBS=$LIBS |
| 11824 | LIBS="-lmpg123 $LIBS" |
| 11825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11826 | /* end confdefs.h. */ |
| 11827 | |
| 11828 | /* Override any GCC internal prototype to avoid an error. |
| 11829 | Use char because int might match the return type of a GCC |
| 11830 | builtin and then its argument prototype would still apply. */ |
| 11831 | #ifdef __cplusplus |
| 11832 | extern "C" |
| 11833 | #endif |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11834 | char mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11835 | int |
| 11836 | main () |
| 11837 | { |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11838 | return mpg123_feed (); |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11839 | ; |
| 11840 | return 0; |
| 11841 | } |
| 11842 | _ACEOF |
| 11843 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11844 | ac_cv_lib_mpg123_mpg123_feed=yes |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11845 | else |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11846 | ac_cv_lib_mpg123_mpg123_feed=no |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11847 | fi |
| 11848 | rm -f core conftest.err conftest.$ac_objext \ |
| 11849 | conftest$ac_exeext conftest.$ac_ext |
| 11850 | LIBS=$ac_check_lib_save_LIBS |
| 11851 | fi |
Alexandre Julliard | 7bf8d05 | 2009-08-29 12:20:25 +0200 | [diff] [blame] | 11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5 |
| 11853 | $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11854 | if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11855 | LIBMPG123="-lmpg123" |
| 11856 | |
| 11857 | fi |
| 11858 | |
| 11859 | fi |
Aric Stewart | 4430ab4 | 2010-03-17 10:58:32 -0500 | [diff] [blame] | 11860 | if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then : |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11861 | case "x$with_mpg123" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11862 | x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;; |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11863 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11864 | *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11865 | This is an error since --with-mpg123 was requested." "$LINENO" 5 ;; |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11866 | esac |
| 11867 | fi |
Kristofer Henriksson | c58eff6 | 2010-05-24 15:04:42 -0400 | [diff] [blame] | 11868 | test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no} |
Aric Stewart | db71d7c | 2009-08-19 09:37:48 -0500 | [diff] [blame] | 11869 | |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11870 | if test "$ac_cv_header_AL_al_h" = "yes" |
| 11871 | then |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5 |
| 11873 | $as_echo_n "checking for -lopenal... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11874 | if ${ac_cv_lib_soname_openal+:} false; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11875 | $as_echo_n "(cached) " >&6 |
| 11876 | else |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11877 | ac_check_soname_save_LIBS=$LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11878 | LIBS="-lopenal $LIBS" |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11880 | /* end confdefs.h. */ |
| 11881 | |
| 11882 | /* Override any GCC internal prototype to avoid an error. |
| 11883 | Use char because int might match the return type of a GCC |
| 11884 | builtin and then its argument prototype would still apply. */ |
| 11885 | #ifdef __cplusplus |
| 11886 | extern "C" |
| 11887 | #endif |
| 11888 | char alGetSource3i (); |
| 11889 | int |
| 11890 | main () |
| 11891 | { |
| 11892 | return alGetSource3i (); |
| 11893 | ; |
| 11894 | return 0; |
| 11895 | } |
| 11896 | _ACEOF |
| 11897 | if ac_fn_c_try_link "$LINENO"; then : |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11898 | case "$LIBEXT" in |
| 11899 | dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
| 11900 | dylib) ac_cv_lib_soname_openal=`otool -L conftest$ac_exeext | grep "libopenal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libopenal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 11901 | *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 11902 | esac |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11903 | fi |
| 11904 | rm -f core conftest.err conftest.$ac_objext \ |
| 11905 | conftest$ac_exeext conftest.$ac_ext |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11906 | LIBS=$ac_check_soname_save_LIBS |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11907 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11908 | if test "x$ac_cv_lib_soname_openal" = "x"; then : |
| 11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11910 | $as_echo "not found" >&6; } |
| 11911 | |
| 11912 | else |
| 11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5 |
| 11914 | $as_echo "$ac_cv_lib_soname_openal" >&6; } |
| 11915 | |
| 11916 | cat >>confdefs.h <<_ACEOF |
| 11917 | #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal" |
| 11918 | _ACEOF |
| 11919 | |
| 11920 | LIBOPENAL="-lopenal" |
| 11921 | |
| 11922 | ac_cv_lib_openal=yes |
| 11923 | |
| 11924 | cat >>confdefs.h <<_ACEOF |
| 11925 | #define HAVE_OPENAL 1 |
| 11926 | _ACEOF |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11927 | |
| 11928 | fi |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11929 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11930 | if test "x$ac_cv_lib_openal" != xyes; then : |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11931 | case "x$with_openal" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 11932 | x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;; |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11933 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 11934 | *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11935 | This is an error since --with-openal was requested." "$LINENO" 5 ;; |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11936 | esac |
| 11937 | fi |
Maarten Lankhorst | d435499 | 2009-12-09 11:52:09 +0100 | [diff] [blame] | 11938 | test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no} |
Chris Robinson | 862965f | 2009-08-25 03:26:35 -0700 | [diff] [blame] | 11939 | |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11940 | if test "$ac_cv_header_kstat_h" = "yes" |
| 11941 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11943 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11944 | if ${ac_cv_lib_kstat_kstat_open+:} false; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11945 | $as_echo_n "(cached) " >&6 |
| 11946 | else |
| 11947 | ac_check_lib_save_LIBS=$LIBS |
| 11948 | LIBS="-lkstat $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11950 | /* end confdefs.h. */ |
| 11951 | |
| 11952 | /* Override any GCC internal prototype to avoid an error. |
| 11953 | Use char because int might match the return type of a GCC |
| 11954 | builtin and then its argument prototype would still apply. */ |
| 11955 | #ifdef __cplusplus |
| 11956 | extern "C" |
| 11957 | #endif |
| 11958 | char kstat_open (); |
| 11959 | int |
| 11960 | main () |
| 11961 | { |
| 11962 | return kstat_open (); |
| 11963 | ; |
| 11964 | return 0; |
| 11965 | } |
| 11966 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11967 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11968 | ac_cv_lib_kstat_kstat_open=yes |
| 11969 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11970 | ac_cv_lib_kstat_kstat_open=no |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11971 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11972 | rm -f core conftest.err conftest.$ac_objext \ |
| 11973 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11974 | LIBS=$ac_check_lib_save_LIBS |
| 11975 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11977 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11978 | if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then : |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11979 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11980 | $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h |
Alexandre Julliard | de1d7fb | 2009-03-05 18:45:32 +0100 | [diff] [blame] | 11981 | |
| 11982 | LIBKSTAT="-lkstat" |
| 11983 | |
| 11984 | fi |
| 11985 | |
| 11986 | fi |
| 11987 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11989 | $as_echo_n "checking for -lodbc... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 11990 | if ${ac_cv_lib_soname_odbc+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 11991 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11992 | else |
| 11993 | ac_check_soname_save_LIBS=$LIBS |
| 11994 | LIBS="-lodbc $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 11995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 11996 | /* end confdefs.h. */ |
| 11997 | |
| 11998 | /* Override any GCC internal prototype to avoid an error. |
| 11999 | Use char because int might match the return type of a GCC |
| 12000 | builtin and then its argument prototype would still apply. */ |
| 12001 | #ifdef __cplusplus |
| 12002 | extern "C" |
| 12003 | #endif |
| 12004 | char SQLConnect (); |
| 12005 | int |
| 12006 | main () |
| 12007 | { |
| 12008 | return SQLConnect (); |
| 12009 | ; |
| 12010 | return 0; |
| 12011 | } |
| 12012 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12013 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12014 | case "$LIBEXT" in |
Alexandre Goujon | 2b05c84 | 2010-03-01 21:39:39 +0100 | [diff] [blame] | 12015 | dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;; |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12016 | dylib) ac_cv_lib_soname_odbc=`otool -L conftest$ac_exeext | grep "libodbc\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libodbc\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
| 12017 | *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;; |
| 12018 | esac |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12019 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12020 | rm -f core conftest.err conftest.$ac_objext \ |
| 12021 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12022 | LIBS=$ac_check_soname_save_LIBS |
| 12023 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12024 | if test "x$ac_cv_lib_soname_odbc" = "x"; then : |
| 12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12026 | $as_echo "not found" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12027 | cat >>confdefs.h <<_ACEOF |
| 12028 | #define SONAME_LIBODBC "libodbc.$LIBEXT" |
| 12029 | _ACEOF |
| 12030 | |
| 12031 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12033 | $as_echo "$ac_cv_lib_soname_odbc" >&6; } |
Alexandre Julliard | 84f8ab6 | 2008-01-07 17:16:29 +0100 | [diff] [blame] | 12034 | |
| 12035 | cat >>confdefs.h <<_ACEOF |
| 12036 | #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc" |
| 12037 | _ACEOF |
| 12038 | |
| 12039 | |
| 12040 | fi |
| 12041 | |
Alexandre Julliard | 98cb21f | 2011-03-17 11:42:17 +0100 | [diff] [blame] | 12042 | test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no} |
| 12043 | test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no} |
| 12044 | test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no} |
| 12045 | test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no} |
| 12046 | test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no} |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 12047 | test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no} |
Alexandre Julliard | 98cb21f | 2011-03-17 11:42:17 +0100 | [diff] [blame] | 12048 | test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no} |
| 12049 | |
Michael Stefaniuc | a2f0750 | 2010-12-17 11:11:42 +0100 | [diff] [blame] | 12050 | if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \ |
Alexandre Julliard | f60a0f5 | 2011-05-02 20:06:49 +0200 | [diff] [blame] | 12051 | "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \ |
Michael Stefaniuc | a2f0750 | 2010-12-17 11:11:42 +0100 | [diff] [blame] | 12052 | "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 12053 | then |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 12054 | as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent." |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 12055 | fi |
| 12056 | |
| 12057 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12058 | EXTRACFLAGS="" |
| 12059 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12060 | if test "x${GCC}" = "xyes" |
| 12061 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 12062 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12063 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12065 | $as_echo_n "checking for gcc strength-reduce bug... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12066 | if ${ac_cv_c_gcc_strength_bug+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12067 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12068 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12069 | if test "$cross_compiling" = yes; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12070 | ac_cv_c_gcc_strength_bug="yes" |
| 12071 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12073 | /* end confdefs.h. */ |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12074 | int L[4] = {0,1,2,3}; |
| 12075 | int |
| 12076 | main () |
| 12077 | { |
| 12078 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12079 | unsigned int B = 3; |
| 12080 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12081 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12082 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 12083 | L[i] = 4; |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12084 | return (Array[1] != -2 || L[2] != 3) |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12085 | ; |
| 12086 | return 0; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12087 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12088 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12089 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12090 | ac_cv_c_gcc_strength_bug="no" |
| 12091 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12092 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12093 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12094 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12095 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12096 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 12097 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12098 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12100 | $as_echo "$ac_cv_c_gcc_strength_bug" >&6; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12101 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 12102 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12103 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12104 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12105 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12107 | $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12108 | if ${ac_cv_cflags__fno_builtin+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12109 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12110 | else |
| 12111 | ac_wine_try_cflags_saved=$CFLAGS |
| 12112 | CFLAGS="$CFLAGS -fno-builtin" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12114 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12115 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12116 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12117 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12118 | ac_cv_cflags__fno_builtin=yes |
| 12119 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12120 | ac_cv_cflags__fno_builtin=no |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12121 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12122 | rm -f core conftest.err conftest.$ac_objext \ |
| 12123 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12124 | CFLAGS=$ac_wine_try_cflags_saved |
| 12125 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12127 | $as_echo "$ac_cv_cflags__fno_builtin" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12128 | if test $ac_cv_cflags__fno_builtin = yes; then : |
Alexandre Julliard | 6538cb4 | 2008-09-22 11:51:02 +0200 | [diff] [blame] | 12129 | BUILTINFLAG="-fno-builtin" |
| 12130 | |
| 12131 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12133 | $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12134 | if ${ac_cv_cflags__fno_strict_aliasing+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12135 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12136 | else |
| 12137 | ac_wine_try_cflags_saved=$CFLAGS |
| 12138 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12140 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12141 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12142 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12143 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12144 | ac_cv_cflags__fno_strict_aliasing=yes |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12145 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12146 | ac_cv_cflags__fno_strict_aliasing=no |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12147 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12148 | rm -f core conftest.err conftest.$ac_objext \ |
| 12149 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12150 | CFLAGS=$ac_wine_try_cflags_saved |
| 12151 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12153 | $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12154 | if test $ac_cv_cflags__fno_strict_aliasing = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12155 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 12156 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12158 | $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12159 | if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12160 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12161 | else |
| 12162 | ac_wine_try_cflags_saved=$CFLAGS |
| 12163 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12165 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12166 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12167 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12168 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12169 | ac_cv_cflags__Wdeclaration_after_statement=yes |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12170 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12171 | ac_cv_cflags__Wdeclaration_after_statement=no |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12172 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12173 | rm -f core conftest.err conftest.$ac_objext \ |
| 12174 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f8cb48b | 2005-09-12 10:14:00 +0000 | [diff] [blame] | 12175 | CFLAGS=$ac_wine_try_cflags_saved |
| 12176 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12178 | $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12179 | if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then : |
Alexandre Julliard | 182d150 | 2006-08-25 13:22:33 +0200 | [diff] [blame] | 12180 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" |
| 12181 | fi |
Gerald Pfeifer | 8213f54 | 2011-05-08 02:53:23 +0200 | [diff] [blame] | 12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5 |
| 12183 | $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; } |
| 12184 | if ${ac_cv_cflags__Wempty_body+:} false; then : |
| 12185 | $as_echo_n "(cached) " >&6 |
| 12186 | else |
| 12187 | ac_wine_try_cflags_saved=$CFLAGS |
| 12188 | CFLAGS="$CFLAGS -Wempty-body" |
| 12189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12190 | /* end confdefs.h. */ |
| 12191 | int main(int argc, char **argv) { return 0; } |
| 12192 | _ACEOF |
| 12193 | if ac_fn_c_try_link "$LINENO"; then : |
| 12194 | ac_cv_cflags__Wempty_body=yes |
| 12195 | else |
| 12196 | ac_cv_cflags__Wempty_body=no |
| 12197 | fi |
| 12198 | rm -f core conftest.err conftest.$ac_objext \ |
| 12199 | conftest$ac_exeext conftest.$ac_ext |
| 12200 | CFLAGS=$ac_wine_try_cflags_saved |
| 12201 | fi |
| 12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5 |
| 12203 | $as_echo "$ac_cv_cflags__Wempty_body" >&6; } |
| 12204 | if test $ac_cv_cflags__Wempty_body = yes; then : |
| 12205 | EXTRACFLAGS="$EXTRACFLAGS -Wempty-body" |
| 12206 | fi |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5 |
| 12208 | $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12209 | if ${ac_cv_cflags__Wstrict_prototypes+:} false; then : |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12210 | $as_echo_n "(cached) " >&6 |
| 12211 | else |
| 12212 | ac_wine_try_cflags_saved=$CFLAGS |
| 12213 | CFLAGS="$CFLAGS -Wstrict-prototypes" |
| 12214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12215 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12216 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 295806f | 2009-10-07 13:46:06 +0200 | [diff] [blame] | 12217 | _ACEOF |
| 12218 | if ac_fn_c_try_link "$LINENO"; then : |
| 12219 | ac_cv_cflags__Wstrict_prototypes=yes |
| 12220 | else |
| 12221 | ac_cv_cflags__Wstrict_prototypes=no |
| 12222 | fi |
| 12223 | rm -f core conftest.err conftest.$ac_objext \ |
| 12224 | conftest$ac_exeext conftest.$ac_ext |
| 12225 | CFLAGS=$ac_wine_try_cflags_saved |
| 12226 | fi |
| 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5 |
| 12228 | $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; } |
| 12229 | if test $ac_cv_cflags__Wstrict_prototypes = yes; then : |
| 12230 | EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes" |
| 12231 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12233 | $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12234 | if ${ac_cv_cflags__Wtype_limits+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12235 | $as_echo_n "(cached) " >&6 |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12236 | else |
| 12237 | ac_wine_try_cflags_saved=$CFLAGS |
| 12238 | CFLAGS="$CFLAGS -Wtype-limits" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12240 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12241 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12242 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12243 | if ac_fn_c_try_link "$LINENO"; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12244 | ac_cv_cflags__Wtype_limits=yes |
| 12245 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12246 | ac_cv_cflags__Wtype_limits=no |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12247 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12248 | rm -f core conftest.err conftest.$ac_objext \ |
| 12249 | conftest$ac_exeext conftest.$ac_ext |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12250 | CFLAGS=$ac_wine_try_cflags_saved |
| 12251 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12253 | $as_echo "$ac_cv_cflags__Wtype_limits" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12254 | if test $ac_cv_cflags__Wtype_limits = yes; then : |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12255 | EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits" |
| 12256 | fi |
Gerald Pfeifer | 3ec82c5 | 2011-04-10 20:38:52 +0200 | [diff] [blame] | 12257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5 |
| 12258 | $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12259 | if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then : |
Gerald Pfeifer | 3ec82c5 | 2011-04-10 20:38:52 +0200 | [diff] [blame] | 12260 | $as_echo_n "(cached) " >&6 |
| 12261 | else |
| 12262 | ac_wine_try_cflags_saved=$CFLAGS |
| 12263 | CFLAGS="$CFLAGS -Wunused-but-set-parameter" |
| 12264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12265 | /* end confdefs.h. */ |
| 12266 | int main(int argc, char **argv) { return 0; } |
| 12267 | _ACEOF |
| 12268 | if ac_fn_c_try_link "$LINENO"; then : |
| 12269 | ac_cv_cflags__Wunused_but_set_parameter=yes |
| 12270 | else |
| 12271 | ac_cv_cflags__Wunused_but_set_parameter=no |
| 12272 | fi |
| 12273 | rm -f core conftest.err conftest.$ac_objext \ |
| 12274 | conftest$ac_exeext conftest.$ac_ext |
| 12275 | CFLAGS=$ac_wine_try_cflags_saved |
| 12276 | fi |
| 12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5 |
| 12278 | $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; } |
| 12279 | if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then : |
| 12280 | EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter" |
| 12281 | fi |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5 |
| 12283 | $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12284 | if ${ac_cv_cflags__Wwrite_strings+:} false; then : |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12285 | $as_echo_n "(cached) " >&6 |
| 12286 | else |
| 12287 | ac_wine_try_cflags_saved=$CFLAGS |
| 12288 | CFLAGS="$CFLAGS -Wwrite-strings" |
| 12289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12290 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12291 | int main(int argc, char **argv) { return 0; } |
Gerald Pfeifer | eae5829 | 2010-01-02 15:13:43 +0100 | [diff] [blame] | 12292 | _ACEOF |
| 12293 | if ac_fn_c_try_link "$LINENO"; then : |
| 12294 | ac_cv_cflags__Wwrite_strings=yes |
| 12295 | else |
| 12296 | ac_cv_cflags__Wwrite_strings=no |
| 12297 | fi |
| 12298 | rm -f core conftest.err conftest.$ac_objext \ |
| 12299 | conftest$ac_exeext conftest.$ac_ext |
| 12300 | CFLAGS=$ac_wine_try_cflags_saved |
| 12301 | fi |
| 12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5 |
| 12303 | $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; } |
| 12304 | if test $ac_cv_cflags__Wwrite_strings = yes; then : |
| 12305 | EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings" |
| 12306 | fi |
Gerald Pfeifer | 701ef1d | 2008-01-28 01:28:59 +0100 | [diff] [blame] | 12307 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12308 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12309 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5 |
| 12311 | $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12312 | if ${ac_cv_c_string_h_warnings+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12313 | $as_echo_n "(cached) " >&6 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12314 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12316 | /* end confdefs.h. */ |
| 12317 | #include <string.h> |
| 12318 | int |
| 12319 | main () |
| 12320 | { |
| 12321 | |
| 12322 | ; |
| 12323 | return 0; |
| 12324 | } |
| 12325 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12326 | if ac_fn_c_try_compile "$LINENO"; then : |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12327 | ac_cv_c_string_h_warnings=no |
| 12328 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12329 | ac_cv_c_string_h_warnings=yes |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12330 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 12331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12332 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12334 | $as_echo "$ac_cv_c_string_h_warnings" >&6; } |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12335 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12336 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 12337 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12338 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12339 | fi |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12340 | |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12341 | saved_CFLAGS="$CFLAGS" |
| 12342 | CFLAGS="$CFLAGS -Wlogical-op -Werror" |
| 12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5 |
| 12344 | $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12345 | if ${ac_cv_c_logicalop_noisy+:} false; then : |
Marcus Meissner | f825f0d | 2010-12-17 21:29:20 +0100 | [diff] [blame] | 12346 | $as_echo_n "(cached) " >&6 |
| 12347 | else |
| 12348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12349 | /* end confdefs.h. */ |
| 12350 | #include <string.h> |
| 12351 | int |
| 12352 | main () |
| 12353 | { |
| 12354 | char*f(const char *h,char n) {return strchr(h,n);} |
| 12355 | ; |
| 12356 | return 0; |
| 12357 | } |
| 12358 | _ACEOF |
| 12359 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12360 | ac_cv_c_logicalop_noisy=no |
| 12361 | else |
| 12362 | ac_cv_c_logicalop_noisy=yes |
| 12363 | fi |
| 12364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12365 | fi |
| 12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5 |
| 12367 | $as_echo "$ac_cv_c_logicalop_noisy" >&6; } |
| 12368 | CFLAGS="$saved_CFLAGS" |
| 12369 | if test "$ac_cv_c_logicalop_noisy" = "no" |
| 12370 | then |
| 12371 | EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op" |
| 12372 | fi |
| 12373 | |
Andrew Nguyen | 2eda9c7 | 2010-05-25 22:20:14 -0500 | [diff] [blame] | 12374 | if test "x$enable_maintainer_mode" = "xyes" |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12375 | then |
| 12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5 |
| 12377 | $as_echo_n "checking whether the compiler supports -Werror... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12378 | if ${ac_cv_cflags__Werror+:} false; then : |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12379 | $as_echo_n "(cached) " >&6 |
| 12380 | else |
| 12381 | ac_wine_try_cflags_saved=$CFLAGS |
| 12382 | CFLAGS="$CFLAGS -Werror" |
| 12383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12384 | /* end confdefs.h. */ |
Yann Droneaud | 5d3eacd | 2010-03-04 11:43:17 +0100 | [diff] [blame] | 12385 | int main(int argc, char **argv) { return 0; } |
Alexandre Julliard | 12753c5 | 2009-10-02 14:39:49 +0200 | [diff] [blame] | 12386 | _ACEOF |
| 12387 | if ac_fn_c_try_link "$LINENO"; then : |
| 12388 | ac_cv_cflags__Werror=yes |
| 12389 | else |
| 12390 | ac_cv_cflags__Werror=no |
| 12391 | fi |
| 12392 | rm -f core conftest.err conftest.$ac_objext \ |
| 12393 | conftest$ac_exeext conftest.$ac_ext |
| 12394 | CFLAGS=$ac_wine_try_cflags_saved |
| 12395 | fi |
| 12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5 |
| 12397 | $as_echo "$ac_cv_cflags__Werror" >&6; } |
| 12398 | if test $ac_cv_cflags__Werror = yes; then : |
| 12399 | EXTRACFLAGS="$EXTRACFLAGS -Werror" |
| 12400 | fi |
| 12401 | fi |
Stefan Dösinger | fdac5e5 | 2009-09-12 14:08:53 +0200 | [diff] [blame] | 12402 | |
| 12403 | saved_CFLAGS="$CFLAGS" |
| 12404 | CFLAGS="$CFLAGS -Werror" |
| 12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5 |
| 12406 | $as_echo_n "checking for ms_hook_prologue attribute... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12407 | if ${ac_cv_have_ms_hook_prologue+:} false; then : |
Stefan Dösinger | fdac5e5 | 2009-09-12 14:08:53 +0200 | [diff] [blame] | 12408 | $as_echo_n "(cached) " >&6 |
| 12409 | else |
| 12410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12411 | /* end confdefs.h. */ |
| 12412 | int __attribute__((__ms_hook_prologue__)) test(void) { return 0; } |
| 12413 | int |
| 12414 | main () |
| 12415 | { |
| 12416 | |
| 12417 | ; |
| 12418 | return 0; |
| 12419 | } |
| 12420 | _ACEOF |
| 12421 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12422 | ac_cv_have_ms_hook_prologue="yes" |
| 12423 | else |
| 12424 | ac_cv_have_ms_hook_prologue="no" |
| 12425 | fi |
| 12426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12427 | fi |
| 12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5 |
| 12429 | $as_echo "$ac_cv_have_ms_hook_prologue" >&6; } |
| 12430 | CFLAGS="$saved_CFLAGS" |
| 12431 | if test "$ac_cv_have_ms_hook_prologue" = "yes" |
| 12432 | then |
| 12433 | |
| 12434 | $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h |
| 12435 | |
| 12436 | else |
| 12437 | $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h |
| 12438 | |
| 12439 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12440 | fi |
| 12441 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12442 | |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5 |
| 12444 | $as_echo_n "checking for the need to disable Fortify... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12445 | if ${ac_cv_c_fortify_enabled+:} false; then : |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12446 | $as_echo_n "(cached) " >&6 |
| 12447 | else |
| 12448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12449 | /* end confdefs.h. */ |
| 12450 | #include <string.h> |
| 12451 | int |
| 12452 | main () |
| 12453 | { |
| 12454 | #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0 |
| 12455 | #error Fortify enabled |
| 12456 | #endif |
| 12457 | ; |
| 12458 | return 0; |
| 12459 | } |
| 12460 | _ACEOF |
| 12461 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12462 | ac_cv_c_fortify_enabled=no |
| 12463 | else |
| 12464 | ac_cv_c_fortify_enabled=yes |
| 12465 | fi |
| 12466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12467 | fi |
| 12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5 |
| 12469 | $as_echo "$ac_cv_c_fortify_enabled" >&6; } |
| 12470 | if test "$ac_cv_c_fortify_enabled" = yes |
| 12471 | then |
Alexandre Julliard | b10fb86 | 2010-10-29 14:25:01 +0200 | [diff] [blame] | 12472 | CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" |
Alexandre Julliard | 105793b | 2010-10-22 17:13:57 +0200 | [diff] [blame] | 12473 | fi |
| 12474 | |
| 12475 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12477 | $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12478 | if ${ac_cv_c_extern_prefix+:} false; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12479 | $as_echo_n "(cached) " >&6 |
| 12480 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12482 | /* end confdefs.h. */ |
| 12483 | extern int ac_test; |
| 12484 | int |
| 12485 | main () |
| 12486 | { |
| 12487 | asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1 |
| 12488 | ; |
| 12489 | return 0; |
| 12490 | } |
| 12491 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12492 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12493 | ac_cv_c_extern_prefix="yes" |
| 12494 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12495 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12496 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12497 | rm -f core conftest.err conftest.$ac_objext \ |
| 12498 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12499 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12501 | $as_echo "$ac_cv_c_extern_prefix" >&6; } |
| 12502 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12503 | case $host_cpu in |
| 12504 | *i[3456789]86*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5 |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12506 | $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12507 | if ${ac_cv_c_stdcall_suffix+:} false; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12508 | $as_echo_n "(cached) " >&6 |
| 12509 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12511 | /* end confdefs.h. */ |
| 12512 | #ifndef _MSC_VER |
| 12513 | #define __stdcall __attribute__((__stdcall__)) |
| 12514 | #endif |
| 12515 | int __stdcall ac_test(int i) { return i; } |
| 12516 | int |
| 12517 | main () |
| 12518 | { |
| 12519 | asm("jmp _ac_test@4"); if (ac_test(1)) return 1 |
| 12520 | ; |
| 12521 | return 0; |
| 12522 | } |
| 12523 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12524 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12525 | ac_cv_c_stdcall_suffix="yes" |
| 12526 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12527 | ac_cv_c_stdcall_suffix="no" |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12528 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12529 | rm -f core conftest.err conftest.$ac_objext \ |
| 12530 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12531 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5 |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12533 | $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;; |
| 12534 | *) ac_cv_c_stdcall_suffix="no" ;; |
| 12535 | esac |
| 12536 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12537 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12538 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 12539 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12540 | $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12541 | |
| 12542 | asm_name_prefix="_" |
| 12543 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12544 | $as_echo "#define __ASM_NAME(name) name" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12545 | |
| 12546 | asm_name_prefix="" |
| 12547 | fi |
| 12548 | |
| 12549 | |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12550 | if test "$ac_cv_c_stdcall_suffix" = "yes" |
| 12551 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12552 | $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12553 | |
| 12554 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12555 | $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h |
Alexandre Julliard | 9cebf09 | 2009-06-14 11:24:20 +0200 | [diff] [blame] | 12556 | |
| 12557 | fi |
| 12558 | |
| 12559 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12561 | $as_echo_n "checking how to define a function in assembly code... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12562 | if ${ac_cv_asm_func_def+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12563 | $as_echo_n "(cached) " >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12564 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12566 | /* end confdefs.h. */ |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12567 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12568 | int |
| 12569 | main () |
| 12570 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12571 | asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12572 | ; |
| 12573 | return 0; |
| 12574 | } |
| 12575 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12576 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12577 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12578 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12580 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12581 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12582 | int |
| 12583 | main () |
| 12584 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12585 | 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] | 12586 | ; |
| 12587 | return 0; |
| 12588 | } |
| 12589 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12590 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12591 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12592 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12594 | /* end confdefs.h. */ |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12595 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12596 | int |
| 12597 | main () |
| 12598 | { |
Alexandre Julliard | ad356de | 2007-06-08 20:23:16 +0200 | [diff] [blame] | 12599 | 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] | 12600 | ; |
| 12601 | return 0; |
| 12602 | } |
| 12603 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12604 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12605 | ac_cv_asm_func_def=".type 2" |
| 12606 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12607 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12608 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12609 | rm -f core conftest.err conftest.$ac_objext \ |
| 12610 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12611 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12612 | rm -f core conftest.err conftest.$ac_objext \ |
| 12613 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12614 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12615 | rm -f core conftest.err conftest.$ac_objext \ |
| 12616 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12617 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12619 | $as_echo "$ac_cv_asm_func_def" >&6; } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12620 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12621 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12622 | case "$ac_cv_asm_func_def" in |
| 12623 | ".def") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12624 | $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12625 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12626 | asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12627 | ".type @function") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12628 | $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12629 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12630 | asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12631 | ".type 2") |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12632 | $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12633 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12634 | asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12635 | *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12636 | $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12637 | |
| 12638 | asm_func_header="" ;; |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12639 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12640 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12642 | $as_echo_n "checking whether asm() works outside of functions... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12643 | if ${ac_cv_c_asm_outside_funcs+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12644 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12645 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12647 | /* end confdefs.h. */ |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12648 | asm(".text\n\t.long 0"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12649 | int |
| 12650 | main () |
| 12651 | { |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12652 | |
| 12653 | ; |
| 12654 | return 0; |
| 12655 | } |
| 12656 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12657 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12658 | ac_cv_c_asm_outside_funcs="yes" |
| 12659 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12660 | ac_cv_c_asm_outside_funcs="no" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12661 | fi |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12663 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12665 | $as_echo "$ac_cv_c_asm_outside_funcs" >&6; } |
| 12666 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12668 | $as_echo_n "checking whether .previous is supported in assembly code... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12669 | if ${ac_cv_c_dot_previous+:} false; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12670 | $as_echo_n "(cached) " >&6 |
| 12671 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12673 | /* end confdefs.h. */ |
| 12674 | |
| 12675 | int |
| 12676 | main () |
| 12677 | { |
| 12678 | asm(".text\nac_test:\t.long 0\n\t.previous"); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12679 | ; |
| 12680 | return 0; |
| 12681 | } |
| 12682 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12683 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12684 | ac_cv_c_dot_previous="yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12685 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12686 | ac_cv_c_dot_previous="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12687 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12688 | rm -f core conftest.err conftest.$ac_objext \ |
| 12689 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12690 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5 |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12692 | $as_echo "$ac_cv_c_dot_previous" >&6; } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12693 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5 |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12695 | $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12696 | if ${ac_cv_c_cfi_support+:} false; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12697 | $as_echo_n "(cached) " >&6 |
| 12698 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12700 | /* end confdefs.h. */ |
| 12701 | asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc"); |
| 12702 | int |
| 12703 | main () |
| 12704 | { |
| 12705 | |
| 12706 | ; |
| 12707 | return 0; |
| 12708 | } |
| 12709 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12710 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12711 | ac_cv_c_cfi_support="yes" |
| 12712 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12713 | ac_cv_c_cfi_support="no" |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12714 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12716 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5 |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12718 | $as_echo "$ac_cv_c_cfi_support" >&6; } |
| 12719 | |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12720 | asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t" |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12721 | asm_func_trailer="" |
| 12722 | if test "$ac_cv_c_dot_previous" = "yes" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12723 | then |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12724 | asm_func_trailer="\\n\\t.previous" |
| 12725 | fi |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12726 | if test "$ac_cv_c_cfi_support" = "yes" |
| 12727 | then |
| 12728 | asm_func_header="$asm_func_header.cfi_startproc\\n\\t" |
| 12729 | asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer" |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12730 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12731 | $as_echo "#define __ASM_CFI(str) str" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12732 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 12733 | UNWINDFLAGS=-fasynchronous-unwind-tables |
| 12734 | |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12735 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12736 | $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h |
Alexandre Julliard | e1f0a0d | 2009-06-25 11:49:21 +0200 | [diff] [blame] | 12737 | |
Alexandre Julliard | ccea0ae | 2009-06-11 19:46:19 +0200 | [diff] [blame] | 12738 | fi |
| 12739 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12740 | asm_func_code="$asm_func_header\" code \"$asm_func_trailer" |
| 12741 | |
| 12742 | |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12743 | if test "$ac_cv_c_asm_outside_funcs" = "yes" |
| 12744 | then |
| 12745 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12746 | #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code"); |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12747 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12748 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12749 | else |
Alexandre Julliard | 857f1e0 | 2009-06-11 16:32:42 +0200 | [diff] [blame] | 12750 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12751 | #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12752 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12753 | |
| 12754 | fi |
| 12755 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12756 | $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12757 | |
| 12758 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12759 | $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h |
Alexandre Julliard | ea9cf9e | 2009-06-14 16:03:46 +0200 | [diff] [blame] | 12760 | |
| 12761 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12762 | |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12763 | LDPATH="" |
| 12764 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12765 | case $build_os in |
| 12766 | cygwin*|mingw32*) |
Alexandre Julliard | b860c4a | 2009-09-01 22:36:13 +0200 | [diff] [blame] | 12767 | TOOLSEXT=".exe" |
| 12768 | |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12769 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12770 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 12771 | darwin*|macosx*) |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12772 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12773 | *) |
Alexandre Julliard | eb8a40c | 2006-07-11 19:33:22 +0200 | [diff] [blame] | 12774 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 3a0233d | 2007-07-02 14:38:04 +0200 | [diff] [blame] | 12775 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12776 | esac |
| 12777 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12778 | case $host_os in |
| 12779 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12780 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12781 | |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 12782 | SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 12783 | |
| 12784 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 12785 | esac |
| 12786 | |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12787 | MAIN_BINARY="wine" |
| 12788 | |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 12789 | test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64" |
Alexandre Julliard | 3e6eab3 | 2009-08-13 19:54:31 +0200 | [diff] [blame] | 12790 | |
Alexandre Julliard | 0a08620 | 2010-12-16 16:54:15 +0100 | [diff] [blame] | 12791 | case $host_os in |
| 12792 | linux*) |
| 12793 | case $host_cpu in |
| 12794 | *i[3456789]86*) EXTRA_BINARIES="wine-preloader" |
| 12795 | ;; |
| 12796 | x86_64*) EXTRA_BINARIES="wine64-preloader" |
Tijl Coosemans | 9f5c69c | 2007-08-24 15:46:36 +0200 | [diff] [blame] | 12797 | ;; |
Alexandre Julliard | 2cdfd4d | 2006-02-18 15:03:51 +0100 | [diff] [blame] | 12798 | esac |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 12799 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12800 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12801 | |
| 12802 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12803 | ac_save_CFLAGS="$CFLAGS" |
| 12804 | CFLAGS="$CFLAGS $BUILTINFLAG" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12805 | for ac_func in \ |
Stefan Dösinger | a774152 | 2011-05-24 21:05:28 +0200 | [diff] [blame] | 12806 | _finite \ |
| 12807 | _isnan \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12808 | _pclose \ |
| 12809 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12810 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 12811 | _spawnvp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12812 | _strdup \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12813 | _stricmp \ |
| 12814 | _strnicmp \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12815 | _strtoi64 \ |
| 12816 | _strtoui64 \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12817 | _vsnprintf \ |
Alexandre Julliard | f9e5b0f | 2006-01-14 17:22:03 +0100 | [diff] [blame] | 12818 | asctime_r \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12819 | chsize \ |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12820 | dlopen \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 12821 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 12822 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12823 | finite \ |
Alexandre Julliard | 7d5e565 | 2009-06-01 12:51:54 +0200 | [diff] [blame] | 12824 | fnmatch \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 12825 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12826 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 12827 | fstatfs \ |
| 12828 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12829 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 12830 | futimes \ |
Robert Lunnon | c0cb4d3 | 2005-05-07 14:53:38 +0000 | [diff] [blame] | 12831 | futimesat \ |
Charles Davis | 4e44e15 | 2011-01-18 13:09:44 -0700 | [diff] [blame] | 12832 | getattrlist \ |
Alexandre Julliard | a9f214c | 2006-11-13 15:42:48 +0100 | [diff] [blame] | 12833 | getdirentries \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12834 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12835 | getpagesize \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 12836 | getpwuid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 12837 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 12838 | getuid \ |
Alexandre Julliard | c827892 | 2006-08-04 22:11:00 +0200 | [diff] [blame] | 12839 | kqueue \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 12840 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12841 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 12842 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12843 | pclose \ |
Alexandre Julliard | 6f68b77 | 2009-07-01 12:13:34 +0200 | [diff] [blame] | 12844 | pipe2 \ |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12845 | poll \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12846 | popen \ |
Albert Lee | 01b972d | 2009-11-20 18:35:26 -0500 | [diff] [blame] | 12847 | port_create \ |
Alexandre Julliard | 9603ee0 | 2006-04-06 11:57:37 +0200 | [diff] [blame] | 12848 | prctl \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12849 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 12850 | pwrite \ |
Rob Shearman | 87175c6 | 2008-10-03 12:55:21 +0100 | [diff] [blame] | 12851 | readdir \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 12852 | readlink \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 12853 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12854 | select \ |
Gerald Pfeifer | 39f6727 | 2008-01-20 21:23:08 +0100 | [diff] [blame] | 12855 | setproctitle \ |
Paul Millar | df10b7d | 2006-07-16 15:06:28 +0100 | [diff] [blame] | 12856 | setrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12857 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12858 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 12859 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12860 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 12861 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12862 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 12863 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12864 | strcasecmp \ |
Bang Jun-young | ff96bd6 | 2007-10-15 17:09:12 +0900 | [diff] [blame] | 12865 | strdup \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12866 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12867 | strncasecmp \ |
Louis Lenders | 6c04a18 | 2006-12-17 17:56:50 +0000 | [diff] [blame] | 12868 | strtold \ |
Rob Shearman | e9f5bce | 2008-03-03 21:48:18 +0000 | [diff] [blame] | 12869 | strtoll \ |
| 12870 | strtoull \ |
Alexandre Julliard | 0fbd556 | 2008-12-22 10:47:16 +0100 | [diff] [blame] | 12871 | symlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12872 | tcgetattr \ |
Tijl Coosemans | 0c4f152 | 2007-08-23 14:12:37 +0200 | [diff] [blame] | 12873 | thr_kill2 \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12874 | timegm \ |
| 12875 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 12876 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12877 | wait4 \ |
| 12878 | waitpid \ |
| 12879 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12880 | do : |
| 12881 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12882 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 12883 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12884 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12885 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12886 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12887 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12888 | fi |
| 12889 | done |
| 12890 | |
Alexandre Julliard | 95251a7 | 2009-02-16 12:46:58 +0100 | [diff] [blame] | 12891 | CFLAGS="$ac_save_CFLAGS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12892 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12893 | if test "$ac_cv_func_dlopen" = no |
| 12894 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12896 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12897 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12898 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12899 | else |
| 12900 | ac_check_lib_save_LIBS=$LIBS |
| 12901 | LIBS="-ldl $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12903 | /* end confdefs.h. */ |
| 12904 | |
| 12905 | /* Override any GCC internal prototype to avoid an error. |
| 12906 | Use char because int might match the return type of a GCC |
| 12907 | builtin and then its argument prototype would still apply. */ |
| 12908 | #ifdef __cplusplus |
| 12909 | extern "C" |
| 12910 | #endif |
| 12911 | char dlopen (); |
| 12912 | int |
| 12913 | main () |
| 12914 | { |
| 12915 | return dlopen (); |
| 12916 | ; |
| 12917 | return 0; |
| 12918 | } |
| 12919 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12920 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12921 | ac_cv_lib_dl_dlopen=yes |
| 12922 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12923 | ac_cv_lib_dl_dlopen=no |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12924 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12925 | rm -f core conftest.err conftest.$ac_objext \ |
| 12926 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12927 | LIBS=$ac_check_lib_save_LIBS |
| 12928 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12930 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12931 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12932 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12933 | LIBDL="-ldl" |
| 12934 | |
| 12935 | fi |
| 12936 | |
| 12937 | fi |
| 12938 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 12939 | LIBS="$LIBS $LIBDL" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12940 | for ac_func in dladdr |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12941 | do : |
| 12942 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12943 | if test "x$ac_cv_func_dladdr" = xyes; then : |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12944 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12945 | #define HAVE_DLADDR 1 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 12946 | _ACEOF |
| 12947 | |
| 12948 | fi |
| 12949 | done |
| 12950 | |
| 12951 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 12952 | |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12953 | if test "$ac_cv_func_poll" = no |
| 12954 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12956 | $as_echo_n "checking for poll in -lpoll... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12957 | if ${ac_cv_lib_poll_poll+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12958 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12959 | else |
| 12960 | ac_check_lib_save_LIBS=$LIBS |
| 12961 | LIBS="-lpoll $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12963 | /* end confdefs.h. */ |
| 12964 | |
| 12965 | /* Override any GCC internal prototype to avoid an error. |
| 12966 | Use char because int might match the return type of a GCC |
| 12967 | builtin and then its argument prototype would still apply. */ |
| 12968 | #ifdef __cplusplus |
| 12969 | extern "C" |
| 12970 | #endif |
| 12971 | char poll (); |
| 12972 | int |
| 12973 | main () |
| 12974 | { |
| 12975 | return poll (); |
| 12976 | ; |
| 12977 | return 0; |
| 12978 | } |
| 12979 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12980 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12981 | ac_cv_lib_poll_poll=yes |
| 12982 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12983 | ac_cv_lib_poll_poll=no |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12984 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12985 | rm -f core conftest.err conftest.$ac_objext \ |
| 12986 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12987 | LIBS=$ac_check_lib_save_LIBS |
| 12988 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 12990 | $as_echo "$ac_cv_lib_poll_poll" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 12991 | if test "x$ac_cv_lib_poll_poll" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12992 | $as_echo "#define HAVE_POLL 1" >>confdefs.h |
Alexandre Julliard | 1089260 | 2006-08-15 11:41:59 +0200 | [diff] [blame] | 12993 | LIBPOLL="-lpoll" |
| 12994 | |
| 12995 | fi |
| 12996 | |
| 12997 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12998 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13000 | $as_echo_n "checking for library containing gethostbyname... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13001 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13002 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13003 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13004 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13006 | /* end confdefs.h. */ |
| 13007 | |
| 13008 | /* Override any GCC internal prototype to avoid an error. |
| 13009 | Use char because int might match the return type of a GCC |
| 13010 | builtin and then its argument prototype would still apply. */ |
| 13011 | #ifdef __cplusplus |
| 13012 | extern "C" |
| 13013 | #endif |
| 13014 | char gethostbyname (); |
| 13015 | int |
| 13016 | main () |
| 13017 | { |
| 13018 | return gethostbyname (); |
| 13019 | ; |
| 13020 | return 0; |
| 13021 | } |
| 13022 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13023 | for ac_lib in '' nsl; do |
| 13024 | if test -z "$ac_lib"; then |
| 13025 | ac_res="none required" |
| 13026 | else |
| 13027 | ac_res=-l$ac_lib |
| 13028 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13029 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13030 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13031 | ac_cv_search_gethostbyname=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13032 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13033 | rm -f core conftest.err conftest.$ac_objext \ |
| 13034 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13035 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13036 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13037 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13038 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13039 | if ${ac_cv_search_gethostbyname+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13040 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13041 | else |
| 13042 | ac_cv_search_gethostbyname=no |
| 13043 | fi |
| 13044 | rm conftest.$ac_ext |
| 13045 | LIBS=$ac_func_search_save_LIBS |
| 13046 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13048 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13049 | ac_res=$ac_cv_search_gethostbyname |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13050 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13051 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13052 | |
| 13053 | fi |
| 13054 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13055 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13057 | $as_echo_n "checking for library containing connect... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13058 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13059 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13060 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13061 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13063 | /* end confdefs.h. */ |
| 13064 | |
| 13065 | /* Override any GCC internal prototype to avoid an error. |
| 13066 | Use char because int might match the return type of a GCC |
| 13067 | builtin and then its argument prototype would still apply. */ |
| 13068 | #ifdef __cplusplus |
| 13069 | extern "C" |
| 13070 | #endif |
| 13071 | char connect (); |
| 13072 | int |
| 13073 | main () |
| 13074 | { |
| 13075 | return connect (); |
| 13076 | ; |
| 13077 | return 0; |
| 13078 | } |
| 13079 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13080 | for ac_lib in '' socket; do |
| 13081 | if test -z "$ac_lib"; then |
| 13082 | ac_res="none required" |
| 13083 | else |
| 13084 | ac_res=-l$ac_lib |
| 13085 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13086 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13087 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13088 | ac_cv_search_connect=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13089 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13090 | rm -f core conftest.err conftest.$ac_objext \ |
| 13091 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13092 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13093 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13094 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13095 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13096 | if ${ac_cv_search_connect+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13097 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13098 | else |
| 13099 | ac_cv_search_connect=no |
| 13100 | fi |
| 13101 | rm conftest.$ac_ext |
| 13102 | LIBS=$ac_func_search_save_LIBS |
| 13103 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13105 | $as_echo "$ac_cv_search_connect" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13106 | ac_res=$ac_cv_search_connect |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13107 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13108 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13109 | |
| 13110 | fi |
| 13111 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13112 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13114 | $as_echo_n "checking for library containing inet_aton... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13115 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13116 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13117 | else |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13118 | ac_func_search_save_LIBS=$LIBS |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13120 | /* end confdefs.h. */ |
| 13121 | |
| 13122 | /* Override any GCC internal prototype to avoid an error. |
| 13123 | Use char because int might match the return type of a GCC |
| 13124 | builtin and then its argument prototype would still apply. */ |
| 13125 | #ifdef __cplusplus |
| 13126 | extern "C" |
| 13127 | #endif |
| 13128 | char inet_aton (); |
| 13129 | int |
| 13130 | main () |
| 13131 | { |
| 13132 | return inet_aton (); |
| 13133 | ; |
| 13134 | return 0; |
| 13135 | } |
| 13136 | _ACEOF |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13137 | for ac_lib in '' resolv; do |
| 13138 | if test -z "$ac_lib"; then |
| 13139 | ac_res="none required" |
| 13140 | else |
| 13141 | ac_res=-l$ac_lib |
| 13142 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13143 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13144 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13145 | ac_cv_search_inet_aton=$ac_res |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13146 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13147 | rm -f core conftest.err conftest.$ac_objext \ |
| 13148 | conftest$ac_exeext |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13149 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13150 | break |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13151 | fi |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13152 | done |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13153 | if ${ac_cv_search_inet_aton+:} false; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13154 | |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13155 | else |
| 13156 | ac_cv_search_inet_aton=no |
| 13157 | fi |
| 13158 | rm conftest.$ac_ext |
| 13159 | LIBS=$ac_func_search_save_LIBS |
| 13160 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13162 | $as_echo "$ac_cv_search_inet_aton" >&6; } |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13163 | ac_res=$ac_cv_search_inet_aton |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13164 | if test "$ac_res" != no; then : |
Alexandre Julliard | 2871041 | 2007-04-23 16:31:58 +0200 | [diff] [blame] | 13165 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13166 | |
| 13167 | fi |
| 13168 | |
Alexandre Julliard | e533e97 | 2006-08-15 12:11:30 +0200 | [diff] [blame] | 13169 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13170 | for ac_func in \ |
| 13171 | getaddrinfo \ |
| 13172 | getnameinfo \ |
| 13173 | getnetbyname \ |
| 13174 | getprotobyname \ |
| 13175 | getprotobynumber \ |
| 13176 | getservbyport \ |
| 13177 | inet_network \ |
Austin English | 0656691 | 2009-03-28 00:13:09 -0500 | [diff] [blame] | 13178 | inet_ntop \ |
| 13179 | inet_pton \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13180 | sendmsg \ |
Alexandre Julliard | 98bec05 | 2009-03-26 11:07:28 +0100 | [diff] [blame] | 13181 | socketpair \ |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13182 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13183 | do : |
| 13184 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13185 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13186 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13187 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13188 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13189 | _ACEOF |
| 13190 | |
| 13191 | fi |
| 13192 | done |
| 13193 | |
| 13194 | |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13195 | LDAPLIBS="" |
| 13196 | |
| 13197 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" |
| 13198 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13199 | ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h> |
| 13200 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13201 | if test "x$ac_cv_type_LDAPSortKey" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13203 | $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13204 | if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13205 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13206 | else |
| 13207 | ac_check_lib_save_LIBS=$LIBS |
| 13208 | LIBS="-lldap_r $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13210 | /* end confdefs.h. */ |
| 13211 | |
| 13212 | /* Override any GCC internal prototype to avoid an error. |
| 13213 | Use char because int might match the return type of a GCC |
| 13214 | builtin and then its argument prototype would still apply. */ |
| 13215 | #ifdef __cplusplus |
| 13216 | extern "C" |
| 13217 | #endif |
| 13218 | char ldap_initialize (); |
| 13219 | int |
| 13220 | main () |
| 13221 | { |
| 13222 | return ldap_initialize (); |
| 13223 | ; |
| 13224 | return 0; |
| 13225 | } |
| 13226 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13227 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13228 | ac_cv_lib_ldap_r_ldap_initialize=yes |
| 13229 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13230 | ac_cv_lib_ldap_r_ldap_initialize=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13231 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13232 | rm -f core conftest.err conftest.$ac_objext \ |
| 13233 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13234 | LIBS=$ac_check_lib_save_LIBS |
| 13235 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13237 | $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13238 | if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then : |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13240 | $as_echo_n "checking for ber_init in -llber... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13241 | if ${ac_cv_lib_lber_ber_init+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13242 | $as_echo_n "(cached) " >&6 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13243 | else |
| 13244 | ac_check_lib_save_LIBS=$LIBS |
| 13245 | LIBS="-llber $LIBPTHREAD $LIBS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13247 | /* end confdefs.h. */ |
| 13248 | |
| 13249 | /* Override any GCC internal prototype to avoid an error. |
| 13250 | Use char because int might match the return type of a GCC |
| 13251 | builtin and then its argument prototype would still apply. */ |
| 13252 | #ifdef __cplusplus |
| 13253 | extern "C" |
| 13254 | #endif |
| 13255 | char ber_init (); |
| 13256 | int |
| 13257 | main () |
| 13258 | { |
| 13259 | return ber_init (); |
| 13260 | ; |
| 13261 | return 0; |
| 13262 | } |
| 13263 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13264 | if ac_fn_c_try_link "$LINENO"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13265 | ac_cv_lib_lber_ber_init=yes |
| 13266 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13267 | ac_cv_lib_lber_ber_init=no |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13268 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13269 | rm -f core conftest.err conftest.$ac_objext \ |
| 13270 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13271 | LIBS=$ac_check_lib_save_LIBS |
| 13272 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13274 | $as_echo "$ac_cv_lib_lber_ber_init" >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13275 | if test "x$ac_cv_lib_lber_ber_init" = xyes; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13276 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13277 | $as_echo "#define HAVE_LDAP 1" >>confdefs.h |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13278 | |
| 13279 | LDAPLIBS="-lldap_r -llber" |
| 13280 | fi |
| 13281 | |
| 13282 | fi |
| 13283 | |
| 13284 | fi |
| 13285 | |
| 13286 | ac_wine_check_funcs_save_LIBS="$LIBS" |
| 13287 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13288 | for ac_func in \ |
| 13289 | ldap_count_references \ |
| 13290 | ldap_first_reference \ |
| 13291 | ldap_next_reference \ |
| 13292 | ldap_parse_reference \ |
| 13293 | ldap_parse_sort_control \ |
| 13294 | ldap_parse_sortresponse_control \ |
| 13295 | ldap_parse_vlv_control \ |
| 13296 | ldap_parse_vlvresponse_control |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13297 | do : |
| 13298 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13299 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13300 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13301 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13302 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13303 | _ACEOF |
| 13304 | |
| 13305 | fi |
| 13306 | done |
| 13307 | |
| 13308 | LIBS="$ac_wine_check_funcs_save_LIBS" |
| 13309 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13310 | if test "x$LDAPLIBS" = "x"; then : |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13311 | case "x$with_ldap" in |
Alexandre Julliard | 0dc503b | 2010-02-11 20:25:47 +0100 | [diff] [blame] | 13312 | x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;; |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13313 | xno) ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 13314 | *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13315 | This is an error since --with-ldap was requested." "$LINENO" 5 ;; |
Francois Gouget | bcba270 | 2008-07-10 12:36:06 +0200 | [diff] [blame] | 13316 | esac |
| 13317 | fi |
| 13318 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5 |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13320 | $as_echo_n "checking whether mkdir takes only one argument... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13321 | if ${wine_cv_one_arg_mkdir+:} false; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13322 | $as_echo_n "(cached) " >&6 |
| 13323 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13325 | /* end confdefs.h. */ |
| 13326 | #include <sys/stat.h> |
| 13327 | int |
| 13328 | main () |
| 13329 | { |
| 13330 | mkdir("foo"); |
| 13331 | ; |
| 13332 | return 0; |
| 13333 | } |
| 13334 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13335 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13336 | wine_cv_one_arg_mkdir=yes |
| 13337 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13338 | wine_cv_one_arg_mkdir=no |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13339 | fi |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13341 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5 |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13343 | $as_echo "$wine_cv_one_arg_mkdir" >&6; } |
| 13344 | if test "$wine_cv_one_arg_mkdir" = "yes" |
| 13345 | then |
| 13346 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13347 | $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h |
Alexandre Julliard | 921e662 | 2008-12-22 10:39:11 +0100 | [diff] [blame] | 13348 | |
| 13349 | fi |
| 13350 | |
Andrew Nguyen | 2f22a50 | 2011-02-22 07:10:22 -0600 | [diff] [blame] | 13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5 |
| 13352 | $as_echo_n "checking for sched_setaffinity... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13353 | if ${wine_cv_have_sched_setaffinity+:} false; then : |
Andrew Nguyen | 2f22a50 | 2011-02-22 07:10:22 -0600 | [diff] [blame] | 13354 | $as_echo_n "(cached) " >&6 |
| 13355 | else |
| 13356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13357 | /* end confdefs.h. */ |
| 13358 | #define _GNU_SOURCE |
| 13359 | #include <sched.h> |
| 13360 | int |
| 13361 | main () |
| 13362 | { |
| 13363 | sched_setaffinity(0, 0, 0); |
| 13364 | ; |
| 13365 | return 0; |
| 13366 | } |
| 13367 | _ACEOF |
| 13368 | if ac_fn_c_try_link "$LINENO"; then : |
| 13369 | wine_cv_have_sched_setaffinity=yes |
| 13370 | else |
| 13371 | wine_cv_have_sched_setaffinity=no |
| 13372 | fi |
| 13373 | rm -f core conftest.err conftest.$ac_objext \ |
| 13374 | conftest$ac_exeext conftest.$ac_ext |
| 13375 | fi |
| 13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5 |
| 13377 | $as_echo "$wine_cv_have_sched_setaffinity" >&6; } |
| 13378 | if test "$wine_cv_have_sched_setaffinity" = "yes" |
| 13379 | then |
| 13380 | |
| 13381 | $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h |
| 13382 | |
| 13383 | fi |
| 13384 | |
Ben Taylor | 41c5996 | 2007-04-23 13:41:42 +0000 | [diff] [blame] | 13385 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13387 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13388 | if ${ac_cv_c_const+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13389 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13390 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13392 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13393 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13394 | int |
| 13395 | main () |
| 13396 | { |
| 13397 | /* FIXME: Include the comments suggested by Paul. */ |
| 13398 | #ifndef __cplusplus |
| 13399 | /* Ultrix mips cc rejects this. */ |
| 13400 | typedef int charset[2]; |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13401 | const charset cs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13402 | /* SunOS 4.1.1 cc rejects this. */ |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13403 | char const *const *pcpcc; |
| 13404 | char **ppc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13405 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13406 | struct point {int x, y;}; |
| 13407 | static struct point const zero = {0,0}; |
| 13408 | /* AIX XL C 1.02.0.0 rejects this. |
| 13409 | It does not let you subtract one const X* pointer from another in |
| 13410 | an arm of an if-expression whose if-part is not a constant |
| 13411 | expression */ |
| 13412 | const char *g = "string"; |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13413 | pcpcc = &g + (g ? g-g : 0); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13414 | /* HPUX 7.0 cc rejects these. */ |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13415 | ++pcpcc; |
| 13416 | ppc = (char**) pcpcc; |
| 13417 | pcpcc = (char const *const *) ppc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13418 | { /* SCO 3.2v4 cc rejects this. */ |
| 13419 | char *t; |
| 13420 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13421 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13422 | *t++ = 0; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13423 | if (s) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13424 | } |
| 13425 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13426 | int x[] = {25, 17}; |
| 13427 | const int *foo = &x[0]; |
| 13428 | ++foo; |
| 13429 | } |
| 13430 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13431 | typedef const int *iptr; |
| 13432 | iptr p = 0; |
| 13433 | ++p; |
| 13434 | } |
| 13435 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13436 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13437 | struct s { int j; const int *ap[3]; }; |
| 13438 | struct s *b; b->j = 5; |
| 13439 | } |
| 13440 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13441 | const int foo = 10; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13442 | if (!foo) return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13443 | } |
Phil Krylov | f0ca586 | 2006-11-05 23:03:46 +0300 | [diff] [blame] | 13444 | return !cs[0] && !zero.x; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13445 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13446 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13447 | ; |
| 13448 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13449 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13450 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13451 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13452 | ac_cv_c_const=yes |
| 13453 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13454 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13455 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13457 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13459 | $as_echo "$ac_cv_c_const" >&6; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13460 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13461 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13462 | $as_echo "#define const /**/" >>confdefs.h |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13463 | |
| 13464 | fi |
| 13465 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13467 | $as_echo_n "checking for inline... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13468 | if ${ac_cv_c_inline+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13469 | $as_echo_n "(cached) " >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13470 | else |
| 13471 | ac_cv_c_inline=no |
| 13472 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13474 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13475 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13476 | typedef int foo_t; |
| 13477 | static $ac_kw foo_t static_foo () {return 0; } |
| 13478 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13479 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13480 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13481 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13482 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13483 | ac_cv_c_inline=$ac_kw |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13484 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 13486 | test "$ac_cv_c_inline" != no && break |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13487 | done |
| 13488 | |
| 13489 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13491 | $as_echo "$ac_cv_c_inline" >&6; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13492 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13493 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13494 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13495 | *) |
| 13496 | case $ac_cv_c_inline in |
| 13497 | no) ac_val=;; |
| 13498 | *) ac_val=$ac_cv_c_inline;; |
| 13499 | esac |
| 13500 | cat >>confdefs.h <<_ACEOF |
| 13501 | #ifndef __cplusplus |
| 13502 | #define inline $ac_val |
| 13503 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13504 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13505 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13506 | esac |
| 13507 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13508 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13509 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13510 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13511 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13512 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13513 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13514 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13515 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13516 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13517 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13518 | if test "x$ac_cv_type_off_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13519 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13520 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13521 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13522 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13523 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13524 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13525 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13526 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13527 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13528 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13529 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13530 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13531 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13532 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13533 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13534 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13535 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13536 | if test "x$ac_cv_type_size_t" = xyes; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13537 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13538 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13539 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13540 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13541 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13542 | |
| 13543 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13544 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13545 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13546 | |
| 13547 | cat >>confdefs.h <<_ACEOF |
| 13548 | #define HAVE_SSIZE_T 1 |
| 13549 | _ACEOF |
| 13550 | |
| 13551 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13552 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13553 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13554 | if test "x$ac_cv_type_long_long" = xyes; 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 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13557 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13558 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13559 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13560 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13561 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13562 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13563 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13564 | |
| 13565 | cat >>confdefs.h <<_ACEOF |
| 13566 | #define HAVE_FSBLKCNT_T 1 |
| 13567 | _ACEOF |
| 13568 | |
| 13569 | |
| 13570 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13571 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13572 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13573 | |
| 13574 | cat >>confdefs.h <<_ACEOF |
| 13575 | #define HAVE_FSFILCNT_T 1 |
| 13576 | _ACEOF |
| 13577 | |
| 13578 | |
| 13579 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13580 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13581 | ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h> |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13582 | #include <signal.h> |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13583 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13584 | if test "x$ac_cv_type_sigset_t" = xyes; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13585 | |
| 13586 | cat >>confdefs.h <<_ACEOF |
| 13587 | #define HAVE_SIGSET_T 1 |
| 13588 | _ACEOF |
| 13589 | |
| 13590 | |
| 13591 | fi |
| 13592 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13593 | ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h> |
| 13594 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13595 | if test "x$ac_cv_type_request_sense" = xyes; then : |
Gerald Pfeifer | b8b15f3 | 2005-07-10 17:42:46 +0000 | [diff] [blame] | 13596 | |
| 13597 | cat >>confdefs.h <<_ACEOF |
| 13598 | #define HAVE_REQUEST_SENSE 1 |
| 13599 | _ACEOF |
| 13600 | |
| 13601 | |
| 13602 | fi |
| 13603 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13604 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13605 | ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h> |
Austin English | 68f2db2 | 2009-01-29 08:28:37 -0600 | [diff] [blame] | 13606 | #ifdef HAVE_SYS_SOCKET_H |
| 13607 | #include <sys/socket.h> |
| 13608 | #endif |
| 13609 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 13610 | #include <sys/socketvar.h> |
| 13611 | #endif |
| 13612 | #ifdef HAVE_NET_ROUTE_H |
| 13613 | #include <net/route.h> |
| 13614 | #endif |
| 13615 | #ifdef HAVE_NETINET_IN_H |
| 13616 | #include <netinet/in.h> |
| 13617 | #endif |
| 13618 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 13619 | #include <netinet/in_systm.h> |
| 13620 | #endif |
| 13621 | #ifdef HAVE_NETINET_IP_H |
| 13622 | #include <netinet/ip.h> |
| 13623 | #endif |
| 13624 | #ifdef HAVE_NETINET_IN_PCB_H |
| 13625 | #include <netinet/in_pcb.h> |
| 13626 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13627 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13628 | if test "x$ac_cv_type_struct_xinpgen" = xyes; then : |
Austin English | 68f2db2 | 2009-01-29 08:28:37 -0600 | [diff] [blame] | 13629 | |
| 13630 | cat >>confdefs.h <<_ACEOF |
| 13631 | #define HAVE_STRUCT_XINPGEN 1 |
| 13632 | _ACEOF |
| 13633 | |
| 13634 | |
| 13635 | fi |
| 13636 | |
| 13637 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13638 | ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 13639 | #include <linux/input.h> |
| 13640 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13641 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13642 | if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then : |
Daniel Remenak | e491e8f | 2005-07-29 14:18:58 +0000 | [diff] [blame] | 13643 | |
| 13644 | cat >>confdefs.h <<_ACEOF |
| 13645 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 |
| 13646 | _ACEOF |
| 13647 | |
| 13648 | |
| 13649 | fi |
| 13650 | |
| 13651 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13653 | $as_echo_n "checking for sigaddset... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13654 | if ${wine_cv_have_sigaddset+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13655 | $as_echo_n "(cached) " >&6 |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13656 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13658 | /* end confdefs.h. */ |
| 13659 | #include <signal.h> |
| 13660 | int |
| 13661 | main () |
| 13662 | { |
| 13663 | sigset_t set; sigaddset(&set,SIGTERM); |
| 13664 | ; |
| 13665 | return 0; |
| 13666 | } |
| 13667 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13668 | if ac_fn_c_try_link "$LINENO"; then : |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13669 | wine_cv_have_sigaddset=yes |
| 13670 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13671 | wine_cv_have_sigaddset=no |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13672 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13673 | rm -f core conftest.err conftest.$ac_objext \ |
| 13674 | conftest$ac_exeext conftest.$ac_ext |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13675 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13677 | $as_echo "$wine_cv_have_sigaddset" >&6; } |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13678 | if test "$wine_cv_have_sigaddset" = "yes" |
| 13679 | then |
| 13680 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13681 | $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 13682 | |
| 13683 | fi |
| 13684 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13685 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13687 | $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13688 | if ${wine_cv_linux_gethostbyname_r_6+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13689 | $as_echo_n "(cached) " >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13690 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13692 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13693 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13694 | int |
| 13695 | main () |
| 13696 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13697 | |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13698 | char *name=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13699 | struct hostent he; |
| 13700 | struct hostent *result; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13701 | char *buf=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13702 | int bufsize=0; |
| 13703 | int res,errnr; |
Ken Thomases | 20d9bad | 2007-10-19 16:18:51 -0500 | [diff] [blame] | 13704 | char *addr=0; |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13705 | int addrlen=0; |
| 13706 | int addrtype=0; |
| 13707 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 13708 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13709 | |
| 13710 | ; |
| 13711 | return 0; |
| 13712 | } |
| 13713 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13714 | if ac_fn_c_try_link "$LINENO"; then : |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13715 | wine_cv_linux_gethostbyname_r_6=yes |
| 13716 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13717 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13718 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13719 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13720 | rm -f core conftest.err conftest.$ac_objext \ |
| 13721 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13722 | |
| 13723 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13725 | $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; } |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13726 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 13727 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13728 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13729 | $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13730 | |
| 13731 | fi |
| 13732 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13733 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13734 | then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13736 | $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13737 | if ${wine_cv_linux_joystick_22_api+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13738 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13739 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13741 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13742 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13743 | #include <sys/ioctl.h> |
Marcus Meissner | 7c43499 | 2007-04-12 12:12:05 +0200 | [diff] [blame] | 13744 | #include <sys/types.h> |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13745 | #include <linux/joystick.h> |
| 13746 | |
| 13747 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 13748 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 13749 | #error "no 2.2 header" |
| 13750 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13751 | |
| 13752 | int |
| 13753 | main () |
| 13754 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13755 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13756 | ; |
| 13757 | return 0; |
| 13758 | } |
| 13759 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13760 | if ac_fn_c_try_compile "$LINENO"; then : |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13761 | wine_cv_linux_joystick_22_api=yes |
| 13762 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13763 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13764 | fi |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 13765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13766 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13767 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 13769 | $as_echo "$wine_cv_linux_joystick_22_api" >&6; } |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 13770 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13771 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13772 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13773 | $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13774 | |
| 13775 | fi |
| 13776 | fi |
| 13777 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13778 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13779 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13780 | #ifdef HAVE_SYS_PARAM_H |
| 13781 | # include <sys/param.h> |
| 13782 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13783 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13784 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13785 | #endif |
| 13786 | #ifdef HAVE_SYS_VFS_H |
| 13787 | # include <sys/vfs.h> |
| 13788 | #endif |
| 13789 | #ifdef HAVE_SYS_STATFS_H |
| 13790 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13791 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13792 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13793 | if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then : |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13794 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13795 | cat >>confdefs.h <<_ACEOF |
| 13796 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13797 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13798 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13799 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13800 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13801 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13802 | #ifdef HAVE_SYS_PARAM_H |
| 13803 | # include <sys/param.h> |
| 13804 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13805 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13806 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13807 | #endif |
| 13808 | #ifdef HAVE_SYS_VFS_H |
| 13809 | # include <sys/vfs.h> |
| 13810 | #endif |
| 13811 | #ifdef HAVE_SYS_STATFS_H |
| 13812 | # include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13813 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13814 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13815 | if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then : |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13816 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13817 | cat >>confdefs.h <<_ACEOF |
| 13818 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13819 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13820 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13821 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13822 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13823 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13824 | #ifdef HAVE_SYS_PARAM_H |
| 13825 | # include <sys/param.h> |
| 13826 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13827 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13828 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13829 | #endif |
| 13830 | #ifdef HAVE_SYS_VFS_H |
| 13831 | # include <sys/vfs.h> |
| 13832 | #endif |
| 13833 | #ifdef HAVE_SYS_STATFS_H |
| 13834 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13835 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13836 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13837 | if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13838 | |
| 13839 | cat >>confdefs.h <<_ACEOF |
| 13840 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 13841 | _ACEOF |
| 13842 | |
| 13843 | |
| 13844 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13845 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13846 | #ifdef HAVE_SYS_PARAM_H |
| 13847 | # include <sys/param.h> |
| 13848 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13849 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13850 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13851 | #endif |
| 13852 | #ifdef HAVE_SYS_VFS_H |
| 13853 | # include <sys/vfs.h> |
| 13854 | #endif |
| 13855 | #ifdef HAVE_SYS_STATFS_H |
| 13856 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13857 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13858 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13859 | if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13860 | |
| 13861 | cat >>confdefs.h <<_ACEOF |
| 13862 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 13863 | _ACEOF |
| 13864 | |
| 13865 | |
| 13866 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13867 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13868 | #ifdef HAVE_SYS_PARAM_H |
| 13869 | # include <sys/param.h> |
| 13870 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13871 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13872 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13873 | #endif |
| 13874 | #ifdef HAVE_SYS_VFS_H |
| 13875 | # include <sys/vfs.h> |
| 13876 | #endif |
| 13877 | #ifdef HAVE_SYS_STATFS_H |
| 13878 | # include <sys/statfs.h> |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13879 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13880 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13881 | if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13882 | |
| 13883 | cat >>confdefs.h <<_ACEOF |
| 13884 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 13885 | _ACEOF |
| 13886 | |
| 13887 | |
| 13888 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13889 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13890 | #ifdef HAVE_SYS_PARAM_H |
| 13891 | # include <sys/param.h> |
| 13892 | #endif |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13893 | #ifdef HAVE_SYS_MOUNT_H |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13894 | # include <sys/mount.h> |
Robert Millan | 55b7448 | 2006-02-06 21:53:27 +0100 | [diff] [blame] | 13895 | #endif |
| 13896 | #ifdef HAVE_SYS_VFS_H |
| 13897 | # include <sys/vfs.h> |
| 13898 | #endif |
| 13899 | #ifdef HAVE_SYS_STATFS_H |
| 13900 | # include <sys/statfs.h> |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13901 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13902 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13903 | if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then : |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 13904 | |
| 13905 | cat >>confdefs.h <<_ACEOF |
| 13906 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 13907 | _ACEOF |
| 13908 | |
| 13909 | |
| 13910 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13911 | |
| 13912 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13913 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13914 | #include <sys/statvfs.h> |
| 13915 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13916 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13917 | if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then : |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 13918 | |
| 13919 | cat >>confdefs.h <<_ACEOF |
| 13920 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 13921 | _ACEOF |
| 13922 | |
| 13923 | |
| 13924 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13925 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13926 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13927 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13928 | #ifdef HAVE_SYS_SOCKET_H |
| 13929 | # include <sys/socket.h> |
| 13930 | #endif |
| 13931 | #ifdef HAVE_SYS_UN_H |
| 13932 | # include <sys/un.h> |
| 13933 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13934 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13935 | if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then : |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13936 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13937 | cat >>confdefs.h <<_ACEOF |
| 13938 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13939 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13940 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13941 | |
| 13942 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13943 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13944 | #ifdef HAVE_SYS_SOCKET_H |
| 13945 | # include <sys/socket.h> |
| 13946 | #endif |
| 13947 | #ifdef HAVE_SYS_UN_H |
| 13948 | # include <sys/un.h> |
| 13949 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13950 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13951 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13952 | |
| 13953 | cat >>confdefs.h <<_ACEOF |
| 13954 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 13955 | _ACEOF |
| 13956 | |
| 13957 | |
| 13958 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13959 | ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13960 | #ifdef HAVE_SYS_SOCKET_H |
| 13961 | # include <sys/socket.h> |
| 13962 | #endif |
| 13963 | #ifdef HAVE_SYS_UN_H |
| 13964 | # include <sys/un.h> |
| 13965 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13966 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13967 | if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 13968 | |
| 13969 | cat >>confdefs.h <<_ACEOF |
| 13970 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 13971 | _ACEOF |
| 13972 | |
| 13973 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13974 | fi |
| 13975 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13976 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13977 | ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h> |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13978 | #ifdef HAVE_SCSI_SG_H |
| 13979 | #include <scsi/sg.h> |
| 13980 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13981 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13982 | if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then : |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13983 | |
| 13984 | cat >>confdefs.h <<_ACEOF |
| 13985 | #define HAVE_SCSIREQ_T_CMD 1 |
| 13986 | _ACEOF |
| 13987 | |
| 13988 | |
| 13989 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13990 | ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h> |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13991 | #ifdef HAVE_SCSI_SG_H |
| 13992 | #include <scsi/sg.h> |
| 13993 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 13994 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 13995 | if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then : |
Dmitry Timoshkov | ea64a36 | 2005-06-27 12:07:49 +0000 | [diff] [blame] | 13996 | |
| 13997 | cat >>confdefs.h <<_ACEOF |
| 13998 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 |
| 13999 | _ACEOF |
| 14000 | |
| 14001 | |
| 14002 | fi |
| 14003 | |
| 14004 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14005 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h> |
| 14006 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14007 | if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then : |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 14008 | |
| 14009 | cat >>confdefs.h <<_ACEOF |
| 14010 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 14011 | _ACEOF |
| 14012 | |
| 14013 | |
| 14014 | fi |
| 14015 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14016 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14017 | ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 14018 | #ifdef HAVE_SYS_MTIO_H |
| 14019 | #include <sys/mtio.h> |
| 14020 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14021 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14022 | if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then : |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 14023 | |
| 14024 | cat >>confdefs.h <<_ACEOF |
| 14025 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 |
| 14026 | _ACEOF |
| 14027 | |
| 14028 | |
| 14029 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14030 | ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h> |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 14031 | #ifdef HAVE_SYS_MTIO_H |
| 14032 | #include <sys/mtio.h> |
| 14033 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14034 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14035 | if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then : |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 14036 | |
| 14037 | cat >>confdefs.h <<_ACEOF |
| 14038 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 |
| 14039 | _ACEOF |
| 14040 | |
| 14041 | |
| 14042 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14043 | ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h> |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 14044 | #ifdef HAVE_SYS_MTIO_H |
| 14045 | #include <sys/mtio.h> |
| 14046 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14047 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14048 | if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then : |
Gerald Pfeifer | 571d9fb | 2006-02-06 20:59:44 +0100 | [diff] [blame] | 14049 | |
| 14050 | cat >>confdefs.h <<_ACEOF |
| 14051 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 |
| 14052 | _ACEOF |
| 14053 | |
| 14054 | |
| 14055 | fi |
Gerald Pfeifer | 36bdc64 | 2006-02-05 13:51:03 +0100 | [diff] [blame] | 14056 | |
| 14057 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14058 | ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 14059 | #include <getopt.h> |
| 14060 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14061 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14062 | if test "x$ac_cv_member_struct_option_name" = xyes; then : |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 14063 | |
| 14064 | cat >>confdefs.h <<_ACEOF |
| 14065 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 14066 | _ACEOF |
| 14067 | |
| 14068 | |
| 14069 | fi |
| 14070 | |
| 14071 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14072 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14073 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 14074 | |
| 14075 | cat >>confdefs.h <<_ACEOF |
| 14076 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14077 | _ACEOF |
| 14078 | |
| 14079 | |
| 14080 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14081 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14082 | if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 14083 | |
| 14084 | cat >>confdefs.h <<_ACEOF |
| 14085 | #define HAVE_STRUCT_STAT_ST_MTIM 1 |
| 14086 | _ACEOF |
| 14087 | |
| 14088 | |
| 14089 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14090 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14091 | if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 14092 | |
| 14093 | cat >>confdefs.h <<_ACEOF |
| 14094 | #define HAVE_STRUCT_STAT_ST_CTIM 1 |
| 14095 | _ACEOF |
| 14096 | |
| 14097 | |
| 14098 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14099 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14100 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
Michael Karcher | af2d274 | 2008-08-17 19:03:44 +0200 | [diff] [blame] | 14101 | |
| 14102 | cat >>confdefs.h <<_ACEOF |
| 14103 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 14104 | _ACEOF |
| 14105 | |
| 14106 | |
| 14107 | fi |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 14108 | |
| 14109 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14110 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef HAVE_SYS_TYPES_H |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 14111 | #include <sys/types.h> |
| 14112 | #endif |
| 14113 | #ifdef HAVE_NETINET_IN_H |
| 14114 | #include <netinet/in.h> |
| 14115 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14116 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14117 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : |
Vitaly Lipatov | 40a6a74 | 2006-02-20 15:33:09 +0300 | [diff] [blame] | 14118 | |
| 14119 | cat >>confdefs.h <<_ACEOF |
| 14120 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 14121 | _ACEOF |
| 14122 | |
| 14123 | |
| 14124 | fi |
| 14125 | |
| 14126 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14127 | ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 14128 | #include <sys/types.h> |
| 14129 | #endif |
| 14130 | #ifdef HAVE_NETINET_IN_H |
| 14131 | # include <netinet/in.h> |
| 14132 | #endif |
| 14133 | #ifdef HAVE_ARPA_NAMESER_H |
| 14134 | # include <arpa/nameser.h> |
| 14135 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14136 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14137 | if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then : |
Alexandre Julliard | 788e30f | 2006-05-31 14:43:21 +0200 | [diff] [blame] | 14138 | |
| 14139 | cat >>confdefs.h <<_ACEOF |
| 14140 | #define HAVE_NS_MSG__MSG_PTR 1 |
| 14141 | _ACEOF |
| 14142 | |
| 14143 | |
| 14144 | fi |
| 14145 | |
| 14146 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14147 | ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H |
Austin English | ac0252d | 2009-01-30 10:18:10 -0600 | [diff] [blame] | 14148 | #include <sys/types.h> |
| 14149 | #endif |
| 14150 | #ifdef HAVE_ALIAS_H |
| 14151 | #include <alias.h> |
| 14152 | #endif |
| 14153 | #ifdef HAVE_SYS_SOCKET_H |
| 14154 | #include <sys/socket.h> |
| 14155 | #endif |
| 14156 | #ifdef HAVE_SYS_SOCKETVAR_H |
| 14157 | #include <sys/socketvar.h> |
| 14158 | #endif |
| 14159 | #ifdef HAVE_SYS_TIMEOUT_H |
| 14160 | #include <sys/timeout.h> |
| 14161 | #endif |
| 14162 | #ifdef HAVE_NETINET_IN_H |
| 14163 | #include <netinet/in.h> |
| 14164 | #endif |
| 14165 | #ifdef HAVE_NETINET_IN_SYSTM_H |
| 14166 | #include <netinet/in_systm.h> |
| 14167 | #endif |
| 14168 | #ifdef HAVE_NETINET_IP_H |
| 14169 | #include <netinet/ip.h> |
| 14170 | #endif |
| 14171 | #ifdef HAVE_NETINET_IP_VAR_H |
| 14172 | #include <netinet/ip_var.h> |
| 14173 | #endif |
| 14174 | #ifdef HAVE_NETINET_IP_ICMP_H |
| 14175 | #include <netinet/ip_icmp.h> |
| 14176 | #endif |
| 14177 | #ifdef HAVE_NETINET_ICMP_VAR |
| 14178 | #include <netinet/icmp_var.h> |
| 14179 | #endif |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14180 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14181 | if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then : |
Austin English | ac0252d | 2009-01-30 10:18:10 -0600 | [diff] [blame] | 14182 | |
| 14183 | cat >>confdefs.h <<_ACEOF |
| 14184 | #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1 |
| 14185 | _ACEOF |
| 14186 | |
| 14187 | |
| 14188 | fi |
| 14189 | |
| 14190 | |
Juan Lang | 984c3b2 | 2010-03-12 10:38:46 -0800 | [diff] [blame] | 14191 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H |
| 14192 | #include <sys/types.h> |
| 14193 | #endif |
| 14194 | #ifdef HAVE_NET_IF_H |
| 14195 | # include <net/if.h> |
| 14196 | #endif |
| 14197 | " |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14198 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then : |
Juan Lang | 984c3b2 | 2010-03-12 10:38:46 -0800 | [diff] [blame] | 14199 | |
| 14200 | cat >>confdefs.h <<_ACEOF |
| 14201 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
| 14202 | _ACEOF |
| 14203 | |
| 14204 | |
| 14205 | fi |
| 14206 | |
| 14207 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14209 | $as_echo_n "checking for timezone variable... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14210 | if ${ac_cv_have_timezone+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14211 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14212 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14214 | /* end confdefs.h. */ |
| 14215 | #include <time.h> |
| 14216 | int |
| 14217 | main () |
| 14218 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 14219 | timezone = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14220 | ; |
| 14221 | return 0; |
| 14222 | } |
| 14223 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14224 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14225 | ac_cv_have_timezone="yes" |
| 14226 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14227 | ac_cv_have_timezone="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14228 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14229 | rm -f core conftest.err conftest.$ac_objext \ |
| 14230 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14231 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14233 | $as_echo "$ac_cv_have_timezone" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14234 | if test "$ac_cv_have_timezone" = "yes" |
| 14235 | then |
| 14236 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14237 | $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14238 | |
| 14239 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14241 | $as_echo_n "checking for daylight variable... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14242 | if ${ac_cv_have_daylight+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14243 | $as_echo_n "(cached) " >&6 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14244 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14246 | /* end confdefs.h. */ |
| 14247 | #include <time.h> |
| 14248 | int |
| 14249 | main () |
| 14250 | { |
Alexandre Julliard | ff2bd66 | 2006-08-25 13:23:29 +0200 | [diff] [blame] | 14251 | daylight = 1 |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14252 | ; |
| 14253 | return 0; |
| 14254 | } |
| 14255 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14256 | if ac_fn_c_try_link "$LINENO"; then : |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14257 | ac_cv_have_daylight="yes" |
| 14258 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14259 | ac_cv_have_daylight="no" |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14260 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14261 | rm -f core conftest.err conftest.$ac_objext \ |
| 14262 | conftest$ac_exeext conftest.$ac_ext |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14263 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14265 | $as_echo "$ac_cv_have_daylight" >&6; } |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14266 | if test "$ac_cv_have_daylight" = "yes" |
| 14267 | then |
| 14268 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14269 | $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h |
Phil Krylov | 6618b03 | 2005-05-24 11:52:46 +0000 | [diff] [blame] | 14270 | |
| 14271 | fi |
| 14272 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14274 | $as_echo_n "checking for isinf... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14275 | if ${ac_cv_have_isinf+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14276 | $as_echo_n "(cached) " >&6 |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14277 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14279 | /* end confdefs.h. */ |
| 14280 | #include <math.h> |
| 14281 | int |
| 14282 | main () |
| 14283 | { |
Francois Gouget | 2fef93a | 2008-06-26 15:59:05 +0200 | [diff] [blame] | 14284 | float f = 0.0; int i=isinf(f) |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14285 | ; |
| 14286 | return 0; |
| 14287 | } |
| 14288 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14289 | if ac_fn_c_try_link "$LINENO"; then : |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14290 | ac_cv_have_isinf="yes" |
| 14291 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14292 | ac_cv_have_isinf="no" |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14293 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14294 | rm -f core conftest.err conftest.$ac_objext \ |
| 14295 | conftest$ac_exeext conftest.$ac_ext |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14296 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14298 | $as_echo "$ac_cv_have_isinf" >&6; } |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14299 | if test "$ac_cv_have_isinf" = "yes" |
| 14300 | then |
| 14301 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14302 | $as_echo "#define HAVE_ISINF 1" >>confdefs.h |
Petr Sumbera | 4992b65 | 2008-04-29 17:08:53 +0200 | [diff] [blame] | 14303 | |
| 14304 | fi |
| 14305 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14307 | $as_echo_n "checking for isnan... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14308 | if ${ac_cv_have_isnan+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14309 | $as_echo_n "(cached) " >&6 |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14310 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14312 | /* end confdefs.h. */ |
| 14313 | #include <math.h> |
| 14314 | int |
| 14315 | main () |
| 14316 | { |
| 14317 | float f = 0.0; int i=isnan(f) |
| 14318 | ; |
| 14319 | return 0; |
| 14320 | } |
| 14321 | _ACEOF |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14322 | if ac_fn_c_try_link "$LINENO"; then : |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14323 | ac_cv_have_isnan="yes" |
| 14324 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14325 | ac_cv_have_isnan="no" |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14326 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14327 | rm -f core conftest.err conftest.$ac_objext \ |
| 14328 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14329 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14331 | $as_echo "$ac_cv_have_isnan" >&6; } |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14332 | if test "$ac_cv_have_isnan" = "yes" |
| 14333 | then |
| 14334 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14335 | $as_echo "#define HAVE_ISNAN 1" >>confdefs.h |
Jacek Caban | 1715dcb | 2008-10-14 16:06:49 -0500 | [diff] [blame] | 14336 | |
| 14337 | fi |
| 14338 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14339 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14340 | case $host_cpu in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14341 | *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14342 | $as_echo_n "checking whether we need to define __i386__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14343 | if ${ac_cv_cpp_def___i386__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14344 | $as_echo_n "(cached) " >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 14345 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14347 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14348 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14349 | yes |
| 14350 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14351 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14352 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14353 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14354 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14355 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14356 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14357 | fi |
| 14358 | rm -f conftest* |
| 14359 | |
| 14360 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14362 | $as_echo "$ac_cv_cpp_def___i386__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14363 | if test $ac_cv_cpp_def___i386__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14364 | CFLAGS="$CFLAGS -D__i386__" |
| 14365 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14366 | fi ;; |
| 14367 | *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14368 | $as_echo_n "checking whether we need to define __x86_64__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14369 | if ${ac_cv_cpp_def___x86_64__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14370 | $as_echo_n "(cached) " >&6 |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14371 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14373 | /* end confdefs.h. */ |
| 14374 | #ifndef __x86_64__ |
| 14375 | yes |
| 14376 | #endif |
| 14377 | _ACEOF |
| 14378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14379 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14380 | ac_cv_cpp_def___x86_64__=yes |
| 14381 | else |
| 14382 | ac_cv_cpp_def___x86_64__=no |
| 14383 | fi |
| 14384 | rm -f conftest* |
| 14385 | |
| 14386 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14388 | $as_echo "$ac_cv_cpp_def___x86_64__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14389 | if test $ac_cv_cpp_def___x86_64__ = yes; then : |
Alexandre Julliard | e3be564 | 2005-09-09 09:30:02 +0000 | [diff] [blame] | 14390 | CFLAGS="$CFLAGS -D__x86_64__" |
| 14391 | LINTFLAGS="$LINTFLAGS -D__x86_64__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14392 | fi ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14393 | *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14394 | $as_echo_n "checking whether we need to define __sparc__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14395 | if ${ac_cv_cpp_def___sparc__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14396 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14397 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14399 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14400 | #ifndef __sparc__ |
| 14401 | yes |
| 14402 | #endif |
| 14403 | _ACEOF |
| 14404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14405 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14406 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14407 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14408 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14409 | fi |
| 14410 | rm -f conftest* |
| 14411 | |
| 14412 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14414 | $as_echo "$ac_cv_cpp_def___sparc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14415 | if test $ac_cv_cpp_def___sparc__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14416 | CFLAGS="$CFLAGS -D__sparc__" |
| 14417 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14418 | fi ;; |
| 14419 | *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14420 | $as_echo_n "checking whether we need to define __powerpc__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14421 | if ${ac_cv_cpp_def___powerpc__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14422 | $as_echo_n "(cached) " >&6 |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14423 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14425 | /* end confdefs.h. */ |
| 14426 | #ifndef __powerpc__ |
| 14427 | yes |
| 14428 | #endif |
| 14429 | _ACEOF |
| 14430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14431 | $EGREP "yes" >/dev/null 2>&1; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14432 | ac_cv_cpp_def___powerpc__=yes |
| 14433 | else |
| 14434 | ac_cv_cpp_def___powerpc__=no |
| 14435 | fi |
| 14436 | rm -f conftest* |
| 14437 | |
| 14438 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14440 | $as_echo "$ac_cv_cpp_def___powerpc__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14441 | if test $ac_cv_cpp_def___powerpc__ = yes; then : |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 14442 | CFLAGS="$CFLAGS -D__powerpc__" |
| 14443 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14444 | fi ;; |
André Hentschel | 50ada0f | 2011-04-19 19:37:05 +0200 | [diff] [blame] | 14445 | *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5 |
| 14446 | $as_echo_n "checking whether we need to define __arm__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14447 | if ${ac_cv_cpp_def___arm__+:} false; then : |
André Hentschel | 50ada0f | 2011-04-19 19:37:05 +0200 | [diff] [blame] | 14448 | $as_echo_n "(cached) " >&6 |
| 14449 | else |
| 14450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14451 | /* end confdefs.h. */ |
| 14452 | #ifndef __arm__ |
| 14453 | yes |
| 14454 | #endif |
| 14455 | _ACEOF |
| 14456 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14457 | $EGREP "yes" >/dev/null 2>&1; then : |
| 14458 | ac_cv_cpp_def___arm__=yes |
| 14459 | else |
| 14460 | ac_cv_cpp_def___arm__=no |
| 14461 | fi |
| 14462 | rm -f conftest* |
| 14463 | |
| 14464 | fi |
| 14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5 |
| 14466 | $as_echo "$ac_cv_cpp_def___arm__" >&6; } |
| 14467 | if test $ac_cv_cpp_def___arm__ = yes; then : |
| 14468 | CFLAGS="$CFLAGS -D__arm__" |
| 14469 | LINTFLAGS="$LINTFLAGS -D__arm__" |
| 14470 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14471 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14472 | |
| 14473 | case $host_vendor in |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14474 | *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14475 | $as_echo_n "checking whether we need to define __sun__... " >&6; } |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14476 | if ${ac_cv_cpp_def___sun__+:} false; then : |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14477 | $as_echo_n "(cached) " >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14478 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14480 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14481 | #ifndef __sun__ |
| 14482 | yes |
| 14483 | #endif |
| 14484 | _ACEOF |
| 14485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14486 | $EGREP "yes" >/dev/null 2>&1; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14487 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14488 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14489 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14490 | fi |
| 14491 | rm -f conftest* |
| 14492 | |
| 14493 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 14495 | $as_echo "$ac_cv_cpp_def___sun__" >&6; } |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14496 | if test $ac_cv_cpp_def___sun__ = yes; then : |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14497 | CFLAGS="$CFLAGS -D__sun__" |
| 14498 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 14499 | fi ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 14500 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 14501 | |
| 14502 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14503 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14504 | |
Alexandre Julliard | 6c14238 | 2010-04-11 12:47:30 +0200 | [diff] [blame] | 14505 | |
Alexandre Julliard | 7d83115 | 2010-03-20 15:07:45 +0100 | [diff] [blame] | 14506 | ac_config_commands="$ac_config_commands include/stamp-h" |
| 14507 | |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14508 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14509 | ALL_MAKEFILE_DEPENDS=" |
| 14510 | # Rules automatically generated by configure |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14511 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14512 | .INIT: Makefile |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14513 | .MAKEFILEDEPS: |
Alexandre Julliard | bd3110d | 2010-05-23 10:34:36 +0200 | [diff] [blame] | 14514 | all: Makefile |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 14515 | Makefile: Makefile.in Make.vars.in Make.rules config.status |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 14516 | @./config.status Make.tmp Makefile" |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14517 | |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14518 | ALL_POT_FILES="" |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14519 | ALL_TEST_RESOURCES="" |
Alexandre Julliard | 454fb3c | 2010-02-08 21:29:13 +0100 | [diff] [blame] | 14520 | |
Alexandre Julliard | 49163da | 2008-08-25 12:02:27 +0200 | [diff] [blame] | 14521 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14522 | wine_fn_append_file () |
| 14523 | { |
| 14524 | as_fn_append $1 " \\$as_nl $2" |
| 14525 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14526 | |
Alexandre Julliard | 2de10c4 | 2010-02-11 23:23:45 +0100 | [diff] [blame] | 14527 | wine_fn_append_rule () |
| 14528 | { |
| 14529 | as_fn_append $1 "$as_nl$2" |
| 14530 | } |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14531 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14532 | wine_fn_has_flag () |
| 14533 | { |
| 14534 | expr ",$2," : ".*,$1,.*" >/dev/null |
| 14535 | } |
| 14536 | |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14537 | wine_fn_all_dir_rules () |
| 14538 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14539 | ac_dir=$1 |
| 14540 | ac_alldeps=$2 |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14541 | ac_makedep="\$(MAKEDEP)" |
| 14542 | ac_input=Make.vars.in:$ac_dir/Makefile.in |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14543 | if test $ac_dir != tools |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14544 | then |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14545 | ac_alldeps="$2 $ac_makedep" |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14546 | fi |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14547 | case $2 in |
| 14548 | *.in) ac_input=$ac_input:$2 ;; |
| 14549 | *) ac_makedep="$2 $ac_makedep" ;; |
| 14550 | esac |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14551 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14552 | wine_fn_append_file ALL_DIRS $ac_dir |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14553 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14554 | "__clean__: $ac_dir/__clean__ |
| 14555 | .PHONY: $ac_dir/__clean__ |
| 14556 | $ac_dir/__clean__: $ac_dir/Makefile |
| 14557 | @cd $ac_dir && \$(MAKE) clean |
| 14558 | \$(RM) $ac_dir/Makefile |
| 14559 | $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14560 | @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14561 | depend: $ac_dir/__depend__ |
| 14562 | .PHONY: $ac_dir/__depend__ |
Alexandre Julliard | 9dd743f | 2010-09-25 12:19:31 +0200 | [diff] [blame] | 14563 | $ac_dir/__depend__: $ac_makedep dummy |
| 14564 | @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend" |
Alexandre Julliard | 943cd73 | 2010-03-25 21:52:56 +0100 | [diff] [blame] | 14565 | } |
| 14566 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14567 | wine_fn_config_makefile () |
| 14568 | { |
| 14569 | ac_dir=$1 |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14570 | ac_enable=$2 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14571 | ac_flags=$3 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14572 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14573 | return 0 |
| 14574 | fi |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 14575 | |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14576 | wine_fn_all_dir_rules $ac_dir Make.rules |
Alexandre Julliard | 9bdd027 | 2010-06-30 17:34:20 +0200 | [diff] [blame] | 14577 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14578 | "all: $ac_dir |
| 14579 | .PHONY: $ac_dir |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14580 | $ac_dir: $ac_dir/Makefile dummy |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14581 | @cd $ac_dir && \$(MAKE)" |
| 14582 | |
| 14583 | wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return |
| 14584 | |
| 14585 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14586 | "install:: $ac_dir |
Alexandre Julliard | e84063b | 2010-03-25 21:46:41 +0100 | [diff] [blame] | 14587 | @cd $ac_dir && \$(MAKE) install |
Alexandre Julliard | e84063b | 2010-03-25 21:46:41 +0100 | [diff] [blame] | 14588 | uninstall:: $ac_dir/Makefile |
| 14589 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 14590 | |
| 14591 | if wine_fn_has_flag install-lib $ac_flags |
| 14592 | then |
| 14593 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14594 | "install-lib:: $ac_dir |
| 14595 | @cd $ac_dir && \$(MAKE) install-lib" |
| 14596 | fi |
| 14597 | |
| 14598 | if wine_fn_has_flag install-dev $ac_flags |
| 14599 | then |
| 14600 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14601 | "install-dev:: $ac_dir |
| 14602 | @cd $ac_dir && \$(MAKE) install-dev" |
| 14603 | fi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14604 | } |
| 14605 | |
| 14606 | wine_fn_config_lib () |
| 14607 | { |
| 14608 | ac_name=$1 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14609 | ac_flags=$2 |
Alexandre Julliard | b8fb1d5 | 2010-03-20 14:50:53 +0100 | [diff] [blame] | 14610 | ac_dir=dlls/$ac_name |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14611 | wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14612 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | c2c3c21 | 2010-03-25 11:13:07 +0100 | [diff] [blame] | 14613 | "all __builddeps__: $ac_dir |
Alexandre Julliard | 7d2e772 | 2010-07-26 12:13:47 +0200 | [diff] [blame] | 14614 | $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14615 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | c2c3c21 | 2010-03-25 11:13:07 +0100 | [diff] [blame] | 14616 | install install-dev:: $ac_dir |
| 14617 | @cd $ac_dir && \$(MAKE) install |
| 14618 | uninstall:: $ac_dir/Makefile |
| 14619 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14620 | } |
| 14621 | |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14622 | wine_fn_config_dll () |
| 14623 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14624 | ac_name=$1 |
| 14625 | ac_dir=dlls/$ac_name |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14626 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14627 | ac_flags=$3 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14628 | ac_implib=${4:-$ac_name} |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14629 | ac_file=$ac_dir/lib$ac_implib |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14630 | ac_deps="tools/widl tools/winebuild tools/winegcc include" |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14631 | ac_implibflags="" |
| 14632 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14633 | case $ac_name in |
Alexandre Julliard | b0e48e1 | 2010-07-26 21:06:28 +0200 | [diff] [blame] | 14634 | *16) ac_implibflags=" -m16" ;; |
| 14635 | esac |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14636 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14637 | wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules |
Alexandre Julliard | 82b743f | 2010-03-25 11:15:32 +0100 | [diff] [blame] | 14638 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14639 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14640 | test "$ac_enable" != enable_win16 || return 0 |
| 14641 | else |
Alexandre Julliard | 60a05ad | 2010-03-25 12:05:44 +0100 | [diff] [blame] | 14642 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14643 | "all: $ac_dir |
| 14644 | .PHONY: $ac_dir |
| 14645 | $ac_dir: $ac_dir/Makefile __builddeps__ dummy |
| 14646 | @cd $ac_dir && \$(MAKE) |
| 14647 | install:: $ac_dir/Makefile __builddeps__ |
| 14648 | @cd $ac_dir && \$(MAKE) install |
| 14649 | install-lib:: $ac_dir/Makefile __builddeps__ |
| 14650 | @cd $ac_dir && \$(MAKE) install-lib |
| 14651 | uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile |
| 14652 | @cd $ac_dir && \$(MAKE) \$@" |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14653 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14654 | if test "x$enable_maintainer_mode" = xyes |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14655 | then |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14656 | if wine_fn_has_flag mc $ac_flags |
| 14657 | then |
| 14658 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14659 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14660 | "$ac_dir/msg.pot: $ac_dir" |
| 14661 | fi |
| 14662 | if wine_fn_has_flag po $ac_flags |
| 14663 | then |
| 14664 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14665 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14666 | "$ac_dir/rsrc.pot: $ac_dir" |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14667 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14668 | fi |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14669 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14670 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14671 | if wine_fn_has_flag staticimplib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14672 | then |
| 14673 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14674 | "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14675 | $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14676 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile |
| 14677 | @cd $ac_dir && \$(MAKE) lib$ac_implib.def |
| 14678 | $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy |
| 14679 | @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT |
| 14680 | install-dev:: $ac_dir/Makefile __builddeps__ |
| 14681 | @cd $ac_dir && \$(MAKE) install-dev" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14682 | if test "x$CROSSTEST_DISABLE" = x |
| 14683 | then |
| 14684 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14685 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14686 | $ac_file.cross.a: $ac_dir/Makefile dummy |
| 14687 | @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14688 | fi |
| 14689 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14690 | elif wine_fn_has_flag implib $ac_flags |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14691 | then |
| 14692 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14693 | "__builddeps__: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14694 | $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14695 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
| 14696 | $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14697 | \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec |
| 14698 | install-dev:: $ac_dir/Makefile __builddeps__ |
| 14699 | @cd $ac_dir && \$(MAKE) install-dev" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14700 | if test "x$CROSSTEST_DISABLE" = x |
| 14701 | then |
| 14702 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14703 | "__builddeps__: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14704 | $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD) |
| 14705 | \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14706 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14707 | |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14708 | if test "$ac_name" != "$ac_implib" |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14709 | then |
| 14710 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14711 | "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT |
Alexandre Julliard | e55ff7f | 2010-03-25 11:02:52 +0100 | [diff] [blame] | 14712 | dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14713 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@ |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14714 | clean:: |
| 14715 | \$(RM) dlls/lib$ac_implib.$IMPLIBEXT" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14716 | if test "x$CROSSTEST_DISABLE" = x |
| 14717 | then |
| 14718 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14719 | "__builddeps__: dlls/lib$ac_implib.cross.a |
| 14720 | dlls/lib$ac_implib.cross.a: $ac_file.cross.a |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14721 | \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14722 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14723 | fi |
| 14724 | fi |
| 14725 | } |
| 14726 | |
| 14727 | wine_fn_config_program () |
| 14728 | { |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14729 | ac_name=$1 |
| 14730 | ac_dir=programs/$ac_name |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14731 | ac_enable=$2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14732 | ac_flags=$3 |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14733 | wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14734 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 14735 | if eval test \"x\$"$ac_enable"\" = x"no"; then : |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14736 | |
| 14737 | else |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14738 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14739 | "all: $ac_dir |
| 14740 | .PHONY: $ac_dir |
| 14741 | $ac_dir: $ac_dir/Makefile __builddeps__ dummy |
| 14742 | @cd $ac_dir && \$(MAKE)" |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14743 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14744 | if test "x$enable_maintainer_mode" = xyes |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14745 | then |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14746 | if wine_fn_has_flag mc $ac_flags |
| 14747 | then |
| 14748 | wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot |
| 14749 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14750 | "$ac_dir/msg.pot: $ac_dir" |
| 14751 | fi |
| 14752 | if wine_fn_has_flag po $ac_flags |
| 14753 | then |
| 14754 | wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot |
| 14755 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14756 | "$ac_dir/rsrc.pot: $ac_dir" |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 14757 | fi |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 14758 | fi |
| 14759 | |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14760 | wine_fn_has_flag install $ac_flags || return |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14761 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14762 | "install install-lib:: $ac_dir/Makefile __builddeps__ |
| 14763 | @cd $ac_dir && \$(MAKE) install |
| 14764 | uninstall:: $ac_dir/Makefile |
| 14765 | @cd $ac_dir && \$(MAKE) uninstall" |
Alexandre Julliard | c1e2958 | 2011-01-03 18:28:27 +0100 | [diff] [blame] | 14766 | if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14767 | then |
| 14768 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 718ea42 | 2010-03-26 09:29:10 +0100 | [diff] [blame] | 14769 | "install install-lib:: tools \$(DESTDIR)\$(bindir) |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14770 | \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name |
Alexandre Julliard | 2fb3021 | 2010-03-26 09:24:33 +0100 | [diff] [blame] | 14771 | uninstall:: |
Alexandre Julliard | 52c9e85 | 2010-09-25 12:01:14 +0200 | [diff] [blame] | 14772 | \$(RM) \$(DESTDIR)\$(bindir)/$ac_name" |
Alexandre Julliard | d7b387d | 2010-03-25 11:11:34 +0100 | [diff] [blame] | 14773 | fi |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 14774 | fi |
Alexandre Julliard | 5023194 | 2010-03-16 22:00:02 +0100 | [diff] [blame] | 14775 | } |
| 14776 | |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14777 | wine_fn_config_test () |
| 14778 | { |
| 14779 | ac_dir=$1 |
| 14780 | ac_name=$2 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14781 | ac_flags=$3 |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14782 | wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res |
Alexandre Julliard | c57aa38 | 2010-09-25 11:56:33 +0200 | [diff] [blame] | 14783 | wine_fn_all_dir_rules $ac_dir Maketest.rules |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14784 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 14785 | if test "x$enable_tests" = xno; then : |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14786 | |
| 14787 | else |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14788 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14789 | "all: $ac_dir |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14790 | .PHONY: $ac_dir |
Alexandre Julliard | dbbed38 | 2011-05-26 12:04:45 +0200 | [diff] [blame] | 14791 | $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy |
Alexandre Julliard | 6c90aea | 2010-03-25 21:47:29 +0100 | [diff] [blame] | 14792 | @cd $ac_dir && \$(MAKE) |
Alexandre Julliard | 9b99cd1 | 2011-05-24 11:11:22 +0200 | [diff] [blame] | 14793 | programs/winetest: $ac_dir |
Alexandre Julliard | e4eff85 | 2011-05-22 13:15:03 +0200 | [diff] [blame] | 14794 | check test: $ac_dir/__test__ |
Alexandre Julliard | 764d4c2 | 2010-05-23 09:27:33 +0200 | [diff] [blame] | 14795 | .PHONY: $ac_dir/__test__ |
Alexandre Julliard | eab7efd | 2010-03-25 21:42:54 +0100 | [diff] [blame] | 14796 | $ac_dir/__test__: dummy |
Alexandre Julliard | 44cff7e | 2010-03-25 11:06:37 +0100 | [diff] [blame] | 14797 | @cd $ac_dir && \$(MAKE) test |
| 14798 | testclean:: |
| 14799 | \$(RM) $ac_dir/*.ok" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14800 | |
| 14801 | if test "x$CROSSTEST_DISABLE" = x |
| 14802 | then |
| 14803 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14804 | "crosstest: $ac_dir/__crosstest__ |
| 14805 | .PHONY: $ac_dir/__crosstest__ |
| 14806 | $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy |
| 14807 | @cd $ac_dir && \$(MAKE) crosstest" |
Alexandre Julliard | faa7eae | 2010-07-26 12:38:11 +0200 | [diff] [blame] | 14808 | fi |
Alexandre Julliard | dc3afa1 | 2010-03-20 14:51:52 +0100 | [diff] [blame] | 14809 | fi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14810 | } |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14811 | |
| 14812 | wine_fn_config_tool () |
| 14813 | { |
| 14814 | ac_dir=$1 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14815 | ac_flags=$2 |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14816 | if test "x$enable_tools" = xno; then : |
| 14817 | return 0 |
| 14818 | fi |
| 14819 | |
Alexandre Julliard | 49c31e3 | 2011-06-12 12:13:17 +0200 | [diff] [blame^] | 14820 | wine_fn_config_makefile $ac_dir enable_tools $ac_flags |
Alexandre Julliard | 6dbe7a0 | 2010-03-25 11:51:24 +0100 | [diff] [blame] | 14821 | |
Alexandre Julliard | 49c31e3 | 2011-06-12 12:13:17 +0200 | [diff] [blame^] | 14822 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir" |
| 14823 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port" |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14824 | case $ac_dir in |
| 14825 | tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;; |
| 14826 | esac |
Alexandre Julliard | d81a8f8 | 2010-03-20 15:02:56 +0100 | [diff] [blame] | 14827 | } |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14828 | |
| 14829 | wine_fn_config_makerules () |
| 14830 | { |
| 14831 | ac_rules=$1 |
| 14832 | ac_deps=$2 |
| 14833 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14834 | "$ac_rules: $ac_rules.in $ac_deps config.status |
| 14835 | @./config.status $ac_rules |
| 14836 | distclean:: |
| 14837 | \$(RM) $ac_rules" |
| 14838 | } |
| 14839 | |
| 14840 | wine_fn_config_symlink () |
| 14841 | { |
| 14842 | ac_link=$1 |
| 14843 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14844 | "$ac_link: |
| 14845 | @./config.status $ac_link |
| 14846 | distclean:: |
| 14847 | \$(RM) $ac_link" |
| 14848 | } |
Alexandre Julliard | a070f9b | 2010-07-26 20:53:12 +0200 | [diff] [blame] | 14849 | |
| 14850 | if test "x$CROSSTEST_DISABLE" != x |
| 14851 | then |
| 14852 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ |
| 14853 | "crosstest: |
| 14854 | @echo \"crosstest is not supported (mingw not installed?)\" && false" |
| 14855 | fi |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 14856 | ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS" |
| 14857 | wine_fn_config_symlink dlls/shell32/AUTHORS |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 14858 | ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14859 | test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14860 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14861 | ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14862 | test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14863 | fi |
| 14864 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14865 | ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14866 | test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14867 | fi |
| 14868 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14869 | ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14870 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14871 | fi |
| 14872 | if test "x$enable_fonts" != xno; then |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 14873 | ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14874 | test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf |
Alexandre Julliard | 0ef63e1 | 2010-03-27 11:44:13 +0100 | [diff] [blame] | 14875 | fi |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14876 | if test "x$enable_tools" != xno; then |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 14877 | ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls" |
| 14878 | test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 14879 | fi |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14880 | ac_config_links="$ac_config_links wine:tools/winewrapper" |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14881 | wine_fn_config_symlink wine |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 14882 | if test "x$enable_win64" != xno; then |
| 14883 | ac_config_links="$ac_config_links wine64:tools/winewrapper" |
| 14884 | wine_fn_config_symlink wine64 |
| 14885 | fi |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 14886 | |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 14887 | ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv" |
| 14888 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14889 | ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14890 | |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 14891 | ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14892 | |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 14893 | ac_config_commands="$ac_config_commands dlls/kernel32/nls" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14894 | |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 14895 | ac_config_commands="$ac_config_commands dlls/user32/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14896 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14897 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14898 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 14899 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14900 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 14901 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14902 | wine_fn_config_makerules Make.rules |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 14903 | MAKE_RULES=Make.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14904 | ac_config_files="$ac_config_files Make.rules" |
| 14905 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14906 | wine_fn_config_makerules Maketest.rules Make.rules |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 14907 | MAKE_TEST_RULES=Maketest.rules |
| 14908 | ac_config_files="$ac_config_files Maketest.rules" |
| 14909 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14910 | wine_fn_config_makerules dlls/Makedll.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14911 | MAKE_DLL_RULES=dlls/Makedll.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14912 | ac_config_files="$ac_config_files dlls/Makedll.rules" |
| 14913 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14914 | wine_fn_config_makerules dlls/Makeimplib.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14915 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14916 | ac_config_files="$ac_config_files dlls/Makeimplib.rules" |
| 14917 | |
Alexandre Julliard | abfb11e | 2010-03-25 22:12:49 +0100 | [diff] [blame] | 14918 | wine_fn_config_makerules programs/Makeprog.rules Make.rules |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14919 | MAKE_PROG_RULES=programs/Makeprog.rules |
Marcus Meissner | fbc80d7 | 2007-02-27 07:48:58 +0100 | [diff] [blame] | 14920 | ac_config_files="$ac_config_files programs/Makeprog.rules" |
| 14921 | |
Alexandre Julliard | a360e93 | 2008-08-20 16:02:37 +0200 | [diff] [blame] | 14922 | |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14923 | wine_fn_config_dll acledit enable_acledit |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14924 | wine_fn_config_dll aclui enable_aclui implib |
| 14925 | wine_fn_config_dll activeds enable_activeds implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14926 | wine_fn_config_dll actxprxy enable_actxprxy |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14927 | wine_fn_config_lib adsiid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14928 | wine_fn_config_dll advapi32 enable_advapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14929 | wine_fn_config_test dlls/advapi32/tests advapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14930 | wine_fn_config_dll advpack enable_advpack implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14931 | wine_fn_config_test dlls/advpack/tests advpack_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14932 | wine_fn_config_dll amstream enable_amstream |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14933 | wine_fn_config_test dlls/amstream/tests amstream_test |
Alexandre Julliard | 902f10c | 2011-01-13 15:16:02 +0100 | [diff] [blame] | 14934 | wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14935 | wine_fn_config_dll atl enable_atl implib |
Marcus Meissner | b3f0425 | 2010-06-15 11:04:33 +0200 | [diff] [blame] | 14936 | wine_fn_config_test dlls/atl/tests atl_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14937 | wine_fn_config_dll authz enable_authz |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14938 | wine_fn_config_dll avicap32 enable_avicap32 implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14939 | wine_fn_config_dll avifil32 enable_avifil32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14940 | wine_fn_config_test dlls/avifil32/tests avifil32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14941 | wine_fn_config_dll avifile.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14942 | wine_fn_config_dll avrt enable_avrt implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14943 | wine_fn_config_dll bcrypt enable_bcrypt |
Alexandre Julliard | 4447900 | 2011-01-11 12:56:17 +0100 | [diff] [blame] | 14944 | wine_fn_config_dll browseui enable_browseui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14945 | wine_fn_config_test dlls/browseui/tests browseui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14946 | wine_fn_config_dll cabinet enable_cabinet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14947 | wine_fn_config_test dlls/cabinet/tests cabinet_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14948 | wine_fn_config_dll capi2032 enable_capi2032 implib |
| 14949 | wine_fn_config_dll cards enable_cards implib |
| 14950 | wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib |
| 14951 | wine_fn_config_dll clusapi enable_clusapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14952 | wine_fn_config_dll comcat enable_comcat |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14953 | wine_fn_config_test dlls/comcat/tests comcat_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14954 | wine_fn_config_dll comctl32 enable_comctl32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14955 | wine_fn_config_test dlls/comctl32/tests comctl32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14956 | wine_fn_config_dll comdlg32 enable_comdlg32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14957 | wine_fn_config_test dlls/comdlg32/tests comdlg32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14958 | wine_fn_config_dll comm.drv16 enable_win16 |
| 14959 | wine_fn_config_dll commdlg.dll16 enable_win16 |
| 14960 | wine_fn_config_dll compobj.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14961 | wine_fn_config_dll compstui enable_compstui implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14962 | wine_fn_config_dll credui enable_credui implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14963 | wine_fn_config_test dlls/credui/tests credui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14964 | wine_fn_config_dll crtdll enable_crtdll implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14965 | wine_fn_config_dll crypt32 enable_crypt32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14966 | wine_fn_config_test dlls/crypt32/tests crypt32_test |
Alexandre Julliard | 8484e96 | 2011-01-06 12:28:26 +0100 | [diff] [blame] | 14967 | wine_fn_config_dll cryptdlg enable_cryptdlg po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14968 | wine_fn_config_dll cryptdll enable_cryptdll implib |
| 14969 | wine_fn_config_dll cryptnet enable_cryptnet implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14970 | wine_fn_config_test dlls/cryptnet/tests cryptnet_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 14971 | wine_fn_config_dll cryptui enable_cryptui implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14972 | wine_fn_config_test dlls/cryptui/tests cryptui_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14973 | wine_fn_config_dll ctapi32 enable_ctapi32 |
| 14974 | wine_fn_config_dll ctl3d.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14975 | wine_fn_config_dll ctl3d32 enable_ctl3d32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 14976 | wine_fn_config_dll ctl3dv2.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14977 | wine_fn_config_dll d3d10 enable_d3d10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14978 | wine_fn_config_test dlls/d3d10/tests d3d10_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14979 | wine_fn_config_dll d3d10core enable_d3d10core implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14980 | wine_fn_config_test dlls/d3d10core/tests d3d10core_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14981 | wine_fn_config_dll d3d8 enable_d3d8 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14982 | wine_fn_config_test dlls/d3d8/tests d3d8_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14983 | wine_fn_config_dll d3d9 enable_d3d9 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14984 | wine_fn_config_test dlls/d3d9/tests d3d9_test |
Matteo Bruni | 0ac336f | 2010-07-29 01:53:54 +0200 | [diff] [blame] | 14985 | wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33 |
Matteo Bruni | 66d4499 | 2010-07-29 01:47:13 +0200 | [diff] [blame] | 14986 | wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34 |
Matteo Bruni | 8ea7583 | 2010-07-28 16:44:37 +0200 | [diff] [blame] | 14987 | wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35 |
Matteo Bruni | 458eb08 | 2010-07-28 16:37:28 +0200 | [diff] [blame] | 14988 | wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36 |
Matteo Bruni | 3c59b9c | 2010-07-28 16:22:11 +0200 | [diff] [blame] | 14989 | wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37 |
Matteo Bruni | fbf1e83 | 2010-07-28 16:13:40 +0200 | [diff] [blame] | 14990 | wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38 |
Matteo Bruni | 9949146 | 2010-07-28 04:31:18 +0200 | [diff] [blame] | 14991 | wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39 |
Matteo Bruni | fd4efcd | 2010-07-28 04:09:13 +0200 | [diff] [blame] | 14992 | wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40 |
Matteo Bruni | 79c1bc4 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 14993 | wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41 |
Matteo Bruni | fe05070 | 2010-08-03 18:44:25 +0200 | [diff] [blame] | 14994 | wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 14995 | wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler |
Rico Schüller | 5ad7f7b | 2010-08-19 21:33:43 +0200 | [diff] [blame] | 14996 | wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 14997 | wine_fn_config_dll d3dim enable_d3dim implib |
| 14998 | wine_fn_config_dll d3drm enable_d3drm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 14999 | wine_fn_config_test dlls/d3drm/tests d3drm_test |
Owen Rudge | 9870c04 | 2010-08-18 16:02:22 -0500 | [diff] [blame] | 15000 | wine_fn_config_dll d3dx10_33 enable_d3dx10_33 |
Owen Rudge | 49dbdc1 | 2010-08-18 16:02:20 -0500 | [diff] [blame] | 15001 | wine_fn_config_dll d3dx10_34 enable_d3dx10_34 |
Owen Rudge | 955b844 | 2010-08-18 16:02:18 -0500 | [diff] [blame] | 15002 | wine_fn_config_dll d3dx10_35 enable_d3dx10_35 |
Owen Rudge | f44830e | 2010-08-18 16:02:16 -0500 | [diff] [blame] | 15003 | wine_fn_config_dll d3dx10_36 enable_d3dx10_36 |
Owen Rudge | 4196ba2 | 2010-08-18 16:02:10 -0500 | [diff] [blame] | 15004 | wine_fn_config_dll d3dx10_37 enable_d3dx10_37 |
Owen Rudge | 199ff9b | 2010-08-18 16:02:08 -0500 | [diff] [blame] | 15005 | wine_fn_config_dll d3dx10_38 enable_d3dx10_38 |
Owen Rudge | fb8d7cd | 2010-08-18 16:02:06 -0500 | [diff] [blame] | 15006 | wine_fn_config_dll d3dx10_39 enable_d3dx10_39 |
Owen Rudge | 662cbb1 | 2010-08-18 16:02:03 -0500 | [diff] [blame] | 15007 | wine_fn_config_dll d3dx10_40 enable_d3dx10_40 |
Owen Rudge | 17591cc | 2010-08-18 16:01:59 -0500 | [diff] [blame] | 15008 | wine_fn_config_dll d3dx10_41 enable_d3dx10_41 |
Owen Rudge | e5d9e12 | 2010-08-18 16:01:57 -0500 | [diff] [blame] | 15009 | wine_fn_config_dll d3dx10_42 enable_d3dx10_42 |
Owen Rudge | 3c5b2e6 | 2010-08-18 16:01:53 -0500 | [diff] [blame] | 15010 | wine_fn_config_dll d3dx10_43 enable_d3dx10_43 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15011 | wine_fn_config_dll d3dx9_24 enable_d3dx9_24 |
| 15012 | wine_fn_config_dll d3dx9_25 enable_d3dx9_25 |
| 15013 | wine_fn_config_dll d3dx9_26 enable_d3dx9_26 |
| 15014 | wine_fn_config_dll d3dx9_27 enable_d3dx9_27 |
| 15015 | wine_fn_config_dll d3dx9_28 enable_d3dx9_28 |
| 15016 | wine_fn_config_dll d3dx9_29 enable_d3dx9_29 |
| 15017 | wine_fn_config_dll d3dx9_30 enable_d3dx9_30 |
| 15018 | wine_fn_config_dll d3dx9_31 enable_d3dx9_31 |
| 15019 | wine_fn_config_dll d3dx9_32 enable_d3dx9_32 |
| 15020 | wine_fn_config_dll d3dx9_33 enable_d3dx9_33 |
| 15021 | wine_fn_config_dll d3dx9_34 enable_d3dx9_34 |
| 15022 | wine_fn_config_dll d3dx9_35 enable_d3dx9_35 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15023 | wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15024 | wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15025 | wine_fn_config_dll d3dx9_37 enable_d3dx9_37 |
| 15026 | wine_fn_config_dll d3dx9_38 enable_d3dx9_38 |
| 15027 | wine_fn_config_dll d3dx9_39 enable_d3dx9_39 |
| 15028 | wine_fn_config_dll d3dx9_40 enable_d3dx9_40 |
| 15029 | wine_fn_config_dll d3dx9_41 enable_d3dx9_41 |
| 15030 | wine_fn_config_dll d3dx9_42 enable_d3dx9_42 |
Matteo Bruni | 90c615a | 2010-08-25 17:12:51 +0200 | [diff] [blame] | 15031 | wine_fn_config_dll d3dx9_43 enable_d3dx9_43 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15032 | wine_fn_config_dll d3dxof enable_d3dxof implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15033 | wine_fn_config_test dlls/d3dxof/tests d3dxof_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15034 | wine_fn_config_dll dbgeng enable_dbgeng implib |
| 15035 | wine_fn_config_dll dbghelp enable_dbghelp implib |
| 15036 | wine_fn_config_dll dciman32 enable_dciman32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15037 | wine_fn_config_dll ddeml.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15038 | wine_fn_config_dll ddraw enable_ddraw implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15039 | wine_fn_config_test dlls/ddraw/tests ddraw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15040 | wine_fn_config_dll ddrawex enable_ddrawex |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15041 | wine_fn_config_test dlls/ddrawex/tests ddrawex_test |
Alexandre Julliard | 0cdd147 | 2011-01-06 12:37:11 +0100 | [diff] [blame] | 15042 | wine_fn_config_dll devenum enable_devenum po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15043 | wine_fn_config_dll dinput enable_dinput implib,staticimplib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15044 | wine_fn_config_test dlls/dinput/tests dinput_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15045 | wine_fn_config_dll dinput8 enable_dinput8 implib |
Lucas Fialho Zawacki | 1fbf857 | 2011-04-29 19:29:19 -0300 | [diff] [blame] | 15046 | wine_fn_config_test dlls/dinput8/tests dinput8_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15047 | wine_fn_config_dll dispdib.dll16 enable_win16 |
| 15048 | wine_fn_config_dll dispex enable_dispex |
Huw Davies | df07561 | 2010-03-19 13:34:53 +0000 | [diff] [blame] | 15049 | wine_fn_config_test dlls/dispex/tests dispex_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15050 | wine_fn_config_dll display.drv16 enable_win16 |
| 15051 | wine_fn_config_dll dmband enable_dmband |
| 15052 | wine_fn_config_dll dmcompos enable_dmcompos |
| 15053 | wine_fn_config_dll dmime enable_dmime |
Austin Lund | 203272e | 2010-08-06 17:50:49 +1000 | [diff] [blame] | 15054 | wine_fn_config_test dlls/dmime/tests dmime_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15055 | wine_fn_config_dll dmloader enable_dmloader |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15056 | wine_fn_config_test dlls/dmloader/tests dmloader_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15057 | wine_fn_config_dll dmscript enable_dmscript |
| 15058 | wine_fn_config_dll dmstyle enable_dmstyle |
| 15059 | wine_fn_config_dll dmsynth enable_dmsynth |
| 15060 | wine_fn_config_dll dmusic enable_dmusic |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15061 | wine_fn_config_dll dmusic32 enable_dmusic32 implib |
| 15062 | wine_fn_config_dll dnsapi enable_dnsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15063 | wine_fn_config_test dlls/dnsapi/tests dnsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15064 | wine_fn_config_dll dplay enable_dplay implib |
| 15065 | wine_fn_config_dll dplayx enable_dplayx implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15066 | wine_fn_config_test dlls/dplayx/tests dplayx_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15067 | wine_fn_config_dll dpnaddr enable_dpnaddr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15068 | wine_fn_config_dll dpnet enable_dpnet implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15069 | wine_fn_config_dll dpnhpast enable_dpnhpast |
| 15070 | wine_fn_config_dll dpnlobby enable_dpnlobby |
| 15071 | wine_fn_config_dll dpwsockx enable_dpwsockx |
| 15072 | wine_fn_config_dll drmclien enable_drmclien |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15073 | wine_fn_config_dll dsound enable_dsound implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15074 | wine_fn_config_test dlls/dsound/tests dsound_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15075 | wine_fn_config_dll dssenh enable_dssenh |
| 15076 | wine_fn_config_dll dswave enable_dswave |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15077 | wine_fn_config_dll dwmapi enable_dwmapi implib |
Andrew Nguyen | f9c8e46 | 2011-04-03 20:55:32 -0500 | [diff] [blame] | 15078 | wine_fn_config_dll dxdiagn enable_dxdiagn po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15079 | wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15080 | wine_fn_config_lib dxerr8 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15081 | wine_fn_config_lib dxerr9 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15082 | wine_fn_config_dll dxgi enable_dxgi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15083 | wine_fn_config_test dlls/dxgi/tests dxgi_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15084 | wine_fn_config_lib dxguid |
David Hedberg | e2cf9ad | 2010-07-31 20:02:45 +0200 | [diff] [blame] | 15085 | wine_fn_config_dll explorerframe enable_explorerframe |
David Hedberg | 87212d5 | 2010-07-31 20:02:49 +0200 | [diff] [blame] | 15086 | wine_fn_config_test dlls/explorerframe/tests explorerframe_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15087 | wine_fn_config_dll faultrep enable_faultrep implib |
Detlef Riekenberg | 53fca11 | 2010-10-26 10:11:13 +0200 | [diff] [blame] | 15088 | wine_fn_config_test dlls/faultrep/tests faultrep_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15089 | wine_fn_config_dll fltlib enable_fltlib |
| 15090 | wine_fn_config_dll fusion enable_fusion |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15091 | wine_fn_config_test dlls/fusion/tests fusion_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15092 | wine_fn_config_dll fwpuclnt enable_fwpuclnt |
Mariusz Pluciński | b3a9ce4 | 2010-07-22 23:59:34 +0200 | [diff] [blame] | 15093 | wine_fn_config_dll gameux enable_gameux |
Mariusz Pluciński | cb886f4 | 2010-08-03 11:58:01 +0200 | [diff] [blame] | 15094 | wine_fn_config_test dlls/gameux/tests gameux_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15095 | wine_fn_config_dll gdi.exe16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15096 | wine_fn_config_dll gdi32 enable_gdi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15097 | wine_fn_config_test dlls/gdi32/tests gdi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15098 | wine_fn_config_dll gdiplus enable_gdiplus implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15099 | wine_fn_config_test dlls/gdiplus/tests gdiplus_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15100 | wine_fn_config_dll glu32 enable_glu32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15101 | wine_fn_config_dll gphoto2.ds enable_gphoto2_ds |
| 15102 | wine_fn_config_dll gpkcsp enable_gpkcsp |
| 15103 | wine_fn_config_dll hal enable_hal |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15104 | wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15105 | wine_fn_config_dll hid enable_hid implib |
| 15106 | wine_fn_config_dll hlink enable_hlink implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15107 | wine_fn_config_test dlls/hlink/tests hlink_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15108 | wine_fn_config_dll hnetcfg enable_hnetcfg |
| 15109 | wine_fn_config_dll httpapi enable_httpapi |
Alexandre Julliard | 9c6444c | 2011-01-06 13:31:16 +0100 | [diff] [blame] | 15110 | wine_fn_config_dll iccvid enable_iccvid po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15111 | wine_fn_config_dll icmp enable_icmp |
| 15112 | wine_fn_config_dll ifsmgr.vxd enable_win16 |
| 15113 | wine_fn_config_dll imaadp32.acm enable_imaadp32_acm |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15114 | wine_fn_config_dll imagehlp enable_imagehlp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15115 | wine_fn_config_test dlls/imagehlp/tests imagehlp_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15116 | wine_fn_config_dll imm.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15117 | wine_fn_config_dll imm32 enable_imm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15118 | wine_fn_config_test dlls/imm32/tests imm32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15119 | wine_fn_config_dll inetcomm enable_inetcomm implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15120 | wine_fn_config_test dlls/inetcomm/tests inetcomm_test |
Alexandre Julliard | be52106 | 2011-01-12 15:49:32 +0100 | [diff] [blame] | 15121 | wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15122 | wine_fn_config_dll inetmib1 enable_inetmib1 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15123 | wine_fn_config_test dlls/inetmib1/tests inetmib1_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15124 | wine_fn_config_dll infosoft enable_infosoft |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15125 | wine_fn_config_test dlls/infosoft/tests infosoft_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15126 | wine_fn_config_dll initpki enable_initpki |
| 15127 | wine_fn_config_dll inkobj enable_inkobj |
| 15128 | wine_fn_config_dll inseng enable_inseng |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15129 | wine_fn_config_dll iphlpapi enable_iphlpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15130 | wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15131 | wine_fn_config_dll itircl enable_itircl |
| 15132 | wine_fn_config_dll itss enable_itss |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15133 | wine_fn_config_test dlls/itss/tests itss_test |
Alexandre Julliard | 0ccf1d8 | 2011-01-06 13:38:57 +0100 | [diff] [blame] | 15134 | wine_fn_config_dll jscript enable_jscript po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15135 | wine_fn_config_test dlls/jscript/tests jscript_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15136 | wine_fn_config_dll kernel32 enable_kernel32 implib,mc |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15137 | wine_fn_config_test dlls/kernel32/tests kernel32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15138 | wine_fn_config_dll keyboard.drv16 enable_win16 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15139 | wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel |
Vincent Povirk | 8f87459 | 2010-09-26 16:38:44 -0500 | [diff] [blame] | 15140 | wine_fn_config_dll ktmw32 enable_ktmw32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15141 | wine_fn_config_dll loadperf enable_loadperf implib |
Alexandre Julliard | 7df87f3 | 2011-01-06 14:24:05 +0100 | [diff] [blame] | 15142 | wine_fn_config_dll localspl enable_localspl po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15143 | wine_fn_config_test dlls/localspl/tests localspl_test |
Alexandre Julliard | 0546dd5 | 2011-01-12 16:11:26 +0100 | [diff] [blame] | 15144 | wine_fn_config_dll localui enable_localui po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15145 | wine_fn_config_test dlls/localui/tests localui_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15146 | wine_fn_config_dll lz32 enable_lz32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15147 | wine_fn_config_test dlls/lz32/tests lz32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15148 | wine_fn_config_dll lzexpand.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15149 | wine_fn_config_dll mapi32 enable_mapi32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15150 | wine_fn_config_test dlls/mapi32/tests mapi32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15151 | wine_fn_config_dll mapistub enable_mapistub |
| 15152 | wine_fn_config_dll mciavi32 enable_mciavi32 |
| 15153 | wine_fn_config_dll mcicda enable_mcicda |
| 15154 | wine_fn_config_dll mciqtz32 enable_mciqtz32 |
| 15155 | wine_fn_config_dll mciseq enable_mciseq |
| 15156 | wine_fn_config_dll mciwave enable_mciwave |
| 15157 | wine_fn_config_dll midimap enable_midimap |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15158 | wine_fn_config_dll mlang enable_mlang implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15159 | wine_fn_config_test dlls/mlang/tests mlang_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15160 | wine_fn_config_dll mmdevapi enable_mmdevapi |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15161 | wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15162 | wine_fn_config_dll mmdevldr.vxd enable_win16 |
| 15163 | wine_fn_config_dll mmsystem.dll16 enable_win16 |
| 15164 | wine_fn_config_dll monodebg.vxd enable_win16 |
| 15165 | wine_fn_config_dll mountmgr.sys enable_mountmgr_sys |
| 15166 | wine_fn_config_dll mouse.drv16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15167 | wine_fn_config_dll mpr enable_mpr implib,po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15168 | wine_fn_config_dll mprapi enable_mprapi implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15169 | wine_fn_config_dll msacm.dll16 enable_win16 |
| 15170 | wine_fn_config_dll msacm32.drv enable_msacm32_drv |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15171 | wine_fn_config_dll msacm32 enable_msacm32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15172 | wine_fn_config_test dlls/msacm32/tests msacm32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15173 | wine_fn_config_dll msadp32.acm enable_msadp32_acm |
| 15174 | wine_fn_config_dll mscat32 enable_mscat32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15175 | wine_fn_config_dll mscms enable_mscms implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15176 | wine_fn_config_test dlls/mscms/tests mscms_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15177 | wine_fn_config_dll mscoree enable_mscoree |
Louis Lenders | a852870 | 2010-08-24 11:48:01 +0200 | [diff] [blame] | 15178 | wine_fn_config_test dlls/mscoree/tests mscoree_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15179 | wine_fn_config_dll msctf enable_msctf |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15180 | wine_fn_config_test dlls/msctf/tests msctf_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15181 | wine_fn_config_dll msdaps enable_msdaps |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15182 | wine_fn_config_dll msdmo enable_msdmo implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15183 | wine_fn_config_dll msftedit enable_msftedit |
| 15184 | wine_fn_config_dll msg711.acm enable_msg711_acm |
| 15185 | wine_fn_config_dll msgsm32.acm enable_msgsm32_acm |
| 15186 | wine_fn_config_dll mshtml.tlb enable_mshtml_tlb |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15187 | wine_fn_config_dll mshtml enable_mshtml implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15188 | wine_fn_config_test dlls/mshtml/tests mshtml_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15189 | wine_fn_config_dll msi enable_msi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15190 | wine_fn_config_test dlls/msi/tests msi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15191 | wine_fn_config_dll msimg32 enable_msimg32 implib |
Hans Leidekker | 530e947 | 2011-03-10 10:59:44 +0100 | [diff] [blame] | 15192 | wine_fn_config_dll msimsg enable_msimsg |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15193 | wine_fn_config_dll msimtf enable_msimtf |
| 15194 | wine_fn_config_dll msisip enable_msisip |
| 15195 | wine_fn_config_dll msisys.ocx enable_msisys_ocx |
| 15196 | wine_fn_config_dll msnet32 enable_msnet32 |
David Hedberg | 21085ed | 2011-03-22 04:16:56 +0100 | [diff] [blame] | 15197 | wine_fn_config_dll mspatcha enable_mspatcha |
Alexandre Julliard | ad5605b | 2011-01-06 16:36:14 +0100 | [diff] [blame] | 15198 | wine_fn_config_dll msrle32 enable_msrle32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15199 | wine_fn_config_dll mssign32 enable_mssign32 |
| 15200 | wine_fn_config_dll mssip32 enable_mssip32 |
| 15201 | wine_fn_config_dll mstask enable_mstask |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15202 | wine_fn_config_test dlls/mstask/tests mstask_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15203 | wine_fn_config_dll msvcirt enable_msvcirt |
Austin English | dfbf47b | 2011-04-05 12:47:46 -0700 | [diff] [blame] | 15204 | wine_fn_config_dll msvcp100 enable_msvcp100 |
Alexandre Julliard | a3172a5 | 2011-04-28 23:30:07 +0200 | [diff] [blame] | 15205 | wine_fn_config_dll msvcp60 enable_msvcp60 |
Alexandre Julliard | 2f9c02e | 2011-05-03 11:09:58 +0200 | [diff] [blame] | 15206 | wine_fn_config_dll msvcp70 enable_msvcp70 |
Alexandre Julliard | 4be2026 | 2011-05-02 17:32:22 +0200 | [diff] [blame] | 15207 | wine_fn_config_dll msvcp71 enable_msvcp71 |
Piotr Caban | 71a49eb | 2010-08-23 16:36:24 +0200 | [diff] [blame] | 15208 | wine_fn_config_dll msvcp80 enable_msvcp80 |
Piotr Caban | 9ae9d26 | 2010-07-20 23:22:16 +0200 | [diff] [blame] | 15209 | wine_fn_config_dll msvcp90 enable_msvcp90 |
Piotr Caban | d589d95 | 2010-07-20 23:24:32 +0200 | [diff] [blame] | 15210 | wine_fn_config_test dlls/msvcp90/tests msvcp90_test |
Detlef Riekenberg | 1434ef4 | 2010-04-30 14:07:34 +0200 | [diff] [blame] | 15211 | wine_fn_config_dll msvcr100 enable_msvcr100 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15212 | wine_fn_config_dll msvcr70 enable_msvcr70 implib |
| 15213 | wine_fn_config_dll msvcr71 enable_msvcr71 implib |
Piotr Caban | c452249 | 2010-03-25 11:06:29 +0100 | [diff] [blame] | 15214 | wine_fn_config_dll msvcr80 enable_msvcr80 |
| 15215 | wine_fn_config_dll msvcr90 enable_msvcr90 |
Detlef Riekenberg | 73e669c | 2010-03-20 00:32:17 +0100 | [diff] [blame] | 15216 | wine_fn_config_test dlls/msvcr90/tests msvcr90_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15217 | wine_fn_config_dll msvcrt enable_msvcrt implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15218 | wine_fn_config_test dlls/msvcrt/tests msvcrt_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15219 | wine_fn_config_dll msvcrt20 enable_msvcrt20 implib |
| 15220 | wine_fn_config_dll msvcrt40 enable_msvcrt40 implib |
| 15221 | wine_fn_config_dll msvcrtd enable_msvcrtd implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15222 | wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15223 | wine_fn_config_dll msvfw32 enable_msvfw32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15224 | wine_fn_config_test dlls/msvfw32/tests msvfw32_test |
Alexandre Julliard | 958ecd6 | 2011-01-06 17:07:23 +0100 | [diff] [blame] | 15225 | wine_fn_config_dll msvidc32 enable_msvidc32 po |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15226 | wine_fn_config_dll msvideo.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15227 | wine_fn_config_dll mswsock enable_mswsock implib |
Alexandre Julliard | 25ccc90 | 2010-12-21 12:03:14 +0100 | [diff] [blame] | 15228 | wine_fn_config_dll msxml enable_msxml |
Alexandre Julliard | 41d6a92 | 2010-12-21 13:27:20 +0100 | [diff] [blame] | 15229 | wine_fn_config_dll msxml2 enable_msxml2 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15230 | wine_fn_config_dll msxml3 enable_msxml3 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15231 | wine_fn_config_test dlls/msxml3/tests msxml3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15232 | wine_fn_config_dll msxml4 enable_msxml4 |
Nikolay Sivov | 25bce45 | 2010-08-30 01:31:07 +0400 | [diff] [blame] | 15233 | wine_fn_config_dll msxml6 enable_msxml6 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15234 | wine_fn_config_dll nddeapi enable_nddeapi implib |
| 15235 | wine_fn_config_dll netapi32 enable_netapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15236 | wine_fn_config_test dlls/netapi32/tests netapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15237 | wine_fn_config_dll newdev enable_newdev implib |
Thomas Mullaly | 858ccff | 2011-01-02 17:13:43 -0500 | [diff] [blame] | 15238 | wine_fn_config_dll normaliz enable_normaliz implib |
Jacek Caban | 4a91265 | 2010-12-02 19:15:28 +0100 | [diff] [blame] | 15239 | wine_fn_config_dll npmshtml enable_npmshtml |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15240 | wine_fn_config_dll ntdll enable_ntdll implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15241 | wine_fn_config_test dlls/ntdll/tests ntdll_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15242 | wine_fn_config_dll ntdsapi enable_ntdsapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15243 | wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15244 | wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15245 | wine_fn_config_dll ntprint enable_ntprint |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15246 | wine_fn_config_test dlls/ntprint/tests ntprint_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15247 | wine_fn_config_dll objsel enable_objsel |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15248 | wine_fn_config_dll odbc32 enable_odbc32 implib |
| 15249 | wine_fn_config_dll odbccp32 enable_odbccp32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15250 | wine_fn_config_test dlls/odbccp32/tests odbccp32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15251 | wine_fn_config_dll ole2.dll16 enable_win16 |
| 15252 | wine_fn_config_dll ole2conv.dll16 enable_win16 |
| 15253 | wine_fn_config_dll ole2disp.dll16 enable_win16 |
| 15254 | wine_fn_config_dll ole2nls.dll16 enable_win16 |
| 15255 | wine_fn_config_dll ole2prox.dll16 enable_win16 |
| 15256 | wine_fn_config_dll ole2thk.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15257 | wine_fn_config_dll ole32 enable_ole32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15258 | wine_fn_config_test dlls/ole32/tests ole32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15259 | wine_fn_config_dll oleacc enable_oleacc implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15260 | wine_fn_config_test dlls/oleacc/tests oleacc_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15261 | wine_fn_config_dll oleaut32 enable_oleaut32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15262 | wine_fn_config_test dlls/oleaut32/tests oleaut32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15263 | wine_fn_config_dll olecli.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15264 | wine_fn_config_dll olecli32 enable_olecli32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15265 | wine_fn_config_dll oledb32 enable_oledb32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15266 | wine_fn_config_test dlls/oledb32/tests oledb32_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15267 | wine_fn_config_dll oledlg enable_oledlg implib,po |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15268 | wine_fn_config_dll olepro32 enable_olepro32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15269 | wine_fn_config_dll olesvr.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15270 | wine_fn_config_dll olesvr32 enable_olesvr32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15271 | wine_fn_config_dll olethk32 enable_olethk32 |
| 15272 | wine_fn_config_dll openal32 enable_openal32 |
Peter Urbanec | 65c84d7 | 2010-12-02 23:41:48 +1100 | [diff] [blame] | 15273 | wine_fn_config_dll opencl enable_opencl |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15274 | wine_fn_config_dll opengl32 enable_opengl32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15275 | wine_fn_config_test dlls/opengl32/tests opengl32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15276 | wine_fn_config_dll pdh enable_pdh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15277 | wine_fn_config_test dlls/pdh/tests pdh_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15278 | wine_fn_config_dll pidgen enable_pidgen |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15279 | wine_fn_config_dll powrprof enable_powrprof implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15280 | wine_fn_config_dll printui enable_printui |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15281 | wine_fn_config_dll propsys enable_propsys implib |
Andrew Nguyen | c20908b | 2010-07-25 21:57:59 -0500 | [diff] [blame] | 15282 | wine_fn_config_test dlls/propsys/tests propsys_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15283 | wine_fn_config_dll psapi enable_psapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15284 | wine_fn_config_test dlls/psapi/tests psapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15285 | wine_fn_config_dll pstorec enable_pstorec |
| 15286 | wine_fn_config_dll qcap enable_qcap |
| 15287 | wine_fn_config_dll qedit enable_qedit |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15288 | wine_fn_config_test dlls/qedit/tests qedit_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15289 | wine_fn_config_dll qmgr enable_qmgr |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15290 | wine_fn_config_test dlls/qmgr/tests qmgr_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15291 | wine_fn_config_dll qmgrprxy enable_qmgrprxy |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15292 | wine_fn_config_dll quartz enable_quartz implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15293 | wine_fn_config_test dlls/quartz/tests quartz_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15294 | wine_fn_config_dll query enable_query |
| 15295 | wine_fn_config_dll rasapi16.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15296 | wine_fn_config_dll rasapi32 enable_rasapi32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15297 | wine_fn_config_test dlls/rasapi32/tests rasapi32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15298 | wine_fn_config_dll rasdlg enable_rasdlg implib |
Austin English | d8d7780 | 2011-05-21 20:17:07 -0500 | [diff] [blame] | 15299 | wine_fn_config_dll regapi enable_regapi |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15300 | wine_fn_config_dll resutils enable_resutils implib |
| 15301 | wine_fn_config_dll riched20 enable_riched20 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15302 | wine_fn_config_test dlls/riched20/tests riched20_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15303 | wine_fn_config_dll riched32 enable_riched32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15304 | wine_fn_config_test dlls/riched32/tests riched32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15305 | wine_fn_config_dll rpcrt4 enable_rpcrt4 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15306 | wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15307 | wine_fn_config_dll rsabase enable_rsabase |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15308 | wine_fn_config_dll rsaenh enable_rsaenh implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15309 | wine_fn_config_test dlls/rsaenh/tests rsaenh_test |
Louis Lenders | 85b3f29 | 2010-08-27 11:45:11 +0200 | [diff] [blame] | 15310 | wine_fn_config_dll rstrtmgr enable_rstrtmgr |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15311 | wine_fn_config_dll rtutils enable_rtutils implib |
Louis Lenders | 1ae673f | 2010-05-11 22:59:22 +0200 | [diff] [blame] | 15312 | wine_fn_config_dll samlib enable_samlib |
Alexandre Julliard | 036fe88 | 2011-01-14 12:48:59 +0100 | [diff] [blame] | 15313 | wine_fn_config_dll sane.ds enable_sane_ds po |
Stefan Leichter | 81f3d68 | 2011-04-03 23:50:40 +0200 | [diff] [blame] | 15314 | wine_fn_config_dll scarddlg enable_scarddlg |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15315 | wine_fn_config_dll sccbase enable_sccbase |
| 15316 | wine_fn_config_dll schannel enable_schannel |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15317 | wine_fn_config_test dlls/schannel/tests schannel_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15318 | wine_fn_config_dll secur32 enable_secur32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15319 | wine_fn_config_test dlls/secur32/tests secur32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15320 | wine_fn_config_dll security enable_security |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15321 | wine_fn_config_dll sensapi enable_sensapi implib |
| 15322 | wine_fn_config_dll serialui enable_serialui implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15323 | wine_fn_config_test dlls/serialui/tests serialui_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15324 | wine_fn_config_dll setupapi enable_setupapi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15325 | wine_fn_config_test dlls/setupapi/tests setupapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15326 | wine_fn_config_dll setupx.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15327 | wine_fn_config_dll sfc enable_sfc implib |
| 15328 | wine_fn_config_dll sfc_os enable_sfc_os implib |
Alexandre Julliard | b31d231 | 2011-01-06 17:42:05 +0100 | [diff] [blame] | 15329 | wine_fn_config_dll shdoclc enable_shdoclc po |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15330 | wine_fn_config_dll shdocvw enable_shdocvw implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15331 | wine_fn_config_test dlls/shdocvw/tests shdocvw_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15332 | wine_fn_config_dll shell.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15333 | wine_fn_config_dll shell32 enable_shell32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15334 | wine_fn_config_test dlls/shell32/tests shell32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15335 | wine_fn_config_dll shfolder enable_shfolder implib |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15336 | wine_fn_config_dll shlwapi enable_shlwapi implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15337 | wine_fn_config_test dlls/shlwapi/tests shlwapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15338 | wine_fn_config_dll slbcsp enable_slbcsp |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15339 | wine_fn_config_dll slc enable_slc implib |
| 15340 | wine_fn_config_dll snmpapi enable_snmpapi implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15341 | wine_fn_config_test dlls/snmpapi/tests snmpapi_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15342 | wine_fn_config_dll softpub enable_softpub |
| 15343 | wine_fn_config_dll sound.drv16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15344 | wine_fn_config_dll spoolss enable_spoolss implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15345 | wine_fn_config_test dlls/spoolss/tests spoolss_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15346 | wine_fn_config_dll stdole2.tlb enable_stdole2_tlb |
| 15347 | wine_fn_config_dll stdole32.tlb enable_stdole32_tlb |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15348 | wine_fn_config_dll sti enable_sti implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15349 | wine_fn_config_test dlls/sti/tests sti_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15350 | wine_fn_config_dll storage.dll16 enable_win16 |
| 15351 | wine_fn_config_dll stress.dll16 enable_win16 |
Aric Stewart | 9619210 | 2010-10-04 09:48:25 -0500 | [diff] [blame] | 15352 | wine_fn_config_lib strmbase |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15353 | wine_fn_config_lib strmiids |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15354 | wine_fn_config_dll svrapi enable_svrapi |
| 15355 | wine_fn_config_dll sxs enable_sxs |
| 15356 | wine_fn_config_dll system.drv16 enable_win16 |
| 15357 | wine_fn_config_dll t2embed enable_t2embed |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15358 | wine_fn_config_dll tapi32 enable_tapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15359 | wine_fn_config_dll toolhelp.dll16 enable_win16 |
| 15360 | wine_fn_config_dll traffic enable_traffic |
| 15361 | wine_fn_config_dll twain.dll16 enable_win16 |
| 15362 | wine_fn_config_dll twain_32 enable_twain_32 |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15363 | wine_fn_config_test dlls/twain_32/tests twain_32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15364 | wine_fn_config_dll typelib.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15365 | wine_fn_config_dll unicows enable_unicows implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15366 | wine_fn_config_dll updspapi enable_updspapi |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15367 | wine_fn_config_dll url enable_url implib |
| 15368 | wine_fn_config_dll urlmon enable_urlmon implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15369 | wine_fn_config_test dlls/urlmon/tests urlmon_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15370 | wine_fn_config_dll usbd.sys enable_usbd_sys implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15371 | wine_fn_config_dll user.exe16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15372 | wine_fn_config_dll user32 enable_user32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15373 | wine_fn_config_test dlls/user32/tests user32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15374 | wine_fn_config_dll userenv enable_userenv implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15375 | wine_fn_config_test dlls/userenv/tests userenv_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15376 | wine_fn_config_dll usp10 enable_usp10 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15377 | wine_fn_config_test dlls/usp10/tests usp10_test |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15378 | wine_fn_config_lib uuid |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15379 | wine_fn_config_dll uxtheme enable_uxtheme implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15380 | wine_fn_config_test dlls/uxtheme/tests uxtheme_test |
Austin English | dd2159c | 2011-04-08 18:03:47 +0000 | [diff] [blame] | 15381 | wine_fn_config_dll vcomp enable_vcomp |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15382 | wine_fn_config_dll vdhcp.vxd enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15383 | wine_fn_config_dll vdmdbg enable_vdmdbg implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15384 | wine_fn_config_dll ver.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15385 | wine_fn_config_dll version enable_version implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15386 | wine_fn_config_test dlls/version/tests version_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15387 | wine_fn_config_dll vmm.vxd enable_win16 |
| 15388 | wine_fn_config_dll vnbt.vxd enable_win16 |
| 15389 | wine_fn_config_dll vnetbios.vxd enable_win16 |
| 15390 | wine_fn_config_dll vtdapi.vxd enable_win16 |
| 15391 | wine_fn_config_dll vwin32.vxd enable_win16 |
| 15392 | wine_fn_config_dll w32skrnl enable_win16 |
| 15393 | wine_fn_config_dll w32sys.dll16 enable_win16 |
| 15394 | wine_fn_config_dll wbemprox enable_wbemprox |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15395 | wine_fn_config_dll wer enable_wer implib |
Detlef Riekenberg | d8a5bc9 | 2010-10-26 11:37:17 +0200 | [diff] [blame] | 15396 | wine_fn_config_test dlls/wer/tests wer_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15397 | wine_fn_config_dll wiaservc enable_wiaservc |
| 15398 | wine_fn_config_dll win32s16.dll16 enable_win16 |
| 15399 | wine_fn_config_dll win87em.dll16 enable_win16 |
| 15400 | wine_fn_config_dll winaspi.dll16 enable_win16 |
| 15401 | wine_fn_config_dll windebug.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15402 | wine_fn_config_dll windowscodecs enable_windowscodecs implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15403 | wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15404 | wine_fn_config_dll winealsa.drv enable_winealsa_drv |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15405 | wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15406 | wine_fn_config_lib winecrt0 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15407 | wine_fn_config_dll wined3d enable_wined3d implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15408 | wine_fn_config_dll wineesd.drv enable_wineesd_drv |
Aric Stewart | 2914d65 | 2010-10-20 13:55:16 -0500 | [diff] [blame] | 15409 | wine_fn_config_dll winegstreamer enable_winegstreamer |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15410 | wine_fn_config_dll winejack.drv enable_winejack_drv |
| 15411 | wine_fn_config_dll winejoystick.drv enable_winejoystick_drv |
| 15412 | wine_fn_config_dll winemapi enable_winemapi |
| 15413 | wine_fn_config_dll winemp3.acm enable_winemp3_acm |
| 15414 | wine_fn_config_dll winenas.drv enable_winenas_drv |
| 15415 | wine_fn_config_dll wineoss.drv enable_wineoss_drv |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15416 | wine_fn_config_dll wineps.drv enable_wineps_drv install-lib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15417 | wine_fn_config_dll wineps16.drv16 enable_win16 |
Aric Stewart | eefe6f6 | 2010-12-03 07:33:08 -0600 | [diff] [blame] | 15418 | wine_fn_config_dll wineqtdecoder enable_wineqtdecoder |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15419 | wine_fn_config_dll winequartz.drv enable_winequartz_drv |
| 15420 | wine_fn_config_dll winex11.drv enable_winex11_drv |
| 15421 | wine_fn_config_dll wing.dll16 enable_win16 |
| 15422 | wine_fn_config_dll wing32 enable_wing32 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15423 | wine_fn_config_dll winhttp enable_winhttp implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15424 | wine_fn_config_test dlls/winhttp/tests winhttp_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15425 | wine_fn_config_dll wininet enable_wininet implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15426 | wine_fn_config_test dlls/wininet/tests wininet_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15427 | wine_fn_config_dll winmm enable_winmm implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15428 | wine_fn_config_test dlls/winmm/tests winmm_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15429 | wine_fn_config_dll winnls.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15430 | wine_fn_config_dll winnls32 enable_winnls32 implib |
| 15431 | wine_fn_config_dll winscard enable_winscard implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15432 | wine_fn_config_dll winsock.dll16 enable_win16 |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15433 | wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15434 | wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test |
Austin English | 14067ac | 2011-05-21 20:14:37 -0500 | [diff] [blame] | 15435 | wine_fn_config_dll winsta enable_winsta |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15436 | wine_fn_config_dll wintab.dll16 enable_win16 |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15437 | wine_fn_config_dll wintab32 enable_wintab32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15438 | wine_fn_config_test dlls/wintab32/tests wintab32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15439 | wine_fn_config_dll wintrust enable_wintrust implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15440 | wine_fn_config_test dlls/wintrust/tests wintrust_test |
Ričardas Barkauskas | 303079f | 2010-10-20 11:21:15 +0300 | [diff] [blame] | 15441 | wine_fn_config_dll wlanapi enable_wlanapi |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15442 | wine_fn_config_dll wldap32 enable_wldap32 implib,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15443 | wine_fn_config_test dlls/wldap32/tests wldap32_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15444 | wine_fn_config_dll wmi enable_wmi |
| 15445 | wine_fn_config_dll wmiutils enable_wmiutils |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15446 | wine_fn_config_dll wnaspi32 enable_wnaspi32 implib |
| 15447 | wine_fn_config_dll wow32 enable_win16 implib |
| 15448 | wine_fn_config_dll ws2_32 enable_ws2_32 implib |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15449 | wine_fn_config_test dlls/ws2_32/tests ws2_32_test |
Alexandre Julliard | 1858f43 | 2010-12-29 14:10:47 +0100 | [diff] [blame] | 15450 | wine_fn_config_dll wsock32 enable_wsock32 implib |
| 15451 | wine_fn_config_dll wtsapi32 enable_wtsapi32 implib |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15452 | wine_fn_config_dll wuapi enable_wuapi |
| 15453 | wine_fn_config_dll wuaueng enable_wuaueng |
Louis Lenders | 934d676 | 2010-11-12 11:23:37 +0100 | [diff] [blame] | 15454 | wine_fn_config_dll xapofx1_1 enable_xapofx1_1 |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15455 | wine_fn_config_dll xinput1_1 enable_xinput1_1 |
| 15456 | wine_fn_config_dll xinput1_2 enable_xinput1_2 |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15457 | wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15458 | wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test |
Alexandre Julliard | 5cdd841 | 2010-03-20 14:52:44 +0100 | [diff] [blame] | 15459 | wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0 |
| 15460 | wine_fn_config_dll xmllite enable_xmllite |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15461 | wine_fn_config_test dlls/xmllite/tests xmllite_test |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15462 | wine_fn_config_makefile documentation enable_documentation |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15463 | wine_fn_config_makefile fonts enable_fonts install-lib |
| 15464 | wine_fn_config_makefile include enable_include install-dev |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15465 | wine_fn_config_makefile libs/port enable_libs_port |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15466 | wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib |
Alexandre Julliard | 0364241 | 2010-03-20 15:24:22 +0100 | [diff] [blame] | 15467 | wine_fn_config_makefile libs/wpp enable_libs_wpp |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15468 | wine_fn_config_makefile loader enable_loader install-lib |
Hans Leidekker | ab789c6 | 2010-10-13 14:23:09 +0200 | [diff] [blame] | 15469 | wine_fn_config_program aspnet_regiis enable_aspnet_regiis install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15470 | wine_fn_config_program attrib enable_attrib install |
Alexandre Julliard | 30bdbed | 2011-02-02 22:44:47 +0100 | [diff] [blame] | 15471 | wine_fn_config_program cabarc enable_cabarc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15472 | wine_fn_config_program cacls enable_cacls install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15473 | wine_fn_config_program clock enable_clock install,po |
| 15474 | wine_fn_config_program cmd enable_cmd install,po |
Alexandre Julliard | fc7f1c7 | 2010-02-23 14:24:57 +0100 | [diff] [blame] | 15475 | wine_fn_config_test programs/cmd/tests cmd.exe_test |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15476 | wine_fn_config_program cmdlgtst enable_cmdlgtst |
| 15477 | wine_fn_config_program control enable_control install |
| 15478 | wine_fn_config_program dxdiag enable_dxdiag install |
| 15479 | wine_fn_config_program eject enable_eject install |
| 15480 | wine_fn_config_program expand enable_expand install |
| 15481 | wine_fn_config_program explorer enable_explorer install |
| 15482 | wine_fn_config_program extrac32 enable_extrac32 install |
| 15483 | wine_fn_config_program hh enable_hh install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15484 | wine_fn_config_program hostname enable_hostname install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15485 | wine_fn_config_program icinfo enable_icinfo install |
| 15486 | wine_fn_config_program iexplore enable_iexplore install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15487 | wine_fn_config_program ipconfig enable_ipconfig install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15488 | wine_fn_config_program lodctr enable_lodctr install |
Hans Leidekker | f15aea2 | 2010-09-29 09:57:34 +0200 | [diff] [blame] | 15489 | wine_fn_config_program mofcomp enable_mofcomp install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15490 | wine_fn_config_program mshta enable_mshta install |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15491 | wine_fn_config_program msiexec enable_msiexec install,installbin |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15492 | wine_fn_config_program net enable_net install,po |
Hans Leidekker | 8ad7d2e | 2010-12-06 13:19:41 +0100 | [diff] [blame] | 15493 | wine_fn_config_program netsh enable_netsh install |
Vincent Povirk | 4d3e6f4 | 2010-04-02 10:19:18 -0500 | [diff] [blame] | 15494 | wine_fn_config_program ngen enable_ngen install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15495 | wine_fn_config_program notepad enable_notepad install,installbin,po |
| 15496 | wine_fn_config_program oleview enable_oleview install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15497 | wine_fn_config_program ping enable_ping install |
Hans Leidekker | 2133b6c | 2011-01-31 15:26:17 +0100 | [diff] [blame] | 15498 | wine_fn_config_program plugplay enable_plugplay install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15499 | wine_fn_config_program progman enable_progman install,po |
| 15500 | wine_fn_config_program reg enable_reg install,po |
| 15501 | wine_fn_config_program regedit enable_regedit install,installbin,po |
Andrew Eikum | f3c6c62 | 2010-07-30 16:02:34 -0500 | [diff] [blame] | 15502 | wine_fn_config_test programs/regedit/tests regedit.exe_test |
Hans Leidekker | ab5fbeb | 2010-11-12 13:07:40 +0100 | [diff] [blame] | 15503 | wine_fn_config_program regsvcs enable_regsvcs install |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15504 | wine_fn_config_program regsvr32 enable_regsvr32 install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15505 | wine_fn_config_program rpcss enable_rpcss install |
Detlef Riekenberg | df898ea | 2010-07-18 19:15:57 +0200 | [diff] [blame] | 15506 | wine_fn_config_program rundll.exe16 enable_win16 install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15507 | wine_fn_config_program rundll32 enable_rundll32 install |
Hans Leidekker | 544da28 | 2010-05-03 12:56:58 +0200 | [diff] [blame] | 15508 | wine_fn_config_program sc enable_sc install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15509 | wine_fn_config_program secedit enable_secedit install |
Hans Leidekker | 1885c3d | 2010-11-18 12:09:11 +0100 | [diff] [blame] | 15510 | wine_fn_config_program servicemodelreg enable_servicemodelreg install |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15511 | wine_fn_config_program services enable_services install |
| 15512 | wine_fn_config_program spoolsv enable_spoolsv install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15513 | wine_fn_config_program start enable_start install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15514 | wine_fn_config_program svchost enable_svchost install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15515 | wine_fn_config_program taskkill enable_taskkill install,po |
| 15516 | wine_fn_config_program taskmgr enable_taskmgr install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15517 | wine_fn_config_program termsv enable_termsv install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15518 | wine_fn_config_program uninstaller enable_uninstaller install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15519 | wine_fn_config_program unlodctr enable_unlodctr install |
Alexandre Julliard | 9d6489a | 2011-01-10 13:25:22 +0100 | [diff] [blame] | 15520 | wine_fn_config_program view enable_view po |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15521 | wine_fn_config_program wineboot enable_wineboot install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15522 | wine_fn_config_program winebrowser enable_winebrowser install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15523 | wine_fn_config_program winecfg enable_winecfg install,installbin,po |
| 15524 | wine_fn_config_program wineconsole enable_wineconsole install,installbin,po |
| 15525 | wine_fn_config_program winedbg enable_winedbg install,installbin,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15526 | wine_fn_config_program winedevice enable_winedevice install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15527 | wine_fn_config_program winefile enable_winefile install,installbin,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15528 | wine_fn_config_program winemenubuilder enable_winemenubuilder install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15529 | wine_fn_config_program winemine enable_winemine install,installbin,po |
Hans Leidekker | 1370072 | 2011-02-01 14:01:42 +0100 | [diff] [blame] | 15530 | wine_fn_config_program winemsibuilder enable_winemsibuilder install |
Alexandre Julliard | 6cce7fa | 2010-12-28 15:42:43 +0100 | [diff] [blame] | 15531 | wine_fn_config_program winepath enable_winepath install,installbin |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15532 | wine_fn_config_program winetest enable_winetest |
| 15533 | wine_fn_config_program winevdm enable_win16 install |
| 15534 | wine_fn_config_program winhelp.exe16 enable_win16 install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15535 | wine_fn_config_program winhlp32 enable_winhlp32 install,po |
Alexandre Julliard | d394e04 | 2010-03-20 14:53:39 +0100 | [diff] [blame] | 15536 | wine_fn_config_program winoldap.mod16 enable_win16 install |
| 15537 | wine_fn_config_program winver enable_winver install |
Louis Lenders | 4b281b2 | 2010-12-06 23:04:20 +0100 | [diff] [blame] | 15538 | wine_fn_config_program wmic enable_wmic install |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15539 | wine_fn_config_program wordpad enable_wordpad install,po |
| 15540 | wine_fn_config_program write enable_write install,po |
Jacek Caban | 16bad58 | 2010-07-27 15:51:18 +0200 | [diff] [blame] | 15541 | wine_fn_config_program wscript enable_wscript install |
Jacek Caban | f5eb15a | 2011-02-22 19:48:37 +0100 | [diff] [blame] | 15542 | wine_fn_config_test programs/wscript/tests wscript.exe_test |
Alexandre Julliard | e2db794 | 2011-06-12 11:41:43 +0200 | [diff] [blame] | 15543 | wine_fn_config_program xcopy enable_xcopy install,po |
Alexandre Julliard | e492fcc | 2011-06-12 12:03:53 +0200 | [diff] [blame] | 15544 | wine_fn_config_makefile server enable_server install-lib |
| 15545 | wine_fn_config_tool tools install-dev,install-lib |
Alexandre Julliard | 49c31e3 | 2011-06-12 12:13:17 +0200 | [diff] [blame^] | 15546 | wine_fn_config_tool tools/widl install-dev |
| 15547 | wine_fn_config_tool tools/winebuild install-dev |
| 15548 | wine_fn_config_tool tools/winedump install-dev |
| 15549 | wine_fn_config_tool tools/winegcc install-dev |
| 15550 | wine_fn_config_tool tools/wmc install-dev |
| 15551 | wine_fn_config_tool tools/wrc install-dev |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 15552 | |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15553 | LINGUAS="\ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15554 | ar \ |
Alexandre Julliard | 4bca334 | 2011-01-04 19:38:45 +0100 | [diff] [blame] | 15555 | bg \ |
Alexandre Julliard | 39558f8 | 2011-01-13 17:24:15 +0100 | [diff] [blame] | 15556 | ca \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15557 | cs \ |
| 15558 | da \ |
| 15559 | de \ |
Alexandre Julliard | c9b52d2 | 2011-01-06 13:19:58 +0100 | [diff] [blame] | 15560 | el \ |
| 15561 | en \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15562 | en_US \ |
| 15563 | eo \ |
| 15564 | es \ |
Alexandre Julliard | ff71d91 | 2011-01-08 12:53:31 +0100 | [diff] [blame] | 15565 | fa \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15566 | fi \ |
| 15567 | fr \ |
| 15568 | he \ |
| 15569 | hi \ |
| 15570 | hu \ |
| 15571 | it \ |
| 15572 | ja \ |
| 15573 | ko \ |
| 15574 | lt \ |
| 15575 | ml \ |
| 15576 | nb_NO \ |
| 15577 | nl \ |
| 15578 | or \ |
| 15579 | pa \ |
| 15580 | pl \ |
| 15581 | pt_BR \ |
| 15582 | pt_PT \ |
Alexandre Julliard | 433e240 | 2011-01-10 20:30:14 +0100 | [diff] [blame] | 15583 | rm \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15584 | ro \ |
| 15585 | ru \ |
| 15586 | sk \ |
| 15587 | sl \ |
Alexandre Julliard | c0b813f | 2011-01-07 12:11:41 +0100 | [diff] [blame] | 15588 | sr_RS@cyrillic \ |
| 15589 | sr_RS@latin \ |
Alexandre Julliard | 7c2a4bf | 2011-01-04 16:55:54 +0100 | [diff] [blame] | 15590 | sv \ |
| 15591 | te \ |
| 15592 | th \ |
| 15593 | tr \ |
| 15594 | uk \ |
| 15595 | wa \ |
| 15596 | zh_CN \ |
| 15597 | zh_TW" |
| 15598 | |
| 15599 | |
| 15600 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 15601 | ac_config_commands="$ac_config_commands Makefile" |
| 15602 | |
| 15603 | |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 15604 | ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in" |
Alexandre Julliard | 92b5731 | 2010-03-22 20:25:30 +0100 | [diff] [blame] | 15605 | |
| 15606 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15607 | |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15608 | if test "x$enable_maintainer_mode" = xyes |
| 15609 | then |
| 15610 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4 |
| 15611 | cd \$(srcdir) && autoconf --warnings=all |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15612 | \$(srcdir)/include/config.h.in: include/stamp-h.in |
| 15613 | \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4 |
| 15614 | cd \$(srcdir) && autoheader --warnings=all |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15615 | @echo timestamp > \$@ |
| 15616 | |
| 15617 | ALL_POT_FILES =$ALL_POT_FILES |
| 15618 | all: \$(ALL_PO_FILES) |
| 15619 | \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot |
Alexandre Julliard | 945ccf5 | 2011-01-27 15:09:55 +0100 | [diff] [blame] | 15620 | msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@ |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 15621 | \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES) |
| 15622 | msgcat -o \$@ \$(ALL_POT_FILES)" |
Alexandre Julliard | 5eee920 | 2011-01-01 12:04:45 +0100 | [diff] [blame] | 15623 | fi |
| 15624 | |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15625 | if test "x$enable_tools" != xno |
| 15626 | then |
| 15627 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile |
| 15628 | clean:: __clean__ |
| 15629 | \$(RM) tools/makedep\$(EXEEXT)" |
| 15630 | fi |
| 15631 | |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15632 | if test -n "$with_wine64" |
| 15633 | then |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15634 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader |
| 15635 | fonts server tools: |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15636 | \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@ |
Alexandre Julliard | f3831cf | 2010-05-16 17:01:52 +0200 | [diff] [blame] | 15637 | $with_wine64/loader/wine: |
| 15638 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@ |
Alexandre Julliard | 3c42b62 | 2010-12-27 14:37:57 +0100 | [diff] [blame] | 15639 | $with_wine64/loader/wine-preloader: |
| 15640 | \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@ |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15641 | clean:: |
Alexandre Julliard | 84fd1f5 | 2011-05-10 11:59:43 +0200 | [diff] [blame] | 15642 | \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader" |
Alexandre Julliard | e5c585e | 2010-03-29 17:54:55 +0200 | [diff] [blame] | 15643 | fi |
| 15644 | |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 15645 | wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall:: |
| 15646 | -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)" |
| 15647 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15648 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15649 | # This file is a shell script that caches the results of configure |
| 15650 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15651 | # scripts and configure runs, see configure's option --config-cache. |
| 15652 | # It is not useful on other systems. If it contains results you don't |
| 15653 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15654 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15655 | # config.status only pays attention to the cache file if you give it |
| 15656 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15657 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15658 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15659 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15660 | # following values. |
| 15661 | |
| 15662 | _ACEOF |
| 15663 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15664 | # The following way of writing the cache mishandles newlines in values, |
| 15665 | # but we know of no workaround that is simple, portable, and efficient. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15666 | # So, we kill variables containing newlines. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15667 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15668 | # 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] | 15669 | ( |
| 15670 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15671 | eval ac_val=\$$ac_var |
| 15672 | case $ac_val in #( |
| 15673 | *${as_nl}*) |
| 15674 | case $ac_var in #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15675 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15676 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15677 | esac |
| 15678 | case $ac_var in #( |
| 15679 | _ | IFS | as_nl) ;; #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15680 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15681 | *) { eval $ac_var=; unset $ac_var;} ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15682 | esac ;; |
| 15683 | esac |
| 15684 | done |
| 15685 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15686 | (set) 2>&1 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15687 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15688 | *${as_nl}ac_space=\ *) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15689 | # `set' does not quote correctly, so add quotes: double-quote |
| 15690 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15691 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15692 | "s/'/'\\\\''/g; |
| 15693 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15694 | ;; #( |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15695 | *) |
| 15696 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15697 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15698 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15699 | esac | |
| 15700 | sort |
| 15701 | ) | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15702 | sed ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15703 | /^ac_cv_env_/b end |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15704 | t clear |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15705 | :clear |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15706 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15707 | t end |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15708 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15709 | :end' >>confcache |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 15710 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15711 | if test -w "$cache_file"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15712 | if test "x$cache_file" != "x/dev/null"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15713 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15714 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15715 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 15716 | cat confcache >"$cache_file" |
| 15717 | else |
| 15718 | case $cache_file in #( |
| 15719 | */* | ?:*) |
| 15720 | mv -f confcache "$cache_file"$$ && |
| 15721 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 15722 | *) |
| 15723 | mv -f confcache "$cache_file" ;; |
| 15724 | esac |
| 15725 | fi |
| 15726 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15727 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15728 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15729 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15730 | fi |
| 15731 | fi |
| 15732 | rm -f confcache |
| 15733 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15734 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15735 | # Let make expand exec_prefix. |
| 15736 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15737 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15738 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15739 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15740 | ac_libobjs= |
| 15741 | ac_ltlibobjs= |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15742 | U= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15743 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15744 | # 1. Remove the extension, and $U if already installed. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15745 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15746 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15747 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15748 | # will be set to the directory where LIBOBJS objects are built. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15749 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15750 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15751 | done |
| 15752 | LIBOBJS=$ac_libobjs |
| 15753 | |
| 15754 | LTLIBOBJS=$ac_ltlibobjs |
| 15755 | |
| 15756 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15757 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15758 | : "${CONFIG_STATUS=./config.status}" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15759 | ac_write_fail=0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15760 | ac_clean_files_save=$ac_clean_files |
| 15761 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15762 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15763 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15764 | as_write_fail=0 |
| 15765 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15766 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15767 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15768 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15769 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15770 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15771 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15772 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15773 | ac_cs_recheck=false |
| 15774 | ac_cs_silent=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15775 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15776 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15777 | export SHELL |
| 15778 | _ASEOF |
| 15779 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15780 | ## -------------------- ## |
| 15781 | ## M4sh Initialization. ## |
| 15782 | ## -------------------- ## |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15783 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15784 | # Be more Bourne compatible |
| 15785 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15786 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15787 | emulate sh |
| 15788 | NULLCMD=: |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15789 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15790 | # is contrary to our usage. Disable this feature. |
| 15791 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15792 | setopt NO_GLOB_SUBST |
| 15793 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15794 | case `(set -o) 2>/dev/null` in #( |
| 15795 | *posix*) : |
| 15796 | set -o posix ;; #( |
| 15797 | *) : |
| 15798 | ;; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15799 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 15800 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 15801 | |
| 15802 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15803 | as_nl=' |
| 15804 | ' |
| 15805 | export as_nl |
| 15806 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15807 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15808 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15809 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15810 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15811 | # but without wasting forks for bash or zsh. |
| 15812 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15813 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15814 | as_echo='print -r --' |
| 15815 | as_echo_n='print -rn --' |
| 15816 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15817 | as_echo='printf %s\n' |
| 15818 | as_echo_n='printf %s' |
| 15819 | else |
| 15820 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15821 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15822 | as_echo_n='/usr/ucb/echo -n' |
| 15823 | else |
| 15824 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15825 | as_echo_n_body='eval |
| 15826 | arg=$1; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15827 | case $arg in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15828 | *"$as_nl"*) |
| 15829 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15830 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15831 | esac; |
| 15832 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15833 | ' |
| 15834 | export as_echo_n_body |
| 15835 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15836 | fi |
| 15837 | export as_echo_body |
| 15838 | as_echo='sh -c $as_echo_body as_echo' |
| 15839 | fi |
| 15840 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15841 | # The user is always right. |
| 15842 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15843 | PATH_SEPARATOR=: |
| 15844 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15845 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15846 | PATH_SEPARATOR=';' |
| 15847 | } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15848 | fi |
| 15849 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15850 | |
| 15851 | # IFS |
| 15852 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15853 | # there to prevent editors from complaining about space-tab. |
| 15854 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15855 | # splitting by setting IFS to empty value.) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15856 | IFS=" "" $as_nl" |
| 15857 | |
| 15858 | # Find who we are. Look in the path if we contain no directory separator. |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 15859 | as_myself= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15860 | case $0 in #(( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15861 | *[\\/]* ) as_myself=$0 ;; |
| 15862 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15863 | for as_dir in $PATH |
| 15864 | do |
| 15865 | IFS=$as_save_IFS |
| 15866 | test -z "$as_dir" && as_dir=. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15867 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15868 | done |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15869 | IFS=$as_save_IFS |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15870 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15871 | ;; |
| 15872 | esac |
| 15873 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15874 | # in which case we are not to be found in the path. |
| 15875 | if test "x$as_myself" = x; then |
| 15876 | as_myself=$0 |
| 15877 | fi |
| 15878 | if test ! -f "$as_myself"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15879 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15880 | exit 1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15881 | fi |
| 15882 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15883 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 15884 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 15885 | # suppresses any "Segmentation fault" message there. '((' could |
| 15886 | # trigger a bug in pdksh 5.2.14. |
| 15887 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 15888 | do eval test x\${$as_var+set} = xset \ |
| 15889 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15890 | done |
| 15891 | PS1='$ ' |
| 15892 | PS2='> ' |
| 15893 | PS4='+ ' |
| 15894 | |
| 15895 | # NLS nuisances. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 15896 | LC_ALL=C |
| 15897 | export LC_ALL |
| 15898 | LANGUAGE=C |
| 15899 | export LANGUAGE |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15900 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15901 | # CDPATH. |
| 15902 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15903 | |
| 15904 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15905 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 15906 | # ---------------------------------------- |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15907 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15908 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15909 | # script with STATUS, using 1 if that was 0. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15910 | as_fn_error () |
| 15911 | { |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15912 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 15913 | if test "$4"; then |
| 15914 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15915 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15916 | fi |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 15917 | $as_echo "$as_me: error: $2" >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15918 | as_fn_exit $as_status |
| 15919 | } # as_fn_error |
| 15920 | |
| 15921 | |
| 15922 | # as_fn_set_status STATUS |
| 15923 | # ----------------------- |
| 15924 | # Set $? to STATUS, without forking. |
| 15925 | as_fn_set_status () |
| 15926 | { |
| 15927 | return $1 |
| 15928 | } # as_fn_set_status |
| 15929 | |
| 15930 | # as_fn_exit STATUS |
| 15931 | # ----------------- |
| 15932 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 15933 | as_fn_exit () |
| 15934 | { |
| 15935 | set +e |
| 15936 | as_fn_set_status $1 |
| 15937 | exit $1 |
| 15938 | } # as_fn_exit |
| 15939 | |
| 15940 | # as_fn_unset VAR |
| 15941 | # --------------- |
| 15942 | # Portably unset VAR. |
| 15943 | as_fn_unset () |
| 15944 | { |
| 15945 | { eval $1=; unset $1;} |
| 15946 | } |
| 15947 | as_unset=as_fn_unset |
| 15948 | # as_fn_append VAR VALUE |
| 15949 | # ---------------------- |
| 15950 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 15951 | # advantage of any shell optimizations that allow amortized linear growth over |
| 15952 | # repeated appends, instead of the typical quadratic growth present in naive |
| 15953 | # implementations. |
| 15954 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 15955 | eval 'as_fn_append () |
| 15956 | { |
| 15957 | eval $1+=\$2 |
| 15958 | }' |
| 15959 | else |
| 15960 | as_fn_append () |
| 15961 | { |
| 15962 | eval $1=\$$1\$2 |
| 15963 | } |
| 15964 | fi # as_fn_append |
| 15965 | |
| 15966 | # as_fn_arith ARG... |
| 15967 | # ------------------ |
| 15968 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 15969 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 15970 | # must be portable across $(()) and expr. |
| 15971 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 15972 | eval 'as_fn_arith () |
| 15973 | { |
| 15974 | as_val=$(( $* )) |
| 15975 | }' |
| 15976 | else |
| 15977 | as_fn_arith () |
| 15978 | { |
| 15979 | as_val=`expr "$@" || test $? -eq 1` |
| 15980 | } |
| 15981 | fi # as_fn_arith |
| 15982 | |
| 15983 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 15984 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15985 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15986 | as_expr=expr |
| 15987 | else |
| 15988 | as_expr=false |
| 15989 | fi |
| 15990 | |
| 15991 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15992 | as_basename=basename |
| 15993 | else |
| 15994 | as_basename=false |
| 15995 | fi |
| 15996 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 15997 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15998 | as_dirname=dirname |
| 15999 | else |
| 16000 | as_dirname=false |
| 16001 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16002 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16003 | as_me=`$as_basename -- "$0" || |
| 16004 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16005 | X"$0" : 'X\(//\)$' \| \ |
| 16006 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16007 | $as_echo X/"$0" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16008 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16009 | s//\1/ |
| 16010 | q |
| 16011 | } |
| 16012 | /^X\/\(\/\/\)$/{ |
| 16013 | s//\1/ |
| 16014 | q |
| 16015 | } |
| 16016 | /^X\/\(\/\).*/{ |
| 16017 | s//\1/ |
| 16018 | q |
| 16019 | } |
| 16020 | s/.*/./; q'` |
| 16021 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16022 | # Avoid depending upon Character Ranges. |
| 16023 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16024 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16025 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16026 | as_cr_digits='0123456789' |
| 16027 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16028 | |
| 16029 | ECHO_C= ECHO_N= ECHO_T= |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16030 | case `echo -n x` in #((((( |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16031 | -n*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16032 | case `echo 'xy\c'` in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16033 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16034 | xy) ECHO_C='\c';; |
| 16035 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 16036 | ECHO_T=' ';; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16037 | esac;; |
| 16038 | *) |
| 16039 | ECHO_N='-n';; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16040 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16041 | |
| 16042 | rm -f conf$$ conf$$.exe conf$$.file |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16043 | if test -d conf$$.dir; then |
| 16044 | rm -f conf$$.dir/conf$$.file |
| 16045 | else |
| 16046 | rm -f conf$$.dir |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16047 | mkdir conf$$.dir 2>/dev/null |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16048 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16049 | if (echo >conf$$.file) 2>/dev/null; then |
| 16050 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16051 | as_ln_s='ln -s' |
| 16052 | # ... but there are two gotchas: |
| 16053 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16054 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 16055 | # In both cases, we have to default to `cp -p'. |
| 16056 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 16057 | as_ln_s='cp -p' |
| 16058 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16059 | as_ln_s=ln |
| 16060 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16061 | as_ln_s='cp -p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16062 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16063 | else |
| 16064 | as_ln_s='cp -p' |
| 16065 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16066 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16067 | rmdir conf$$.dir 2>/dev/null |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16068 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16069 | |
| 16070 | # as_fn_mkdir_p |
| 16071 | # ------------- |
| 16072 | # Create "$as_dir" as a directory, including parents if necessary. |
| 16073 | as_fn_mkdir_p () |
| 16074 | { |
| 16075 | |
| 16076 | case $as_dir in #( |
| 16077 | -*) as_dir=./$as_dir;; |
| 16078 | esac |
| 16079 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 16080 | as_dirs= |
| 16081 | while :; do |
| 16082 | case $as_dir in #( |
| 16083 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16084 | *) as_qdir=$as_dir;; |
| 16085 | esac |
| 16086 | as_dirs="'$as_qdir' $as_dirs" |
| 16087 | as_dir=`$as_dirname -- "$as_dir" || |
| 16088 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16089 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16090 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16091 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16092 | $as_echo X"$as_dir" | |
| 16093 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16094 | s//\1/ |
| 16095 | q |
| 16096 | } |
| 16097 | /^X\(\/\/\)[^/].*/{ |
| 16098 | s//\1/ |
| 16099 | q |
| 16100 | } |
| 16101 | /^X\(\/\/\)$/{ |
| 16102 | s//\1/ |
| 16103 | q |
| 16104 | } |
| 16105 | /^X\(\/\).*/{ |
| 16106 | s//\1/ |
| 16107 | q |
| 16108 | } |
| 16109 | s/.*/./; q'` |
| 16110 | test -d "$as_dir" && break |
| 16111 | done |
| 16112 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16113 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16114 | |
| 16115 | |
| 16116 | } # as_fn_mkdir_p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16117 | if mkdir -p . 2>/dev/null; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16118 | as_mkdir_p='mkdir -p "$as_dir"' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16119 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16120 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16121 | as_mkdir_p=false |
| 16122 | fi |
| 16123 | |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16124 | if test -x / >/dev/null 2>&1; then |
| 16125 | as_test_x='test -x' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16126 | else |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16127 | if ls -dL / >/dev/null 2>&1; then |
| 16128 | as_ls_L_option=L |
| 16129 | else |
| 16130 | as_ls_L_option= |
| 16131 | fi |
| 16132 | as_test_x=' |
| 16133 | eval sh -c '\'' |
| 16134 | if test -d "$1"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16135 | test -d "$1/."; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16136 | else |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16137 | case $1 in #( |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16138 | -*)set "./$1";; |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16139 | esac; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16140 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16141 | ???[sx]*):;;*)false;;esac;fi |
| 16142 | '\'' sh |
| 16143 | ' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16144 | fi |
Alexandre Julliard | dc9f384 | 2006-12-19 16:17:09 +0100 | [diff] [blame] | 16145 | as_executable_p=$as_test_x |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16146 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16147 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16148 | 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] | 16149 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16150 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16151 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16152 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16153 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16154 | exec 6>&1 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16155 | ## ----------------------------------- ## |
| 16156 | ## Main body of $CONFIG_STATUS script. ## |
| 16157 | ## ----------------------------------- ## |
| 16158 | _ASEOF |
| 16159 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16160 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16161 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16162 | # 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] | 16163 | # report actual input values of CONFIG_FILES etc. instead of their |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16164 | # values after options handling. |
| 16165 | ac_log=" |
Alexandre Julliard | 24e7b5f | 2011-06-10 20:08:11 +0200 | [diff] [blame] | 16166 | This file was extended by Wine $as_me 1.3.22, which was |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16167 | generated by GNU Autoconf 2.68. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16168 | |
| 16169 | CONFIG_FILES = $CONFIG_FILES |
| 16170 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16171 | CONFIG_LINKS = $CONFIG_LINKS |
| 16172 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16173 | $ $0 $@ |
| 16174 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16175 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16176 | " |
| 16177 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16178 | _ACEOF |
| 16179 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16180 | case $ac_config_files in *" |
| 16181 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16182 | esac |
| 16183 | |
| 16184 | case $ac_config_headers in *" |
| 16185 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16186 | esac |
| 16187 | |
| 16188 | |
| 16189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16190 | # Files that config.status was made for. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16191 | config_files="$ac_config_files" |
| 16192 | config_headers="$ac_config_headers" |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16193 | config_links="$ac_config_links" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16194 | config_commands="$ac_config_commands" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16195 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16196 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16197 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16199 | ac_cs_usage="\ |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16200 | \`$as_me' instantiates files and other configuration actions |
| 16201 | from templates according to the current configuration. Unless the files |
| 16202 | and actions are specified as TAGs, all are instantiated by default. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16203 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16204 | Usage: $0 [OPTION]... [TAG]... |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16205 | |
| 16206 | -h, --help print this help, then exit |
Alexandre Julliard | 78bd194 | 2006-08-14 20:42:56 +0200 | [diff] [blame] | 16207 | -V, --version print version number and configuration settings, then exit |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16208 | --config print configuration, then exit |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16209 | -q, --quiet, --silent |
| 16210 | do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16211 | -d, --debug don't remove temporary files |
| 16212 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16213 | --file=FILE[:TEMPLATE] |
| 16214 | instantiate the configuration file FILE |
| 16215 | --header=FILE[:TEMPLATE] |
| 16216 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16217 | |
| 16218 | Configuration files: |
| 16219 | $config_files |
| 16220 | |
| 16221 | Configuration headers: |
| 16222 | $config_headers |
| 16223 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16224 | Configuration links: |
| 16225 | $config_links |
| 16226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16227 | Configuration commands: |
| 16228 | $config_commands |
| 16229 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16230 | Report bugs to <wine-devel@winehq.org>. |
| 16231 | Wine home page: <http://www.winehq.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16232 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16233 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16234 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16235 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16236 | ac_cs_version="\\ |
Alexandre Julliard | 24e7b5f | 2011-06-10 20:08:11 +0200 | [diff] [blame] | 16237 | Wine config.status 1.3.22 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16238 | configured by $0, generated by GNU Autoconf 2.68, |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16239 | with options \\"\$ac_cs_config\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16240 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16241 | Copyright (C) 2010 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16242 | This config.status script is free software; the Free Software Foundation |
| 16243 | gives unlimited permission to copy, distribute and modify it." |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16244 | |
| 16245 | ac_pwd='$ac_pwd' |
| 16246 | srcdir='$srcdir' |
| 16247 | INSTALL='$INSTALL' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16248 | test -n "\$AWK" || AWK=awk |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16249 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16250 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16251 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16252 | # The default lists apply if the user does not specify any file. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16253 | ac_need_defaults=: |
| 16254 | while test $# != 0 |
| 16255 | do |
| 16256 | case $1 in |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16257 | --*=?*) |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16258 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16259 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16260 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16261 | ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16262 | --*=) |
| 16263 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16264 | ac_optarg= |
| 16265 | ac_shift=: |
| 16266 | ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16267 | *) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16268 | ac_option=$1 |
| 16269 | ac_optarg=$2 |
| 16270 | ac_shift=shift |
| 16271 | ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16272 | esac |
| 16273 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16274 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16275 | # Handling of the options. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16276 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16277 | ac_cs_recheck=: ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16278 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16279 | $as_echo "$ac_cs_version"; exit ;; |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16280 | --config | --confi | --conf | --con | --co | --c ) |
| 16281 | $as_echo "$ac_cs_config"; exit ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16282 | --debug | --debu | --deb | --de | --d | -d ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16283 | debug=: ;; |
| 16284 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16285 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16286 | case $ac_optarg in |
| 16287 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16288 | '') as_fn_error $? "missing file argument" ;; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16289 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16290 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16291 | ac_need_defaults=false;; |
| 16292 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16293 | $ac_shift |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16294 | case $ac_optarg in |
| 16295 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16296 | esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16297 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16298 | ac_need_defaults=false;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16299 | --he | --h) |
| 16300 | # Conflict between --help and --header |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16301 | as_fn_error $? "ambiguous option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16302 | Try \`$0 --help' for more information.";; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16303 | --help | --hel | -h ) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16304 | $as_echo "$ac_cs_usage"; exit ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16306 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16307 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16308 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16309 | # This is an error. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16310 | -*) as_fn_error $? "unrecognized option: \`$1' |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16311 | Try \`$0 --help' for more information." ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16312 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16313 | *) as_fn_append ac_config_targets " $1" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16314 | ac_need_defaults=false ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16315 | |
| 16316 | esac |
| 16317 | shift |
| 16318 | done |
| 16319 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16320 | ac_configure_extra_args= |
| 16321 | |
| 16322 | if $ac_cs_silent; then |
| 16323 | exec 6>/dev/null |
| 16324 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16325 | fi |
| 16326 | |
| 16327 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16329 | if \$ac_cs_recheck; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16330 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16331 | shift |
| 16332 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16333 | CONFIG_SHELL='$SHELL' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16334 | export CONFIG_SHELL |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16335 | exec "\$@" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16336 | fi |
| 16337 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16338 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16339 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16340 | exec 5>>config.log |
| 16341 | { |
| 16342 | echo |
| 16343 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16344 | ## Running $as_me. ## |
| 16345 | _ASBOX |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16346 | $as_echo "$ac_log" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16347 | } >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16348 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16349 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16350 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16351 | # |
| 16352 | # INIT-COMMANDS |
| 16353 | # |
| 16354 | wine_fn_output_makefile () |
| 16355 | { |
| 16356 | cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return |
| 16357 | $ALL_MAKEFILE_DEPENDS |
| 16358 | _WINE_EOF |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16359 | as_fn_error $? "could not create Makefile" "$LINENO" 5 |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16360 | } |
| 16361 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16362 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16363 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16364 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16365 | |
| 16366 | # Handling of arguments. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16367 | for ac_config_target in $ac_config_targets |
| 16368 | do |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16369 | case $ac_config_target in |
| 16370 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 16371 | "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;; |
Alexandre Julliard | 40977bf | 2010-11-11 12:24:46 +0100 | [diff] [blame] | 16372 | "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;; |
Alexandre Julliard | a632052 | 2010-02-03 13:14:03 +0100 | [diff] [blame] | 16373 | "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;; |
Alexandre Julliard | ce12296 | 2010-02-03 13:13:16 +0100 | [diff] [blame] | 16374 | "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;; |
| 16375 | "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;; |
| 16376 | "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;; |
| 16377 | "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;; |
Alexandre Julliard | 321d388 | 2010-05-06 20:51:53 +0200 | [diff] [blame] | 16378 | "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;; |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16379 | "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;; |
Alexandre Julliard | 4422d22 | 2011-05-10 13:26:28 +0200 | [diff] [blame] | 16380 | "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;; |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 16381 | "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;; |
Alexandre Julliard | 7dfc447 | 2006-10-20 12:25:29 +0200 | [diff] [blame] | 16382 | "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;; |
| 16383 | "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;; |
Alexandre Julliard | 1c60e3b | 2006-09-12 16:10:51 +0200 | [diff] [blame] | 16384 | "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;; |
Alexandre Julliard | b8a2e3b | 2006-11-16 14:49:25 +0100 | [diff] [blame] | 16385 | "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16386 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; |
| 16387 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 16388 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
Alexandre Julliard | cb1fc8f | 2010-02-10 11:18:58 +0100 | [diff] [blame] | 16389 | "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16390 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 16391 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16392 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 16393 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 16394 | "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16395 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16396 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16397 | esac |
| 16398 | done |
| 16399 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16400 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16401 | # If the user did not use the arguments to specify the items to instantiate, |
| 16402 | # then the envvar interface is used. Set only those that are not. |
| 16403 | # We use the long form for the default assignment because of an extremely |
| 16404 | # bizarre bug on SunOS 4.1.3. |
| 16405 | if $ac_need_defaults; then |
| 16406 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16407 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16408 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16409 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16410 | fi |
| 16411 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16412 | # Have a temporary directory for convenience. Make it in the build tree |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16413 | # 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] | 16414 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16415 | # Hook for its removal unless debugging. |
| 16416 | # Note that there is a small window in which the directory will not be cleaned: |
| 16417 | # after its creation but before its name has been assigned to `$tmp'. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16418 | $debug || |
| 16419 | { |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16420 | tmp= ac_tmp= |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16421 | trap 'exit_status=$? |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16422 | : "${ac_tmp:=$tmp}" |
| 16423 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16424 | ' 0 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16425 | trap 'as_fn_exit 1' 1 2 13 15 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16426 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16427 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16428 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16429 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16430 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16431 | test -d "$tmp" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16432 | } || |
| 16433 | { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16434 | tmp=./conf$$-$RANDOM |
| 16435 | (umask 077 && mkdir "$tmp") |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16436 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16437 | ac_tmp=$tmp |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16438 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16439 | # Set up the scripts for CONFIG_FILES section. |
| 16440 | # No need to generate them if there are no CONFIG_FILES. |
| 16441 | # This happens for instance with `./config.status config.h'. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16442 | if test -n "$CONFIG_FILES"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16443 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16444 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 16445 | ac_cs_awk_getline=: |
| 16446 | ac_cs_awk_pipe_init= |
| 16447 | ac_cs_awk_read_file=' |
| 16448 | while ((getline aline < (F[key])) > 0) |
| 16449 | print(aline) |
| 16450 | close(F[key])' |
| 16451 | ac_cs_awk_pipe_fini= |
| 16452 | else |
| 16453 | ac_cs_awk_getline=false |
| 16454 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 16455 | ac_cs_awk_read_file=' |
| 16456 | print "|#_!!_#|" |
| 16457 | print "cat " F[key] " &&" |
| 16458 | '$ac_cs_awk_pipe_init |
| 16459 | # The final `:' finishes the AND list. |
| 16460 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 16461 | fi |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16462 | ac_cr=`echo X | tr X '\015'` |
| 16463 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16464 | # But we know of no other shell where ac_cr would be empty at this |
| 16465 | # point, so we can use a bashism as a fallback. |
| 16466 | if test "x$ac_cr" = x; then |
| 16467 | eval ac_cr=\$\'\\r\' |
| 16468 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16469 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16470 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16471 | ac_cs_awk_cr='\\r' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16472 | else |
| 16473 | ac_cs_awk_cr=$ac_cr |
| 16474 | fi |
| 16475 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16476 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16477 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16478 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16479 | # Create commands to substitute file output variables. |
| 16480 | { |
| 16481 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16482 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16483 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 16484 | echo "_ACAWK" && |
| 16485 | echo "_ACEOF" |
| 16486 | } >conf$$files.sh && |
| 16487 | . ./conf$$files.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16488 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16489 | rm -f conf$$files.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16490 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16491 | { |
| 16492 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16493 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16494 | echo "_ACEOF" |
| 16495 | } >conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16496 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16497 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16498 | ac_delim='%!_!# ' |
| 16499 | for ac_last_try in false false false false false :; do |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16500 | . ./conf$$subs.sh || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16501 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16502 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16503 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16504 | if test $ac_delim_n = $ac_delim_num; then |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16505 | break |
| 16506 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16507 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16508 | else |
| 16509 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16510 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16511 | done |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16512 | rm -f conf$$subs.sh |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16513 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16514 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16515 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16516 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16517 | sed -n ' |
| 16518 | h |
| 16519 | s/^/S["/; s/!.*/"]=/ |
| 16520 | p |
| 16521 | g |
| 16522 | s/^[^!]*!// |
| 16523 | :repl |
| 16524 | t repl |
| 16525 | s/'"$ac_delim"'$// |
| 16526 | t delim |
| 16527 | :nl |
| 16528 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16529 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16530 | t more1 |
| 16531 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16532 | p |
| 16533 | n |
| 16534 | b repl |
| 16535 | :more1 |
| 16536 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16537 | p |
| 16538 | g |
| 16539 | s/.\{148\}// |
| 16540 | t nl |
| 16541 | :delim |
| 16542 | h |
Alexandre Julliard | fa8c4f7 | 2009-12-28 11:43:02 +0100 | [diff] [blame] | 16543 | s/\(.\{148\}\)..*/\1/ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16544 | t more2 |
| 16545 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16546 | p |
| 16547 | b |
| 16548 | :more2 |
| 16549 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16550 | p |
| 16551 | g |
| 16552 | s/.\{148\}// |
| 16553 | t delim |
| 16554 | ' <conf$$subs.awk | sed ' |
| 16555 | /^[^""]/{ |
| 16556 | N |
| 16557 | s/\n// |
| 16558 | } |
| 16559 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16560 | rm -f conf$$subs.awk |
| 16561 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16562 | _ACAWK |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16563 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16564 | for (key in S) S_is_set[key] = 1 |
| 16565 | FS = "" |
| 16566 | \$ac_cs_awk_pipe_init |
| 16567 | } |
| 16568 | { |
| 16569 | line = $ 0 |
| 16570 | nfields = split(line, field, "@") |
| 16571 | substed = 0 |
| 16572 | len = length(field[1]) |
| 16573 | for (i = 2; i < nfields; i++) { |
| 16574 | key = field[i] |
| 16575 | keylen = length(key) |
| 16576 | if (S_is_set[key]) { |
| 16577 | value = S[key] |
| 16578 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16579 | len += length(value) + length(field[++i]) |
| 16580 | substed = 1 |
| 16581 | } else |
| 16582 | len += 1 + keylen |
| 16583 | } |
| 16584 | if (nfields == 3 && !substed) { |
| 16585 | key = field[2] |
| 16586 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 16587 | \$ac_cs_awk_read_file |
| 16588 | next |
| 16589 | } |
| 16590 | } |
| 16591 | print line |
| 16592 | } |
| 16593 | \$ac_cs_awk_pipe_fini |
| 16594 | _ACAWK |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16595 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16596 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16597 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16598 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16599 | else |
| 16600 | cat |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16601 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16602 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16603 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16604 | |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16605 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 16606 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16607 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16608 | # (actually we leave an empty line to preserve line numbers). |
| 16609 | if test "x$srcdir" = x.; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16610 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 16611 | h |
| 16612 | s/// |
| 16613 | s/^/:/ |
| 16614 | s/[ ]*$/:/ |
| 16615 | s/:\$(srcdir):/:/g |
| 16616 | s/:\${srcdir}:/:/g |
| 16617 | s/:@srcdir@:/:/g |
| 16618 | s/^:*// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16619 | s/:*$// |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16620 | x |
| 16621 | s/\(=[ ]*\).*/\1/ |
| 16622 | G |
| 16623 | s/\n// |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16624 | s/^[^=]*=[ ]*$// |
| 16625 | }' |
| 16626 | fi |
| 16627 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16628 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16629 | fi # test -n "$CONFIG_FILES" |
| 16630 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16631 | # Set up the scripts for CONFIG_HEADERS section. |
| 16632 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16633 | # This happens for instance with `./config.status Makefile'. |
| 16634 | if test -n "$CONFIG_HEADERS"; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16635 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16636 | BEGIN { |
| 16637 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16638 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16639 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16640 | # here-document in config.status, that substitutes the proper values into |
| 16641 | # config.h.in to produce config.h. |
| 16642 | |
| 16643 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16644 | # handling of long lines. |
| 16645 | ac_delim='%!_!# ' |
| 16646 | for ac_last_try in false false :; do |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16647 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 16648 | if test -z "$ac_tt"; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16649 | break |
| 16650 | elif $ac_last_try; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16651 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16652 | else |
| 16653 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16654 | fi |
| 16655 | done |
| 16656 | |
| 16657 | # For the awk script, D is an array of macro values keyed by name, |
| 16658 | # likewise P contains macro parameters if any. Preserve backslash |
| 16659 | # newline sequences. |
| 16660 | |
| 16661 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16662 | sed -n ' |
| 16663 | s/.\{148\}/&'"$ac_delim"'/g |
| 16664 | t rset |
| 16665 | :rset |
| 16666 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16667 | t def |
| 16668 | d |
| 16669 | :def |
| 16670 | s/\\$// |
| 16671 | t bsnl |
| 16672 | s/["\\]/\\&/g |
| 16673 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16674 | D["\1"]=" \3"/p |
| 16675 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16676 | d |
| 16677 | :bsnl |
| 16678 | s/["\\]/\\&/g |
| 16679 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16680 | D["\1"]=" \3\\\\\\n"\\/p |
| 16681 | t cont |
| 16682 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16683 | t cont |
| 16684 | d |
| 16685 | :cont |
| 16686 | n |
| 16687 | s/.\{148\}/&'"$ac_delim"'/g |
| 16688 | t clear |
| 16689 | :clear |
| 16690 | s/\\$// |
| 16691 | t bsnlc |
| 16692 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16693 | d |
| 16694 | :bsnlc |
| 16695 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16696 | b cont |
| 16697 | ' <confdefs.h | sed ' |
| 16698 | s/'"$ac_delim"'/"\\\ |
| 16699 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16700 | |
| 16701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16702 | for (key in D) D_is_set[key] = 1 |
| 16703 | FS = "" |
| 16704 | } |
| 16705 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16706 | line = \$ 0 |
| 16707 | split(line, arg, " ") |
| 16708 | if (arg[1] == "#") { |
| 16709 | defundef = arg[2] |
| 16710 | mac1 = arg[3] |
| 16711 | } else { |
| 16712 | defundef = substr(arg[1], 2) |
| 16713 | mac1 = arg[2] |
| 16714 | } |
| 16715 | split(mac1, mac2, "(") #) |
| 16716 | macro = mac2[1] |
| 16717 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16718 | if (D_is_set[macro]) { |
| 16719 | # Preserve the white space surrounding the "#". |
| 16720 | print prefix "define", macro P[macro] D[macro] |
| 16721 | next |
| 16722 | } else { |
| 16723 | # Replace #undef with comments. This is necessary, for example, |
| 16724 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16725 | # on some systems where configure will not decide to define it. |
| 16726 | if (defundef == "undef") { |
| 16727 | print "/*", prefix defundef, macro, "*/" |
| 16728 | next |
| 16729 | } |
| 16730 | } |
| 16731 | } |
| 16732 | { print } |
| 16733 | _ACAWK |
| 16734 | _ACEOF |
| 16735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16736 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16737 | fi # test -n "$CONFIG_HEADERS" |
| 16738 | |
| 16739 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16740 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16741 | shift |
| 16742 | for ac_tag |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16743 | do |
| 16744 | case $ac_tag in |
| 16745 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16746 | esac |
| 16747 | case $ac_mode$ac_tag in |
| 16748 | :[FHL]*:*);; |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16749 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16750 | :[FH]-) ac_tag=-:-;; |
| 16751 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16752 | esac |
| 16753 | ac_save_IFS=$IFS |
| 16754 | IFS=: |
| 16755 | set x $ac_tag |
| 16756 | IFS=$ac_save_IFS |
| 16757 | shift |
| 16758 | ac_file=$1 |
| 16759 | shift |
| 16760 | |
| 16761 | case $ac_mode in |
| 16762 | :L) ac_source=$1;; |
| 16763 | :[FH]) |
| 16764 | ac_file_inputs= |
| 16765 | for ac_f |
| 16766 | do |
| 16767 | case $ac_f in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16768 | -) ac_f="$ac_tmp/stdin";; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16769 | *) # Look for the file first in the build tree, then in the source tree |
| 16770 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16771 | # because $ac_f cannot contain `:'. |
| 16772 | test -f "$ac_f" || |
| 16773 | case $ac_f in |
| 16774 | [\\/$]*) false;; |
| 16775 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16776 | esac || |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16777 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16778 | esac |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16779 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16780 | as_fn_append ac_file_inputs " '$ac_f'" |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16781 | done |
| 16782 | |
| 16783 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16784 | # use $as_me), people would be surprised to read: |
| 16785 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16786 | configure_input='Generated from '` |
| 16787 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16788 | `' by configure.' |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16789 | if test x"$ac_file" != x-; then |
| 16790 | configure_input="$ac_file. $configure_input" |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16792 | $as_echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16793 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16794 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16795 | case $configure_input in #( |
| 16796 | *\&* | *\|* | *\\* ) |
| 16797 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16798 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16799 | *) ac_sed_conf_input=$configure_input;; |
| 16800 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16801 | |
| 16802 | case $ac_tag in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16803 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 16804 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16805 | esac |
| 16806 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16807 | esac |
| 16808 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16809 | ac_dir=`$as_dirname -- "$ac_file" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16810 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16811 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16812 | X"$ac_file" : 'X\(//\)$' \| \ |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16813 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16814 | $as_echo X"$ac_file" | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16815 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16816 | s//\1/ |
| 16817 | q |
| 16818 | } |
| 16819 | /^X\(\/\/\)[^/].*/{ |
| 16820 | s//\1/ |
| 16821 | q |
| 16822 | } |
| 16823 | /^X\(\/\/\)$/{ |
| 16824 | s//\1/ |
| 16825 | q |
| 16826 | } |
| 16827 | /^X\(\/\).*/{ |
| 16828 | s//\1/ |
| 16829 | q |
| 16830 | } |
| 16831 | s/.*/./; q'` |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16832 | as_dir="$ac_dir"; as_fn_mkdir_p |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16833 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16834 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16835 | case "$ac_dir" in |
| 16836 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16837 | *) |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16838 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16839 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16840 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16841 | case $ac_top_builddir_sub in |
| 16842 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16843 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16844 | esac ;; |
| 16845 | esac |
| 16846 | ac_abs_top_builddir=$ac_pwd |
| 16847 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16848 | # for backward compatibility: |
| 16849 | ac_top_builddir=$ac_top_build_prefix |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16850 | |
| 16851 | case $srcdir in |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16852 | .) # We are building in place. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16853 | ac_srcdir=. |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16854 | ac_top_srcdir=$ac_top_builddir_sub |
| 16855 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16856 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16857 | ac_srcdir=$srcdir$ac_dir_suffix; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16858 | ac_top_srcdir=$srcdir |
| 16859 | ac_abs_top_srcdir=$srcdir ;; |
| 16860 | *) # Relative name. |
| 16861 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16862 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16863 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16864 | esac |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16865 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16866 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16867 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16868 | case $ac_mode in |
| 16869 | :F) |
| 16870 | # |
| 16871 | # CONFIG_FILE |
| 16872 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16873 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16874 | case $INSTALL in |
| 16875 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16876 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 16877 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16878 | _ACEOF |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16879 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16881 | # If the template does not know about datarootdir, expand it. |
| 16882 | # FIXME: This hack should be removed a few years after 2.60. |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16883 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16884 | ac_sed_dataroot=' |
| 16885 | /datarootdir/ { |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16886 | p |
| 16887 | q |
| 16888 | } |
| 16889 | /@datadir@/p |
| 16890 | /@docdir@/p |
| 16891 | /@infodir@/p |
| 16892 | /@localedir@/p |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16893 | /@mandir@/p' |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16894 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16895 | *datarootdir*) ac_datarootdir_seen=yes;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16896 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16898 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16899 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16900 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16901 | ac_datarootdir_hack=' |
| 16902 | s&@datadir@&$datadir&g |
| 16903 | s&@docdir@&$docdir&g |
| 16904 | s&@infodir@&$infodir&g |
| 16905 | s&@localedir@&$localedir&g |
| 16906 | s&@mandir@&$mandir&g |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16907 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16908 | esac |
| 16909 | _ACEOF |
| 16910 | |
| 16911 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16912 | # Shell code in configure.ac might set extrasub. |
| 16913 | # FIXME: do we really want to maintain this feature? |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16914 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16915 | ac_sed_extra="$ac_vpsub |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16916 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16917 | _ACEOF |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16918 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16919 | :t |
| 16920 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16921 | s|@configure_input@|$ac_sed_conf_input|;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16922 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16923 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16924 | s&@srcdir@&$ac_srcdir&;t t |
| 16925 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16926 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16927 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16928 | s&@builddir@&$ac_builddir&;t t |
| 16929 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16930 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16931 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16932 | $ac_datarootdir_hack |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16933 | " |
| 16934 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 16935 | if $ac_cs_awk_getline; then |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16936 | $AWK -f "$ac_tmp/subs.awk" |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16937 | else |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16938 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 16939 | fi \ |
| 16940 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16941 | |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16942 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16943 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 16944 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 16945 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16947 | which seems to be undefined. Please make sure it is defined" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16948 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16949 | which seems to be undefined. Please make sure it is defined" >&2;} |
Jeremy White | 0ebeb53 | 2006-06-20 13:18:41 +0200 | [diff] [blame] | 16950 | |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16951 | rm -f "$ac_tmp/stdin" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16952 | case $ac_file in |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16953 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 16954 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16955 | esac \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16956 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16957 | ;; |
| 16958 | :H) |
| 16959 | # |
| 16960 | # CONFIG_HEADER |
| 16961 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16962 | if test x"$ac_file" != x-; then |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16963 | { |
| 16964 | $as_echo "/* $configure_input */" \ |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16965 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 16966 | } >"$ac_tmp/config.h" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16967 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16968 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16970 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16971 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16972 | rm -f "$ac_file" |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16973 | mv "$ac_tmp/config.h" "$ac_file" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16974 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16975 | fi |
| 16976 | else |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 16977 | $as_echo "/* $configure_input */" \ |
Alexandre Julliard | 9797da4 | 2011-04-27 17:37:43 +0200 | [diff] [blame] | 16978 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16979 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16980 | fi |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 16981 | ;; |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16982 | :L) |
| 16983 | # |
| 16984 | # CONFIG_LINK |
| 16985 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16986 | |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 16987 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
| 16988 | : |
| 16989 | else |
| 16990 | # Prefer the file from the source tree if names are identical. |
| 16991 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
| 16992 | ac_source=$srcdir/$ac_source |
| 16993 | fi |
| 16994 | |
| 16995 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
| 16996 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} |
| 16997 | |
| 16998 | if test ! -r "$ac_source"; then |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 16999 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 17000 | fi |
| 17001 | rm -f "$ac_file" |
| 17002 | |
| 17003 | # Try a relative symlink, then a hard link, then a copy. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17004 | case $ac_source in |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 17005 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
| 17006 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
| 17007 | esac |
| 17008 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
| 17009 | ln "$ac_source" "$ac_file" 2>/dev/null || |
| 17010 | cp -p "$ac_source" "$ac_file" || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17011 | as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 |
Alexandre Julliard | 7d020c9 | 2010-02-03 13:12:12 +0100 | [diff] [blame] | 17012 | fi |
| 17013 | ;; |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17014 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17015 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17016 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17017 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17018 | |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17019 | |
| 17020 | case $ac_file$ac_mode in |
Alexandre Julliard | c4704c2 | 2006-09-22 09:33:00 +0200 | [diff] [blame] | 17021 | "include/stamp-h":C) echo timestamp > include/stamp-h ;; |
Huw Davies | 4cffb2d | 2011-04-01 15:27:48 +0100 | [diff] [blame] | 17022 | "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5 |
| 17023 | $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;; |
Alexandre Julliard | a1c253e | 2010-02-11 20:26:35 +0100 | [diff] [blame] | 17024 | "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5 |
| 17025 | $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;; |
| 17026 | "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5 |
| 17027 | $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;; |
| 17028 | "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5 |
| 17029 | $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;; |
| 17030 | "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5 |
| 17031 | $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;; |
| 17032 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5 |
| 17033 | $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;; |
| 17034 | "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5 |
| 17035 | $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;; |
Alexandre Julliard | 39b4ba2 | 2010-03-25 22:13:03 +0100 | [diff] [blame] | 17036 | "Makefile":C) wine_fn_output_makefile Makefile ;; |
Alexandre Julliard | fc6ffb2 | 2006-05-25 20:08:12 +0200 | [diff] [blame] | 17037 | |
| 17038 | esac |
| 17039 | done # for ac_tag |
| 17040 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 17041 | |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17042 | as_fn_exit 0 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17043 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17044 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17045 | |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17046 | test $ac_write_fail = 0 || |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17047 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17048 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17049 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17050 | # configure is writing to config.log, and then calls config.status. |
| 17051 | # config.status does its own redirection, appending to config.log. |
| 17052 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17053 | # by configure, so config.status won't be able to write to it; its |
| 17054 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17055 | # effectively closing config.log, so it can be properly (re)opened and |
| 17056 | # appended to by config.status. When coming back to configure, we |
| 17057 | # need to make the FD available again. |
| 17058 | if test "$no_create" != yes; then |
| 17059 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17060 | ac_config_status_args= |
| 17061 | test "$silent" = yes && |
| 17062 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17063 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17064 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17065 | exec 5>>config.log |
| 17066 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17067 | # would make configure fail if this is the last instruction. |
Alexandre Julliard | a53c44a | 2010-09-19 12:27:24 +0200 | [diff] [blame] | 17068 | $ac_cs_success || as_fn_exit 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17069 | fi |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17070 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17072 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17073 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17074 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17075 | |
Alexandre Julliard | e3bd111 | 2006-09-21 11:14:38 +0200 | [diff] [blame] | 17076 | if test "$no_create" = "yes" |
| 17077 | then |
| 17078 | exit 0 |
| 17079 | fi |
| 17080 | |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17081 | ac_save_IFS="$IFS" |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17082 | if test "x$wine_notices != "x; then |
| 17083 | echo >&6 |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17084 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17085 | for msg in $wine_notices; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17086 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17087 | if test -n "$msg"; then |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17088 | { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17089 | $as_echo "$as_me: $msg" >&6;} |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17090 | fi |
| 17091 | done |
| 17092 | fi |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17093 | IFS="|" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17094 | for msg in $wine_warnings; do |
Rafał Mużyło | 4736c99 | 2008-10-20 21:43:21 +0200 | [diff] [blame] | 17095 | IFS="$ac_save_IFS" |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17096 | if test -n "$msg"; then |
| 17097 | echo >&2 |
Alexandre Julliard | 25e9e4f | 2009-08-10 14:27:28 +0200 | [diff] [blame] | 17098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5 |
Alexandre Julliard | abf5048 | 2008-10-31 12:56:53 +0100 | [diff] [blame] | 17099 | $as_echo "$as_me: WARNING: $msg" >&2;} |
Detlef Riekenberg | e84a382 | 2006-08-21 05:28:17 +0200 | [diff] [blame] | 17100 | fi |
Alexandre Julliard | f9dec94 | 2007-07-10 15:14:15 +0200 | [diff] [blame] | 17101 | done |
| 17102 | IFS="$ac_save_IFS" |
Francois Gouget | 99d026f | 2005-03-19 17:08:18 +0000 | [diff] [blame] | 17103 | |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17104 | echo " |
Alexandre Julliard | 64362ac | 2010-02-23 13:33:52 +0100 | [diff] [blame] | 17105 | $as_me: Finished. Do '${ac_make}' to compile Wine. |
Alexandre Julliard | a41f0f1 | 2008-01-07 14:51:44 +0100 | [diff] [blame] | 17106 | " >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17107 | |