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 | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3 | # Generated by Autoconf 2.52 for Wine 20020122. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6 | # Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10 | # Avoid depending upon Character Ranges. |
| 11 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14 | as_cr_digits='0123456789' |
| 15 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16 | |
| 17 | # Sed expression to map a string onto a valid variable name. |
| 18 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 19 | |
| 20 | # Sed expression to map a string onto a valid CPP name. |
| 21 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 22 | |
| 23 | # Be Bourne compatible |
| 24 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 25 | emulate sh |
| 26 | NULLCMD=: |
| 27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 28 | set -o posix |
| 29 | fi |
| 30 | |
| 31 | # Name of the executable. |
| 32 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| 33 | |
| 34 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 35 | as_expr=expr |
| 36 | else |
| 37 | as_expr=false |
| 38 | fi |
| 39 | |
| 40 | rm -f conf$$ conf$$.exe conf$$.file |
| 41 | echo >conf$$.file |
| 42 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 43 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 44 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 45 | if test -f conf$$.exe; then |
| 46 | # Don't use ln at all; we don't have any links |
| 47 | as_ln_s='cp -p' |
| 48 | else |
| 49 | as_ln_s='ln -s' |
| 50 | fi |
| 51 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 52 | as_ln_s=ln |
| 53 | else |
| 54 | as_ln_s='cp -p' |
| 55 | fi |
| 56 | rm -f conf$$ conf$$.exe conf$$.file |
| 57 | |
| 58 | as_executable_p="test -f" |
| 59 | |
| 60 | # Support unset when possible. |
| 61 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 62 | as_unset=unset |
| 63 | else |
| 64 | as_unset=false |
| 65 | fi |
| 66 | |
| 67 | # NLS nuisances. |
| 68 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 69 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 70 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 71 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 72 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 73 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 74 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 75 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| 76 | |
| 77 | # IFS |
| 78 | # We need space, tab and new line, in precisely that order. |
| 79 | as_nl=' |
| 80 | ' |
| 81 | IFS=" $as_nl" |
| 82 | |
| 83 | # CDPATH. |
| 84 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 85 | |
| 86 | # Name of the host. |
| 87 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 88 | # so uname gets run too. |
| 89 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 90 | |
| 91 | exec 6>&1 |
| 92 | |
| 93 | # |
| 94 | # Initializations. |
| 95 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 96 | ac_default_prefix=/usr/local |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 97 | cross_compiling=no |
| 98 | subdirs= |
| 99 | MFLAGS= MAKEFLAGS= |
| 100 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 101 | |
| 102 | # Maximum number of lines to put in a shell here document. |
| 103 | # This variable seems obsolete. It should probably be removed, and |
| 104 | # only ac_max_sed_lines should be used. |
| 105 | : ${ac_max_here_lines=38} |
| 106 | |
| 107 | ac_unique_file="server/atom.c" |
| 108 | # Factoring default headers for most tests. |
| 109 | ac_includes_default="\ |
| 110 | #include <stdio.h> |
| 111 | #if HAVE_SYS_TYPES_H |
| 112 | # include <sys/types.h> |
| 113 | #endif |
| 114 | #if HAVE_SYS_STAT_H |
| 115 | # include <sys/stat.h> |
| 116 | #endif |
| 117 | #if STDC_HEADERS |
| 118 | # include <stdlib.h> |
| 119 | # include <stddef.h> |
| 120 | #else |
| 121 | # if HAVE_STDLIB_H |
| 122 | # include <stdlib.h> |
| 123 | # endif |
| 124 | #endif |
| 125 | #if HAVE_STRING_H |
| 126 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 127 | # include <memory.h> |
| 128 | # endif |
| 129 | # include <string.h> |
| 130 | #endif |
| 131 | #if HAVE_STRINGS_H |
| 132 | # include <strings.h> |
| 133 | #endif |
| 134 | #if HAVE_INTTYPES_H |
| 135 | # include <inttypes.h> |
| 136 | #else |
| 137 | # if HAVE_STDINT_H |
| 138 | # include <stdint.h> |
| 139 | # endif |
| 140 | #endif |
| 141 | #if HAVE_UNISTD_H |
| 142 | # include <unistd.h> |
| 143 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 144 | |
| 145 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 146 | ac_init_help= |
| 147 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 148 | # The variables have the same names as the options, with |
| 149 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 150 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 151 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 152 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 153 | no_recursion= |
| 154 | prefix=NONE |
| 155 | program_prefix=NONE |
| 156 | program_suffix=NONE |
| 157 | program_transform_name=s,x,x, |
| 158 | silent= |
| 159 | site= |
| 160 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 161 | verbose= |
| 162 | x_includes=NONE |
| 163 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 164 | |
| 165 | # Installation directory options. |
| 166 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 167 | # and all the variables that are supposed to be based on exec_prefix |
| 168 | # by default will actually change. |
| 169 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 170 | bindir='${exec_prefix}/bin' |
| 171 | sbindir='${exec_prefix}/sbin' |
| 172 | libexecdir='${exec_prefix}/libexec' |
| 173 | datadir='${prefix}/share' |
| 174 | sysconfdir='${prefix}/etc' |
| 175 | sharedstatedir='${prefix}/com' |
| 176 | localstatedir='${prefix}/var' |
| 177 | libdir='${exec_prefix}/lib' |
| 178 | includedir='${prefix}/include' |
| 179 | oldincludedir='/usr/include' |
| 180 | infodir='${prefix}/info' |
| 181 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 182 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 183 | # Identity of this package. |
| 184 | PACKAGE_NAME='Wine' |
| 185 | PACKAGE_TARNAME='wine' |
| 186 | PACKAGE_VERSION='20020122' |
| 187 | PACKAGE_STRING='Wine 20020122' |
| 188 | PACKAGE_BUGREPORT='' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 189 | |
| 190 | ac_prev= |
| 191 | for ac_option |
| 192 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 193 | # If the previous option needs an argument, assign it. |
| 194 | if test -n "$ac_prev"; then |
| 195 | eval "$ac_prev=\$ac_option" |
| 196 | ac_prev= |
| 197 | continue |
| 198 | fi |
| 199 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 200 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 201 | |
| 202 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 203 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 204 | case $ac_option in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 205 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 206 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 207 | ac_prev=bindir ;; |
| 208 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 209 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 210 | |
| 211 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 212 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 213 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 214 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 215 | |
| 216 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 217 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 218 | ac_prev=cache_file ;; |
| 219 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 220 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 221 | cache_file=$ac_optarg ;; |
| 222 | |
| 223 | --config-cache | -C) |
| 224 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 225 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 226 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 227 | ac_prev=datadir ;; |
| 228 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 229 | | --da=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 230 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 231 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 232 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 233 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 234 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 235 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 236 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 237 | { (exit 1); exit 1; }; } |
| 238 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 239 | eval "enable_$ac_feature=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 240 | |
| 241 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 242 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 243 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 244 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 245 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 246 | { (exit 1); exit 1; }; } |
| 247 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 248 | case $ac_option in |
| 249 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 250 | *) ac_optarg=yes ;; |
| 251 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 252 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 253 | |
| 254 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 255 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 256 | | --exec | --exe | --ex) |
| 257 | ac_prev=exec_prefix ;; |
| 258 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 259 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 260 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 261 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 262 | |
| 263 | -gas | --gas | --ga | --g) |
| 264 | # Obsolete; use --with-gas. |
| 265 | with_gas=yes ;; |
| 266 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 267 | -help | --help | --hel | --he | -h) |
| 268 | ac_init_help=long ;; |
| 269 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 270 | ac_init_help=recursive ;; |
| 271 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 272 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 273 | |
| 274 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 275 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 276 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 277 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 278 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 279 | -includedir | --includedir | --includedi | --included | --include \ |
| 280 | | --includ | --inclu | --incl | --inc) |
| 281 | ac_prev=includedir ;; |
| 282 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 283 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 284 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 285 | |
| 286 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 287 | ac_prev=infodir ;; |
| 288 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 289 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 290 | |
| 291 | -libdir | --libdir | --libdi | --libd) |
| 292 | ac_prev=libdir ;; |
| 293 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 294 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 295 | |
| 296 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 297 | | --libexe | --libex | --libe) |
| 298 | ac_prev=libexecdir ;; |
| 299 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 300 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 301 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 302 | |
| 303 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 304 | | --localstate | --localstat | --localsta | --localst \ |
| 305 | | --locals | --local | --loca | --loc | --lo) |
| 306 | ac_prev=localstatedir ;; |
| 307 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 308 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 309 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 310 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 311 | |
| 312 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 313 | ac_prev=mandir ;; |
| 314 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 315 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 316 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 317 | -nfp | --nfp | --nf) |
| 318 | # Obsolete; use --without-fp. |
| 319 | with_fp=no ;; |
| 320 | |
| 321 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 322 | | --no-cr | --no-c) |
| 323 | no_create=yes ;; |
| 324 | |
| 325 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 326 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 327 | no_recursion=yes ;; |
| 328 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 329 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 330 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 331 | | --oldin | --oldi | --old | --ol | --o) |
| 332 | ac_prev=oldincludedir ;; |
| 333 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 334 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 335 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 336 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 337 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 338 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 339 | ac_prev=prefix ;; |
| 340 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 341 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 342 | |
| 343 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 344 | | --program-pre | --program-pr | --program-p) |
| 345 | ac_prev=program_prefix ;; |
| 346 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 347 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 348 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 349 | |
| 350 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 351 | | --program-suf | --program-su | --program-s) |
| 352 | ac_prev=program_suffix ;; |
| 353 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 354 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 355 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 356 | |
| 357 | -program-transform-name | --program-transform-name \ |
| 358 | | --program-transform-nam | --program-transform-na \ |
| 359 | | --program-transform-n | --program-transform- \ |
| 360 | | --program-transform | --program-transfor \ |
| 361 | | --program-transfo | --program-transf \ |
| 362 | | --program-trans | --program-tran \ |
| 363 | | --progr-tra | --program-tr | --program-t) |
| 364 | ac_prev=program_transform_name ;; |
| 365 | -program-transform-name=* | --program-transform-name=* \ |
| 366 | | --program-transform-nam=* | --program-transform-na=* \ |
| 367 | | --program-transform-n=* | --program-transform-=* \ |
| 368 | | --program-transform=* | --program-transfor=* \ |
| 369 | | --program-transfo=* | --program-transf=* \ |
| 370 | | --program-trans=* | --program-tran=* \ |
| 371 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 372 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 373 | |
| 374 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 375 | | -silent | --silent | --silen | --sile | --sil) |
| 376 | silent=yes ;; |
| 377 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 378 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 379 | ac_prev=sbindir ;; |
| 380 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 381 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 382 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 383 | |
| 384 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 385 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 386 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 387 | | --sha | --sh) |
| 388 | ac_prev=sharedstatedir ;; |
| 389 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 390 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 391 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 392 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 393 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 394 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 395 | -site | --site | --sit) |
| 396 | ac_prev=site ;; |
| 397 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 398 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 399 | |
| 400 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 401 | ac_prev=srcdir ;; |
| 402 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 403 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 404 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 405 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 406 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 407 | ac_prev=sysconfdir ;; |
| 408 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 409 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 410 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 411 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 412 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 413 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 414 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 415 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 416 | |
| 417 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 418 | verbose=yes ;; |
| 419 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 420 | -version | --version | --versio | --versi | --vers | -V) |
| 421 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 422 | |
| 423 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 424 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 425 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 426 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 427 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 428 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 429 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 430 | case $ac_option in |
| 431 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 432 | *) ac_optarg=yes ;; |
| 433 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 434 | eval "with_$ac_package='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 435 | |
| 436 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 437 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 438 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 439 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 440 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 441 | { (exit 1); exit 1; }; } |
| 442 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 443 | eval "with_$ac_package=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 444 | |
| 445 | --x) |
| 446 | # Obsolete; use --with-x. |
| 447 | with_x=yes ;; |
| 448 | |
| 449 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 450 | | --x-incl | --x-inc | --x-in | --x-i) |
| 451 | ac_prev=x_includes ;; |
| 452 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 453 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 454 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 455 | |
| 456 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 457 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 458 | ac_prev=x_libraries ;; |
| 459 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 460 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 461 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 462 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 463 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 464 | Try \`$0 --help' for more information." >&2 |
| 465 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 466 | ;; |
| 467 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 468 | *=*) |
| 469 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 470 | # Reject names that are not valid shell variable names. |
| 471 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 472 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 473 | { (exit 1); exit 1; }; } |
| 474 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 475 | eval "$ac_envvar='$ac_optarg'" |
| 476 | export $ac_envvar ;; |
| 477 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 478 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 479 | # FIXME: should be removed in autoconf 3.0. |
| 480 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 481 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 482 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 483 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 484 | ;; |
| 485 | |
| 486 | esac |
| 487 | done |
| 488 | |
| 489 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 490 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 491 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 492 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 493 | fi |
| 494 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 495 | # Be sure to have absolute paths. |
| 496 | for ac_var in exec_prefix prefix |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 497 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 498 | eval ac_val=$`echo $ac_var` |
| 499 | case $ac_val in |
| 500 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 501 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 502 | { (exit 1); exit 1; }; };; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 503 | esac |
| 504 | done |
| 505 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 506 | # Be sure to have absolute paths. |
| 507 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 508 | localstatedir libdir includedir oldincludedir infodir mandir |
| 509 | do |
| 510 | eval ac_val=$`echo $ac_var` |
| 511 | case $ac_val in |
| 512 | [\\/$]* | ?:[\\/]* ) ;; |
| 513 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 514 | { (exit 1); exit 1; }; };; |
| 515 | esac |
| 516 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 517 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 518 | # There might be people who depend on the old broken behavior: `$host' |
| 519 | # used to hold the argument of --host etc. |
| 520 | build=$build_alias |
| 521 | host=$host_alias |
| 522 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 523 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 524 | # FIXME: should be removed in autoconf 3.0. |
| 525 | if test "x$host_alias" != x; then |
| 526 | if test "x$build_alias" = x; then |
| 527 | cross_compiling=maybe |
| 528 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 529 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 530 | elif test "x$build_alias" != "x$host_alias"; then |
| 531 | cross_compiling=yes |
| 532 | fi |
| 533 | fi |
| 534 | |
| 535 | ac_tool_prefix= |
| 536 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 537 | |
| 538 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 539 | |
| 540 | # Find the source files, if location was not specified. |
| 541 | if test -z "$srcdir"; then |
| 542 | ac_srcdir_defaulted=yes |
| 543 | # Try the directory containing this script, then its parent. |
| 544 | ac_prog=$0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 545 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 546 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 547 | srcdir=$ac_confdir |
| 548 | if test ! -r $srcdir/$ac_unique_file; then |
| 549 | srcdir=.. |
| 550 | fi |
| 551 | else |
| 552 | ac_srcdir_defaulted=no |
| 553 | fi |
| 554 | if test ! -r $srcdir/$ac_unique_file; then |
| 555 | if test "$ac_srcdir_defaulted" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 556 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
| 557 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 558 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 559 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
| 560 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 561 | fi |
| 562 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 563 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 564 | ac_env_build_alias_set=${build_alias+set} |
| 565 | ac_env_build_alias_value=$build_alias |
| 566 | ac_cv_env_build_alias_set=${build_alias+set} |
| 567 | ac_cv_env_build_alias_value=$build_alias |
| 568 | ac_env_host_alias_set=${host_alias+set} |
| 569 | ac_env_host_alias_value=$host_alias |
| 570 | ac_cv_env_host_alias_set=${host_alias+set} |
| 571 | ac_cv_env_host_alias_value=$host_alias |
| 572 | ac_env_target_alias_set=${target_alias+set} |
| 573 | ac_env_target_alias_value=$target_alias |
| 574 | ac_cv_env_target_alias_set=${target_alias+set} |
| 575 | ac_cv_env_target_alias_value=$target_alias |
| 576 | ac_env_CC_set=${CC+set} |
| 577 | ac_env_CC_value=$CC |
| 578 | ac_cv_env_CC_set=${CC+set} |
| 579 | ac_cv_env_CC_value=$CC |
| 580 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 581 | ac_env_CFLAGS_value=$CFLAGS |
| 582 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 583 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 584 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 585 | ac_env_LDFLAGS_value=$LDFLAGS |
| 586 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 587 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 588 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 589 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 590 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 591 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 592 | ac_env_CPP_set=${CPP+set} |
| 593 | ac_env_CPP_value=$CPP |
| 594 | ac_cv_env_CPP_set=${CPP+set} |
| 595 | ac_cv_env_CPP_value=$CPP |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 596 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 597 | # |
| 598 | # Report the --help message. |
| 599 | # |
| 600 | if test "$ac_init_help" = "long"; then |
| 601 | # Omit some internal or obsolete options to make the list less imposing. |
| 602 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 603 | cat <<EOF |
| 604 | \`configure' configures Wine 20020122 to adapt to many kinds of systems. |
| 605 | |
| 606 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 607 | |
| 608 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 609 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 610 | |
| 611 | Defaults for the options are specified in brackets. |
| 612 | |
| 613 | Configuration: |
| 614 | -h, --help display this help and exit |
| 615 | --help=short display options specific to this package |
| 616 | --help=recursive display the short help of all the included packages |
| 617 | -V, --version display version information and exit |
| 618 | -q, --quiet, --silent do not print \`checking...' messages |
| 619 | --cache-file=FILE cache test results in FILE [disabled] |
| 620 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 621 | -n, --no-create do not create output files |
| 622 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 623 | |
| 624 | EOF |
| 625 | |
| 626 | cat <<EOF |
| 627 | Installation directories: |
| 628 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 629 | [$ac_default_prefix] |
| 630 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 631 | [PREFIX] |
| 632 | |
| 633 | By default, \`make install' will install all the files in |
| 634 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 635 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 636 | for instance \`--prefix=\$HOME'. |
| 637 | |
| 638 | For better control, use the options below. |
| 639 | |
| 640 | Fine tuning of the installation directories: |
| 641 | --bindir=DIR user executables [EPREFIX/bin] |
| 642 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 643 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 644 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 645 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 646 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 647 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 648 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 649 | --includedir=DIR C header files [PREFIX/include] |
| 650 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 651 | --infodir=DIR info documentation [PREFIX/info] |
| 652 | --mandir=DIR man documentation [PREFIX/man] |
| 653 | EOF |
| 654 | |
| 655 | cat <<\EOF |
| 656 | |
| 657 | X features: |
| 658 | --x-includes=DIR X include files are in DIR |
| 659 | --x-libraries=DIR X library files are in DIR |
| 660 | |
| 661 | System types: |
| 662 | --build=BUILD configure for building on BUILD [guessed] |
| 663 | --host=HOST build programs to run on HOST [BUILD] |
| 664 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 665 | EOF |
| 666 | fi |
| 667 | |
| 668 | if test -n "$ac_init_help"; then |
| 669 | case $ac_init_help in |
| 670 | short | recursive ) echo "Configuration of Wine 20020122:";; |
| 671 | esac |
| 672 | cat <<\EOF |
| 673 | |
| 674 | Optional Features: |
| 675 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 676 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 677 | --disable-debug compile out all debugging messages |
| 678 | --disable-trace compile out TRACE messages |
| 679 | --enable-opengl force usage of OpenGL even if the latter is |
| 680 | thread-safe via pthread |
| 681 | |
| 682 | Optional Packages: |
| 683 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 684 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 685 | --without-curses do not use curses |
| 686 | --without-reentrant-x compile for use with non-reentrant X libraries |
| 687 | --with-x use the X Window System |
| 688 | |
| 689 | Some influential environment variables: |
| 690 | CC C compiler command |
| 691 | CFLAGS C compiler flags |
| 692 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 693 | nonstandard directory <lib dir> |
| 694 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 695 | headers in a nonstandard directory <include dir> |
| 696 | CPP C preprocessor |
| 697 | |
| 698 | Use these variables to override the choices made by `configure' or to help |
| 699 | it to find libraries and programs with nonstandard names/locations. |
| 700 | |
| 701 | EOF |
| 702 | fi |
| 703 | |
| 704 | if test "$ac_init_help" = "recursive"; then |
| 705 | # If there are subdirs, report their specific --help. |
| 706 | ac_popdir=`pwd` |
| 707 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
| 708 | cd $ac_subdir |
| 709 | # A "../" for each directory in /$ac_subdir. |
| 710 | ac_dots=`echo $ac_subdir | |
| 711 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` |
| 712 | |
| 713 | case $srcdir in |
| 714 | .) # No --srcdir option. We are building in place. |
| 715 | ac_sub_srcdir=$srcdir ;; |
| 716 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 717 | ac_sub_srcdir=$srcdir/$ac_subdir ;; |
| 718 | *) # Relative path. |
| 719 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; |
| 720 | esac |
| 721 | |
| 722 | # Check for guested configure; otherwise get Cygnus style configure. |
| 723 | if test -f $ac_sub_srcdir/configure.gnu; then |
| 724 | echo |
| 725 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
| 726 | elif test -f $ac_sub_srcdir/configure; then |
| 727 | echo |
| 728 | $SHELL $ac_sub_srcdir/configure --help=recursive |
| 729 | elif test -f $ac_sub_srcdir/configure.ac || |
| 730 | test -f $ac_sub_srcdir/configure.in; then |
| 731 | echo |
| 732 | $ac_configure --help |
| 733 | else |
| 734 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
| 735 | fi |
| 736 | cd $ac_popdir |
| 737 | done |
| 738 | fi |
| 739 | |
| 740 | test -n "$ac_init_help" && exit 0 |
| 741 | if $ac_init_version; then |
| 742 | cat <<\EOF |
| 743 | Wine configure 20020122 |
| 744 | generated by GNU Autoconf 2.52 |
| 745 | |
| 746 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 747 | Free Software Foundation, Inc. |
| 748 | This configure script is free software; the Free Software Foundation |
| 749 | gives unlimited permission to copy, distribute and modify it. |
| 750 | EOF |
| 751 | exit 0 |
| 752 | fi |
| 753 | exec 5>config.log |
| 754 | cat >&5 <<EOF |
| 755 | This file contains any messages produced by compilers while |
| 756 | running configure, to aid debugging if configure makes a mistake. |
| 757 | |
| 758 | It was created by Wine $as_me 20020122, which was |
| 759 | generated by GNU Autoconf 2.52. Invocation command line was |
| 760 | |
| 761 | $ $0 $@ |
| 762 | |
| 763 | EOF |
| 764 | { |
| 765 | cat <<_ASUNAME |
| 766 | ## ---------- ## |
| 767 | ## Platform. ## |
| 768 | ## ---------- ## |
| 769 | |
| 770 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 771 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 772 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 773 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 774 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 775 | |
| 776 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 777 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 778 | |
| 779 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 780 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 781 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 782 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 783 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 784 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 785 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 786 | |
| 787 | PATH = $PATH |
| 788 | |
| 789 | _ASUNAME |
| 790 | } >&5 |
| 791 | |
| 792 | cat >&5 <<EOF |
| 793 | ## ------------ ## |
| 794 | ## Core tests. ## |
| 795 | ## ------------ ## |
| 796 | |
| 797 | EOF |
| 798 | |
| 799 | # Keep a trace of the command line. |
| 800 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 801 | # Also quote any args containing shell meta-characters. |
| 802 | ac_configure_args= |
| 803 | ac_sep= |
| 804 | for ac_arg |
| 805 | do |
| 806 | case $ac_arg in |
| 807 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 808 | | --no-cr | --no-c) ;; |
| 809 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 810 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 811 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 812 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
| 813 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 814 | ac_sep=" " ;; |
| 815 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" |
| 816 | ac_sep=" " ;; |
| 817 | esac |
| 818 | # Get rid of the leading space. |
| 819 | done |
| 820 | |
| 821 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 822 | # config.log. We remove comments because anyway the quotes in there |
| 823 | # would cause problems or look ugly. |
| 824 | trap 'exit_status=$? |
| 825 | # Save into config.log some information that might help in debugging. |
| 826 | echo >&5 |
| 827 | echo "## ----------------- ##" >&5 |
| 828 | echo "## Cache variables. ##" >&5 |
| 829 | echo "## ----------------- ##" >&5 |
| 830 | echo >&5 |
| 831 | # The following way of writing the cache mishandles newlines in values, |
| 832 | { |
| 833 | (set) 2>&1 | |
| 834 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 835 | *ac_space=\ *) |
| 836 | sed -n \ |
| 837 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 838 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 839 | ;; |
| 840 | *) |
| 841 | sed -n \ |
| 842 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 843 | ;; |
| 844 | esac; |
| 845 | } >&5 |
| 846 | sed "/^$/d" confdefs.h >conftest.log |
| 847 | if test -s conftest.log; then |
| 848 | echo >&5 |
| 849 | echo "## ------------ ##" >&5 |
| 850 | echo "## confdefs.h. ##" >&5 |
| 851 | echo "## ------------ ##" >&5 |
| 852 | echo >&5 |
| 853 | cat conftest.log >&5 |
| 854 | fi |
| 855 | (echo; echo) >&5 |
| 856 | test "$ac_signal" != 0 && |
| 857 | echo "$as_me: caught signal $ac_signal" >&5 |
| 858 | echo "$as_me: exit $exit_status" >&5 |
| 859 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
| 860 | exit $exit_status |
| 861 | ' 0 |
| 862 | for ac_signal in 1 2 13 15; do |
| 863 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 864 | done |
| 865 | ac_signal=0 |
| 866 | |
| 867 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 868 | rm -rf conftest* confdefs.h |
| 869 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 870 | echo >confdefs.h |
| 871 | |
| 872 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 873 | # Prefer explicitly selected file to automatically selected ones. |
| 874 | if test -z "$CONFIG_SITE"; then |
| 875 | if test "x$prefix" != xNONE; then |
| 876 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 877 | else |
| 878 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 879 | fi |
| 880 | fi |
| 881 | for ac_site_file in $CONFIG_SITE; do |
| 882 | if test -r "$ac_site_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 883 | { echo "$as_me:883: loading site script $ac_site_file" >&5 |
| 884 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 885 | cat "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 886 | . "$ac_site_file" |
| 887 | fi |
| 888 | done |
| 889 | |
| 890 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 891 | # Some versions of bash will fail to source /dev/null (special |
| 892 | # files actually), so we avoid doing that. |
| 893 | if test -f "$cache_file"; then |
| 894 | { echo "$as_me:894: loading cache $cache_file" >&5 |
| 895 | echo "$as_me: loading cache $cache_file" >&6;} |
| 896 | case $cache_file in |
| 897 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 898 | *) . ./$cache_file;; |
| 899 | esac |
| 900 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 901 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 902 | { echo "$as_me:902: creating cache $cache_file" >&5 |
| 903 | echo "$as_me: creating cache $cache_file" >&6;} |
| 904 | >$cache_file |
| 905 | fi |
| 906 | |
| 907 | # Check that the precious variables saved in the cache have kept the same |
| 908 | # value. |
| 909 | ac_cache_corrupted=false |
| 910 | for ac_var in `(set) 2>&1 | |
| 911 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 912 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 913 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 914 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 915 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 916 | case $ac_old_set,$ac_new_set in |
| 917 | set,) |
| 918 | { echo "$as_me:918: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 919 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 920 | ac_cache_corrupted=: ;; |
| 921 | ,set) |
| 922 | { echo "$as_me:922: error: \`$ac_var' was not set in the previous run" >&5 |
| 923 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 924 | ac_cache_corrupted=: ;; |
| 925 | ,);; |
| 926 | *) |
| 927 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 928 | { echo "$as_me:928: error: \`$ac_var' has changed since the previous run:" >&5 |
| 929 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 930 | { echo "$as_me:930: former value: $ac_old_val" >&5 |
| 931 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 932 | { echo "$as_me:932: current value: $ac_new_val" >&5 |
| 933 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 934 | ac_cache_corrupted=: |
| 935 | fi;; |
| 936 | esac |
| 937 | # Pass precious variables to config.status. It doesn't matter if |
| 938 | # we pass some twice (in addition to the command line arguments). |
| 939 | if test "$ac_new_set" = set; then |
| 940 | case $ac_new_val in |
| 941 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 942 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
| 943 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 944 | ;; |
| 945 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
| 946 | ;; |
| 947 | esac |
| 948 | fi |
| 949 | done |
| 950 | if $ac_cache_corrupted; then |
| 951 | { echo "$as_me:951: error: changes in the environment can compromise the build" >&5 |
| 952 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 953 | { { echo "$as_me:953: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 954 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 955 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 956 | fi |
| 957 | |
| 958 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 959 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 963 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 964 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 965 | *c*,-n*) ECHO_N= ECHO_C=' |
| 966 | ' ECHO_T=' ' ;; |
| 967 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 968 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 969 | esac |
| 970 | echo "#! $SHELL" >conftest.sh |
| 971 | echo "exit 0" >>conftest.sh |
| 972 | chmod +x conftest.sh |
| 973 | if { (echo "$as_me:973: PATH=\".;.\"; conftest.sh") >&5 |
| 974 | (PATH=".;."; conftest.sh) 2>&5 |
| 975 | ac_status=$? |
| 976 | echo "$as_me:976: \$? = $ac_status" >&5 |
| 977 | (exit $ac_status); }; then |
| 978 | ac_path_separator=';' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 979 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 980 | ac_path_separator=: |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 981 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 982 | PATH_SEPARATOR="$ac_path_separator" |
| 983 | rm -f conftest.sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 984 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 985 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 986 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 987 | ac_aux_dir= |
| 988 | for ac_dir in tools $srcdir/tools; do |
| 989 | if test -f $ac_dir/install-sh; then |
| 990 | ac_aux_dir=$ac_dir |
| 991 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 992 | break |
| 993 | elif test -f $ac_dir/install.sh; then |
| 994 | ac_aux_dir=$ac_dir |
| 995 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 996 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 997 | elif test -f $ac_dir/shtool; then |
| 998 | ac_aux_dir=$ac_dir |
| 999 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1000 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1001 | fi |
| 1002 | done |
| 1003 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1004 | { { echo "$as_me:1004: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5 |
| 1005 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1006 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1007 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1008 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1009 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1010 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1011 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 1012 | LIBEXT=so # library type .so or .a |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1013 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1014 | # Check whether --enable-debug or --disable-debug was given. |
| 1015 | if test "${enable_debug+set}" = set; then |
| 1016 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1017 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1018 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1019 | # Check whether --enable-trace or --disable-trace was given. |
| 1020 | if test "${enable_trace+set}" = set; then |
| 1021 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1022 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1023 | fi; |
| 1024 | # Check whether --enable-opengl or --disable-opengl was given. |
| 1025 | if test "${enable_opengl+set}" = set; then |
| 1026 | enableval="$enable_opengl" |
| 1027 | |
| 1028 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1029 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1030 | # Check whether --with-curses or --without-curses was given. |
| 1031 | if test "${with_curses+set}" = set; then |
| 1032 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1033 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1034 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1035 | |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 1036 | # Check whether --with-reentrant-x or --without-reentrant-x was given. |
| 1037 | if test "${with_reentrant_x+set}" = set; then |
| 1038 | withval="$with_reentrant_x" |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 1039 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1040 | fi; |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 1041 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1042 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1043 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1044 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1045 | cat >>confdefs.h <<\EOF |
| 1046 | #define NO_DEBUG_MSGS 1 |
| 1047 | EOF |
| 1048 | |
| 1049 | fi |
| 1050 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1051 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1052 | |
| 1053 | cat >>confdefs.h <<\EOF |
| 1054 | #define NO_TRACE_MSGS 1 |
| 1055 | EOF |
| 1056 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1057 | fi |
| 1058 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1059 | # Make sure we can run config.sub. |
| 1060 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1061 | { { echo "$as_me:1061: error: cannot run $ac_config_sub" >&5 |
| 1062 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1063 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1065 | echo "$as_me:1065: checking build system type" >&5 |
| 1066 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1067 | if test "${ac_cv_build+set}" = set; then |
| 1068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1069 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1070 | ac_cv_build_alias=$build_alias |
| 1071 | test -z "$ac_cv_build_alias" && |
| 1072 | ac_cv_build_alias=`$ac_config_guess` |
| 1073 | test -z "$ac_cv_build_alias" && |
| 1074 | { { echo "$as_me:1074: error: cannot guess build type; you must specify one" >&5 |
| 1075 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1076 | { (exit 1); exit 1; }; } |
| 1077 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1078 | { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
| 1079 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
| 1080 | { (exit 1); exit 1; }; } |
| 1081 | |
| 1082 | fi |
| 1083 | echo "$as_me:1083: result: $ac_cv_build" >&5 |
| 1084 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1085 | build=$ac_cv_build |
| 1086 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1087 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1088 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1089 | |
| 1090 | echo "$as_me:1090: checking host system type" >&5 |
| 1091 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1092 | if test "${ac_cv_host+set}" = set; then |
| 1093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1094 | else |
| 1095 | ac_cv_host_alias=$host_alias |
| 1096 | test -z "$ac_cv_host_alias" && |
| 1097 | ac_cv_host_alias=$ac_cv_build_alias |
| 1098 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1099 | { { echo "$as_me:1099: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1100 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1101 | { (exit 1); exit 1; }; } |
| 1102 | |
| 1103 | fi |
| 1104 | echo "$as_me:1104: result: $ac_cv_host" >&5 |
| 1105 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1106 | host=$ac_cv_host |
| 1107 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1108 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1109 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1110 | |
| 1111 | echo "$as_me:1111: checking target system type" >&5 |
| 1112 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1113 | if test "${ac_cv_target+set}" = set; then |
| 1114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1115 | else |
| 1116 | ac_cv_target_alias=$target_alias |
| 1117 | test "x$ac_cv_target_alias" = "x" && |
| 1118 | ac_cv_target_alias=$ac_cv_host_alias |
| 1119 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1120 | { { echo "$as_me:1120: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1121 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1122 | { (exit 1); exit 1; }; } |
| 1123 | |
| 1124 | fi |
| 1125 | echo "$as_me:1125: result: $ac_cv_target" >&5 |
| 1126 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1127 | target=$ac_cv_target |
| 1128 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1129 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1130 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1131 | |
| 1132 | # The aliases save the names the user supplied, while $host etc. |
| 1133 | # will get canonicalized. |
| 1134 | test -n "$target_alias" && |
| 1135 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1136 | NONENONEs,x,x, && |
| 1137 | program_prefix=${target_alias}- |
| 1138 | echo "$as_me:1138: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1139 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 1140 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1141 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1143 | else |
| 1144 | cat >conftest.make <<\EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1145 | all: |
| 1146 | @echo 'ac_maketemp="${MAKE}"' |
| 1147 | EOF |
| 1148 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1149 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1150 | if test -n "$ac_maketemp"; then |
| 1151 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1152 | else |
| 1153 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1154 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1155 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1156 | fi |
| 1157 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1158 | echo "$as_me:1158: result: yes" >&5 |
| 1159 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1160 | SET_MAKE= |
| 1161 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1162 | echo "$as_me:1162: result: no" >&5 |
| 1163 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1164 | SET_MAKE="MAKE=${MAKE-make}" |
| 1165 | fi |
| 1166 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1167 | ac_ext=c |
| 1168 | ac_cpp='$CPP $CPPFLAGS' |
| 1169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1172 | if test -n "$ac_tool_prefix"; then |
| 1173 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1174 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1175 | echo "$as_me:1175: checking for $ac_word" >&5 |
| 1176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1177 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1179 | else |
| 1180 | if test -n "$CC"; then |
| 1181 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1182 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1183 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1184 | ac_dummy="$PATH" |
| 1185 | for ac_dir in $ac_dummy; do |
| 1186 | IFS=$ac_save_IFS |
| 1187 | test -z "$ac_dir" && ac_dir=. |
| 1188 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1189 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1190 | echo "$as_me:1190: found $ac_dir/$ac_word" >&5 |
| 1191 | break |
| 1192 | done |
| 1193 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1194 | fi |
| 1195 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1196 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1197 | if test -n "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1198 | echo "$as_me:1198: result: $CC" >&5 |
| 1199 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1200 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1201 | echo "$as_me:1201: result: no" >&5 |
| 1202 | echo "${ECHO_T}no" >&6 |
| 1203 | fi |
| 1204 | |
| 1205 | fi |
| 1206 | if test -z "$ac_cv_prog_CC"; then |
| 1207 | ac_ct_CC=$CC |
| 1208 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1209 | set dummy gcc; ac_word=$2 |
| 1210 | echo "$as_me:1210: checking for $ac_word" >&5 |
| 1211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1212 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1214 | else |
| 1215 | if test -n "$ac_ct_CC"; then |
| 1216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1217 | else |
| 1218 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1219 | ac_dummy="$PATH" |
| 1220 | for ac_dir in $ac_dummy; do |
| 1221 | IFS=$ac_save_IFS |
| 1222 | test -z "$ac_dir" && ac_dir=. |
| 1223 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1224 | ac_cv_prog_ac_ct_CC="gcc" |
| 1225 | echo "$as_me:1225: found $ac_dir/$ac_word" >&5 |
| 1226 | break |
| 1227 | done |
| 1228 | |
| 1229 | fi |
| 1230 | fi |
| 1231 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1232 | if test -n "$ac_ct_CC"; then |
| 1233 | echo "$as_me:1233: result: $ac_ct_CC" >&5 |
| 1234 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1235 | else |
| 1236 | echo "$as_me:1236: result: no" >&5 |
| 1237 | echo "${ECHO_T}no" >&6 |
| 1238 | fi |
| 1239 | |
| 1240 | CC=$ac_ct_CC |
| 1241 | else |
| 1242 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1243 | fi |
| 1244 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1245 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1246 | if test -n "$ac_tool_prefix"; then |
| 1247 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1248 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1249 | echo "$as_me:1249: checking for $ac_word" >&5 |
| 1250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1251 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1253 | else |
| 1254 | if test -n "$CC"; then |
| 1255 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1256 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1257 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1258 | ac_dummy="$PATH" |
| 1259 | for ac_dir in $ac_dummy; do |
| 1260 | IFS=$ac_save_IFS |
| 1261 | test -z "$ac_dir" && ac_dir=. |
| 1262 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1263 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1264 | echo "$as_me:1264: found $ac_dir/$ac_word" >&5 |
| 1265 | break |
| 1266 | done |
| 1267 | |
| 1268 | fi |
| 1269 | fi |
| 1270 | CC=$ac_cv_prog_CC |
| 1271 | if test -n "$CC"; then |
| 1272 | echo "$as_me:1272: result: $CC" >&5 |
| 1273 | echo "${ECHO_T}$CC" >&6 |
| 1274 | else |
| 1275 | echo "$as_me:1275: result: no" >&5 |
| 1276 | echo "${ECHO_T}no" >&6 |
| 1277 | fi |
| 1278 | |
| 1279 | fi |
| 1280 | if test -z "$ac_cv_prog_CC"; then |
| 1281 | ac_ct_CC=$CC |
| 1282 | # Extract the first word of "cc", so it can be a program name with args. |
| 1283 | set dummy cc; ac_word=$2 |
| 1284 | echo "$as_me:1284: checking for $ac_word" >&5 |
| 1285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1286 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1288 | else |
| 1289 | if test -n "$ac_ct_CC"; then |
| 1290 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1291 | else |
| 1292 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1293 | ac_dummy="$PATH" |
| 1294 | for ac_dir in $ac_dummy; do |
| 1295 | IFS=$ac_save_IFS |
| 1296 | test -z "$ac_dir" && ac_dir=. |
| 1297 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1298 | ac_cv_prog_ac_ct_CC="cc" |
| 1299 | echo "$as_me:1299: found $ac_dir/$ac_word" >&5 |
| 1300 | break |
| 1301 | done |
| 1302 | |
| 1303 | fi |
| 1304 | fi |
| 1305 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1306 | if test -n "$ac_ct_CC"; then |
| 1307 | echo "$as_me:1307: result: $ac_ct_CC" >&5 |
| 1308 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1309 | else |
| 1310 | echo "$as_me:1310: result: no" >&5 |
| 1311 | echo "${ECHO_T}no" >&6 |
| 1312 | fi |
| 1313 | |
| 1314 | CC=$ac_ct_CC |
| 1315 | else |
| 1316 | CC="$ac_cv_prog_CC" |
| 1317 | fi |
| 1318 | |
| 1319 | fi |
| 1320 | if test -z "$CC"; then |
| 1321 | # Extract the first word of "cc", so it can be a program name with args. |
| 1322 | set dummy cc; ac_word=$2 |
| 1323 | echo "$as_me:1323: checking for $ac_word" >&5 |
| 1324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1325 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1327 | else |
| 1328 | if test -n "$CC"; then |
| 1329 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1330 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1331 | ac_prog_rejected=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1332 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1333 | ac_dummy="$PATH" |
| 1334 | for ac_dir in $ac_dummy; do |
| 1335 | IFS=$ac_save_IFS |
| 1336 | test -z "$ac_dir" && ac_dir=. |
| 1337 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1338 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1339 | ac_prog_rejected=yes |
| 1340 | continue |
| 1341 | fi |
| 1342 | ac_cv_prog_CC="cc" |
| 1343 | echo "$as_me:1343: found $ac_dir/$ac_word" >&5 |
| 1344 | break |
| 1345 | done |
| 1346 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1347 | if test $ac_prog_rejected = yes; then |
| 1348 | # We found a bogon in the path, so make sure we never use it. |
| 1349 | set dummy $ac_cv_prog_CC |
| 1350 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1351 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1352 | # We chose a different compiler from the bogus one. |
| 1353 | # However, it has the same basename, so the bogon will be chosen |
| 1354 | # first if we set CC to just the basename; use the full file name. |
| 1355 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1356 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1357 | shift |
| 1358 | ac_cv_prog_CC="$@" |
| 1359 | fi |
| 1360 | fi |
| 1361 | fi |
| 1362 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1363 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1364 | if test -n "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1365 | echo "$as_me:1365: result: $CC" >&5 |
| 1366 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1367 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1368 | echo "$as_me:1368: result: no" >&5 |
| 1369 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1370 | fi |
| 1371 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1372 | fi |
| 1373 | if test -z "$CC"; then |
| 1374 | if test -n "$ac_tool_prefix"; then |
| 1375 | for ac_prog in cl |
| 1376 | do |
| 1377 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1378 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1379 | echo "$as_me:1379: checking for $ac_word" >&5 |
| 1380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1381 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1383 | else |
| 1384 | if test -n "$CC"; then |
| 1385 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1386 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1387 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1388 | ac_dummy="$PATH" |
| 1389 | for ac_dir in $ac_dummy; do |
| 1390 | IFS=$ac_save_IFS |
| 1391 | test -z "$ac_dir" && ac_dir=. |
| 1392 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1393 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1394 | echo "$as_me:1394: found $ac_dir/$ac_word" >&5 |
| 1395 | break |
| 1396 | done |
| 1397 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1398 | fi |
| 1399 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1400 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1401 | if test -n "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1402 | echo "$as_me:1402: result: $CC" >&5 |
| 1403 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1404 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1405 | echo "$as_me:1405: result: no" >&5 |
| 1406 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1407 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1408 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1409 | test -n "$CC" && break |
| 1410 | done |
| 1411 | fi |
| 1412 | if test -z "$CC"; then |
| 1413 | ac_ct_CC=$CC |
| 1414 | for ac_prog in cl |
| 1415 | do |
| 1416 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1417 | set dummy $ac_prog; ac_word=$2 |
| 1418 | echo "$as_me:1418: checking for $ac_word" >&5 |
| 1419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1420 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1422 | else |
| 1423 | if test -n "$ac_ct_CC"; then |
| 1424 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1425 | else |
| 1426 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1427 | ac_dummy="$PATH" |
| 1428 | for ac_dir in $ac_dummy; do |
| 1429 | IFS=$ac_save_IFS |
| 1430 | test -z "$ac_dir" && ac_dir=. |
| 1431 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1432 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1433 | echo "$as_me:1433: found $ac_dir/$ac_word" >&5 |
| 1434 | break |
| 1435 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1436 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1437 | fi |
| 1438 | fi |
| 1439 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1440 | if test -n "$ac_ct_CC"; then |
| 1441 | echo "$as_me:1441: result: $ac_ct_CC" >&5 |
| 1442 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1443 | else |
| 1444 | echo "$as_me:1444: result: no" >&5 |
| 1445 | echo "${ECHO_T}no" >&6 |
| 1446 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1447 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1448 | test -n "$ac_ct_CC" && break |
| 1449 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1450 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1451 | CC=$ac_ct_CC |
| 1452 | fi |
| 1453 | |
| 1454 | fi |
| 1455 | |
| 1456 | test -z "$CC" && { { echo "$as_me:1456: error: no acceptable cc found in \$PATH" >&5 |
| 1457 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 1458 | { (exit 1); exit 1; }; } |
| 1459 | |
| 1460 | # Provide some information about the compiler. |
| 1461 | echo "$as_me:1461:" \ |
| 1462 | "checking for C compiler version" >&5 |
| 1463 | ac_compiler=`set X $ac_compile; echo $2` |
| 1464 | { (eval echo "$as_me:1464: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1465 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1466 | ac_status=$? |
| 1467 | echo "$as_me:1467: \$? = $ac_status" >&5 |
| 1468 | (exit $ac_status); } |
| 1469 | { (eval echo "$as_me:1469: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1470 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1471 | ac_status=$? |
| 1472 | echo "$as_me:1472: \$? = $ac_status" >&5 |
| 1473 | (exit $ac_status); } |
| 1474 | { (eval echo "$as_me:1474: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1475 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1476 | ac_status=$? |
| 1477 | echo "$as_me:1477: \$? = $ac_status" >&5 |
| 1478 | (exit $ac_status); } |
| 1479 | |
| 1480 | cat >conftest.$ac_ext <<_ACEOF |
| 1481 | #line 1481 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1482 | #include "confdefs.h" |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1483 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1484 | int |
| 1485 | main () |
| 1486 | { |
| 1487 | |
| 1488 | ; |
| 1489 | return 0; |
| 1490 | } |
| 1491 | _ACEOF |
| 1492 | ac_clean_files_save=$ac_clean_files |
| 1493 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1494 | # Try to create an executable without -o first, disregard a.out. |
| 1495 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1496 | # of exeext. |
| 1497 | echo "$as_me:1497: checking for C compiler default output" >&5 |
| 1498 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1499 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1500 | if { (eval echo "$as_me:1500: \"$ac_link_default\"") >&5 |
| 1501 | (eval $ac_link_default) 2>&5 |
| 1502 | ac_status=$? |
| 1503 | echo "$as_me:1503: \$? = $ac_status" >&5 |
| 1504 | (exit $ac_status); }; then |
| 1505 | # Find the output, starting from the most likely. This scheme is |
| 1506 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1507 | # resort. |
| 1508 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
| 1509 | ls a.out conftest 2>/dev/null; |
| 1510 | ls a.* conftest.* 2>/dev/null`; do |
| 1511 | case $ac_file in |
| 1512 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1513 | a.out ) # We found the default executable, but exeext='' is most |
| 1514 | # certainly right. |
| 1515 | break;; |
| 1516 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1517 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1518 | export ac_cv_exeext |
| 1519 | break;; |
| 1520 | * ) break;; |
| 1521 | esac |
| 1522 | done |
| 1523 | else |
| 1524 | echo "$as_me: failed program was:" >&5 |
| 1525 | cat conftest.$ac_ext >&5 |
| 1526 | { { echo "$as_me:1526: error: C compiler cannot create executables" >&5 |
| 1527 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 1528 | { (exit 77); exit 77; }; } |
| 1529 | fi |
| 1530 | |
| 1531 | ac_exeext=$ac_cv_exeext |
| 1532 | echo "$as_me:1532: result: $ac_file" >&5 |
| 1533 | echo "${ECHO_T}$ac_file" >&6 |
| 1534 | |
| 1535 | # Check the compiler produces executables we can run. If not, either |
| 1536 | # the compiler is broken, or we cross compile. |
| 1537 | echo "$as_me:1537: checking whether the C compiler works" >&5 |
| 1538 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1539 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1540 | # If not cross compiling, check that we can run a simple program. |
| 1541 | if test "$cross_compiling" != yes; then |
| 1542 | if { ac_try='./$ac_file' |
| 1543 | { (eval echo "$as_me:1543: \"$ac_try\"") >&5 |
| 1544 | (eval $ac_try) 2>&5 |
| 1545 | ac_status=$? |
| 1546 | echo "$as_me:1546: \$? = $ac_status" >&5 |
| 1547 | (exit $ac_status); }; }; then |
| 1548 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1549 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1550 | if test "$cross_compiling" = maybe; then |
| 1551 | cross_compiling=yes |
| 1552 | else |
| 1553 | { { echo "$as_me:1553: error: cannot run C compiled programs. |
| 1554 | If you meant to cross compile, use \`--host'." >&5 |
| 1555 | echo "$as_me: error: cannot run C compiled programs. |
| 1556 | If you meant to cross compile, use \`--host'." >&2;} |
| 1557 | { (exit 1); exit 1; }; } |
| 1558 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1559 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1560 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1561 | echo "$as_me:1561: result: yes" >&5 |
| 1562 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1563 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1564 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1565 | ac_clean_files=$ac_clean_files_save |
| 1566 | # Check the compiler produces executables we can run. If not, either |
| 1567 | # the compiler is broken, or we cross compile. |
| 1568 | echo "$as_me:1568: checking whether we are cross compiling" >&5 |
| 1569 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1570 | echo "$as_me:1570: result: $cross_compiling" >&5 |
| 1571 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1572 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1573 | echo "$as_me:1573: checking for executable suffix" >&5 |
| 1574 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
| 1575 | if { (eval echo "$as_me:1575: \"$ac_link\"") >&5 |
| 1576 | (eval $ac_link) 2>&5 |
| 1577 | ac_status=$? |
| 1578 | echo "$as_me:1578: \$? = $ac_status" >&5 |
| 1579 | (exit $ac_status); }; then |
| 1580 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1581 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1582 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1583 | # `rm'. |
| 1584 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1585 | case $ac_file in |
| 1586 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1587 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1588 | export ac_cv_exeext |
| 1589 | break;; |
| 1590 | * ) break;; |
| 1591 | esac |
| 1592 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1593 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1594 | { { echo "$as_me:1594: error: cannot compute EXEEXT: cannot compile and link" >&5 |
| 1595 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
| 1596 | { (exit 1); exit 1; }; } |
| 1597 | fi |
| 1598 | |
| 1599 | rm -f conftest$ac_cv_exeext |
| 1600 | echo "$as_me:1600: result: $ac_cv_exeext" >&5 |
| 1601 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1602 | |
| 1603 | rm -f conftest.$ac_ext |
| 1604 | EXEEXT=$ac_cv_exeext |
| 1605 | ac_exeext=$EXEEXT |
| 1606 | echo "$as_me:1606: checking for object suffix" >&5 |
| 1607 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
| 1608 | if test "${ac_cv_objext+set}" = set; then |
| 1609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1610 | else |
| 1611 | cat >conftest.$ac_ext <<_ACEOF |
| 1612 | #line 1612 "configure" |
| 1613 | #include "confdefs.h" |
| 1614 | |
| 1615 | int |
| 1616 | main () |
| 1617 | { |
| 1618 | |
| 1619 | ; |
| 1620 | return 0; |
| 1621 | } |
| 1622 | _ACEOF |
| 1623 | rm -f conftest.o conftest.obj |
| 1624 | if { (eval echo "$as_me:1624: \"$ac_compile\"") >&5 |
| 1625 | (eval $ac_compile) 2>&5 |
| 1626 | ac_status=$? |
| 1627 | echo "$as_me:1627: \$? = $ac_status" >&5 |
| 1628 | (exit $ac_status); }; then |
| 1629 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1630 | case $ac_file in |
| 1631 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1632 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1633 | break;; |
| 1634 | esac |
| 1635 | done |
| 1636 | else |
| 1637 | echo "$as_me: failed program was:" >&5 |
| 1638 | cat conftest.$ac_ext >&5 |
| 1639 | { { echo "$as_me:1639: error: cannot compute OBJEXT: cannot compile" >&5 |
| 1640 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
| 1641 | { (exit 1); exit 1; }; } |
| 1642 | fi |
| 1643 | |
| 1644 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1645 | fi |
| 1646 | echo "$as_me:1646: result: $ac_cv_objext" >&5 |
| 1647 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1648 | OBJEXT=$ac_cv_objext |
| 1649 | ac_objext=$OBJEXT |
| 1650 | echo "$as_me:1650: checking whether we are using the GNU C compiler" >&5 |
| 1651 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1652 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1654 | else |
| 1655 | cat >conftest.$ac_ext <<_ACEOF |
| 1656 | #line 1656 "configure" |
| 1657 | #include "confdefs.h" |
| 1658 | |
| 1659 | int |
| 1660 | main () |
| 1661 | { |
| 1662 | #ifndef __GNUC__ |
| 1663 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1664 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1665 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1666 | ; |
| 1667 | return 0; |
| 1668 | } |
| 1669 | _ACEOF |
| 1670 | rm -f conftest.$ac_objext |
| 1671 | if { (eval echo "$as_me:1671: \"$ac_compile\"") >&5 |
| 1672 | (eval $ac_compile) 2>&5 |
| 1673 | ac_status=$? |
| 1674 | echo "$as_me:1674: \$? = $ac_status" >&5 |
| 1675 | (exit $ac_status); } && |
| 1676 | { ac_try='test -s conftest.$ac_objext' |
| 1677 | { (eval echo "$as_me:1677: \"$ac_try\"") >&5 |
| 1678 | (eval $ac_try) 2>&5 |
| 1679 | ac_status=$? |
| 1680 | echo "$as_me:1680: \$? = $ac_status" >&5 |
| 1681 | (exit $ac_status); }; }; then |
| 1682 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1683 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1684 | echo "$as_me: failed program was:" >&5 |
| 1685 | cat conftest.$ac_ext >&5 |
| 1686 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1687 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1688 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1689 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1690 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1691 | fi |
| 1692 | echo "$as_me:1692: result: $ac_cv_c_compiler_gnu" >&5 |
| 1693 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1694 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1695 | ac_test_CFLAGS=${CFLAGS+set} |
| 1696 | ac_save_CFLAGS=$CFLAGS |
| 1697 | CFLAGS="-g" |
| 1698 | echo "$as_me:1698: checking whether $CC accepts -g" >&5 |
| 1699 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1700 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1702 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1703 | cat >conftest.$ac_ext <<_ACEOF |
| 1704 | #line 1704 "configure" |
| 1705 | #include "confdefs.h" |
| 1706 | |
| 1707 | int |
| 1708 | main () |
| 1709 | { |
| 1710 | |
| 1711 | ; |
| 1712 | return 0; |
| 1713 | } |
| 1714 | _ACEOF |
| 1715 | rm -f conftest.$ac_objext |
| 1716 | if { (eval echo "$as_me:1716: \"$ac_compile\"") >&5 |
| 1717 | (eval $ac_compile) 2>&5 |
| 1718 | ac_status=$? |
| 1719 | echo "$as_me:1719: \$? = $ac_status" >&5 |
| 1720 | (exit $ac_status); } && |
| 1721 | { ac_try='test -s conftest.$ac_objext' |
| 1722 | { (eval echo "$as_me:1722: \"$ac_try\"") >&5 |
| 1723 | (eval $ac_try) 2>&5 |
| 1724 | ac_status=$? |
| 1725 | echo "$as_me:1725: \$? = $ac_status" >&5 |
| 1726 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1727 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1728 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1729 | echo "$as_me: failed program was:" >&5 |
| 1730 | cat conftest.$ac_ext >&5 |
| 1731 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1732 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1733 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1734 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1735 | echo "$as_me:1735: result: $ac_cv_prog_cc_g" >&5 |
| 1736 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1737 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1738 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1739 | elif test $ac_cv_prog_cc_g = yes; then |
| 1740 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1741 | CFLAGS="-g -O2" |
| 1742 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1743 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1744 | fi |
| 1745 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1746 | if test "$GCC" = yes; then |
| 1747 | CFLAGS="-O2" |
| 1748 | else |
| 1749 | CFLAGS= |
| 1750 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1751 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1752 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 1753 | # in C++ we need to declare it. In case someone uses the same compiler |
| 1754 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 1755 | # the declaration of exit, since it's the most demanding environment. |
| 1756 | cat >conftest.$ac_ext <<_ACEOF |
| 1757 | #ifndef __cplusplus |
| 1758 | choke me |
| 1759 | #endif |
| 1760 | _ACEOF |
| 1761 | rm -f conftest.$ac_objext |
| 1762 | if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5 |
| 1763 | (eval $ac_compile) 2>&5 |
| 1764 | ac_status=$? |
| 1765 | echo "$as_me:1765: \$? = $ac_status" >&5 |
| 1766 | (exit $ac_status); } && |
| 1767 | { ac_try='test -s conftest.$ac_objext' |
| 1768 | { (eval echo "$as_me:1768: \"$ac_try\"") >&5 |
| 1769 | (eval $ac_try) 2>&5 |
| 1770 | ac_status=$? |
| 1771 | echo "$as_me:1771: \$? = $ac_status" >&5 |
| 1772 | (exit $ac_status); }; }; then |
| 1773 | for ac_declaration in \ |
| 1774 | ''\ |
| 1775 | '#include <stdlib.h>' \ |
| 1776 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 1777 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 1778 | 'extern "C" void exit (int) throw ();' \ |
| 1779 | 'extern "C" void exit (int);' \ |
| 1780 | 'void exit (int);' |
| 1781 | do |
| 1782 | cat >conftest.$ac_ext <<_ACEOF |
| 1783 | #line 1783 "configure" |
| 1784 | #include "confdefs.h" |
| 1785 | #include <stdlib.h> |
| 1786 | $ac_declaration |
| 1787 | int |
| 1788 | main () |
| 1789 | { |
| 1790 | exit (42); |
| 1791 | ; |
| 1792 | return 0; |
| 1793 | } |
| 1794 | _ACEOF |
| 1795 | rm -f conftest.$ac_objext |
| 1796 | if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5 |
| 1797 | (eval $ac_compile) 2>&5 |
| 1798 | ac_status=$? |
| 1799 | echo "$as_me:1799: \$? = $ac_status" >&5 |
| 1800 | (exit $ac_status); } && |
| 1801 | { ac_try='test -s conftest.$ac_objext' |
| 1802 | { (eval echo "$as_me:1802: \"$ac_try\"") >&5 |
| 1803 | (eval $ac_try) 2>&5 |
| 1804 | ac_status=$? |
| 1805 | echo "$as_me:1805: \$? = $ac_status" >&5 |
| 1806 | (exit $ac_status); }; }; then |
| 1807 | : |
| 1808 | else |
| 1809 | echo "$as_me: failed program was:" >&5 |
| 1810 | cat conftest.$ac_ext >&5 |
| 1811 | continue |
| 1812 | fi |
| 1813 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1814 | cat >conftest.$ac_ext <<_ACEOF |
| 1815 | #line 1815 "configure" |
| 1816 | #include "confdefs.h" |
| 1817 | $ac_declaration |
| 1818 | int |
| 1819 | main () |
| 1820 | { |
| 1821 | exit (42); |
| 1822 | ; |
| 1823 | return 0; |
| 1824 | } |
| 1825 | _ACEOF |
| 1826 | rm -f conftest.$ac_objext |
| 1827 | if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5 |
| 1828 | (eval $ac_compile) 2>&5 |
| 1829 | ac_status=$? |
| 1830 | echo "$as_me:1830: \$? = $ac_status" >&5 |
| 1831 | (exit $ac_status); } && |
| 1832 | { ac_try='test -s conftest.$ac_objext' |
| 1833 | { (eval echo "$as_me:1833: \"$ac_try\"") >&5 |
| 1834 | (eval $ac_try) 2>&5 |
| 1835 | ac_status=$? |
| 1836 | echo "$as_me:1836: \$? = $ac_status" >&5 |
| 1837 | (exit $ac_status); }; }; then |
| 1838 | break |
| 1839 | else |
| 1840 | echo "$as_me: failed program was:" >&5 |
| 1841 | cat conftest.$ac_ext >&5 |
| 1842 | fi |
| 1843 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1844 | done |
| 1845 | rm -f conftest* |
| 1846 | if test -n "$ac_declaration"; then |
| 1847 | echo '#ifdef __cplusplus' >>confdefs.h |
| 1848 | echo $ac_declaration >>confdefs.h |
| 1849 | echo '#endif' >>confdefs.h |
| 1850 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1851 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1852 | else |
| 1853 | echo "$as_me: failed program was:" >&5 |
| 1854 | cat conftest.$ac_ext >&5 |
| 1855 | fi |
| 1856 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1857 | ac_ext=c |
| 1858 | ac_cpp='$CPP $CPPFLAGS' |
| 1859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1862 | |
| 1863 | ac_ext=c |
| 1864 | ac_cpp='$CPP $CPPFLAGS' |
| 1865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1868 | echo "$as_me:1868: checking how to run the C preprocessor" >&5 |
| 1869 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1870 | # On Suns, sometimes $CPP names a directory. |
| 1871 | if test -n "$CPP" && test -d "$CPP"; then |
| 1872 | CPP= |
| 1873 | fi |
| 1874 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1875 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1877 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1878 | # Double quotes because CPP needs to be expanded |
| 1879 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 1880 | do |
| 1881 | ac_preproc_ok=false |
| 1882 | for ac_c_preproc_warn_flag in '' yes |
| 1883 | do |
| 1884 | # Use a header file that comes with gcc, so configuring glibc |
| 1885 | # with a fresh cross-compiler works. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1886 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1887 | # not just through cpp. "Syntax error" is here to catch this case. |
| 1888 | cat >conftest.$ac_ext <<_ACEOF |
| 1889 | #line 1889 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1890 | #include "confdefs.h" |
| 1891 | #include <assert.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1892 | Syntax error |
| 1893 | _ACEOF |
| 1894 | if { (eval echo "$as_me:1894: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 1895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 1896 | ac_status=$? |
| 1897 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 1898 | rm -f conftest.er1 |
| 1899 | cat conftest.err >&5 |
| 1900 | echo "$as_me:1900: \$? = $ac_status" >&5 |
| 1901 | (exit $ac_status); } >/dev/null; then |
| 1902 | if test -s conftest.err; then |
| 1903 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 1904 | else |
| 1905 | ac_cpp_err= |
| 1906 | fi |
| 1907 | else |
| 1908 | ac_cpp_err=yes |
| 1909 | fi |
| 1910 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1911 | : |
| 1912 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1913 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1914 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1915 | # Broken: fails on valid input. |
| 1916 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1917 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1918 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1919 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 1920 | # OK, works on sane cases. Now check whether non-existent headers |
| 1921 | # can be detected and how. |
| 1922 | cat >conftest.$ac_ext <<_ACEOF |
| 1923 | #line 1923 "configure" |
| 1924 | #include "confdefs.h" |
| 1925 | #include <ac_nonexistent.h> |
| 1926 | _ACEOF |
| 1927 | if { (eval echo "$as_me:1927: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 1928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 1929 | ac_status=$? |
| 1930 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 1931 | rm -f conftest.er1 |
| 1932 | cat conftest.err >&5 |
| 1933 | echo "$as_me:1933: \$? = $ac_status" >&5 |
| 1934 | (exit $ac_status); } >/dev/null; then |
| 1935 | if test -s conftest.err; then |
| 1936 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 1937 | else |
| 1938 | ac_cpp_err= |
| 1939 | fi |
| 1940 | else |
| 1941 | ac_cpp_err=yes |
| 1942 | fi |
| 1943 | if test -z "$ac_cpp_err"; then |
| 1944 | # Broken: success on invalid input. |
| 1945 | continue |
| 1946 | else |
| 1947 | echo "$as_me: failed program was:" >&5 |
| 1948 | cat conftest.$ac_ext >&5 |
| 1949 | # Passes both tests. |
| 1950 | ac_preproc_ok=: |
| 1951 | break |
| 1952 | fi |
| 1953 | rm -f conftest.err conftest.$ac_ext |
| 1954 | |
| 1955 | done |
| 1956 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 1957 | rm -f conftest.err conftest.$ac_ext |
| 1958 | if $ac_preproc_ok; then |
| 1959 | break |
| 1960 | fi |
| 1961 | |
| 1962 | done |
| 1963 | ac_cv_prog_CPP=$CPP |
| 1964 | |
| 1965 | fi |
| 1966 | CPP=$ac_cv_prog_CPP |
| 1967 | else |
| 1968 | ac_cv_prog_CPP=$CPP |
| 1969 | fi |
| 1970 | echo "$as_me:1970: result: $CPP" >&5 |
| 1971 | echo "${ECHO_T}$CPP" >&6 |
| 1972 | ac_preproc_ok=false |
| 1973 | for ac_c_preproc_warn_flag in '' yes |
| 1974 | do |
| 1975 | # Use a header file that comes with gcc, so configuring glibc |
| 1976 | # with a fresh cross-compiler works. |
| 1977 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1978 | # not just through cpp. "Syntax error" is here to catch this case. |
| 1979 | cat >conftest.$ac_ext <<_ACEOF |
| 1980 | #line 1980 "configure" |
| 1981 | #include "confdefs.h" |
| 1982 | #include <assert.h> |
| 1983 | Syntax error |
| 1984 | _ACEOF |
| 1985 | if { (eval echo "$as_me:1985: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 1986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 1987 | ac_status=$? |
| 1988 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 1989 | rm -f conftest.er1 |
| 1990 | cat conftest.err >&5 |
| 1991 | echo "$as_me:1991: \$? = $ac_status" >&5 |
| 1992 | (exit $ac_status); } >/dev/null; then |
| 1993 | if test -s conftest.err; then |
| 1994 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 1995 | else |
| 1996 | ac_cpp_err= |
| 1997 | fi |
| 1998 | else |
| 1999 | ac_cpp_err=yes |
| 2000 | fi |
| 2001 | if test -z "$ac_cpp_err"; then |
| 2002 | : |
| 2003 | else |
| 2004 | echo "$as_me: failed program was:" >&5 |
| 2005 | cat conftest.$ac_ext >&5 |
| 2006 | # Broken: fails on valid input. |
| 2007 | continue |
| 2008 | fi |
| 2009 | rm -f conftest.err conftest.$ac_ext |
| 2010 | |
| 2011 | # OK, works on sane cases. Now check whether non-existent headers |
| 2012 | # can be detected and how. |
| 2013 | cat >conftest.$ac_ext <<_ACEOF |
| 2014 | #line 2014 "configure" |
| 2015 | #include "confdefs.h" |
| 2016 | #include <ac_nonexistent.h> |
| 2017 | _ACEOF |
| 2018 | if { (eval echo "$as_me:2018: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2020 | ac_status=$? |
| 2021 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2022 | rm -f conftest.er1 |
| 2023 | cat conftest.err >&5 |
| 2024 | echo "$as_me:2024: \$? = $ac_status" >&5 |
| 2025 | (exit $ac_status); } >/dev/null; then |
| 2026 | if test -s conftest.err; then |
| 2027 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2028 | else |
| 2029 | ac_cpp_err= |
| 2030 | fi |
| 2031 | else |
| 2032 | ac_cpp_err=yes |
| 2033 | fi |
| 2034 | if test -z "$ac_cpp_err"; then |
| 2035 | # Broken: success on invalid input. |
| 2036 | continue |
| 2037 | else |
| 2038 | echo "$as_me: failed program was:" >&5 |
| 2039 | cat conftest.$ac_ext >&5 |
| 2040 | # Passes both tests. |
| 2041 | ac_preproc_ok=: |
| 2042 | break |
| 2043 | fi |
| 2044 | rm -f conftest.err conftest.$ac_ext |
| 2045 | |
| 2046 | done |
| 2047 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2048 | rm -f conftest.err conftest.$ac_ext |
| 2049 | if $ac_preproc_ok; then |
| 2050 | : |
| 2051 | else |
| 2052 | { { echo "$as_me:2052: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2053 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2054 | { (exit 1); exit 1; }; } |
| 2055 | fi |
| 2056 | |
| 2057 | ac_ext=c |
| 2058 | ac_cpp='$CPP $CPPFLAGS' |
| 2059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2062 | |
| 2063 | echo "$as_me:2063: checking for X" >&5 |
| 2064 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2065 | |
| 2066 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2067 | if test "${with_x+set}" = set; then |
| 2068 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2069 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2070 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2071 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2072 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2073 | # The user explicitly disabled X. |
| 2074 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2075 | else |
| 2076 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2077 | # Both variables are already set. |
| 2078 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2079 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2080 | if test "${ac_cv_have_x+set}" = set; then |
| 2081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2082 | else |
| 2083 | # One or both of the vars are not set, and there is no cached value. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2084 | ac_x_includes=no ac_x_libraries=no |
| 2085 | rm -fr conftest.dir |
| 2086 | if mkdir conftest.dir; then |
| 2087 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2088 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2089 | cat >Imakefile <<'EOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2090 | acfindx: |
| 2091 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 2092 | EOF |
| 2093 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2094 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2095 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2096 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2097 | for ac_extension in a so sl; do |
| 2098 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2099 | test -f $ac_im_libdir/libX11.$ac_extension; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2100 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2101 | fi |
| 2102 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2103 | # Screen out bogus values from the imake configuration. They are |
| 2104 | # bogus both because they are the default anyway, and because |
| 2105 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2106 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2107 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2108 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2109 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2110 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2111 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2112 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2113 | esac |
| 2114 | fi |
| 2115 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2116 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2117 | fi |
| 2118 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2119 | # Standard set of common directories for X headers. |
| 2120 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2121 | ac_x_header_dirs=' |
| 2122 | /usr/X11/include |
| 2123 | /usr/X11R6/include |
| 2124 | /usr/X11R5/include |
| 2125 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2126 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2127 | /usr/include/X11 |
| 2128 | /usr/include/X11R6 |
| 2129 | /usr/include/X11R5 |
| 2130 | /usr/include/X11R4 |
| 2131 | |
| 2132 | /usr/local/X11/include |
| 2133 | /usr/local/X11R6/include |
| 2134 | /usr/local/X11R5/include |
| 2135 | /usr/local/X11R4/include |
| 2136 | |
| 2137 | /usr/local/include/X11 |
| 2138 | /usr/local/include/X11R6 |
| 2139 | /usr/local/include/X11R5 |
| 2140 | /usr/local/include/X11R4 |
| 2141 | |
| 2142 | /usr/X386/include |
| 2143 | /usr/x386/include |
| 2144 | /usr/XFree86/include/X11 |
| 2145 | |
| 2146 | /usr/include |
| 2147 | /usr/local/include |
| 2148 | /usr/unsupported/include |
| 2149 | /usr/athena/include |
| 2150 | /usr/local/x11r5/include |
| 2151 | /usr/lpp/Xamples/include |
| 2152 | |
| 2153 | /usr/openwin/include |
| 2154 | /usr/openwin/share/include' |
| 2155 | |
| 2156 | if test "$ac_x_includes" = no; then |
| 2157 | # Guess where to find include files, by looking for Intrinsic.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2158 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2159 | cat >conftest.$ac_ext <<_ACEOF |
| 2160 | #line 2160 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2161 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2162 | #include <X11/Intrinsic.h> |
| 2163 | _ACEOF |
| 2164 | if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2166 | ac_status=$? |
| 2167 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2168 | rm -f conftest.er1 |
| 2169 | cat conftest.err >&5 |
| 2170 | echo "$as_me:2170: \$? = $ac_status" >&5 |
| 2171 | (exit $ac_status); } >/dev/null; then |
| 2172 | if test -s conftest.err; then |
| 2173 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2174 | else |
| 2175 | ac_cpp_err= |
| 2176 | fi |
| 2177 | else |
| 2178 | ac_cpp_err=yes |
| 2179 | fi |
| 2180 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2181 | # We can compile using X headers with no special include directory. |
| 2182 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2183 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2184 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2185 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2186 | for ac_dir in $ac_x_header_dirs; do |
| 2187 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 2188 | ac_x_includes=$ac_dir |
| 2189 | break |
| 2190 | fi |
| 2191 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2192 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2193 | rm -f conftest.err conftest.$ac_ext |
| 2194 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2195 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2196 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2197 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2198 | # See if we find them without any special options. |
| 2199 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2200 | ac_save_LIBS=$LIBS |
| 2201 | LIBS="-lXt $LIBS" |
| 2202 | cat >conftest.$ac_ext <<_ACEOF |
| 2203 | #line 2203 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2204 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2205 | #include <X11/Intrinsic.h> |
| 2206 | int |
| 2207 | main () |
| 2208 | { |
| 2209 | XtMalloc (0) |
| 2210 | ; |
| 2211 | return 0; |
| 2212 | } |
| 2213 | _ACEOF |
| 2214 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2215 | if { (eval echo "$as_me:2215: \"$ac_link\"") >&5 |
| 2216 | (eval $ac_link) 2>&5 |
| 2217 | ac_status=$? |
| 2218 | echo "$as_me:2218: \$? = $ac_status" >&5 |
| 2219 | (exit $ac_status); } && |
| 2220 | { ac_try='test -s conftest$ac_exeext' |
| 2221 | { (eval echo "$as_me:2221: \"$ac_try\"") >&5 |
| 2222 | (eval $ac_try) 2>&5 |
| 2223 | ac_status=$? |
| 2224 | echo "$as_me:2224: \$? = $ac_status" >&5 |
| 2225 | (exit $ac_status); }; }; then |
| 2226 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2227 | # We can link X programs with no special library path. |
| 2228 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2229 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2230 | echo "$as_me: failed program was:" >&5 |
| 2231 | cat conftest.$ac_ext >&5 |
| 2232 | LIBS=$ac_save_LIBS |
| 2233 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2234 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2235 | # Don't even attempt the hair of trying to link an X program! |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2236 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2237 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2238 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2239 | break 2 |
| 2240 | fi |
| 2241 | done |
| 2242 | done |
| 2243 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2244 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2245 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2246 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2247 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2248 | # Didn't find X anywhere. Cache the known absence of X. |
| 2249 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2250 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2251 | # Record where we found X for the cache. |
| 2252 | ac_cv_have_x="have_x=yes \ |
| 2253 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2254 | fi |
| 2255 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2256 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2257 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2258 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2259 | fi # $with_x != no |
| 2260 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2261 | if test "$have_x" != yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2262 | echo "$as_me:2262: result: $have_x" >&5 |
| 2263 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2264 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2265 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2266 | # If each of the values was on the command line, it overrides each guess. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2267 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 2268 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2269 | # Update the cache value to reflect the command line values. |
| 2270 | ac_cv_have_x="have_x=yes \ |
| 2271 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2272 | echo "$as_me:2272: result: libraries $x_libraries, headers $x_includes" >&5 |
| 2273 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2274 | fi |
| 2275 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2276 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2277 | # Not all programs may use this symbol, but it does not hurt to define it. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2278 | |
| 2279 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2280 | #define X_DISPLAY_MISSING 1 |
| 2281 | EOF |
| 2282 | |
| 2283 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2284 | else |
| 2285 | if test -n "$x_includes"; then |
| 2286 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 2287 | fi |
| 2288 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2289 | # It would also be nice to do this for all -L options, not just this one. |
| 2290 | if test -n "$x_libraries"; then |
| 2291 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2292 | # For Solaris; some versions of Sun CC require a space after -R and |
| 2293 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2294 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2295 | "SunOS 5"*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2296 | echo "$as_me:2296: checking whether -R must be followed by a space" >&5 |
| 2297 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 2298 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 2299 | cat >conftest.$ac_ext <<_ACEOF |
| 2300 | #line 2300 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2301 | #include "confdefs.h" |
| 2302 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2303 | int |
| 2304 | main () |
| 2305 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2306 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2307 | ; |
| 2308 | return 0; |
| 2309 | } |
| 2310 | _ACEOF |
| 2311 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2312 | if { (eval echo "$as_me:2312: \"$ac_link\"") >&5 |
| 2313 | (eval $ac_link) 2>&5 |
| 2314 | ac_status=$? |
| 2315 | echo "$as_me:2315: \$? = $ac_status" >&5 |
| 2316 | (exit $ac_status); } && |
| 2317 | { ac_try='test -s conftest$ac_exeext' |
| 2318 | { (eval echo "$as_me:2318: \"$ac_try\"") >&5 |
| 2319 | (eval $ac_try) 2>&5 |
| 2320 | ac_status=$? |
| 2321 | echo "$as_me:2321: \$? = $ac_status" >&5 |
| 2322 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2323 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2324 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2325 | echo "$as_me: failed program was:" >&5 |
| 2326 | cat conftest.$ac_ext >&5 |
| 2327 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2328 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2329 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2330 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2331 | echo "$as_me:2331: result: no" >&5 |
| 2332 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2333 | X_LIBS="$X_LIBS -R$x_libraries" |
| 2334 | else |
| 2335 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2336 | cat >conftest.$ac_ext <<_ACEOF |
| 2337 | #line 2337 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2338 | #include "confdefs.h" |
| 2339 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2340 | int |
| 2341 | main () |
| 2342 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2343 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2344 | ; |
| 2345 | return 0; |
| 2346 | } |
| 2347 | _ACEOF |
| 2348 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2349 | if { (eval echo "$as_me:2349: \"$ac_link\"") >&5 |
| 2350 | (eval $ac_link) 2>&5 |
| 2351 | ac_status=$? |
| 2352 | echo "$as_me:2352: \$? = $ac_status" >&5 |
| 2353 | (exit $ac_status); } && |
| 2354 | { ac_try='test -s conftest$ac_exeext' |
| 2355 | { (eval echo "$as_me:2355: \"$ac_try\"") >&5 |
| 2356 | (eval $ac_try) 2>&5 |
| 2357 | ac_status=$? |
| 2358 | echo "$as_me:2358: \$? = $ac_status" >&5 |
| 2359 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2360 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2361 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2362 | echo "$as_me: failed program was:" >&5 |
| 2363 | cat conftest.$ac_ext >&5 |
| 2364 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2365 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2366 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2367 | if test $ac_R_space = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2368 | echo "$as_me:2368: result: yes" >&5 |
| 2369 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2370 | X_LIBS="$X_LIBS -R $x_libraries" |
| 2371 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2372 | echo "$as_me:2372: result: neither works" >&5 |
| 2373 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2374 | fi |
| 2375 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2376 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2377 | esac |
| 2378 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2379 | |
| 2380 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2381 | # Do this before checking for the system-independent R6 libraries |
| 2382 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2383 | |
| 2384 | if test "$ISC" = yes; then |
| 2385 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 2386 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2387 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 2388 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2389 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2390 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 2391 | cat >conftest.$ac_ext <<_ACEOF |
| 2392 | #line 2392 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2393 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2394 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2395 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2396 | #ifdef __cplusplus |
| 2397 | extern "C" |
| 2398 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2399 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2400 | builtin and then its argument prototype would still apply. */ |
| 2401 | char XOpenDisplay (); |
| 2402 | int |
| 2403 | main () |
| 2404 | { |
| 2405 | XOpenDisplay (); |
| 2406 | ; |
| 2407 | return 0; |
| 2408 | } |
| 2409 | _ACEOF |
| 2410 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2411 | if { (eval echo "$as_me:2411: \"$ac_link\"") >&5 |
| 2412 | (eval $ac_link) 2>&5 |
| 2413 | ac_status=$? |
| 2414 | echo "$as_me:2414: \$? = $ac_status" >&5 |
| 2415 | (exit $ac_status); } && |
| 2416 | { ac_try='test -s conftest$ac_exeext' |
| 2417 | { (eval echo "$as_me:2417: \"$ac_try\"") >&5 |
| 2418 | (eval $ac_try) 2>&5 |
| 2419 | ac_status=$? |
| 2420 | echo "$as_me:2420: \$? = $ac_status" >&5 |
| 2421 | (exit $ac_status); }; }; then |
| 2422 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2423 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2424 | echo "$as_me: failed program was:" >&5 |
| 2425 | cat conftest.$ac_ext >&5 |
| 2426 | echo "$as_me:2426: checking for dnet_ntoa in -ldnet" >&5 |
| 2427 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 2428 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 2429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2430 | else |
| 2431 | ac_check_lib_save_LIBS=$LIBS |
| 2432 | LIBS="-ldnet $LIBS" |
| 2433 | cat >conftest.$ac_ext <<_ACEOF |
| 2434 | #line 2434 "configure" |
| 2435 | #include "confdefs.h" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2436 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2437 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2438 | #ifdef __cplusplus |
| 2439 | extern "C" |
| 2440 | #endif |
| 2441 | /* We use char because int might match the return type of a gcc2 |
| 2442 | builtin and then its argument prototype would still apply. */ |
| 2443 | char dnet_ntoa (); |
| 2444 | int |
| 2445 | main () |
| 2446 | { |
| 2447 | dnet_ntoa (); |
| 2448 | ; |
| 2449 | return 0; |
| 2450 | } |
| 2451 | _ACEOF |
| 2452 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2453 | if { (eval echo "$as_me:2453: \"$ac_link\"") >&5 |
| 2454 | (eval $ac_link) 2>&5 |
| 2455 | ac_status=$? |
| 2456 | echo "$as_me:2456: \$? = $ac_status" >&5 |
| 2457 | (exit $ac_status); } && |
| 2458 | { ac_try='test -s conftest$ac_exeext' |
| 2459 | { (eval echo "$as_me:2459: \"$ac_try\"") >&5 |
| 2460 | (eval $ac_try) 2>&5 |
| 2461 | ac_status=$? |
| 2462 | echo "$as_me:2462: \$? = $ac_status" >&5 |
| 2463 | (exit $ac_status); }; }; then |
| 2464 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 2465 | else |
| 2466 | echo "$as_me: failed program was:" >&5 |
| 2467 | cat conftest.$ac_ext >&5 |
| 2468 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2469 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2470 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2471 | LIBS=$ac_check_lib_save_LIBS |
| 2472 | fi |
| 2473 | echo "$as_me:2473: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 2474 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 2475 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2476 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2477 | fi |
| 2478 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2479 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2480 | echo "$as_me:2480: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 2481 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 2482 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 2483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2484 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2485 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2486 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2487 | cat >conftest.$ac_ext <<_ACEOF |
| 2488 | #line 2488 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2489 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2490 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2491 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2492 | #ifdef __cplusplus |
| 2493 | extern "C" |
| 2494 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2495 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2496 | builtin and then its argument prototype would still apply. */ |
| 2497 | char dnet_ntoa (); |
| 2498 | int |
| 2499 | main () |
| 2500 | { |
| 2501 | dnet_ntoa (); |
| 2502 | ; |
| 2503 | return 0; |
| 2504 | } |
| 2505 | _ACEOF |
| 2506 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2507 | if { (eval echo "$as_me:2507: \"$ac_link\"") >&5 |
| 2508 | (eval $ac_link) 2>&5 |
| 2509 | ac_status=$? |
| 2510 | echo "$as_me:2510: \$? = $ac_status" >&5 |
| 2511 | (exit $ac_status); } && |
| 2512 | { ac_try='test -s conftest$ac_exeext' |
| 2513 | { (eval echo "$as_me:2513: \"$ac_try\"") >&5 |
| 2514 | (eval $ac_try) 2>&5 |
| 2515 | ac_status=$? |
| 2516 | echo "$as_me:2516: \$? = $ac_status" >&5 |
| 2517 | (exit $ac_status); }; }; then |
| 2518 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2519 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2520 | echo "$as_me: failed program was:" >&5 |
| 2521 | cat conftest.$ac_ext >&5 |
| 2522 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2523 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2524 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2525 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2526 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2527 | echo "$as_me:2527: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 2528 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 2529 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2530 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2531 | fi |
| 2532 | |
| 2533 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2534 | fi |
| 2535 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2536 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2537 | |
| 2538 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 2539 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2540 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2541 | # needs -lnsl. |
| 2542 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2543 | # on Irix 5.2, according to T.E. Dickey. |
| 2544 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 2545 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 2546 | echo "$as_me:2546: checking for gethostbyname" >&5 |
| 2547 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 2548 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 2549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2550 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2551 | cat >conftest.$ac_ext <<_ACEOF |
| 2552 | #line 2552 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2553 | #include "confdefs.h" |
| 2554 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2555 | which can conflict with char gethostbyname (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2556 | #include <assert.h> |
| 2557 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2558 | #ifdef __cplusplus |
| 2559 | extern "C" |
| 2560 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2561 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2562 | builtin and then its argument prototype would still apply. */ |
| 2563 | char gethostbyname (); |
| 2564 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2565 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2566 | int |
| 2567 | main () |
| 2568 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2569 | /* The GNU C library defines this for functions which it implements |
| 2570 | to always fail with ENOSYS. Some functions are actually named |
| 2571 | something starting with __ and the normal name is an alias. */ |
| 2572 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 2573 | choke me |
| 2574 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2575 | f = gethostbyname; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2576 | #endif |
| 2577 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2578 | ; |
| 2579 | return 0; |
| 2580 | } |
| 2581 | _ACEOF |
| 2582 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2583 | if { (eval echo "$as_me:2583: \"$ac_link\"") >&5 |
| 2584 | (eval $ac_link) 2>&5 |
| 2585 | ac_status=$? |
| 2586 | echo "$as_me:2586: \$? = $ac_status" >&5 |
| 2587 | (exit $ac_status); } && |
| 2588 | { ac_try='test -s conftest$ac_exeext' |
| 2589 | { (eval echo "$as_me:2589: \"$ac_try\"") >&5 |
| 2590 | (eval $ac_try) 2>&5 |
| 2591 | ac_status=$? |
| 2592 | echo "$as_me:2592: \$? = $ac_status" >&5 |
| 2593 | (exit $ac_status); }; }; then |
| 2594 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2595 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2596 | echo "$as_me: failed program was:" >&5 |
| 2597 | cat conftest.$ac_ext >&5 |
| 2598 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2599 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2600 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2601 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2602 | echo "$as_me:2602: result: $ac_cv_func_gethostbyname" >&5 |
| 2603 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2604 | |
| 2605 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2606 | echo "$as_me:2606: checking for gethostbyname in -lnsl" >&5 |
| 2607 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 2608 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 2609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2610 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2611 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2612 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2613 | cat >conftest.$ac_ext <<_ACEOF |
| 2614 | #line 2614 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2615 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2616 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2617 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2618 | #ifdef __cplusplus |
| 2619 | extern "C" |
| 2620 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2621 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2622 | builtin and then its argument prototype would still apply. */ |
| 2623 | char gethostbyname (); |
| 2624 | int |
| 2625 | main () |
| 2626 | { |
| 2627 | gethostbyname (); |
| 2628 | ; |
| 2629 | return 0; |
| 2630 | } |
| 2631 | _ACEOF |
| 2632 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2633 | if { (eval echo "$as_me:2633: \"$ac_link\"") >&5 |
| 2634 | (eval $ac_link) 2>&5 |
| 2635 | ac_status=$? |
| 2636 | echo "$as_me:2636: \$? = $ac_status" >&5 |
| 2637 | (exit $ac_status); } && |
| 2638 | { ac_try='test -s conftest$ac_exeext' |
| 2639 | { (eval echo "$as_me:2639: \"$ac_try\"") >&5 |
| 2640 | (eval $ac_try) 2>&5 |
| 2641 | ac_status=$? |
| 2642 | echo "$as_me:2642: \$? = $ac_status" >&5 |
| 2643 | (exit $ac_status); }; }; then |
| 2644 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2645 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2646 | echo "$as_me: failed program was:" >&5 |
| 2647 | cat conftest.$ac_ext >&5 |
| 2648 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2649 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2650 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2651 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2652 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2653 | echo "$as_me:2653: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 2654 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 2655 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2656 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2657 | fi |
| 2658 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2659 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 2660 | echo "$as_me:2660: checking for gethostbyname in -lbsd" >&5 |
| 2661 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 2662 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 2663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2664 | else |
| 2665 | ac_check_lib_save_LIBS=$LIBS |
| 2666 | LIBS="-lbsd $LIBS" |
| 2667 | cat >conftest.$ac_ext <<_ACEOF |
| 2668 | #line 2668 "configure" |
| 2669 | #include "confdefs.h" |
| 2670 | |
| 2671 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2672 | #ifdef __cplusplus |
| 2673 | extern "C" |
| 2674 | #endif |
| 2675 | /* We use char because int might match the return type of a gcc2 |
| 2676 | builtin and then its argument prototype would still apply. */ |
| 2677 | char gethostbyname (); |
| 2678 | int |
| 2679 | main () |
| 2680 | { |
| 2681 | gethostbyname (); |
| 2682 | ; |
| 2683 | return 0; |
| 2684 | } |
| 2685 | _ACEOF |
| 2686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2687 | if { (eval echo "$as_me:2687: \"$ac_link\"") >&5 |
| 2688 | (eval $ac_link) 2>&5 |
| 2689 | ac_status=$? |
| 2690 | echo "$as_me:2690: \$? = $ac_status" >&5 |
| 2691 | (exit $ac_status); } && |
| 2692 | { ac_try='test -s conftest$ac_exeext' |
| 2693 | { (eval echo "$as_me:2693: \"$ac_try\"") >&5 |
| 2694 | (eval $ac_try) 2>&5 |
| 2695 | ac_status=$? |
| 2696 | echo "$as_me:2696: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); }; }; then |
| 2698 | ac_cv_lib_bsd_gethostbyname=yes |
| 2699 | else |
| 2700 | echo "$as_me: failed program was:" >&5 |
| 2701 | cat conftest.$ac_ext >&5 |
| 2702 | ac_cv_lib_bsd_gethostbyname=no |
| 2703 | fi |
| 2704 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2705 | LIBS=$ac_check_lib_save_LIBS |
| 2706 | fi |
| 2707 | echo "$as_me:2707: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 2708 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 2709 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 2710 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 2711 | fi |
| 2712 | |
| 2713 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2714 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2715 | |
| 2716 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2717 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 2718 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2719 | # on later versions), says Simon Leinen: it contains gethostby* |
| 2720 | # variants that don't use the nameserver (or something). -lsocket |
| 2721 | # must be given before -lnsl if both are needed. We assume that |
| 2722 | # if connect needs -lnsl, so does gethostbyname. |
| 2723 | echo "$as_me:2723: checking for connect" >&5 |
| 2724 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 2725 | if test "${ac_cv_func_connect+set}" = set; then |
| 2726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2727 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2728 | cat >conftest.$ac_ext <<_ACEOF |
| 2729 | #line 2729 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2730 | #include "confdefs.h" |
| 2731 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2732 | which can conflict with char connect (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2733 | #include <assert.h> |
| 2734 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2735 | #ifdef __cplusplus |
| 2736 | extern "C" |
| 2737 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2738 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2739 | builtin and then its argument prototype would still apply. */ |
| 2740 | char connect (); |
| 2741 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2742 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2743 | int |
| 2744 | main () |
| 2745 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2746 | /* The GNU C library defines this for functions which it implements |
| 2747 | to always fail with ENOSYS. Some functions are actually named |
| 2748 | something starting with __ and the normal name is an alias. */ |
| 2749 | #if defined (__stub_connect) || defined (__stub___connect) |
| 2750 | choke me |
| 2751 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2752 | f = connect; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2753 | #endif |
| 2754 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2755 | ; |
| 2756 | return 0; |
| 2757 | } |
| 2758 | _ACEOF |
| 2759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2760 | if { (eval echo "$as_me:2760: \"$ac_link\"") >&5 |
| 2761 | (eval $ac_link) 2>&5 |
| 2762 | ac_status=$? |
| 2763 | echo "$as_me:2763: \$? = $ac_status" >&5 |
| 2764 | (exit $ac_status); } && |
| 2765 | { ac_try='test -s conftest$ac_exeext' |
| 2766 | { (eval echo "$as_me:2766: \"$ac_try\"") >&5 |
| 2767 | (eval $ac_try) 2>&5 |
| 2768 | ac_status=$? |
| 2769 | echo "$as_me:2769: \$? = $ac_status" >&5 |
| 2770 | (exit $ac_status); }; }; then |
| 2771 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2772 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2773 | echo "$as_me: failed program was:" >&5 |
| 2774 | cat conftest.$ac_ext >&5 |
| 2775 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2776 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2777 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2778 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2779 | echo "$as_me:2779: result: $ac_cv_func_connect" >&5 |
| 2780 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2781 | |
| 2782 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2783 | echo "$as_me:2783: checking for connect in -lsocket" >&5 |
| 2784 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 2785 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 2786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2787 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2788 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2789 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2790 | cat >conftest.$ac_ext <<_ACEOF |
| 2791 | #line 2791 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2792 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2793 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2794 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2795 | #ifdef __cplusplus |
| 2796 | extern "C" |
| 2797 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2798 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2799 | builtin and then its argument prototype would still apply. */ |
| 2800 | char connect (); |
| 2801 | int |
| 2802 | main () |
| 2803 | { |
| 2804 | connect (); |
| 2805 | ; |
| 2806 | return 0; |
| 2807 | } |
| 2808 | _ACEOF |
| 2809 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2810 | if { (eval echo "$as_me:2810: \"$ac_link\"") >&5 |
| 2811 | (eval $ac_link) 2>&5 |
| 2812 | ac_status=$? |
| 2813 | echo "$as_me:2813: \$? = $ac_status" >&5 |
| 2814 | (exit $ac_status); } && |
| 2815 | { ac_try='test -s conftest$ac_exeext' |
| 2816 | { (eval echo "$as_me:2816: \"$ac_try\"") >&5 |
| 2817 | (eval $ac_try) 2>&5 |
| 2818 | ac_status=$? |
| 2819 | echo "$as_me:2819: \$? = $ac_status" >&5 |
| 2820 | (exit $ac_status); }; }; then |
| 2821 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2822 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2823 | echo "$as_me: failed program was:" >&5 |
| 2824 | cat conftest.$ac_ext >&5 |
| 2825 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2826 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2827 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2828 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2829 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2830 | echo "$as_me:2830: result: $ac_cv_lib_socket_connect" >&5 |
| 2831 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 2832 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2833 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2834 | fi |
| 2835 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2836 | fi |
| 2837 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2838 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 2839 | echo "$as_me:2839: checking for remove" >&5 |
| 2840 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 2841 | if test "${ac_cv_func_remove+set}" = set; then |
| 2842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2843 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2844 | cat >conftest.$ac_ext <<_ACEOF |
| 2845 | #line 2845 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2846 | #include "confdefs.h" |
| 2847 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2848 | which can conflict with char remove (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2849 | #include <assert.h> |
| 2850 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2851 | #ifdef __cplusplus |
| 2852 | extern "C" |
| 2853 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2854 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2855 | builtin and then its argument prototype would still apply. */ |
| 2856 | char remove (); |
| 2857 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2858 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2859 | int |
| 2860 | main () |
| 2861 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2862 | /* The GNU C library defines this for functions which it implements |
| 2863 | to always fail with ENOSYS. Some functions are actually named |
| 2864 | something starting with __ and the normal name is an alias. */ |
| 2865 | #if defined (__stub_remove) || defined (__stub___remove) |
| 2866 | choke me |
| 2867 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2868 | f = remove; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2869 | #endif |
| 2870 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2871 | ; |
| 2872 | return 0; |
| 2873 | } |
| 2874 | _ACEOF |
| 2875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2876 | if { (eval echo "$as_me:2876: \"$ac_link\"") >&5 |
| 2877 | (eval $ac_link) 2>&5 |
| 2878 | ac_status=$? |
| 2879 | echo "$as_me:2879: \$? = $ac_status" >&5 |
| 2880 | (exit $ac_status); } && |
| 2881 | { ac_try='test -s conftest$ac_exeext' |
| 2882 | { (eval echo "$as_me:2882: \"$ac_try\"") >&5 |
| 2883 | (eval $ac_try) 2>&5 |
| 2884 | ac_status=$? |
| 2885 | echo "$as_me:2885: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); }; }; then |
| 2887 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2888 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2889 | echo "$as_me: failed program was:" >&5 |
| 2890 | cat conftest.$ac_ext >&5 |
| 2891 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2892 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2893 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2894 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2895 | echo "$as_me:2895: result: $ac_cv_func_remove" >&5 |
| 2896 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2897 | |
| 2898 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2899 | echo "$as_me:2899: checking for remove in -lposix" >&5 |
| 2900 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 2901 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 2902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2903 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2904 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2905 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2906 | cat >conftest.$ac_ext <<_ACEOF |
| 2907 | #line 2907 "configure" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2908 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2909 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2910 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2911 | #ifdef __cplusplus |
| 2912 | extern "C" |
| 2913 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2914 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2915 | builtin and then its argument prototype would still apply. */ |
| 2916 | char remove (); |
| 2917 | int |
| 2918 | main () |
| 2919 | { |
| 2920 | remove (); |
| 2921 | ; |
| 2922 | return 0; |
| 2923 | } |
| 2924 | _ACEOF |
| 2925 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2926 | if { (eval echo "$as_me:2926: \"$ac_link\"") >&5 |
| 2927 | (eval $ac_link) 2>&5 |
| 2928 | ac_status=$? |
| 2929 | echo "$as_me:2929: \$? = $ac_status" >&5 |
| 2930 | (exit $ac_status); } && |
| 2931 | { ac_try='test -s conftest$ac_exeext' |
| 2932 | { (eval echo "$as_me:2932: \"$ac_try\"") >&5 |
| 2933 | (eval $ac_try) 2>&5 |
| 2934 | ac_status=$? |
| 2935 | echo "$as_me:2935: \$? = $ac_status" >&5 |
| 2936 | (exit $ac_status); }; }; then |
| 2937 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2938 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2939 | echo "$as_me: failed program was:" >&5 |
| 2940 | cat conftest.$ac_ext >&5 |
| 2941 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2942 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2943 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2944 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2945 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2946 | echo "$as_me:2946: result: $ac_cv_lib_posix_remove" >&5 |
| 2947 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 2948 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2949 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2950 | fi |
| 2951 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2952 | fi |
| 2953 | |
| 2954 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2955 | echo "$as_me:2955: checking for shmat" >&5 |
| 2956 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 2957 | if test "${ac_cv_func_shmat+set}" = set; then |
| 2958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2959 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2960 | cat >conftest.$ac_ext <<_ACEOF |
| 2961 | #line 2961 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2962 | #include "confdefs.h" |
| 2963 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2964 | which can conflict with char shmat (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2965 | #include <assert.h> |
| 2966 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2967 | #ifdef __cplusplus |
| 2968 | extern "C" |
| 2969 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2970 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2971 | builtin and then its argument prototype would still apply. */ |
| 2972 | char shmat (); |
| 2973 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2974 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2975 | int |
| 2976 | main () |
| 2977 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2978 | /* The GNU C library defines this for functions which it implements |
| 2979 | to always fail with ENOSYS. Some functions are actually named |
| 2980 | something starting with __ and the normal name is an alias. */ |
| 2981 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 2982 | choke me |
| 2983 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2984 | f = shmat; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2985 | #endif |
| 2986 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 2987 | ; |
| 2988 | return 0; |
| 2989 | } |
| 2990 | _ACEOF |
| 2991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2992 | if { (eval echo "$as_me:2992: \"$ac_link\"") >&5 |
| 2993 | (eval $ac_link) 2>&5 |
| 2994 | ac_status=$? |
| 2995 | echo "$as_me:2995: \$? = $ac_status" >&5 |
| 2996 | (exit $ac_status); } && |
| 2997 | { ac_try='test -s conftest$ac_exeext' |
| 2998 | { (eval echo "$as_me:2998: \"$ac_try\"") >&5 |
| 2999 | (eval $ac_try) 2>&5 |
| 3000 | ac_status=$? |
| 3001 | echo "$as_me:3001: \$? = $ac_status" >&5 |
| 3002 | (exit $ac_status); }; }; then |
| 3003 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3004 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3005 | echo "$as_me: failed program was:" >&5 |
| 3006 | cat conftest.$ac_ext >&5 |
| 3007 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3008 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3009 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3010 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3011 | echo "$as_me:3011: result: $ac_cv_func_shmat" >&5 |
| 3012 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3013 | |
| 3014 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3015 | echo "$as_me:3015: checking for shmat in -lipc" >&5 |
| 3016 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 3017 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 3018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3019 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3020 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3021 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3022 | cat >conftest.$ac_ext <<_ACEOF |
| 3023 | #line 3023 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3024 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3025 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3026 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3027 | #ifdef __cplusplus |
| 3028 | extern "C" |
| 3029 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3030 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3031 | builtin and then its argument prototype would still apply. */ |
| 3032 | char shmat (); |
| 3033 | int |
| 3034 | main () |
| 3035 | { |
| 3036 | shmat (); |
| 3037 | ; |
| 3038 | return 0; |
| 3039 | } |
| 3040 | _ACEOF |
| 3041 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3042 | if { (eval echo "$as_me:3042: \"$ac_link\"") >&5 |
| 3043 | (eval $ac_link) 2>&5 |
| 3044 | ac_status=$? |
| 3045 | echo "$as_me:3045: \$? = $ac_status" >&5 |
| 3046 | (exit $ac_status); } && |
| 3047 | { ac_try='test -s conftest$ac_exeext' |
| 3048 | { (eval echo "$as_me:3048: \"$ac_try\"") >&5 |
| 3049 | (eval $ac_try) 2>&5 |
| 3050 | ac_status=$? |
| 3051 | echo "$as_me:3051: \$? = $ac_status" >&5 |
| 3052 | (exit $ac_status); }; }; then |
| 3053 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3054 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3055 | echo "$as_me: failed program was:" >&5 |
| 3056 | cat conftest.$ac_ext >&5 |
| 3057 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3058 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3059 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3060 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3061 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3062 | echo "$as_me:3062: result: $ac_cv_lib_ipc_shmat" >&5 |
| 3063 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 3064 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3065 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3066 | fi |
| 3067 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3068 | fi |
| 3069 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3070 | |
| 3071 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3072 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3073 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 3074 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 3075 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 3076 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 3077 | # These have to be linked with before -lX11, unlike the other |
| 3078 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3079 | # John Interrante, Karl Berry |
| 3080 | echo "$as_me:3080: checking for IceConnectionNumber in -lICE" >&5 |
| 3081 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 3082 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 3083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3084 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3085 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3086 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3087 | cat >conftest.$ac_ext <<_ACEOF |
| 3088 | #line 3088 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3089 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3090 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3091 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3092 | #ifdef __cplusplus |
| 3093 | extern "C" |
| 3094 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3095 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3096 | builtin and then its argument prototype would still apply. */ |
| 3097 | char IceConnectionNumber (); |
| 3098 | int |
| 3099 | main () |
| 3100 | { |
| 3101 | IceConnectionNumber (); |
| 3102 | ; |
| 3103 | return 0; |
| 3104 | } |
| 3105 | _ACEOF |
| 3106 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3107 | if { (eval echo "$as_me:3107: \"$ac_link\"") >&5 |
| 3108 | (eval $ac_link) 2>&5 |
| 3109 | ac_status=$? |
| 3110 | echo "$as_me:3110: \$? = $ac_status" >&5 |
| 3111 | (exit $ac_status); } && |
| 3112 | { ac_try='test -s conftest$ac_exeext' |
| 3113 | { (eval echo "$as_me:3113: \"$ac_try\"") >&5 |
| 3114 | (eval $ac_try) 2>&5 |
| 3115 | ac_status=$? |
| 3116 | echo "$as_me:3116: \$? = $ac_status" >&5 |
| 3117 | (exit $ac_status); }; }; then |
| 3118 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3119 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3120 | echo "$as_me: failed program was:" >&5 |
| 3121 | cat conftest.$ac_ext >&5 |
| 3122 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3123 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3124 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3125 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3126 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3127 | echo "$as_me:3127: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 3128 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 3129 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3130 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3131 | fi |
| 3132 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3133 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3134 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3135 | fi |
| 3136 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3137 | for ac_prog in 'bison -y' byacc |
| 3138 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3139 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3140 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3141 | echo "$as_me:3141: checking for $ac_word" >&5 |
| 3142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3143 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3145 | else |
| 3146 | if test -n "$YACC"; then |
| 3147 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3148 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3149 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3150 | ac_dummy="$PATH" |
| 3151 | for ac_dir in $ac_dummy; do |
| 3152 | IFS=$ac_save_IFS |
| 3153 | test -z "$ac_dir" && ac_dir=. |
| 3154 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3155 | ac_cv_prog_YACC="$ac_prog" |
| 3156 | echo "$as_me:3156: found $ac_dir/$ac_word" >&5 |
| 3157 | break |
| 3158 | done |
| 3159 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3160 | fi |
| 3161 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3162 | YACC=$ac_cv_prog_YACC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3163 | if test -n "$YACC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3164 | echo "$as_me:3164: result: $YACC" >&5 |
| 3165 | echo "${ECHO_T}$YACC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3166 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3167 | echo "$as_me:3167: result: no" >&5 |
| 3168 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3169 | fi |
| 3170 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3171 | test -n "$YACC" && break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3172 | done |
| 3173 | test -n "$YACC" || YACC="yacc" |
| 3174 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3175 | for ac_prog in flex lex |
| 3176 | do |
| 3177 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3178 | set dummy $ac_prog; ac_word=$2 |
| 3179 | echo "$as_me:3179: checking for $ac_word" >&5 |
| 3180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3181 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3183 | else |
| 3184 | if test -n "$LEX"; then |
| 3185 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3186 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3187 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3188 | ac_dummy="$PATH" |
| 3189 | for ac_dir in $ac_dummy; do |
| 3190 | IFS=$ac_save_IFS |
| 3191 | test -z "$ac_dir" && ac_dir=. |
| 3192 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3193 | ac_cv_prog_LEX="$ac_prog" |
| 3194 | echo "$as_me:3194: found $ac_dir/$ac_word" >&5 |
| 3195 | break |
| 3196 | done |
| 3197 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3198 | fi |
| 3199 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3200 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3201 | if test -n "$LEX"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3202 | echo "$as_me:3202: result: $LEX" >&5 |
| 3203 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3204 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3205 | echo "$as_me:3205: result: no" >&5 |
| 3206 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3207 | fi |
| 3208 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3209 | test -n "$LEX" && break |
| 3210 | done |
| 3211 | test -n "$LEX" || LEX=":" |
| 3212 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3213 | if test -z "$LEXLIB" |
| 3214 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3215 | echo "$as_me:3215: checking for yywrap in -lfl" >&5 |
| 3216 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3217 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3219 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3220 | ac_check_lib_save_LIBS=$LIBS |
| 3221 | LIBS="-lfl $LIBS" |
| 3222 | cat >conftest.$ac_ext <<_ACEOF |
| 3223 | #line 3223 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3224 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3225 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3226 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3227 | #ifdef __cplusplus |
| 3228 | extern "C" |
| 3229 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3230 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3231 | builtin and then its argument prototype would still apply. */ |
| 3232 | char yywrap (); |
| 3233 | int |
| 3234 | main () |
| 3235 | { |
| 3236 | yywrap (); |
| 3237 | ; |
| 3238 | return 0; |
| 3239 | } |
| 3240 | _ACEOF |
| 3241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3242 | if { (eval echo "$as_me:3242: \"$ac_link\"") >&5 |
| 3243 | (eval $ac_link) 2>&5 |
| 3244 | ac_status=$? |
| 3245 | echo "$as_me:3245: \$? = $ac_status" >&5 |
| 3246 | (exit $ac_status); } && |
| 3247 | { ac_try='test -s conftest$ac_exeext' |
| 3248 | { (eval echo "$as_me:3248: \"$ac_try\"") >&5 |
| 3249 | (eval $ac_try) 2>&5 |
| 3250 | ac_status=$? |
| 3251 | echo "$as_me:3251: \$? = $ac_status" >&5 |
| 3252 | (exit $ac_status); }; }; then |
| 3253 | ac_cv_lib_fl_yywrap=yes |
| 3254 | else |
| 3255 | echo "$as_me: failed program was:" >&5 |
| 3256 | cat conftest.$ac_ext >&5 |
| 3257 | ac_cv_lib_fl_yywrap=no |
| 3258 | fi |
| 3259 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3260 | LIBS=$ac_check_lib_save_LIBS |
| 3261 | fi |
| 3262 | echo "$as_me:3262: result: $ac_cv_lib_fl_yywrap" >&5 |
| 3263 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3264 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3265 | LEXLIB="-lfl" |
| 3266 | else |
| 3267 | echo "$as_me:3267: checking for yywrap in -ll" >&5 |
| 3268 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3269 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3271 | else |
| 3272 | ac_check_lib_save_LIBS=$LIBS |
| 3273 | LIBS="-ll $LIBS" |
| 3274 | cat >conftest.$ac_ext <<_ACEOF |
| 3275 | #line 3275 "configure" |
| 3276 | #include "confdefs.h" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3277 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3278 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3279 | #ifdef __cplusplus |
| 3280 | extern "C" |
| 3281 | #endif |
| 3282 | /* We use char because int might match the return type of a gcc2 |
| 3283 | builtin and then its argument prototype would still apply. */ |
| 3284 | char yywrap (); |
| 3285 | int |
| 3286 | main () |
| 3287 | { |
| 3288 | yywrap (); |
| 3289 | ; |
| 3290 | return 0; |
| 3291 | } |
| 3292 | _ACEOF |
| 3293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3294 | if { (eval echo "$as_me:3294: \"$ac_link\"") >&5 |
| 3295 | (eval $ac_link) 2>&5 |
| 3296 | ac_status=$? |
| 3297 | echo "$as_me:3297: \$? = $ac_status" >&5 |
| 3298 | (exit $ac_status); } && |
| 3299 | { ac_try='test -s conftest$ac_exeext' |
| 3300 | { (eval echo "$as_me:3300: \"$ac_try\"") >&5 |
| 3301 | (eval $ac_try) 2>&5 |
| 3302 | ac_status=$? |
| 3303 | echo "$as_me:3303: \$? = $ac_status" >&5 |
| 3304 | (exit $ac_status); }; }; then |
| 3305 | ac_cv_lib_l_yywrap=yes |
| 3306 | else |
| 3307 | echo "$as_me: failed program was:" >&5 |
| 3308 | cat conftest.$ac_ext >&5 |
| 3309 | ac_cv_lib_l_yywrap=no |
| 3310 | fi |
| 3311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3312 | LIBS=$ac_check_lib_save_LIBS |
| 3313 | fi |
| 3314 | echo "$as_me:3314: result: $ac_cv_lib_l_yywrap" >&5 |
| 3315 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 3316 | if test $ac_cv_lib_l_yywrap = yes; then |
| 3317 | LEXLIB="-ll" |
| 3318 | fi |
| 3319 | |
| 3320 | fi |
| 3321 | |
| 3322 | fi |
| 3323 | |
| 3324 | if test "x$LEX" != "x:"; then |
| 3325 | echo "$as_me:3325: checking lex output file root" >&5 |
| 3326 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 3327 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 3328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3329 | else |
| 3330 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 3331 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 3332 | echo '%% |
| 3333 | %%' | $LEX |
| 3334 | if test -f lex.yy.c; then |
| 3335 | ac_cv_prog_lex_root=lex.yy |
| 3336 | elif test -f lexyy.c; then |
| 3337 | ac_cv_prog_lex_root=lexyy |
| 3338 | else |
| 3339 | { { echo "$as_me:3339: error: cannot find output from $LEX; giving up" >&5 |
| 3340 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 3341 | { (exit 1); exit 1; }; } |
| 3342 | fi |
| 3343 | fi |
| 3344 | echo "$as_me:3344: result: $ac_cv_prog_lex_root" >&5 |
| 3345 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 3346 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 3347 | |
| 3348 | echo "$as_me:3348: checking whether yytext is a pointer" >&5 |
| 3349 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 3350 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 3351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3352 | else |
| 3353 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 3354 | # default is implementation-dependent. Figure out which it is, since |
| 3355 | # not all implementations provide the %pointer and %array declarations. |
| 3356 | ac_cv_prog_lex_yytext_pointer=no |
| 3357 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 3358 | ac_save_LIBS=$LIBS |
| 3359 | LIBS="$LIBS $LEXLIB" |
| 3360 | cat >conftest.$ac_ext <<_ACEOF |
| 3361 | `cat $LEX_OUTPUT_ROOT.c` |
| 3362 | _ACEOF |
| 3363 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3364 | if { (eval echo "$as_me:3364: \"$ac_link\"") >&5 |
| 3365 | (eval $ac_link) 2>&5 |
| 3366 | ac_status=$? |
| 3367 | echo "$as_me:3367: \$? = $ac_status" >&5 |
| 3368 | (exit $ac_status); } && |
| 3369 | { ac_try='test -s conftest$ac_exeext' |
| 3370 | { (eval echo "$as_me:3370: \"$ac_try\"") >&5 |
| 3371 | (eval $ac_try) 2>&5 |
| 3372 | ac_status=$? |
| 3373 | echo "$as_me:3373: \$? = $ac_status" >&5 |
| 3374 | (exit $ac_status); }; }; then |
| 3375 | ac_cv_prog_lex_yytext_pointer=yes |
| 3376 | else |
| 3377 | echo "$as_me: failed program was:" >&5 |
| 3378 | cat conftest.$ac_ext >&5 |
| 3379 | fi |
| 3380 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3381 | LIBS=$ac_save_LIBS |
| 3382 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 3383 | |
| 3384 | fi |
| 3385 | echo "$as_me:3385: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 3386 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 3387 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 3388 | |
| 3389 | cat >>confdefs.h <<\EOF |
| 3390 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3391 | EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3392 | |
| 3393 | fi |
| 3394 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3395 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3396 | |
| 3397 | for ac_prog in $YACC bison yacc |
| 3398 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3399 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3400 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3401 | echo "$as_me:3401: checking for $ac_word" >&5 |
| 3402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3403 | if test "${ac_cv_prog_XYACC+set}" = set; then |
| 3404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3405 | else |
| 3406 | if test -n "$XYACC"; then |
| 3407 | ac_cv_prog_XYACC="$XYACC" # Let the user override the test. |
| 3408 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3409 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3410 | ac_dummy="$PATH" |
| 3411 | for ac_dir in $ac_dummy; do |
| 3412 | IFS=$ac_save_IFS |
| 3413 | test -z "$ac_dir" && ac_dir=. |
| 3414 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3415 | ac_cv_prog_XYACC="$ac_prog" |
| 3416 | echo "$as_me:3416: found $ac_dir/$ac_word" >&5 |
| 3417 | break |
| 3418 | done |
| 3419 | |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3420 | fi |
| 3421 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3422 | XYACC=$ac_cv_prog_XYACC |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3423 | if test -n "$XYACC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3424 | echo "$as_me:3424: result: $XYACC" >&5 |
| 3425 | echo "${ECHO_T}$XYACC" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3426 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3427 | echo "$as_me:3427: result: no" >&5 |
| 3428 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3429 | fi |
| 3430 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3431 | test -n "$XYACC" && break |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3432 | done |
| 3433 | test -n "$XYACC" || XYACC="none" |
| 3434 | |
| 3435 | if test "$XYACC" = "none" |
| 3436 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3437 | { { echo "$as_me:3437: error: no suitable bison/yacc found. Please install the 'bison' package." >&5 |
| 3438 | echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;} |
| 3439 | { (exit 1); exit 1; }; } |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3440 | fi |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3441 | for ac_prog in $LEX flex lex |
| 3442 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3443 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3444 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3445 | echo "$as_me:3445: checking for $ac_word" >&5 |
| 3446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3447 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 3448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3449 | else |
| 3450 | if test -n "$XLEX"; then |
| 3451 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 3452 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3453 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3454 | ac_dummy="$PATH" |
| 3455 | for ac_dir in $ac_dummy; do |
| 3456 | IFS=$ac_save_IFS |
| 3457 | test -z "$ac_dir" && ac_dir=. |
| 3458 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3459 | ac_cv_prog_XLEX="$ac_prog" |
| 3460 | echo "$as_me:3460: found $ac_dir/$ac_word" >&5 |
| 3461 | break |
| 3462 | done |
| 3463 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3464 | fi |
| 3465 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3466 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3467 | if test -n "$XLEX"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3468 | echo "$as_me:3468: result: $XLEX" >&5 |
| 3469 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3470 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3471 | echo "$as_me:3471: result: no" >&5 |
| 3472 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3473 | fi |
| 3474 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3475 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3476 | done |
| 3477 | test -n "$XLEX" || XLEX="none" |
| 3478 | |
| 3479 | if test "$XLEX" = "none" |
| 3480 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3481 | { { echo "$as_me:3481: error: no suitable lex found. Please install the 'flex' package." >&5 |
| 3482 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 3483 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3484 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3485 | if test -n "$ac_tool_prefix"; then |
| 3486 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3487 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3488 | echo "$as_me:3488: checking for $ac_word" >&5 |
| 3489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3490 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3492 | else |
| 3493 | if test -n "$RANLIB"; then |
| 3494 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3495 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3496 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3497 | ac_dummy="$PATH" |
| 3498 | for ac_dir in $ac_dummy; do |
| 3499 | IFS=$ac_save_IFS |
| 3500 | test -z "$ac_dir" && ac_dir=. |
| 3501 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3502 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3503 | echo "$as_me:3503: found $ac_dir/$ac_word" >&5 |
| 3504 | break |
| 3505 | done |
| 3506 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3507 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3508 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3509 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3510 | if test -n "$RANLIB"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3511 | echo "$as_me:3511: result: $RANLIB" >&5 |
| 3512 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3513 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3514 | echo "$as_me:3514: result: no" >&5 |
| 3515 | echo "${ECHO_T}no" >&6 |
| 3516 | fi |
| 3517 | |
| 3518 | fi |
| 3519 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3520 | ac_ct_RANLIB=$RANLIB |
| 3521 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3522 | set dummy ranlib; ac_word=$2 |
| 3523 | echo "$as_me:3523: checking for $ac_word" >&5 |
| 3524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3525 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3527 | else |
| 3528 | if test -n "$ac_ct_RANLIB"; then |
| 3529 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3530 | else |
| 3531 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3532 | ac_dummy="$PATH" |
| 3533 | for ac_dir in $ac_dummy; do |
| 3534 | IFS=$ac_save_IFS |
| 3535 | test -z "$ac_dir" && ac_dir=. |
| 3536 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3537 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3538 | echo "$as_me:3538: found $ac_dir/$ac_word" >&5 |
| 3539 | break |
| 3540 | done |
| 3541 | |
| 3542 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3543 | fi |
| 3544 | fi |
| 3545 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3546 | if test -n "$ac_ct_RANLIB"; then |
| 3547 | echo "$as_me:3547: result: $ac_ct_RANLIB" >&5 |
| 3548 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3549 | else |
| 3550 | echo "$as_me:3550: result: no" >&5 |
| 3551 | echo "${ECHO_T}no" >&6 |
| 3552 | fi |
| 3553 | |
| 3554 | RANLIB=$ac_ct_RANLIB |
| 3555 | else |
| 3556 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3557 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3558 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3559 | # Find a good install program. We prefer a C program (faster), |
| 3560 | # so one script is as good as another. But avoid the broken or |
| 3561 | # incompatible versions: |
| 3562 | # SysV /etc/install, /usr/sbin/install |
| 3563 | # SunOS /usr/etc/install |
| 3564 | # IRIX /sbin/install |
| 3565 | # AIX /bin/install |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3566 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3567 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3568 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3569 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3570 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3571 | echo "$as_me:3571: checking for a BSD compatible install" >&5 |
| 3572 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3573 | if test -z "$INSTALL"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3574 | if test "${ac_cv_path_install+set}" = set; then |
| 3575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3576 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3577 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3578 | for ac_dir in $PATH; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3579 | IFS=$ac_save_IFS |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3580 | # Account for people who put trailing slashes in PATH elements. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3581 | case $ac_dir/ in |
| 3582 | / | ./ | .// | /cC/* \ |
| 3583 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
| 3584 | | /usr/ucb/* ) ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3585 | *) |
| 3586 | # OSF1 and SCO ODT 3.0 have their own names for install. |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3587 | # Don't use installbsd from OSF since it installs stuff as root |
| 3588 | # by default. |
| 3589 | for ac_prog in ginstall scoinst install; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3590 | if $as_executable_p "$ac_dir/$ac_prog"; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3591 | if test $ac_prog = install && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3592 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3593 | # AIX install. It has an incompatible calling convention. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3594 | : |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3595 | elif test $ac_prog = install && |
| 3596 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 3597 | # program-specific install script used by HP pwplus--don't use. |
| 3598 | : |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3599 | else |
| 3600 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 3601 | break 2 |
| 3602 | fi |
| 3603 | fi |
| 3604 | done |
| 3605 | ;; |
| 3606 | esac |
| 3607 | done |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3608 | |
| 3609 | fi |
| 3610 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3611 | INSTALL=$ac_cv_path_install |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3612 | else |
| 3613 | # As a last resort, use the slow shell script. We don't cache a |
| 3614 | # path for INSTALL within a source directory, because that will |
| 3615 | # break other packages using the cache if that directory is |
| 3616 | # removed, or if the path is relative. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3617 | INSTALL=$ac_install_sh |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3618 | fi |
| 3619 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3620 | echo "$as_me:3620: result: $INSTALL" >&5 |
| 3621 | echo "${ECHO_T}$INSTALL" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3622 | |
| 3623 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3624 | # It thinks the first close brace ends the variable substitution. |
| 3625 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3626 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3627 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3628 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3629 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3630 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3631 | echo "$as_me:3631: checking whether ln -s works" >&5 |
| 3632 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3633 | LN_S=$as_ln_s |
| 3634 | if test "$LN_S" = "ln -s"; then |
| 3635 | echo "$as_me:3635: result: yes" >&5 |
| 3636 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 3637 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3638 | echo "$as_me:3638: result: no, using $LN_S" >&5 |
| 3639 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 3640 | fi |
| 3641 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3642 | # Extract the first word of "c2man", so it can be a program name with args. |
| 3643 | set dummy c2man; ac_word=$2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3644 | echo "$as_me:3644: checking for $ac_word" >&5 |
| 3645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3646 | if test "${ac_cv_prog_C2MAN+set}" = set; then |
| 3647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3648 | else |
| 3649 | if test -n "$C2MAN"; then |
| 3650 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. |
| 3651 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3652 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3653 | ac_dummy="$PATH" |
| 3654 | for ac_dir in $ac_dummy; do |
| 3655 | IFS=$ac_save_IFS |
| 3656 | test -z "$ac_dir" && ac_dir=. |
| 3657 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3658 | ac_cv_prog_C2MAN="c2man" |
| 3659 | echo "$as_me:3659: found $ac_dir/$ac_word" >&5 |
| 3660 | break |
| 3661 | done |
| 3662 | |
Mike McCormack | e0df32f | 2000-08-11 21:15:21 +0000 | [diff] [blame] | 3663 | test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3664 | fi |
| 3665 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3666 | C2MAN=$ac_cv_prog_C2MAN |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3667 | if test -n "$C2MAN"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3668 | echo "$as_me:3668: result: $C2MAN" >&5 |
| 3669 | echo "${ECHO_T}$C2MAN" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3670 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3671 | echo "$as_me:3671: result: no" >&5 |
| 3672 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3673 | fi |
| 3674 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 3675 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 3676 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3677 | echo "$as_me:3677: checking for $ac_word" >&5 |
| 3678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3679 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 3680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 3681 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3682 | case $LDCONFIG in |
| 3683 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 3684 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 3685 | ;; |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 3686 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3687 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3688 | ac_dummy="/sbin:/usr/sbin:$PATH" |
| 3689 | for ac_dir in $ac_dummy; do |
| 3690 | IFS=$ac_save_IFS |
| 3691 | test -z "$ac_dir" && ac_dir=. |
| 3692 | if $as_executable_p "$ac_dir/$ac_word"; then |
| 3693 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" |
| 3694 | echo "$as_me:3694: found $ac_dir/$ac_word" >&5 |
| 3695 | break |
| 3696 | fi |
| 3697 | done |
| 3698 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 3699 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 3700 | ;; |
| 3701 | esac |
| 3702 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3703 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 3704 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 3705 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3706 | echo "$as_me:3706: result: $LDCONFIG" >&5 |
| 3707 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 3708 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3709 | echo "$as_me:3709: result: no" >&5 |
| 3710 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 3711 | fi |
| 3712 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 3713 | for ac_prog in lclint lint |
| 3714 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3715 | # 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] | 3716 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3717 | echo "$as_me:3717: checking for $ac_word" >&5 |
| 3718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3719 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 3721 | else |
| 3722 | if test -n "$LINT"; then |
| 3723 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 3724 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3725 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3726 | ac_dummy="$PATH" |
| 3727 | for ac_dir in $ac_dummy; do |
| 3728 | IFS=$ac_save_IFS |
| 3729 | test -z "$ac_dir" && ac_dir=. |
| 3730 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3731 | ac_cv_prog_LINT="$ac_prog" |
| 3732 | echo "$as_me:3732: found $ac_dir/$ac_word" >&5 |
| 3733 | break |
| 3734 | done |
| 3735 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 3736 | fi |
| 3737 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3738 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 3739 | if test -n "$LINT"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3740 | echo "$as_me:3740: result: $LINT" >&5 |
| 3741 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 3742 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3743 | echo "$as_me:3743: result: no" >&5 |
| 3744 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 3745 | fi |
| 3746 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3747 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 3748 | done |
| 3749 | |
| 3750 | if test "$LINT" = "lint" |
| 3751 | then |
| 3752 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 3753 | fi |
| 3754 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3755 | case $host_os in |
| 3756 | *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;; |
| 3757 | *) LDCOMBINE="ld -r" ;; |
| 3758 | esac |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 3759 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3760 | echo "$as_me:3760: checking for sqrt in -lm" >&5 |
| 3761 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 3762 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 3764 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3765 | ac_check_lib_save_LIBS=$LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3766 | LIBS="-lm $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3767 | cat >conftest.$ac_ext <<_ACEOF |
| 3768 | #line 3768 "configure" |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3769 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3770 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3771 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3772 | #ifdef __cplusplus |
| 3773 | extern "C" |
| 3774 | #endif |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3775 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3776 | builtin and then its argument prototype would still apply. */ |
| 3777 | char sqrt (); |
| 3778 | int |
| 3779 | main () |
| 3780 | { |
| 3781 | sqrt (); |
| 3782 | ; |
| 3783 | return 0; |
| 3784 | } |
| 3785 | _ACEOF |
| 3786 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3787 | if { (eval echo "$as_me:3787: \"$ac_link\"") >&5 |
| 3788 | (eval $ac_link) 2>&5 |
| 3789 | ac_status=$? |
| 3790 | echo "$as_me:3790: \$? = $ac_status" >&5 |
| 3791 | (exit $ac_status); } && |
| 3792 | { ac_try='test -s conftest$ac_exeext' |
| 3793 | { (eval echo "$as_me:3793: \"$ac_try\"") >&5 |
| 3794 | (eval $ac_try) 2>&5 |
| 3795 | ac_status=$? |
| 3796 | echo "$as_me:3796: \$? = $ac_status" >&5 |
| 3797 | (exit $ac_status); }; }; then |
| 3798 | ac_cv_lib_m_sqrt=yes |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3799 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3800 | echo "$as_me: failed program was:" >&5 |
| 3801 | cat conftest.$ac_ext >&5 |
| 3802 | ac_cv_lib_m_sqrt=no |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3803 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3804 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3805 | LIBS=$ac_check_lib_save_LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3806 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3807 | echo "$as_me:3807: result: $ac_cv_lib_m_sqrt" >&5 |
| 3808 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 3809 | if test $ac_cv_lib_m_sqrt = yes; then |
| 3810 | cat >>confdefs.h <<EOF |
| 3811 | #define HAVE_LIBM 1 |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3812 | EOF |
| 3813 | |
| 3814 | LIBS="-lm $LIBS" |
| 3815 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 3816 | fi |
| 3817 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3818 | echo "$as_me:3818: checking for i386_set_ldt in -li386" >&5 |
| 3819 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 3820 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 3821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 3822 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3823 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 3824 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3825 | cat >conftest.$ac_ext <<_ACEOF |
| 3826 | #line 3826 "configure" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 3827 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3828 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3829 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3830 | #ifdef __cplusplus |
| 3831 | extern "C" |
| 3832 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3833 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3834 | builtin and then its argument prototype would still apply. */ |
| 3835 | char i386_set_ldt (); |
| 3836 | int |
| 3837 | main () |
| 3838 | { |
| 3839 | i386_set_ldt (); |
| 3840 | ; |
| 3841 | return 0; |
| 3842 | } |
| 3843 | _ACEOF |
| 3844 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3845 | if { (eval echo "$as_me:3845: \"$ac_link\"") >&5 |
| 3846 | (eval $ac_link) 2>&5 |
| 3847 | ac_status=$? |
| 3848 | echo "$as_me:3848: \$? = $ac_status" >&5 |
| 3849 | (exit $ac_status); } && |
| 3850 | { ac_try='test -s conftest$ac_exeext' |
| 3851 | { (eval echo "$as_me:3851: \"$ac_try\"") >&5 |
| 3852 | (eval $ac_try) 2>&5 |
| 3853 | ac_status=$? |
| 3854 | echo "$as_me:3854: \$? = $ac_status" >&5 |
| 3855 | (exit $ac_status); }; }; then |
| 3856 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 3857 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3858 | echo "$as_me: failed program was:" >&5 |
| 3859 | cat conftest.$ac_ext >&5 |
| 3860 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 3861 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3862 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3863 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 3864 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3865 | echo "$as_me:3865: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
| 3866 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 3867 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
| 3868 | cat >>confdefs.h <<EOF |
| 3869 | #define HAVE_LIBI386 1 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 3870 | EOF |
| 3871 | |
| 3872 | LIBS="-li386 $LIBS" |
| 3873 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 3874 | fi |
| 3875 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3876 | echo "$as_me:3876: checking for _oss_ioctl in -lossaudio" >&5 |
| 3877 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 3878 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 3879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3880 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3881 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3882 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3883 | cat >conftest.$ac_ext <<_ACEOF |
| 3884 | #line 3884 "configure" |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3885 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3886 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3887 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3888 | #ifdef __cplusplus |
| 3889 | extern "C" |
| 3890 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3891 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3892 | builtin and then its argument prototype would still apply. */ |
| 3893 | char _oss_ioctl (); |
| 3894 | int |
| 3895 | main () |
| 3896 | { |
| 3897 | _oss_ioctl (); |
| 3898 | ; |
| 3899 | return 0; |
| 3900 | } |
| 3901 | _ACEOF |
| 3902 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3903 | if { (eval echo "$as_me:3903: \"$ac_link\"") >&5 |
| 3904 | (eval $ac_link) 2>&5 |
| 3905 | ac_status=$? |
| 3906 | echo "$as_me:3906: \$? = $ac_status" >&5 |
| 3907 | (exit $ac_status); } && |
| 3908 | { ac_try='test -s conftest$ac_exeext' |
| 3909 | { (eval echo "$as_me:3909: \"$ac_try\"") >&5 |
| 3910 | (eval $ac_try) 2>&5 |
| 3911 | ac_status=$? |
| 3912 | echo "$as_me:3912: \$? = $ac_status" >&5 |
| 3913 | (exit $ac_status); }; }; then |
| 3914 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3915 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3916 | echo "$as_me: failed program was:" >&5 |
| 3917 | cat conftest.$ac_ext >&5 |
| 3918 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3919 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3920 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3921 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3922 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3923 | echo "$as_me:3923: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 3924 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 3925 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
| 3926 | cat >>confdefs.h <<EOF |
| 3927 | #define HAVE_LIBOSSAUDIO 1 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3928 | EOF |
| 3929 | |
| 3930 | LIBS="-lossaudio $LIBS" |
| 3931 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3932 | fi |
| 3933 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 3934 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3935 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3936 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 3937 | echo "$as_me:3937: checking for $ac_func" >&5 |
| 3938 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 3939 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 3940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3941 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3942 | cat >conftest.$ac_ext <<_ACEOF |
| 3943 | #line 3943 "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3944 | #include "confdefs.h" |
| 3945 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3946 | which can conflict with char $ac_func (); below. */ |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3947 | #include <assert.h> |
| 3948 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3949 | #ifdef __cplusplus |
| 3950 | extern "C" |
| 3951 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3952 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3953 | builtin and then its argument prototype would still apply. */ |
| 3954 | char $ac_func (); |
| 3955 | char (*f) (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3956 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3957 | int |
| 3958 | main () |
| 3959 | { |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3960 | /* The GNU C library defines this for functions which it implements |
| 3961 | to always fail with ENOSYS. Some functions are actually named |
| 3962 | something starting with __ and the normal name is an alias. */ |
| 3963 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3964 | choke me |
| 3965 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3966 | f = $ac_func; |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3967 | #endif |
| 3968 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3969 | ; |
| 3970 | return 0; |
| 3971 | } |
| 3972 | _ACEOF |
| 3973 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3974 | if { (eval echo "$as_me:3974: \"$ac_link\"") >&5 |
| 3975 | (eval $ac_link) 2>&5 |
| 3976 | ac_status=$? |
| 3977 | echo "$as_me:3977: \$? = $ac_status" >&5 |
| 3978 | (exit $ac_status); } && |
| 3979 | { ac_try='test -s conftest$ac_exeext' |
| 3980 | { (eval echo "$as_me:3980: \"$ac_try\"") >&5 |
| 3981 | (eval $ac_try) 2>&5 |
| 3982 | ac_status=$? |
| 3983 | echo "$as_me:3983: \$? = $ac_status" >&5 |
| 3984 | (exit $ac_status); }; }; then |
| 3985 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 3986 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3987 | echo "$as_me: failed program was:" >&5 |
| 3988 | cat conftest.$ac_ext >&5 |
| 3989 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 3990 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3991 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 3992 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 3993 | echo "$as_me:3993: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 3994 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 3995 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 3996 | cat >>confdefs.h <<EOF |
| 3997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 3998 | EOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 3999 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4000 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4001 | |
| 4002 | echo "$as_me:4002: checking for iswalnum in -lw" >&5 |
| 4003 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 4004 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 4005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4006 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4007 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4008 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4009 | cat >conftest.$ac_ext <<_ACEOF |
| 4010 | #line 4010 "configure" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4011 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4012 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4013 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4014 | #ifdef __cplusplus |
| 4015 | extern "C" |
| 4016 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4017 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4018 | builtin and then its argument prototype would still apply. */ |
| 4019 | char iswalnum (); |
| 4020 | int |
| 4021 | main () |
| 4022 | { |
| 4023 | iswalnum (); |
| 4024 | ; |
| 4025 | return 0; |
| 4026 | } |
| 4027 | _ACEOF |
| 4028 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4029 | if { (eval echo "$as_me:4029: \"$ac_link\"") >&5 |
| 4030 | (eval $ac_link) 2>&5 |
| 4031 | ac_status=$? |
| 4032 | echo "$as_me:4032: \$? = $ac_status" >&5 |
| 4033 | (exit $ac_status); } && |
| 4034 | { ac_try='test -s conftest$ac_exeext' |
| 4035 | { (eval echo "$as_me:4035: \"$ac_try\"") >&5 |
| 4036 | (eval $ac_try) 2>&5 |
| 4037 | ac_status=$? |
| 4038 | echo "$as_me:4038: \$? = $ac_status" >&5 |
| 4039 | (exit $ac_status); }; }; then |
| 4040 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4041 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4042 | echo "$as_me: failed program was:" >&5 |
| 4043 | cat conftest.$ac_ext >&5 |
| 4044 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4045 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4046 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4047 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4048 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4049 | echo "$as_me:4049: result: $ac_cv_lib_w_iswalnum" >&5 |
| 4050 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 4051 | if test $ac_cv_lib_w_iswalnum = yes; then |
| 4052 | cat >>confdefs.h <<EOF |
| 4053 | #define HAVE_LIBW 1 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4054 | EOF |
| 4055 | |
| 4056 | LIBS="-lw $LIBS" |
| 4057 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4058 | fi |
| 4059 | |
| 4060 | fi |
| 4061 | done |
| 4062 | |
| 4063 | for ac_func in gethostbyname |
| 4064 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4065 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4066 | echo "$as_me:4066: checking for $ac_func" >&5 |
| 4067 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4068 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4070 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4071 | cat >conftest.$ac_ext <<_ACEOF |
| 4072 | #line 4072 "configure" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4073 | #include "confdefs.h" |
| 4074 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4075 | which can conflict with char $ac_func (); below. */ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4076 | #include <assert.h> |
| 4077 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4078 | #ifdef __cplusplus |
| 4079 | extern "C" |
| 4080 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4081 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4082 | builtin and then its argument prototype would still apply. */ |
| 4083 | char $ac_func (); |
| 4084 | char (*f) (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4085 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4086 | int |
| 4087 | main () |
| 4088 | { |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4089 | /* The GNU C library defines this for functions which it implements |
| 4090 | to always fail with ENOSYS. Some functions are actually named |
| 4091 | something starting with __ and the normal name is an alias. */ |
| 4092 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4093 | choke me |
| 4094 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4095 | f = $ac_func; |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4096 | #endif |
| 4097 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4098 | ; |
| 4099 | return 0; |
| 4100 | } |
| 4101 | _ACEOF |
| 4102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4103 | if { (eval echo "$as_me:4103: \"$ac_link\"") >&5 |
| 4104 | (eval $ac_link) 2>&5 |
| 4105 | ac_status=$? |
| 4106 | echo "$as_me:4106: \$? = $ac_status" >&5 |
| 4107 | (exit $ac_status); } && |
| 4108 | { ac_try='test -s conftest$ac_exeext' |
| 4109 | { (eval echo "$as_me:4109: \"$ac_try\"") >&5 |
| 4110 | (eval $ac_try) 2>&5 |
| 4111 | ac_status=$? |
| 4112 | echo "$as_me:4112: \$? = $ac_status" >&5 |
| 4113 | (exit $ac_status); }; }; then |
| 4114 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4115 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4116 | echo "$as_me: failed program was:" >&5 |
| 4117 | cat conftest.$ac_ext >&5 |
| 4118 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4119 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4120 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4121 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4122 | echo "$as_me:4122: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4123 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4124 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4125 | cat >>confdefs.h <<EOF |
| 4126 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4127 | EOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4128 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4129 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4130 | |
| 4131 | echo "$as_me:4131: checking for gethostbyname in -lnsl" >&5 |
| 4132 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4133 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4135 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4136 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4137 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4138 | cat >conftest.$ac_ext <<_ACEOF |
| 4139 | #line 4139 "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4140 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4141 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4142 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4143 | #ifdef __cplusplus |
| 4144 | extern "C" |
| 4145 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4146 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4147 | builtin and then its argument prototype would still apply. */ |
| 4148 | char gethostbyname (); |
| 4149 | int |
| 4150 | main () |
| 4151 | { |
| 4152 | gethostbyname (); |
| 4153 | ; |
| 4154 | return 0; |
| 4155 | } |
| 4156 | _ACEOF |
| 4157 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4158 | if { (eval echo "$as_me:4158: \"$ac_link\"") >&5 |
| 4159 | (eval $ac_link) 2>&5 |
| 4160 | ac_status=$? |
| 4161 | echo "$as_me:4161: \$? = $ac_status" >&5 |
| 4162 | (exit $ac_status); } && |
| 4163 | { ac_try='test -s conftest$ac_exeext' |
| 4164 | { (eval echo "$as_me:4164: \"$ac_try\"") >&5 |
| 4165 | (eval $ac_try) 2>&5 |
| 4166 | ac_status=$? |
| 4167 | echo "$as_me:4167: \$? = $ac_status" >&5 |
| 4168 | (exit $ac_status); }; }; then |
| 4169 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4170 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4171 | echo "$as_me: failed program was:" >&5 |
| 4172 | cat conftest.$ac_ext >&5 |
| 4173 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4174 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4175 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4176 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4177 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4178 | echo "$as_me:4178: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4179 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 4180 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 4181 | cat >>confdefs.h <<EOF |
| 4182 | #define HAVE_LIBNSL 1 |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 4183 | EOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 4184 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4185 | LIBS="-lnsl $LIBS" |
| 4186 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 4187 | fi |
| 4188 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4189 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4190 | done |
| 4191 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4192 | for ac_func in connect |
| 4193 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4194 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4195 | echo "$as_me:4195: checking for $ac_func" >&5 |
| 4196 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4197 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4199 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4200 | cat >conftest.$ac_ext <<_ACEOF |
| 4201 | #line 4201 "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4202 | #include "confdefs.h" |
| 4203 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4204 | which can conflict with char $ac_func (); below. */ |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4205 | #include <assert.h> |
| 4206 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4207 | #ifdef __cplusplus |
| 4208 | extern "C" |
| 4209 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4210 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4211 | builtin and then its argument prototype would still apply. */ |
| 4212 | char $ac_func (); |
| 4213 | char (*f) (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4214 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4215 | int |
| 4216 | main () |
| 4217 | { |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4218 | /* The GNU C library defines this for functions which it implements |
| 4219 | to always fail with ENOSYS. Some functions are actually named |
| 4220 | something starting with __ and the normal name is an alias. */ |
| 4221 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4222 | choke me |
| 4223 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4224 | f = $ac_func; |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4225 | #endif |
| 4226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4227 | ; |
| 4228 | return 0; |
| 4229 | } |
| 4230 | _ACEOF |
| 4231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4232 | if { (eval echo "$as_me:4232: \"$ac_link\"") >&5 |
| 4233 | (eval $ac_link) 2>&5 |
| 4234 | ac_status=$? |
| 4235 | echo "$as_me:4235: \$? = $ac_status" >&5 |
| 4236 | (exit $ac_status); } && |
| 4237 | { ac_try='test -s conftest$ac_exeext' |
| 4238 | { (eval echo "$as_me:4238: \"$ac_try\"") >&5 |
| 4239 | (eval $ac_try) 2>&5 |
| 4240 | ac_status=$? |
| 4241 | echo "$as_me:4241: \$? = $ac_status" >&5 |
| 4242 | (exit $ac_status); }; }; then |
| 4243 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4244 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4245 | echo "$as_me: failed program was:" >&5 |
| 4246 | cat conftest.$ac_ext >&5 |
| 4247 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4248 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4249 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4250 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4251 | echo "$as_me:4251: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4252 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4253 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4254 | cat >>confdefs.h <<EOF |
| 4255 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4256 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4257 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4258 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4259 | |
| 4260 | echo "$as_me:4260: checking for connect in -lsocket" >&5 |
| 4261 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 4262 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4264 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4265 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4266 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4267 | cat >conftest.$ac_ext <<_ACEOF |
| 4268 | #line 4268 "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4269 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4270 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4271 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4272 | #ifdef __cplusplus |
| 4273 | extern "C" |
| 4274 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4275 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4276 | builtin and then its argument prototype would still apply. */ |
| 4277 | char connect (); |
| 4278 | int |
| 4279 | main () |
| 4280 | { |
| 4281 | connect (); |
| 4282 | ; |
| 4283 | return 0; |
| 4284 | } |
| 4285 | _ACEOF |
| 4286 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4287 | if { (eval echo "$as_me:4287: \"$ac_link\"") >&5 |
| 4288 | (eval $ac_link) 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:4290: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); } && |
| 4292 | { ac_try='test -s conftest$ac_exeext' |
| 4293 | { (eval echo "$as_me:4293: \"$ac_try\"") >&5 |
| 4294 | (eval $ac_try) 2>&5 |
| 4295 | ac_status=$? |
| 4296 | echo "$as_me:4296: \$? = $ac_status" >&5 |
| 4297 | (exit $ac_status); }; }; then |
| 4298 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4299 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4300 | echo "$as_me: failed program was:" >&5 |
| 4301 | cat conftest.$ac_ext >&5 |
| 4302 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4303 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4304 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4305 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4306 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4307 | echo "$as_me:4307: result: $ac_cv_lib_socket_connect" >&5 |
| 4308 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 4309 | if test $ac_cv_lib_socket_connect = yes; then |
| 4310 | cat >>confdefs.h <<EOF |
| 4311 | #define HAVE_LIBSOCKET 1 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4312 | EOF |
| 4313 | |
| 4314 | LIBS="-lsocket $LIBS" |
| 4315 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 4316 | fi |
| 4317 | |
| 4318 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4319 | done |
| 4320 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4321 | echo "$as_me:4321: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 4322 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 4323 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 4324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4325 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4326 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4327 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4328 | cat >conftest.$ac_ext <<_ACEOF |
| 4329 | #line 4329 "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4330 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4331 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4332 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4333 | #ifdef __cplusplus |
| 4334 | extern "C" |
| 4335 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4336 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4337 | builtin and then its argument prototype would still apply. */ |
| 4338 | char _xpg4_setrunelocale (); |
| 4339 | int |
| 4340 | main () |
| 4341 | { |
| 4342 | _xpg4_setrunelocale (); |
| 4343 | ; |
| 4344 | return 0; |
| 4345 | } |
| 4346 | _ACEOF |
| 4347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4348 | if { (eval echo "$as_me:4348: \"$ac_link\"") >&5 |
| 4349 | (eval $ac_link) 2>&5 |
| 4350 | ac_status=$? |
| 4351 | echo "$as_me:4351: \$? = $ac_status" >&5 |
| 4352 | (exit $ac_status); } && |
| 4353 | { ac_try='test -s conftest$ac_exeext' |
| 4354 | { (eval echo "$as_me:4354: \"$ac_try\"") >&5 |
| 4355 | (eval $ac_try) 2>&5 |
| 4356 | ac_status=$? |
| 4357 | echo "$as_me:4357: \$? = $ac_status" >&5 |
| 4358 | (exit $ac_status); }; }; then |
| 4359 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4360 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4361 | echo "$as_me: failed program was:" >&5 |
| 4362 | cat conftest.$ac_ext >&5 |
| 4363 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4364 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4365 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4366 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4367 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4368 | echo "$as_me:4368: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 4369 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 4370 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
| 4371 | cat >>confdefs.h <<EOF |
| 4372 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4373 | EOF |
| 4374 | |
| 4375 | LIBS="-lxpg4 $LIBS" |
| 4376 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4377 | fi |
| 4378 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4379 | echo "$as_me:4379: checking for mmap in -lmmap" >&5 |
| 4380 | echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6 |
| 4381 | if test "${ac_cv_lib_mmap_mmap+set}" = set; then |
| 4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4383 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4384 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4385 | LIBS="-lmmap $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4386 | cat >conftest.$ac_ext <<_ACEOF |
| 4387 | #line 4387 "configure" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4388 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4389 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4390 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4391 | #ifdef __cplusplus |
| 4392 | extern "C" |
| 4393 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4394 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4395 | builtin and then its argument prototype would still apply. */ |
| 4396 | char mmap (); |
| 4397 | int |
| 4398 | main () |
| 4399 | { |
| 4400 | mmap (); |
| 4401 | ; |
| 4402 | return 0; |
| 4403 | } |
| 4404 | _ACEOF |
| 4405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4406 | if { (eval echo "$as_me:4406: \"$ac_link\"") >&5 |
| 4407 | (eval $ac_link) 2>&5 |
| 4408 | ac_status=$? |
| 4409 | echo "$as_me:4409: \$? = $ac_status" >&5 |
| 4410 | (exit $ac_status); } && |
| 4411 | { ac_try='test -s conftest$ac_exeext' |
| 4412 | { (eval echo "$as_me:4412: \"$ac_try\"") >&5 |
| 4413 | (eval $ac_try) 2>&5 |
| 4414 | ac_status=$? |
| 4415 | echo "$as_me:4415: \$? = $ac_status" >&5 |
| 4416 | (exit $ac_status); }; }; then |
| 4417 | ac_cv_lib_mmap_mmap=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4418 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4419 | echo "$as_me: failed program was:" >&5 |
| 4420 | cat conftest.$ac_ext >&5 |
| 4421 | ac_cv_lib_mmap_mmap=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4422 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4423 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4424 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4425 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4426 | echo "$as_me:4426: result: $ac_cv_lib_mmap_mmap" >&5 |
| 4427 | echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6 |
| 4428 | if test $ac_cv_lib_mmap_mmap = yes; then |
| 4429 | cat >>confdefs.h <<EOF |
| 4430 | #define HAVE_LIBMMAP 1 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4431 | EOF |
| 4432 | |
| 4433 | LIBS="-lmmap $LIBS" |
| 4434 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 4435 | fi |
| 4436 | |
Alexandre Julliard | 3f510ad | 2002-01-01 01:13:03 +0000 | [diff] [blame] | 4437 | UTILLIBS="" |
| 4438 | |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4439 | for ac_func in openpty |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4440 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4442 | echo "$as_me:4442: checking for $ac_func" >&5 |
| 4443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4444 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4446 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4447 | cat >conftest.$ac_ext <<_ACEOF |
| 4448 | #line 4448 "configure" |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4449 | #include "confdefs.h" |
| 4450 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4451 | which can conflict with char $ac_func (); below. */ |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4452 | #include <assert.h> |
| 4453 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4454 | #ifdef __cplusplus |
| 4455 | extern "C" |
| 4456 | #endif |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4457 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4458 | builtin and then its argument prototype would still apply. */ |
| 4459 | char $ac_func (); |
| 4460 | char (*f) (); |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4461 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4462 | int |
| 4463 | main () |
| 4464 | { |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4465 | /* The GNU C library defines this for functions which it implements |
| 4466 | to always fail with ENOSYS. Some functions are actually named |
| 4467 | something starting with __ and the normal name is an alias. */ |
| 4468 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4469 | choke me |
| 4470 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4471 | f = $ac_func; |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4472 | #endif |
| 4473 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4474 | ; |
| 4475 | return 0; |
| 4476 | } |
| 4477 | _ACEOF |
| 4478 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4479 | if { (eval echo "$as_me:4479: \"$ac_link\"") >&5 |
| 4480 | (eval $ac_link) 2>&5 |
| 4481 | ac_status=$? |
| 4482 | echo "$as_me:4482: \$? = $ac_status" >&5 |
| 4483 | (exit $ac_status); } && |
| 4484 | { ac_try='test -s conftest$ac_exeext' |
| 4485 | { (eval echo "$as_me:4485: \"$ac_try\"") >&5 |
| 4486 | (eval $ac_try) 2>&5 |
| 4487 | ac_status=$? |
| 4488 | echo "$as_me:4488: \$? = $ac_status" >&5 |
| 4489 | (exit $ac_status); }; }; then |
| 4490 | eval "$as_ac_var=yes" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4491 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4492 | echo "$as_me: failed program was:" >&5 |
| 4493 | cat conftest.$ac_ext >&5 |
| 4494 | eval "$as_ac_var=no" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4495 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4496 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4497 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4498 | echo "$as_me:4498: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4499 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4500 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4501 | cat >>confdefs.h <<EOF |
| 4502 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4503 | EOF |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4504 | |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4505 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4506 | echo "$as_me:4506: checking for openpty in -lutil" >&5 |
| 4507 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 4508 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4510 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4511 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4512 | LIBS="-lutil $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4513 | cat >conftest.$ac_ext <<_ACEOF |
| 4514 | #line 4514 "configure" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4515 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4516 | |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4517 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4518 | #ifdef __cplusplus |
| 4519 | extern "C" |
| 4520 | #endif |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4521 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4522 | builtin and then its argument prototype would still apply. */ |
| 4523 | char openpty (); |
| 4524 | int |
| 4525 | main () |
| 4526 | { |
| 4527 | openpty (); |
| 4528 | ; |
| 4529 | return 0; |
| 4530 | } |
| 4531 | _ACEOF |
| 4532 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4533 | if { (eval echo "$as_me:4533: \"$ac_link\"") >&5 |
| 4534 | (eval $ac_link) 2>&5 |
| 4535 | ac_status=$? |
| 4536 | echo "$as_me:4536: \$? = $ac_status" >&5 |
| 4537 | (exit $ac_status); } && |
| 4538 | { ac_try='test -s conftest$ac_exeext' |
| 4539 | { (eval echo "$as_me:4539: \"$ac_try\"") >&5 |
| 4540 | (eval $ac_try) 2>&5 |
| 4541 | ac_status=$? |
| 4542 | echo "$as_me:4542: \$? = $ac_status" >&5 |
| 4543 | (exit $ac_status); }; }; then |
| 4544 | ac_cv_lib_util_openpty=yes |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4545 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4546 | echo "$as_me: failed program was:" >&5 |
| 4547 | cat conftest.$ac_ext >&5 |
| 4548 | ac_cv_lib_util_openpty=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4549 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4550 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4551 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4552 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4553 | echo "$as_me:4553: result: $ac_cv_lib_util_openpty" >&5 |
| 4554 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 4555 | if test $ac_cv_lib_util_openpty = yes; then |
| 4556 | cat >>confdefs.h <<\EOF |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4557 | #define HAVE_OPENPTY 1 |
| 4558 | EOF |
| 4559 | |
Alexandre Julliard | 3f510ad | 2002-01-01 01:13:03 +0000 | [diff] [blame] | 4560 | UTILLIBS="-lutil" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4561 | |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4562 | fi |
| 4563 | |
| 4564 | fi |
| 4565 | done |
| 4566 | |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 4567 | DLLIBS="" |
| 4568 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4569 | for ac_header in dlfcn.h |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4570 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4571 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4572 | echo "$as_me:4572: checking for $ac_header" >&5 |
| 4573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4576 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4577 | cat >conftest.$ac_ext <<_ACEOF |
| 4578 | #line 4578 "configure" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4579 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4580 | #include <$ac_header> |
| 4581 | _ACEOF |
| 4582 | if { (eval echo "$as_me:4582: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4583 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4584 | ac_status=$? |
| 4585 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4586 | rm -f conftest.er1 |
| 4587 | cat conftest.err >&5 |
| 4588 | echo "$as_me:4588: \$? = $ac_status" >&5 |
| 4589 | (exit $ac_status); } >/dev/null; then |
| 4590 | if test -s conftest.err; then |
| 4591 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4592 | else |
| 4593 | ac_cpp_err= |
| 4594 | fi |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4595 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4596 | ac_cpp_err=yes |
| 4597 | fi |
| 4598 | if test -z "$ac_cpp_err"; then |
| 4599 | eval "$as_ac_Header=yes" |
| 4600 | else |
| 4601 | echo "$as_me: failed program was:" >&5 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4602 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4603 | eval "$as_ac_Header=no" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4604 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4605 | rm -f conftest.err conftest.$ac_ext |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4606 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4607 | echo "$as_me:4607: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4609 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4610 | cat >>confdefs.h <<EOF |
| 4611 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4612 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4613 | |
| 4614 | for ac_func in dlopen |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4615 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4616 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4617 | echo "$as_me:4617: checking for $ac_func" >&5 |
| 4618 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4619 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4621 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4622 | cat >conftest.$ac_ext <<_ACEOF |
| 4623 | #line 4623 "configure" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4624 | #include "confdefs.h" |
| 4625 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4626 | which can conflict with char $ac_func (); below. */ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4627 | #include <assert.h> |
| 4628 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4629 | #ifdef __cplusplus |
| 4630 | extern "C" |
| 4631 | #endif |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4632 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4633 | builtin and then its argument prototype would still apply. */ |
| 4634 | char $ac_func (); |
| 4635 | char (*f) (); |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4636 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4637 | int |
| 4638 | main () |
| 4639 | { |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4640 | /* The GNU C library defines this for functions which it implements |
| 4641 | to always fail with ENOSYS. Some functions are actually named |
| 4642 | something starting with __ and the normal name is an alias. */ |
| 4643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4644 | choke me |
| 4645 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4646 | f = $ac_func; |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 4647 | #endif |
| 4648 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4649 | ; |
| 4650 | return 0; |
| 4651 | } |
| 4652 | _ACEOF |
| 4653 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4654 | if { (eval echo "$as_me:4654: \"$ac_link\"") >&5 |
| 4655 | (eval $ac_link) 2>&5 |
| 4656 | ac_status=$? |
| 4657 | echo "$as_me:4657: \$? = $ac_status" >&5 |
| 4658 | (exit $ac_status); } && |
| 4659 | { ac_try='test -s conftest$ac_exeext' |
| 4660 | { (eval echo "$as_me:4660: \"$ac_try\"") >&5 |
| 4661 | (eval $ac_try) 2>&5 |
| 4662 | ac_status=$? |
| 4663 | echo "$as_me:4663: \$? = $ac_status" >&5 |
| 4664 | (exit $ac_status); }; }; then |
| 4665 | eval "$as_ac_var=yes" |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4666 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4667 | echo "$as_me: failed program was:" >&5 |
| 4668 | cat conftest.$ac_ext >&5 |
| 4669 | eval "$as_ac_var=no" |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4670 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4671 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4672 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4673 | echo "$as_me:4673: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4674 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4675 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4676 | cat >>confdefs.h <<EOF |
| 4677 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4678 | EOF |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4679 | |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4680 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4681 | echo "$as_me:4681: checking for dlopen in -ldl" >&5 |
| 4682 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 4683 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 4684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4685 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4686 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4687 | LIBS="-ldl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4688 | cat >conftest.$ac_ext <<_ACEOF |
| 4689 | #line 4689 "configure" |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4690 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4691 | |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4692 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4693 | #ifdef __cplusplus |
| 4694 | extern "C" |
| 4695 | #endif |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4696 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4697 | builtin and then its argument prototype would still apply. */ |
| 4698 | char dlopen (); |
| 4699 | int |
| 4700 | main () |
| 4701 | { |
| 4702 | dlopen (); |
| 4703 | ; |
| 4704 | return 0; |
| 4705 | } |
| 4706 | _ACEOF |
| 4707 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4708 | if { (eval echo "$as_me:4708: \"$ac_link\"") >&5 |
| 4709 | (eval $ac_link) 2>&5 |
| 4710 | ac_status=$? |
| 4711 | echo "$as_me:4711: \$? = $ac_status" >&5 |
| 4712 | (exit $ac_status); } && |
| 4713 | { ac_try='test -s conftest$ac_exeext' |
| 4714 | { (eval echo "$as_me:4714: \"$ac_try\"") >&5 |
| 4715 | (eval $ac_try) 2>&5 |
| 4716 | ac_status=$? |
| 4717 | echo "$as_me:4717: \$? = $ac_status" >&5 |
| 4718 | (exit $ac_status); }; }; then |
| 4719 | ac_cv_lib_dl_dlopen=yes |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4720 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4721 | echo "$as_me: failed program was:" >&5 |
| 4722 | cat conftest.$ac_ext >&5 |
| 4723 | ac_cv_lib_dl_dlopen=no |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4724 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4725 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4726 | LIBS=$ac_check_lib_save_LIBS |
| 4727 | fi |
| 4728 | echo "$as_me:4728: result: $ac_cv_lib_dl_dlopen" >&5 |
| 4729 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 4730 | if test $ac_cv_lib_dl_dlopen = yes; then |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4731 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4732 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4733 | #define HAVE_DLOPEN 1 |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4734 | EOF |
| 4735 | |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 4736 | DLLIBS="-ldl" |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4737 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4738 | LIBEXT="a" |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4739 | fi |
| 4740 | |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4741 | fi |
| 4742 | done |
| 4743 | |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4744 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4745 | LIBEXT="a" |
| 4746 | |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4747 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 4748 | done |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 4749 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4750 | JPEGLIB="" |
| 4751 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4752 | for ac_header in jpeglib.h |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4753 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4754 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4755 | echo "$as_me:4755: checking for $ac_header" >&5 |
| 4756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4757 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4759 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4760 | cat >conftest.$ac_ext <<_ACEOF |
| 4761 | #line 4761 "configure" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4762 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4763 | #include <$ac_header> |
| 4764 | _ACEOF |
| 4765 | if { (eval echo "$as_me:4765: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4767 | ac_status=$? |
| 4768 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4769 | rm -f conftest.er1 |
| 4770 | cat conftest.err >&5 |
| 4771 | echo "$as_me:4771: \$? = $ac_status" >&5 |
| 4772 | (exit $ac_status); } >/dev/null; then |
| 4773 | if test -s conftest.err; then |
| 4774 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4775 | else |
| 4776 | ac_cpp_err= |
| 4777 | fi |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4778 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4779 | ac_cpp_err=yes |
| 4780 | fi |
| 4781 | if test -z "$ac_cpp_err"; then |
| 4782 | eval "$as_ac_Header=yes" |
| 4783 | else |
| 4784 | echo "$as_me: failed program was:" >&5 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4785 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4786 | eval "$as_ac_Header=no" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4787 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4788 | rm -f conftest.err conftest.$ac_ext |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4789 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4790 | echo "$as_me:4790: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4793 | cat >>confdefs.h <<EOF |
| 4794 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4795 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4796 | echo "$as_me:4796: checking for jpeg_start_decompress in -ljpeg" >&5 |
| 4797 | echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 |
| 4798 | if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then |
| 4799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4800 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4801 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4802 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4803 | cat >conftest.$ac_ext <<_ACEOF |
| 4804 | #line 4804 "configure" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4805 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4806 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4807 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4808 | #ifdef __cplusplus |
| 4809 | extern "C" |
| 4810 | #endif |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4811 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4812 | builtin and then its argument prototype would still apply. */ |
| 4813 | char jpeg_start_decompress (); |
| 4814 | int |
| 4815 | main () |
| 4816 | { |
| 4817 | jpeg_start_decompress (); |
| 4818 | ; |
| 4819 | return 0; |
| 4820 | } |
| 4821 | _ACEOF |
| 4822 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4823 | if { (eval echo "$as_me:4823: \"$ac_link\"") >&5 |
| 4824 | (eval $ac_link) 2>&5 |
| 4825 | ac_status=$? |
| 4826 | echo "$as_me:4826: \$? = $ac_status" >&5 |
| 4827 | (exit $ac_status); } && |
| 4828 | { ac_try='test -s conftest$ac_exeext' |
| 4829 | { (eval echo "$as_me:4829: \"$ac_try\"") >&5 |
| 4830 | (eval $ac_try) 2>&5 |
| 4831 | ac_status=$? |
| 4832 | echo "$as_me:4832: \$? = $ac_status" >&5 |
| 4833 | (exit $ac_status); }; }; then |
| 4834 | ac_cv_lib_jpeg_jpeg_start_decompress=yes |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4835 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4836 | echo "$as_me: failed program was:" >&5 |
| 4837 | cat conftest.$ac_ext >&5 |
| 4838 | ac_cv_lib_jpeg_jpeg_start_decompress=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4839 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4840 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4841 | LIBS=$ac_check_lib_save_LIBS |
| 4842 | fi |
| 4843 | echo "$as_me:4843: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 |
| 4844 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 |
| 4845 | if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4846 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4847 | cat >>confdefs.h <<\EOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4848 | #define HAVE_LIBJPEG 1 |
| 4849 | EOF |
| 4850 | |
| 4851 | JPEGLIB="-ljpeg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4852 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4853 | fi |
| 4854 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 4855 | fi |
| 4856 | done |
| 4857 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 4858 | XFILES="" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 4859 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4860 | OPENGLFILES="" |
| 4861 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 4862 | GLU32FILES="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4863 | if test "$have_x" = "yes" |
| 4864 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4865 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 4866 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 4867 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4868 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4869 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 4870 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4872 | echo "$as_me:4872: checking for $ac_header" >&5 |
| 4873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 4876 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4877 | cat >conftest.$ac_ext <<_ACEOF |
| 4878 | #line 4878 "configure" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 4879 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4880 | #include <$ac_header> |
| 4881 | _ACEOF |
| 4882 | if { (eval echo "$as_me:4882: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4883 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4884 | ac_status=$? |
| 4885 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4886 | rm -f conftest.er1 |
| 4887 | cat conftest.err >&5 |
| 4888 | echo "$as_me:4888: \$? = $ac_status" >&5 |
| 4889 | (exit $ac_status); } >/dev/null; then |
| 4890 | if test -s conftest.err; then |
| 4891 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4892 | else |
| 4893 | ac_cpp_err= |
| 4894 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 4895 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4896 | ac_cpp_err=yes |
| 4897 | fi |
| 4898 | if test -z "$ac_cpp_err"; then |
| 4899 | eval "$as_ac_Header=yes" |
| 4900 | else |
| 4901 | echo "$as_me: failed program was:" >&5 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 4902 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4903 | eval "$as_ac_Header=no" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 4904 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4905 | rm -f conftest.err conftest.$ac_ext |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 4906 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4907 | echo "$as_me:4907: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4909 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4910 | cat >>confdefs.h <<EOF |
| 4911 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 4912 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4913 | |
| 4914 | for ac_header in X11/XKBlib.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 4915 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4917 | echo "$as_me:4917: checking for $ac_header" >&5 |
| 4918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4921 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4922 | cat >conftest.$ac_ext <<_ACEOF |
| 4923 | #line 4923 "configure" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 4924 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4925 | #include <$ac_header> |
| 4926 | _ACEOF |
| 4927 | if { (eval echo "$as_me:4927: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4929 | ac_status=$? |
| 4930 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4931 | rm -f conftest.er1 |
| 4932 | cat conftest.err >&5 |
| 4933 | echo "$as_me:4933: \$? = $ac_status" >&5 |
| 4934 | (exit $ac_status); } >/dev/null; then |
| 4935 | if test -s conftest.err; then |
| 4936 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4937 | else |
| 4938 | ac_cpp_err= |
| 4939 | fi |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 4940 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4941 | ac_cpp_err=yes |
| 4942 | fi |
| 4943 | if test -z "$ac_cpp_err"; then |
| 4944 | eval "$as_ac_Header=yes" |
| 4945 | else |
| 4946 | echo "$as_me: failed program was:" >&5 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 4947 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4948 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4949 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4950 | rm -f conftest.err conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 4951 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4952 | echo "$as_me:4952: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4954 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4955 | cat >>confdefs.h <<EOF |
| 4956 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 4957 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4958 | echo "$as_me:4958: checking for XkbQueryExtension in -lX11" >&5 |
| 4959 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 4960 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 4961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4962 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4963 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 4964 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4965 | cat >conftest.$ac_ext <<_ACEOF |
| 4966 | #line 4966 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4967 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4968 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4969 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4970 | #ifdef __cplusplus |
| 4971 | extern "C" |
| 4972 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4973 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4974 | builtin and then its argument prototype would still apply. */ |
| 4975 | char XkbQueryExtension (); |
| 4976 | int |
| 4977 | main () |
| 4978 | { |
| 4979 | XkbQueryExtension (); |
| 4980 | ; |
| 4981 | return 0; |
| 4982 | } |
| 4983 | _ACEOF |
| 4984 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4985 | if { (eval echo "$as_me:4985: \"$ac_link\"") >&5 |
| 4986 | (eval $ac_link) 2>&5 |
| 4987 | ac_status=$? |
| 4988 | echo "$as_me:4988: \$? = $ac_status" >&5 |
| 4989 | (exit $ac_status); } && |
| 4990 | { ac_try='test -s conftest$ac_exeext' |
| 4991 | { (eval echo "$as_me:4991: \"$ac_try\"") >&5 |
| 4992 | (eval $ac_try) 2>&5 |
| 4993 | ac_status=$? |
| 4994 | echo "$as_me:4994: \$? = $ac_status" >&5 |
| 4995 | (exit $ac_status); }; }; then |
| 4996 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4997 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 4998 | echo "$as_me: failed program was:" >&5 |
| 4999 | cat conftest.$ac_ext >&5 |
| 5000 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5001 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5002 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5003 | LIBS=$ac_check_lib_save_LIBS |
| 5004 | fi |
| 5005 | echo "$as_me:5005: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
| 5006 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 5007 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5008 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5009 | cat >>confdefs.h <<\EOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5010 | #define HAVE_XKB 1 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5011 | EOF |
| 5012 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5013 | fi |
| 5014 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5015 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5016 | { echo "$as_me:5016: WARNING: Xkb extension not found, Wine will be built without it" >&5 |
| 5017 | echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;} |
| 5018 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5019 | fi |
| 5020 | done |
| 5021 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5022 | for ac_header in X11/extensions/XShm.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5023 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5024 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5025 | echo "$as_me:5025: checking for $ac_header" >&5 |
| 5026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5029 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5030 | cat >conftest.$ac_ext <<_ACEOF |
| 5031 | #line 5031 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5032 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5033 | #include <$ac_header> |
| 5034 | _ACEOF |
| 5035 | if { (eval echo "$as_me:5035: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5037 | ac_status=$? |
| 5038 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5039 | rm -f conftest.er1 |
| 5040 | cat conftest.err >&5 |
| 5041 | echo "$as_me:5041: \$? = $ac_status" >&5 |
| 5042 | (exit $ac_status); } >/dev/null; then |
| 5043 | if test -s conftest.err; then |
| 5044 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5045 | else |
| 5046 | ac_cpp_err= |
| 5047 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5048 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5049 | ac_cpp_err=yes |
| 5050 | fi |
| 5051 | if test -z "$ac_cpp_err"; then |
| 5052 | eval "$as_ac_Header=yes" |
| 5053 | else |
| 5054 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5055 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5056 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5057 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5058 | rm -f conftest.err conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5059 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5060 | echo "$as_me:5060: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5062 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5063 | cat >>confdefs.h <<EOF |
| 5064 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5065 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5066 | echo "$as_me:5066: checking for XShmQueryExtension in -lXext" >&5 |
| 5067 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 5068 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 5069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5070 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5071 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5072 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5073 | cat >conftest.$ac_ext <<_ACEOF |
| 5074 | #line 5074 "configure" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5075 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5076 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5077 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5078 | #ifdef __cplusplus |
| 5079 | extern "C" |
| 5080 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5081 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5082 | builtin and then its argument prototype would still apply. */ |
| 5083 | char XShmQueryExtension (); |
| 5084 | int |
| 5085 | main () |
| 5086 | { |
| 5087 | XShmQueryExtension (); |
| 5088 | ; |
| 5089 | return 0; |
| 5090 | } |
| 5091 | _ACEOF |
| 5092 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5093 | if { (eval echo "$as_me:5093: \"$ac_link\"") >&5 |
| 5094 | (eval $ac_link) 2>&5 |
| 5095 | ac_status=$? |
| 5096 | echo "$as_me:5096: \$? = $ac_status" >&5 |
| 5097 | (exit $ac_status); } && |
| 5098 | { ac_try='test -s conftest$ac_exeext' |
| 5099 | { (eval echo "$as_me:5099: \"$ac_try\"") >&5 |
| 5100 | (eval $ac_try) 2>&5 |
| 5101 | ac_status=$? |
| 5102 | echo "$as_me:5102: \$? = $ac_status" >&5 |
| 5103 | (exit $ac_status); }; }; then |
| 5104 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5105 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5106 | echo "$as_me: failed program was:" >&5 |
| 5107 | cat conftest.$ac_ext >&5 |
| 5108 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5109 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5110 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5111 | LIBS=$ac_check_lib_save_LIBS |
| 5112 | fi |
| 5113 | echo "$as_me:5113: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
| 5114 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 5115 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5116 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5117 | cat >>confdefs.h <<\EOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5118 | #define HAVE_LIBXXSHM 1 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5119 | EOF |
| 5120 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5121 | fi |
| 5122 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5123 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5124 | { echo "$as_me:5124: WARNING: XShm extension not found, Wine will be built without it" >&5 |
| 5125 | echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;} |
| 5126 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5127 | fi |
| 5128 | done |
| 5129 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5130 | for ac_header in X11/extensions/shape.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5131 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5132 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5133 | echo "$as_me:5133: checking for $ac_header" >&5 |
| 5134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5137 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5138 | cat >conftest.$ac_ext <<_ACEOF |
| 5139 | #line 5139 "configure" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5140 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5141 | #include <$ac_header> |
| 5142 | _ACEOF |
| 5143 | if { (eval echo "$as_me:5143: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5145 | ac_status=$? |
| 5146 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5147 | rm -f conftest.er1 |
| 5148 | cat conftest.err >&5 |
| 5149 | echo "$as_me:5149: \$? = $ac_status" >&5 |
| 5150 | (exit $ac_status); } >/dev/null; then |
| 5151 | if test -s conftest.err; then |
| 5152 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5153 | else |
| 5154 | ac_cpp_err= |
| 5155 | fi |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5156 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5157 | ac_cpp_err=yes |
| 5158 | fi |
| 5159 | if test -z "$ac_cpp_err"; then |
| 5160 | eval "$as_ac_Header=yes" |
| 5161 | else |
| 5162 | echo "$as_me: failed program was:" >&5 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5163 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5164 | eval "$as_ac_Header=no" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5165 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5166 | rm -f conftest.err conftest.$ac_ext |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5167 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5168 | echo "$as_me:5168: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5169 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5170 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5171 | cat >>confdefs.h <<EOF |
| 5172 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 5173 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5174 | echo "$as_me:5174: checking for XShapeQueryExtension in -lXext" >&5 |
| 5175 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 5176 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5178 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5179 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5180 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5181 | cat >conftest.$ac_ext <<_ACEOF |
| 5182 | #line 5182 "configure" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5183 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5184 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5185 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5186 | #ifdef __cplusplus |
| 5187 | extern "C" |
| 5188 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5189 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5190 | builtin and then its argument prototype would still apply. */ |
| 5191 | char XShapeQueryExtension (); |
| 5192 | int |
| 5193 | main () |
| 5194 | { |
| 5195 | XShapeQueryExtension (); |
| 5196 | ; |
| 5197 | return 0; |
| 5198 | } |
| 5199 | _ACEOF |
| 5200 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5201 | if { (eval echo "$as_me:5201: \"$ac_link\"") >&5 |
| 5202 | (eval $ac_link) 2>&5 |
| 5203 | ac_status=$? |
| 5204 | echo "$as_me:5204: \$? = $ac_status" >&5 |
| 5205 | (exit $ac_status); } && |
| 5206 | { ac_try='test -s conftest$ac_exeext' |
| 5207 | { (eval echo "$as_me:5207: \"$ac_try\"") >&5 |
| 5208 | (eval $ac_try) 2>&5 |
| 5209 | ac_status=$? |
| 5210 | echo "$as_me:5210: \$? = $ac_status" >&5 |
| 5211 | (exit $ac_status); }; }; then |
| 5212 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5213 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5214 | echo "$as_me: failed program was:" >&5 |
| 5215 | cat conftest.$ac_ext >&5 |
| 5216 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5217 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5218 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5219 | LIBS=$ac_check_lib_save_LIBS |
| 5220 | fi |
| 5221 | echo "$as_me:5221: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 5222 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 5223 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5224 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5225 | cat >>confdefs.h <<\EOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5226 | #define HAVE_LIBXSHAPE 1 |
| 5227 | EOF |
| 5228 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5229 | fi |
| 5230 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5231 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5232 | { echo "$as_me:5232: WARNING: XShape extension not found, Wine will be built without it" >&5 |
| 5233 | echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;} |
| 5234 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5235 | fi |
| 5236 | done |
| 5237 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5238 | for ac_header in X11/extensions/xf86dga.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5239 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5240 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5241 | echo "$as_me:5241: checking for $ac_header" >&5 |
| 5242 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5245 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5246 | cat >conftest.$ac_ext <<_ACEOF |
| 5247 | #line 5247 "configure" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5248 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5249 | #include <$ac_header> |
| 5250 | _ACEOF |
| 5251 | if { (eval echo "$as_me:5251: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5253 | ac_status=$? |
| 5254 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5255 | rm -f conftest.er1 |
| 5256 | cat conftest.err >&5 |
| 5257 | echo "$as_me:5257: \$? = $ac_status" >&5 |
| 5258 | (exit $ac_status); } >/dev/null; then |
| 5259 | if test -s conftest.err; then |
| 5260 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5261 | else |
| 5262 | ac_cpp_err= |
| 5263 | fi |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5264 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5265 | ac_cpp_err=yes |
| 5266 | fi |
| 5267 | if test -z "$ac_cpp_err"; then |
| 5268 | eval "$as_ac_Header=yes" |
| 5269 | else |
| 5270 | echo "$as_me: failed program was:" >&5 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5271 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5272 | eval "$as_ac_Header=no" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5273 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5274 | rm -f conftest.err conftest.$ac_ext |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5275 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5276 | echo "$as_me:5276: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5277 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5278 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5279 | cat >>confdefs.h <<EOF |
| 5280 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5281 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5282 | echo "$as_me:5282: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
| 5283 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 5284 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5286 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5287 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 5288 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5289 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5290 | cat >conftest.$ac_ext <<_ACEOF |
| 5291 | #line 5291 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5292 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5293 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5294 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5295 | #ifdef __cplusplus |
| 5296 | extern "C" |
| 5297 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5298 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5299 | builtin and then its argument prototype would still apply. */ |
| 5300 | char XDGAQueryExtension (); |
| 5301 | int |
| 5302 | main () |
| 5303 | { |
| 5304 | XDGAQueryExtension (); |
| 5305 | ; |
| 5306 | return 0; |
| 5307 | } |
| 5308 | _ACEOF |
| 5309 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5310 | if { (eval echo "$as_me:5310: \"$ac_link\"") >&5 |
| 5311 | (eval $ac_link) 2>&5 |
| 5312 | ac_status=$? |
| 5313 | echo "$as_me:5313: \$? = $ac_status" >&5 |
| 5314 | (exit $ac_status); } && |
| 5315 | { ac_try='test -s conftest$ac_exeext' |
| 5316 | { (eval echo "$as_me:5316: \"$ac_try\"") >&5 |
| 5317 | (eval $ac_try) 2>&5 |
| 5318 | ac_status=$? |
| 5319 | echo "$as_me:5319: \$? = $ac_status" >&5 |
| 5320 | (exit $ac_status); }; }; then |
| 5321 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5322 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5323 | echo "$as_me: failed program was:" >&5 |
| 5324 | cat conftest.$ac_ext >&5 |
| 5325 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5326 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5327 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5328 | LIBS=$ac_check_lib_save_LIBS |
| 5329 | fi |
| 5330 | echo "$as_me:5330: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
| 5331 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 5332 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5333 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5334 | cat >>confdefs.h <<\EOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5335 | #define HAVE_LIBXXF86DGA2 1 |
| 5336 | EOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 5337 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5338 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5339 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5340 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5341 | echo "$as_me:5341: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
| 5342 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 5343 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then |
| 5344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5345 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5346 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5347 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 5348 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5349 | cat >conftest.$ac_ext <<_ACEOF |
| 5350 | #line 5350 "configure" |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5351 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5352 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5353 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5354 | #ifdef __cplusplus |
| 5355 | extern "C" |
| 5356 | #endif |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 5357 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5358 | builtin and then its argument prototype would still apply. */ |
| 5359 | char XF86DGAQueryExtension (); |
| 5360 | int |
| 5361 | main () |
| 5362 | { |
| 5363 | XF86DGAQueryExtension (); |
| 5364 | ; |
| 5365 | return 0; |
| 5366 | } |
| 5367 | _ACEOF |
| 5368 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5369 | if { (eval echo "$as_me:5369: \"$ac_link\"") >&5 |
| 5370 | (eval $ac_link) 2>&5 |
| 5371 | ac_status=$? |
| 5372 | echo "$as_me:5372: \$? = $ac_status" >&5 |
| 5373 | (exit $ac_status); } && |
| 5374 | { ac_try='test -s conftest$ac_exeext' |
| 5375 | { (eval echo "$as_me:5375: \"$ac_try\"") >&5 |
| 5376 | (eval $ac_try) 2>&5 |
| 5377 | ac_status=$? |
| 5378 | echo "$as_me:5378: \$? = $ac_status" >&5 |
| 5379 | (exit $ac_status); }; }; then |
| 5380 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5381 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5382 | echo "$as_me: failed program was:" >&5 |
| 5383 | cat conftest.$ac_ext >&5 |
| 5384 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5385 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5386 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5387 | LIBS=$ac_check_lib_save_LIBS |
| 5388 | fi |
| 5389 | echo "$as_me:5389: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
| 5390 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
| 5391 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5392 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5393 | cat >>confdefs.h <<\EOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5394 | #define HAVE_LIBXXF86DGA 1 |
| 5395 | EOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 5396 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5397 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5398 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5399 | fi |
| 5400 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5401 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5402 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5403 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5404 | { echo "$as_me:5404: WARNING: DGA extension not found, Wine will be built without it" >&5 |
| 5405 | echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;} |
| 5406 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5407 | fi |
| 5408 | done |
| 5409 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5410 | for ac_header in X11/extensions/xf86vmode.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5411 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5413 | echo "$as_me:5413: checking for $ac_header" >&5 |
| 5414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5417 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5418 | cat >conftest.$ac_ext <<_ACEOF |
| 5419 | #line 5419 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5420 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5421 | #include <$ac_header> |
| 5422 | _ACEOF |
| 5423 | if { (eval echo "$as_me:5423: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5424 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5425 | ac_status=$? |
| 5426 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5427 | rm -f conftest.er1 |
| 5428 | cat conftest.err >&5 |
| 5429 | echo "$as_me:5429: \$? = $ac_status" >&5 |
| 5430 | (exit $ac_status); } >/dev/null; then |
| 5431 | if test -s conftest.err; then |
| 5432 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5433 | else |
| 5434 | ac_cpp_err= |
| 5435 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5436 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5437 | ac_cpp_err=yes |
| 5438 | fi |
| 5439 | if test -z "$ac_cpp_err"; then |
| 5440 | eval "$as_ac_Header=yes" |
| 5441 | else |
| 5442 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5443 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5444 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5445 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5446 | rm -f conftest.err conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5447 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5448 | echo "$as_me:5448: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5449 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5450 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5451 | cat >>confdefs.h <<EOF |
| 5452 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5453 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5454 | echo "$as_me:5454: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
| 5455 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 5456 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 5457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5458 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5459 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5460 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 5461 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5462 | cat >conftest.$ac_ext <<_ACEOF |
| 5463 | #line 5463 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5464 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5465 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5466 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5467 | #ifdef __cplusplus |
| 5468 | extern "C" |
| 5469 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5470 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5471 | builtin and then its argument prototype would still apply. */ |
| 5472 | char XF86VidModeQueryExtension (); |
| 5473 | int |
| 5474 | main () |
| 5475 | { |
| 5476 | XF86VidModeQueryExtension (); |
| 5477 | ; |
| 5478 | return 0; |
| 5479 | } |
| 5480 | _ACEOF |
| 5481 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5482 | if { (eval echo "$as_me:5482: \"$ac_link\"") >&5 |
| 5483 | (eval $ac_link) 2>&5 |
| 5484 | ac_status=$? |
| 5485 | echo "$as_me:5485: \$? = $ac_status" >&5 |
| 5486 | (exit $ac_status); } && |
| 5487 | { ac_try='test -s conftest$ac_exeext' |
| 5488 | { (eval echo "$as_me:5488: \"$ac_try\"") >&5 |
| 5489 | (eval $ac_try) 2>&5 |
| 5490 | ac_status=$? |
| 5491 | echo "$as_me:5491: \$? = $ac_status" >&5 |
| 5492 | (exit $ac_status); }; }; then |
| 5493 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5494 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5495 | echo "$as_me: failed program was:" >&5 |
| 5496 | cat conftest.$ac_ext >&5 |
| 5497 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5498 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5499 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5500 | LIBS=$ac_check_lib_save_LIBS |
| 5501 | fi |
| 5502 | echo "$as_me:5502: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
| 5503 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 5504 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5505 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5506 | cat >>confdefs.h <<\EOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5507 | #define HAVE_LIBXXF86VM 1 |
| 5508 | EOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5509 | |
| 5510 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5511 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5512 | fi |
| 5513 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5514 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5515 | { echo "$as_me:5515: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5 |
| 5516 | echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;} |
| 5517 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5518 | fi |
| 5519 | done |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 5520 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5521 | for ac_header in X11/extensions/Xvlib.h |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5522 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5523 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5524 | echo "$as_me:5524: checking for $ac_header" >&5 |
| 5525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5528 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5529 | cat >conftest.$ac_ext <<_ACEOF |
| 5530 | #line 5530 "configure" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5531 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5532 | #include <$ac_header> |
| 5533 | _ACEOF |
| 5534 | if { (eval echo "$as_me:5534: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5535 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5536 | ac_status=$? |
| 5537 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5538 | rm -f conftest.er1 |
| 5539 | cat conftest.err >&5 |
| 5540 | echo "$as_me:5540: \$? = $ac_status" >&5 |
| 5541 | (exit $ac_status); } >/dev/null; then |
| 5542 | if test -s conftest.err; then |
| 5543 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5544 | else |
| 5545 | ac_cpp_err= |
| 5546 | fi |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5547 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5548 | ac_cpp_err=yes |
| 5549 | fi |
| 5550 | if test -z "$ac_cpp_err"; then |
| 5551 | eval "$as_ac_Header=yes" |
| 5552 | else |
| 5553 | echo "$as_me: failed program was:" >&5 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5554 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5555 | eval "$as_ac_Header=no" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5556 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5557 | rm -f conftest.err conftest.$ac_ext |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5558 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5559 | echo "$as_me:5559: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5560 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5562 | cat >>confdefs.h <<EOF |
| 5563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5564 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5565 | echo "$as_me:5565: checking for XvShmCreateImage in -lXv" >&5 |
| 5566 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
| 5567 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then |
| 5568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5569 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5570 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5571 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 5572 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5573 | cat >conftest.$ac_ext <<_ACEOF |
| 5574 | #line 5574 "configure" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5575 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5576 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5577 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5578 | #ifdef __cplusplus |
| 5579 | extern "C" |
| 5580 | #endif |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5581 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5582 | builtin and then its argument prototype would still apply. */ |
| 5583 | char XvShmCreateImage (); |
| 5584 | int |
| 5585 | main () |
| 5586 | { |
| 5587 | XvShmCreateImage (); |
| 5588 | ; |
| 5589 | return 0; |
| 5590 | } |
| 5591 | _ACEOF |
| 5592 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5593 | if { (eval echo "$as_me:5593: \"$ac_link\"") >&5 |
| 5594 | (eval $ac_link) 2>&5 |
| 5595 | ac_status=$? |
| 5596 | echo "$as_me:5596: \$? = $ac_status" >&5 |
| 5597 | (exit $ac_status); } && |
| 5598 | { ac_try='test -s conftest$ac_exeext' |
| 5599 | { (eval echo "$as_me:5599: \"$ac_try\"") >&5 |
| 5600 | (eval $ac_try) 2>&5 |
| 5601 | ac_status=$? |
| 5602 | echo "$as_me:5602: \$? = $ac_status" >&5 |
| 5603 | (exit $ac_status); }; }; then |
| 5604 | ac_cv_lib_Xv_XvShmCreateImage=yes |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5605 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5606 | echo "$as_me: failed program was:" >&5 |
| 5607 | cat conftest.$ac_ext >&5 |
| 5608 | ac_cv_lib_Xv_XvShmCreateImage=no |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5609 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5610 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5611 | LIBS=$ac_check_lib_save_LIBS |
| 5612 | fi |
| 5613 | echo "$as_me:5613: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
| 5614 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
| 5615 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5616 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5617 | cat >>confdefs.h <<\EOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5618 | #define HAVE_XVIDEO 1 |
| 5619 | EOF |
| 5620 | |
| 5621 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5622 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5623 | fi |
| 5624 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5625 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5626 | { echo "$as_me:5626: WARNING: XVideo extension not found, Wine will be built without it" >&5 |
| 5627 | echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;} |
| 5628 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 5629 | fi |
| 5630 | done |
| 5631 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5632 | for ac_header in X11/extensions/Xrender.h |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5633 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5634 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5635 | echo "$as_me:5635: checking for $ac_header" >&5 |
| 5636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5639 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5640 | cat >conftest.$ac_ext <<_ACEOF |
| 5641 | #line 5641 "configure" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5642 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5643 | #include <$ac_header> |
| 5644 | _ACEOF |
| 5645 | if { (eval echo "$as_me:5645: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5646 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5647 | ac_status=$? |
| 5648 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5649 | rm -f conftest.er1 |
| 5650 | cat conftest.err >&5 |
| 5651 | echo "$as_me:5651: \$? = $ac_status" >&5 |
| 5652 | (exit $ac_status); } >/dev/null; then |
| 5653 | if test -s conftest.err; then |
| 5654 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5655 | else |
| 5656 | ac_cpp_err= |
| 5657 | fi |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5658 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5659 | ac_cpp_err=yes |
| 5660 | fi |
| 5661 | if test -z "$ac_cpp_err"; then |
| 5662 | eval "$as_ac_Header=yes" |
| 5663 | else |
| 5664 | echo "$as_me: failed program was:" >&5 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5665 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5666 | eval "$as_ac_Header=no" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5667 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5668 | rm -f conftest.err conftest.$ac_ext |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5669 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5670 | echo "$as_me:5670: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5672 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5673 | cat >>confdefs.h <<EOF |
| 5674 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5675 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5676 | echo "$as_me:5676: checking for XRenderQueryExtension in -lXrender" >&5 |
| 5677 | echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6 |
| 5678 | if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then |
| 5679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5680 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5681 | ac_check_lib_save_LIBS=$LIBS |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5682 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 5683 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5684 | cat >conftest.$ac_ext <<_ACEOF |
| 5685 | #line 5685 "configure" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5686 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5687 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5688 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5689 | #ifdef __cplusplus |
| 5690 | extern "C" |
| 5691 | #endif |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5692 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5693 | builtin and then its argument prototype would still apply. */ |
| 5694 | char XRenderQueryExtension (); |
| 5695 | int |
| 5696 | main () |
| 5697 | { |
| 5698 | XRenderQueryExtension (); |
| 5699 | ; |
| 5700 | return 0; |
| 5701 | } |
| 5702 | _ACEOF |
| 5703 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5704 | if { (eval echo "$as_me:5704: \"$ac_link\"") >&5 |
| 5705 | (eval $ac_link) 2>&5 |
| 5706 | ac_status=$? |
| 5707 | echo "$as_me:5707: \$? = $ac_status" >&5 |
| 5708 | (exit $ac_status); } && |
| 5709 | { ac_try='test -s conftest$ac_exeext' |
| 5710 | { (eval echo "$as_me:5710: \"$ac_try\"") >&5 |
| 5711 | (eval $ac_try) 2>&5 |
| 5712 | ac_status=$? |
| 5713 | echo "$as_me:5713: \$? = $ac_status" >&5 |
| 5714 | (exit $ac_status); }; }; then |
| 5715 | ac_cv_lib_Xrender_XRenderQueryExtension=yes |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5716 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5717 | echo "$as_me: failed program was:" >&5 |
| 5718 | cat conftest.$ac_ext >&5 |
| 5719 | ac_cv_lib_Xrender_XRenderQueryExtension=no |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5720 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5721 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5722 | LIBS=$ac_check_lib_save_LIBS |
| 5723 | fi |
| 5724 | echo "$as_me:5724: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 |
| 5725 | echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6 |
| 5726 | if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5727 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5728 | cat >>confdefs.h <<\EOF |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5729 | #define HAVE_LIBXRENDER 1 |
| 5730 | EOF |
| 5731 | |
| 5732 | X_PRE_LIBS="$X_PRE_LIBS -lXrender" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5733 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5734 | fi |
| 5735 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5736 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5737 | { echo "$as_me:5737: WARNING: XRender extension not found, Wine will be built without it" >&5 |
| 5738 | echo "$as_me: WARNING: XRender extension not found, Wine will be built without it" >&2;} |
| 5739 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 5740 | fi |
| 5741 | done |
| 5742 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5743 | fi |
| 5744 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5745 | |
| 5746 | if test "x$enable_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 5747 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 5748 | if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 5749 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5750 | { { echo "$as_me:5750: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 5751 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 5752 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 5753 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 5754 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 5755 | fi |
| 5756 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5757 | for ac_header in GL/gl.h GL/glx.h GL/glext.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5758 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5760 | echo "$as_me:5760: checking for $ac_header" >&5 |
| 5761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5764 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5765 | cat >conftest.$ac_ext <<_ACEOF |
| 5766 | #line 5766 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5767 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5768 | #include <$ac_header> |
| 5769 | _ACEOF |
| 5770 | if { (eval echo "$as_me:5770: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5772 | ac_status=$? |
| 5773 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5774 | rm -f conftest.er1 |
| 5775 | cat conftest.err >&5 |
| 5776 | echo "$as_me:5776: \$? = $ac_status" >&5 |
| 5777 | (exit $ac_status); } >/dev/null; then |
| 5778 | if test -s conftest.err; then |
| 5779 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5780 | else |
| 5781 | ac_cpp_err= |
| 5782 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5783 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5784 | ac_cpp_err=yes |
| 5785 | fi |
| 5786 | if test -z "$ac_cpp_err"; then |
| 5787 | eval "$as_ac_Header=yes" |
| 5788 | else |
| 5789 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5790 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5791 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5792 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5793 | rm -f conftest.err conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5794 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5795 | echo "$as_me:5795: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5796 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5798 | cat >>confdefs.h <<EOF |
| 5799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5800 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5801 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5802 | fi |
| 5803 | done |
| 5804 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 5805 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 5806 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5807 | echo "$as_me:5807: checking for up-to-date OpenGL version" >&5 |
| 5808 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 5809 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 5811 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5812 | cat >conftest.$ac_ext <<_ACEOF |
| 5813 | #line 5813 "configure" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 5814 | #include "confdefs.h" |
| 5815 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5816 | int |
| 5817 | main () |
| 5818 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 5819 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5820 | ; |
| 5821 | return 0; |
| 5822 | } |
| 5823 | _ACEOF |
| 5824 | rm -f conftest.$ac_objext |
| 5825 | if { (eval echo "$as_me:5825: \"$ac_compile\"") >&5 |
| 5826 | (eval $ac_compile) 2>&5 |
| 5827 | ac_status=$? |
| 5828 | echo "$as_me:5828: \$? = $ac_status" >&5 |
| 5829 | (exit $ac_status); } && |
| 5830 | { ac_try='test -s conftest.$ac_objext' |
| 5831 | { (eval echo "$as_me:5831: \"$ac_try\"") >&5 |
| 5832 | (eval $ac_try) 2>&5 |
| 5833 | ac_status=$? |
| 5834 | echo "$as_me:5834: \$? = $ac_status" >&5 |
| 5835 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5836 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 5837 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5838 | echo "$as_me: failed program was:" >&5 |
| 5839 | cat conftest.$ac_ext >&5 |
| 5840 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 5841 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5842 | fi |
| 5843 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 5844 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5845 | fi |
| 5846 | echo "$as_me:5846: result: $wine_cv_opengl_version_OK" >&5 |
| 5847 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 5848 | |
| 5849 | echo "$as_me:5849: checking for thread-safe OpenGL version" >&5 |
| 5850 | echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6 |
| 5851 | if test "${wine_cv_opengl_version_threadsafe+set}" = set; then |
| 5852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 5853 | else |
| 5854 | saved_libs=$LIBS |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 5855 | LIBS="$X_LIBS -lGL" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5856 | cat >conftest.$ac_ext <<_ACEOF |
| 5857 | #line 5857 "configure" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 5858 | #include "confdefs.h" |
| 5859 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5860 | int |
| 5861 | main () |
| 5862 | { |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 5863 | pthread_getspecific(); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5864 | ; |
| 5865 | return 0; |
| 5866 | } |
| 5867 | _ACEOF |
| 5868 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5869 | if { (eval echo "$as_me:5869: \"$ac_link\"") >&5 |
| 5870 | (eval $ac_link) 2>&5 |
| 5871 | ac_status=$? |
| 5872 | echo "$as_me:5872: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); } && |
| 5874 | { ac_try='test -s conftest$ac_exeext' |
| 5875 | { (eval echo "$as_me:5875: \"$ac_try\"") >&5 |
| 5876 | (eval $ac_try) 2>&5 |
| 5877 | ac_status=$? |
| 5878 | echo "$as_me:5878: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5880 | wine_cv_opengl_version_threadsafe="yes" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 5881 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5882 | echo "$as_me: failed program was:" >&5 |
| 5883 | cat conftest.$ac_ext >&5 |
| 5884 | wine_cv_opengl_version_threadsafe="no" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 5885 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5886 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 5887 | LIBS=$saved_libs |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5888 | |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 5889 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5890 | echo "$as_me:5890: result: $wine_cv_opengl_version_threadsafe" >&5 |
| 5891 | echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6 |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 5892 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5893 | if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 5894 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5895 | echo "$as_me:5895: checking for glXCreateContext in -lGL" >&5 |
| 5896 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 5897 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 5898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5899 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5900 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 5901 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5902 | cat >conftest.$ac_ext <<_ACEOF |
| 5903 | #line 5903 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5904 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5905 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5906 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5907 | #ifdef __cplusplus |
| 5908 | extern "C" |
| 5909 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5910 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5911 | builtin and then its argument prototype would still apply. */ |
| 5912 | char glXCreateContext (); |
| 5913 | int |
| 5914 | main () |
| 5915 | { |
| 5916 | glXCreateContext (); |
| 5917 | ; |
| 5918 | return 0; |
| 5919 | } |
| 5920 | _ACEOF |
| 5921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5922 | if { (eval echo "$as_me:5922: \"$ac_link\"") >&5 |
| 5923 | (eval $ac_link) 2>&5 |
| 5924 | ac_status=$? |
| 5925 | echo "$as_me:5925: \$? = $ac_status" >&5 |
| 5926 | (exit $ac_status); } && |
| 5927 | { ac_try='test -s conftest$ac_exeext' |
| 5928 | { (eval echo "$as_me:5928: \"$ac_try\"") >&5 |
| 5929 | (eval $ac_try) 2>&5 |
| 5930 | ac_status=$? |
| 5931 | echo "$as_me:5931: \$? = $ac_status" >&5 |
| 5932 | (exit $ac_status); }; }; then |
| 5933 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5934 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5935 | echo "$as_me: failed program was:" >&5 |
| 5936 | cat conftest.$ac_ext >&5 |
| 5937 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5938 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5939 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5940 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5941 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5942 | echo "$as_me:5942: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
| 5943 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 5944 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5945 | X_PRE_LIBS="$X_PRE_LIBS -lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5946 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5947 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 5948 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 5949 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 5950 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 5951 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5952 | |
| 5953 | cat >>confdefs.h <<\EOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 5954 | #define HAVE_OPENGL 1 |
| 5955 | EOF |
| 5956 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5957 | echo "$as_me:5957: checking for glXGetProcAddressARB in -lGL" >&5 |
| 5958 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
| 5959 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then |
| 5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5961 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5962 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5963 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5964 | cat >conftest.$ac_ext <<_ACEOF |
| 5965 | #line 5965 "configure" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5966 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5967 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5968 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5969 | #ifdef __cplusplus |
| 5970 | extern "C" |
| 5971 | #endif |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5972 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5973 | builtin and then its argument prototype would still apply. */ |
| 5974 | char glXGetProcAddressARB (); |
| 5975 | int |
| 5976 | main () |
| 5977 | { |
| 5978 | glXGetProcAddressARB (); |
| 5979 | ; |
| 5980 | return 0; |
| 5981 | } |
| 5982 | _ACEOF |
| 5983 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5984 | if { (eval echo "$as_me:5984: \"$ac_link\"") >&5 |
| 5985 | (eval $ac_link) 2>&5 |
| 5986 | ac_status=$? |
| 5987 | echo "$as_me:5987: \$? = $ac_status" >&5 |
| 5988 | (exit $ac_status); } && |
| 5989 | { ac_try='test -s conftest$ac_exeext' |
| 5990 | { (eval echo "$as_me:5990: \"$ac_try\"") >&5 |
| 5991 | (eval $ac_try) 2>&5 |
| 5992 | ac_status=$? |
| 5993 | echo "$as_me:5993: \$? = $ac_status" >&5 |
| 5994 | (exit $ac_status); }; }; then |
| 5995 | ac_cv_lib_GL_glXGetProcAddressARB=yes |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5996 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 5997 | echo "$as_me: failed program was:" >&5 |
| 5998 | cat conftest.$ac_ext >&5 |
| 5999 | ac_cv_lib_GL_glXGetProcAddressARB=no |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6000 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6001 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6002 | LIBS=$ac_check_lib_save_LIBS |
| 6003 | fi |
| 6004 | echo "$as_me:6004: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
| 6005 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
| 6006 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6007 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6008 | cat >>confdefs.h <<\EOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6009 | #define HAVE_GLX_GETPROCADDRESS 1 |
| 6010 | EOF |
| 6011 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6012 | fi |
| 6013 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 6014 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6015 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6016 | echo "$as_me:6016: checking for OpenGL extension functions prototypes" >&5 |
| 6017 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
| 6018 | if test "${wine_cv_extension_prototypes+set}" = set; then |
| 6019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 6020 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6021 | cat >conftest.$ac_ext <<_ACEOF |
| 6022 | #line 6022 "configure" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 6023 | #include "confdefs.h" |
| 6024 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 6025 | #ifdef HAVE_GL_GLEXT_H |
| 6026 | # include <GL/glext.h> |
| 6027 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6028 | |
| 6029 | int |
| 6030 | main () |
| 6031 | { |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 6032 | PFNGLCOLORTABLEEXTPROC test_proc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6033 | ; |
| 6034 | return 0; |
| 6035 | } |
| 6036 | _ACEOF |
| 6037 | rm -f conftest.$ac_objext |
| 6038 | if { (eval echo "$as_me:6038: \"$ac_compile\"") >&5 |
| 6039 | (eval $ac_compile) 2>&5 |
| 6040 | ac_status=$? |
| 6041 | echo "$as_me:6041: \$? = $ac_status" >&5 |
| 6042 | (exit $ac_status); } && |
| 6043 | { ac_try='test -s conftest.$ac_objext' |
| 6044 | { (eval echo "$as_me:6044: \"$ac_try\"") >&5 |
| 6045 | (eval $ac_try) 2>&5 |
| 6046 | ac_status=$? |
| 6047 | echo "$as_me:6047: \$? = $ac_status" >&5 |
| 6048 | (exit $ac_status); }; }; then |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 6049 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 6050 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6051 | echo "$as_me: failed program was:" >&5 |
| 6052 | cat conftest.$ac_ext >&5 |
| 6053 | wine_cv_extension_prototypes="no" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 6054 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6055 | fi |
| 6056 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6057 | |
| 6058 | fi |
| 6059 | echo "$as_me:6059: result: $wine_cv_extension_prototypes" >&5 |
| 6060 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 6061 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 6062 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6063 | |
| 6064 | cat >>confdefs.h <<\EOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 6065 | #define HAVE_GLEXT_PROTOTYPES 1 |
| 6066 | EOF |
| 6067 | |
| 6068 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6069 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 6070 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 6071 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6072 | echo "$as_me:6072: checking for gluLookAt in -lGLU" >&5 |
| 6073 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 6074 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 6075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6076 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6077 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6078 | LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
| 6079 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6080 | cat >conftest.$ac_ext <<_ACEOF |
| 6081 | #line 6081 "configure" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6082 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6083 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6084 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6085 | #ifdef __cplusplus |
| 6086 | extern "C" |
| 6087 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6088 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6089 | builtin and then its argument prototype would still apply. */ |
| 6090 | char gluLookAt (); |
| 6091 | int |
| 6092 | main () |
| 6093 | { |
| 6094 | gluLookAt (); |
| 6095 | ; |
| 6096 | return 0; |
| 6097 | } |
| 6098 | _ACEOF |
| 6099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6100 | if { (eval echo "$as_me:6100: \"$ac_link\"") >&5 |
| 6101 | (eval $ac_link) 2>&5 |
| 6102 | ac_status=$? |
| 6103 | echo "$as_me:6103: \$? = $ac_status" >&5 |
| 6104 | (exit $ac_status); } && |
| 6105 | { ac_try='test -s conftest$ac_exeext' |
| 6106 | { (eval echo "$as_me:6106: \"$ac_try\"") >&5 |
| 6107 | (eval $ac_try) 2>&5 |
| 6108 | ac_status=$? |
| 6109 | echo "$as_me:6109: \$? = $ac_status" >&5 |
| 6110 | (exit $ac_status); }; }; then |
| 6111 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6112 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6113 | echo "$as_me: failed program was:" >&5 |
| 6114 | cat conftest.$ac_ext >&5 |
| 6115 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6116 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6118 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6119 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6120 | echo "$as_me:6120: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
| 6121 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 6122 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6123 | X_PRE_LIBS="$X_PRE_LIBS -lGLU" |
| 6124 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6125 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6126 | fi |
| 6127 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 6128 | fi |
| 6129 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6130 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 6131 | |
| 6132 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 6133 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6134 | else |
| 6135 | XLIB="" |
| 6136 | X_CFLAGS="" |
| 6137 | X_LIBS="" |
| 6138 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 6139 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6140 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6141 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 6142 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6143 | |
| 6144 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6145 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6146 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6147 | echo "$as_me:6147: checking for $ac_header" >&5 |
| 6148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6151 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6152 | cat >conftest.$ac_ext <<_ACEOF |
| 6153 | #line 6153 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6154 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6155 | #include <$ac_header> |
| 6156 | _ACEOF |
| 6157 | if { (eval echo "$as_me:6157: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6159 | ac_status=$? |
| 6160 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6161 | rm -f conftest.er1 |
| 6162 | cat conftest.err >&5 |
| 6163 | echo "$as_me:6163: \$? = $ac_status" >&5 |
| 6164 | (exit $ac_status); } >/dev/null; then |
| 6165 | if test -s conftest.err; then |
| 6166 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6167 | else |
| 6168 | ac_cpp_err= |
| 6169 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6170 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6171 | ac_cpp_err=yes |
| 6172 | fi |
| 6173 | if test -z "$ac_cpp_err"; then |
| 6174 | eval "$as_ac_Header=yes" |
| 6175 | else |
| 6176 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6177 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6178 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6179 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6180 | rm -f conftest.err conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6181 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6182 | echo "$as_me:6182: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6184 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6185 | cat >>confdefs.h <<EOF |
| 6186 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6187 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6188 | echo "$as_me:6188: checking for waddch in -lncurses" >&5 |
| 6189 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 6190 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 6191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6192 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6193 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6194 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6195 | cat >conftest.$ac_ext <<_ACEOF |
| 6196 | #line 6196 "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6197 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6198 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6199 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6200 | #ifdef __cplusplus |
| 6201 | extern "C" |
| 6202 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6203 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6204 | builtin and then its argument prototype would still apply. */ |
| 6205 | char waddch (); |
| 6206 | int |
| 6207 | main () |
| 6208 | { |
| 6209 | waddch (); |
| 6210 | ; |
| 6211 | return 0; |
| 6212 | } |
| 6213 | _ACEOF |
| 6214 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6215 | if { (eval echo "$as_me:6215: \"$ac_link\"") >&5 |
| 6216 | (eval $ac_link) 2>&5 |
| 6217 | ac_status=$? |
| 6218 | echo "$as_me:6218: \$? = $ac_status" >&5 |
| 6219 | (exit $ac_status); } && |
| 6220 | { ac_try='test -s conftest$ac_exeext' |
| 6221 | { (eval echo "$as_me:6221: \"$ac_try\"") >&5 |
| 6222 | (eval $ac_try) 2>&5 |
| 6223 | ac_status=$? |
| 6224 | echo "$as_me:6224: \$? = $ac_status" >&5 |
| 6225 | (exit $ac_status); }; }; then |
| 6226 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6227 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6228 | echo "$as_me: failed program was:" >&5 |
| 6229 | cat conftest.$ac_ext >&5 |
| 6230 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6231 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6232 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6233 | LIBS=$ac_check_lib_save_LIBS |
| 6234 | fi |
| 6235 | echo "$as_me:6235: result: $ac_cv_lib_ncurses_waddch" >&5 |
| 6236 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 6237 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6238 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6239 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6240 | #define HAVE_LIBNCURSES 1 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6241 | EOF |
| 6242 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6243 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6244 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6245 | |
| 6246 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6247 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6249 | echo "$as_me:6249: checking for $ac_header" >&5 |
| 6250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6251 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6253 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6254 | cat >conftest.$ac_ext <<_ACEOF |
| 6255 | #line 6255 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6256 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6257 | #include <$ac_header> |
| 6258 | _ACEOF |
| 6259 | if { (eval echo "$as_me:6259: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6260 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6261 | ac_status=$? |
| 6262 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6263 | rm -f conftest.er1 |
| 6264 | cat conftest.err >&5 |
| 6265 | echo "$as_me:6265: \$? = $ac_status" >&5 |
| 6266 | (exit $ac_status); } >/dev/null; then |
| 6267 | if test -s conftest.err; then |
| 6268 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6269 | else |
| 6270 | ac_cpp_err= |
| 6271 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6272 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6273 | ac_cpp_err=yes |
| 6274 | fi |
| 6275 | if test -z "$ac_cpp_err"; then |
| 6276 | eval "$as_ac_Header=yes" |
| 6277 | else |
| 6278 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6279 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6280 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6281 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6282 | rm -f conftest.err conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6283 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6284 | echo "$as_me:6284: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6285 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6286 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6287 | cat >>confdefs.h <<EOF |
| 6288 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6289 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6290 | echo "$as_me:6290: checking for waddch in -lcurses" >&5 |
| 6291 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 6292 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 6293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6294 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6295 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6296 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6297 | cat >conftest.$ac_ext <<_ACEOF |
| 6298 | #line 6298 "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6299 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6300 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6301 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6302 | #ifdef __cplusplus |
| 6303 | extern "C" |
| 6304 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6305 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6306 | builtin and then its argument prototype would still apply. */ |
| 6307 | char waddch (); |
| 6308 | int |
| 6309 | main () |
| 6310 | { |
| 6311 | waddch (); |
| 6312 | ; |
| 6313 | return 0; |
| 6314 | } |
| 6315 | _ACEOF |
| 6316 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6317 | if { (eval echo "$as_me:6317: \"$ac_link\"") >&5 |
| 6318 | (eval $ac_link) 2>&5 |
| 6319 | ac_status=$? |
| 6320 | echo "$as_me:6320: \$? = $ac_status" >&5 |
| 6321 | (exit $ac_status); } && |
| 6322 | { ac_try='test -s conftest$ac_exeext' |
| 6323 | { (eval echo "$as_me:6323: \"$ac_try\"") >&5 |
| 6324 | (eval $ac_try) 2>&5 |
| 6325 | ac_status=$? |
| 6326 | echo "$as_me:6326: \$? = $ac_status" >&5 |
| 6327 | (exit $ac_status); }; }; then |
| 6328 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6329 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6330 | echo "$as_me: failed program was:" >&5 |
| 6331 | cat conftest.$ac_ext >&5 |
| 6332 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6333 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6334 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6335 | LIBS=$ac_check_lib_save_LIBS |
| 6336 | fi |
| 6337 | echo "$as_me:6337: result: $ac_cv_lib_curses_waddch" >&5 |
| 6338 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 6339 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6340 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6341 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6342 | #define HAVE_LIBCURSES 1 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6343 | EOF |
| 6344 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6345 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6346 | fi |
| 6347 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 6348 | fi |
| 6349 | done |
| 6350 | |
| 6351 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6352 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6353 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 6354 | done |
| 6355 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6356 | saved_libs="$LIBS" |
| 6357 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6358 | |
| 6359 | for ac_func in getbkgd resizeterm |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 6360 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6361 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6362 | echo "$as_me:6362: checking for $ac_func" >&5 |
| 6363 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6364 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6366 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6367 | cat >conftest.$ac_ext <<_ACEOF |
| 6368 | #line 6368 "configure" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6369 | #include "confdefs.h" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 6370 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6371 | which can conflict with char $ac_func (); below. */ |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 6372 | #include <assert.h> |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6373 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6374 | #ifdef __cplusplus |
| 6375 | extern "C" |
| 6376 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6377 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6378 | builtin and then its argument prototype would still apply. */ |
| 6379 | char $ac_func (); |
| 6380 | char (*f) (); |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6381 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6382 | int |
| 6383 | main () |
| 6384 | { |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 6385 | /* The GNU C library defines this for functions which it implements |
| 6386 | to always fail with ENOSYS. Some functions are actually named |
| 6387 | something starting with __ and the normal name is an alias. */ |
| 6388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6389 | choke me |
| 6390 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6391 | f = $ac_func; |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 6392 | #endif |
| 6393 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6394 | ; |
| 6395 | return 0; |
| 6396 | } |
| 6397 | _ACEOF |
| 6398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6399 | if { (eval echo "$as_me:6399: \"$ac_link\"") >&5 |
| 6400 | (eval $ac_link) 2>&5 |
| 6401 | ac_status=$? |
| 6402 | echo "$as_me:6402: \$? = $ac_status" >&5 |
| 6403 | (exit $ac_status); } && |
| 6404 | { ac_try='test -s conftest$ac_exeext' |
| 6405 | { (eval echo "$as_me:6405: \"$ac_try\"") >&5 |
| 6406 | (eval $ac_try) 2>&5 |
| 6407 | ac_status=$? |
| 6408 | echo "$as_me:6408: \$? = $ac_status" >&5 |
| 6409 | (exit $ac_status); }; }; then |
| 6410 | eval "$as_ac_var=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6411 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6412 | echo "$as_me: failed program was:" >&5 |
| 6413 | cat conftest.$ac_ext >&5 |
| 6414 | eval "$as_ac_var=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6415 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6416 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6417 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6418 | echo "$as_me:6418: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 6419 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6420 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6421 | cat >>confdefs.h <<EOF |
| 6422 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6423 | EOF |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6424 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6425 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 6426 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 6427 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 6428 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 6429 | fi |
| 6430 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6431 | CUPSLIBS="" |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6432 | wine_cv_warn_cups_h=no |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6433 | echo "$as_me:6433: checking for cupsGetPPD in -lcups" >&5 |
| 6434 | echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6 |
| 6435 | if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then |
| 6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6437 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6438 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6439 | LIBS="-lcups $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6440 | cat >conftest.$ac_ext <<_ACEOF |
| 6441 | #line 6441 "configure" |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6442 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6443 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6444 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6445 | #ifdef __cplusplus |
| 6446 | extern "C" |
| 6447 | #endif |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6448 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6449 | builtin and then its argument prototype would still apply. */ |
| 6450 | char cupsGetPPD (); |
| 6451 | int |
| 6452 | main () |
| 6453 | { |
| 6454 | cupsGetPPD (); |
| 6455 | ; |
| 6456 | return 0; |
| 6457 | } |
| 6458 | _ACEOF |
| 6459 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6460 | if { (eval echo "$as_me:6460: \"$ac_link\"") >&5 |
| 6461 | (eval $ac_link) 2>&5 |
| 6462 | ac_status=$? |
| 6463 | echo "$as_me:6463: \$? = $ac_status" >&5 |
| 6464 | (exit $ac_status); } && |
| 6465 | { ac_try='test -s conftest$ac_exeext' |
| 6466 | { (eval echo "$as_me:6466: \"$ac_try\"") >&5 |
| 6467 | (eval $ac_try) 2>&5 |
| 6468 | ac_status=$? |
| 6469 | echo "$as_me:6469: \$? = $ac_status" >&5 |
| 6470 | (exit $ac_status); }; }; then |
| 6471 | ac_cv_lib_cups_cupsGetPPD=yes |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6472 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6473 | echo "$as_me: failed program was:" >&5 |
| 6474 | cat conftest.$ac_ext >&5 |
| 6475 | ac_cv_lib_cups_cupsGetPPD=no |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6476 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6477 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6478 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6479 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6480 | echo "$as_me:6480: result: $ac_cv_lib_cups_cupsGetPPD" >&5 |
| 6481 | echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6 |
| 6482 | if test $ac_cv_lib_cups_cupsGetPPD = yes; then |
| 6483 | echo "$as_me:6483: checking for cups/cups.h" >&5 |
| 6484 | echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6 |
| 6485 | if test "${ac_cv_header_cups_cups_h+set}" = set; then |
| 6486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6487 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6488 | cat >conftest.$ac_ext <<_ACEOF |
| 6489 | #line 6489 "configure" |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6490 | #include "confdefs.h" |
| 6491 | #include <cups/cups.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6492 | _ACEOF |
| 6493 | if { (eval echo "$as_me:6493: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6494 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6495 | ac_status=$? |
| 6496 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6497 | rm -f conftest.er1 |
| 6498 | cat conftest.err >&5 |
| 6499 | echo "$as_me:6499: \$? = $ac_status" >&5 |
| 6500 | (exit $ac_status); } >/dev/null; then |
| 6501 | if test -s conftest.err; then |
| 6502 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6503 | else |
| 6504 | ac_cpp_err= |
| 6505 | fi |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6506 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6507 | ac_cpp_err=yes |
| 6508 | fi |
| 6509 | if test -z "$ac_cpp_err"; then |
| 6510 | ac_cv_header_cups_cups_h=yes |
| 6511 | else |
| 6512 | echo "$as_me: failed program was:" >&5 |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6513 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6514 | ac_cv_header_cups_cups_h=no |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6515 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6516 | rm -f conftest.err conftest.$ac_ext |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6517 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6518 | echo "$as_me:6518: result: $ac_cv_header_cups_cups_h" >&5 |
| 6519 | echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6 |
| 6520 | if test $ac_cv_header_cups_cups_h = yes; then |
| 6521 | |
| 6522 | cat >>confdefs.h <<\EOF |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6523 | #define HAVE_CUPS 1 |
| 6524 | EOF |
| 6525 | |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6526 | CUPSLIBS="-lcups" |
| 6527 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6528 | wine_cv_warn_cups_h=yes |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 6529 | fi |
| 6530 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 6531 | fi |
| 6532 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6533 | echo "$as_me:6533: checking for FT_Init_FreeType in -lfreetype" >&5 |
| 6534 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 6535 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 6536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6537 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6538 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 6539 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6540 | cat >conftest.$ac_ext <<_ACEOF |
| 6541 | #line 6541 "configure" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6542 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6543 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6544 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6545 | #ifdef __cplusplus |
| 6546 | extern "C" |
| 6547 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6548 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6549 | builtin and then its argument prototype would still apply. */ |
| 6550 | char FT_Init_FreeType (); |
| 6551 | int |
| 6552 | main () |
| 6553 | { |
| 6554 | FT_Init_FreeType (); |
| 6555 | ; |
| 6556 | return 0; |
| 6557 | } |
| 6558 | _ACEOF |
| 6559 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6560 | if { (eval echo "$as_me:6560: \"$ac_link\"") >&5 |
| 6561 | (eval $ac_link) 2>&5 |
| 6562 | ac_status=$? |
| 6563 | echo "$as_me:6563: \$? = $ac_status" >&5 |
| 6564 | (exit $ac_status); } && |
| 6565 | { ac_try='test -s conftest$ac_exeext' |
| 6566 | { (eval echo "$as_me:6566: \"$ac_try\"") >&5 |
| 6567 | (eval $ac_try) 2>&5 |
| 6568 | ac_status=$? |
| 6569 | echo "$as_me:6569: \$? = $ac_status" >&5 |
| 6570 | (exit $ac_status); }; }; then |
| 6571 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6572 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6573 | echo "$as_me: failed program was:" >&5 |
| 6574 | cat conftest.$ac_ext >&5 |
| 6575 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6576 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6577 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6578 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6579 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6580 | echo "$as_me:6580: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 6581 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 6582 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6583 | ft_lib=yes |
| 6584 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6585 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6586 | fi |
| 6587 | |
| 6588 | if test "$ft_lib" = "no" |
| 6589 | then |
| 6590 | FREETYPELIBS="" |
| 6591 | FREETYPEINCL="" |
| 6592 | wine_cv_msg_freetype=no |
| 6593 | else |
| 6594 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 6595 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6596 | echo "$as_me:6596: checking for $ac_word" >&5 |
| 6597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6598 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 6599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6600 | else |
| 6601 | if test -n "$ft_devel"; then |
| 6602 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 6603 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6604 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 6605 | ac_dummy="$PATH" |
| 6606 | for ac_dir in $ac_dummy; do |
| 6607 | IFS=$ac_save_IFS |
| 6608 | test -z "$ac_dir" && ac_dir=. |
| 6609 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 6610 | ac_cv_prog_ft_devel="freetype-config" |
| 6611 | echo "$as_me:6611: found $ac_dir/$ac_word" >&5 |
| 6612 | break |
| 6613 | done |
| 6614 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6615 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 6616 | fi |
| 6617 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6618 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6619 | if test -n "$ft_devel"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6620 | echo "$as_me:6620: result: $ft_devel" >&5 |
| 6621 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6622 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6623 | echo "$as_me:6623: result: no" >&5 |
| 6624 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6625 | fi |
| 6626 | |
| 6627 | if test "$ft_devel" = "no" |
| 6628 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 6629 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 6630 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6631 | echo "$as_me:6631: checking for $ac_word" >&5 |
| 6632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6633 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 6634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 6635 | else |
| 6636 | if test -n "$ft_devel2"; then |
| 6637 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 6638 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6639 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 6640 | ac_dummy="$PATH" |
| 6641 | for ac_dir in $ac_dummy; do |
| 6642 | IFS=$ac_save_IFS |
| 6643 | test -z "$ac_dir" && ac_dir=. |
| 6644 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 6645 | ac_cv_prog_ft_devel2="freetype2-config" |
| 6646 | echo "$as_me:6646: found $ac_dir/$ac_word" >&5 |
| 6647 | break |
| 6648 | done |
| 6649 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 6650 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 6651 | fi |
| 6652 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6653 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 6654 | if test -n "$ft_devel2"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6655 | echo "$as_me:6655: result: $ft_devel2" >&5 |
| 6656 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 6657 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6658 | echo "$as_me:6658: result: no" >&5 |
| 6659 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 6660 | fi |
| 6661 | |
| 6662 | if test "$ft_devel2" = "freetype2-config" |
| 6663 | then |
| 6664 | ft_devel=$ft_devel2 |
| 6665 | fi |
| 6666 | fi |
| 6667 | if test "$ft_devel" = "no" |
| 6668 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6669 | FREETYPELIBS="" |
| 6670 | FREETYPEINCL="" |
| 6671 | wine_cv_msg_freetype=yes |
| 6672 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 6673 | FREETYPELIBS=`$ft_devel --libs` |
| 6674 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6675 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 6676 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6677 | |
| 6678 | for ac_header in freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6679 | freetype/ftglyph.h \ |
| 6680 | freetype/tttables.h \ |
| 6681 | freetype/ftnames.h \ |
| 6682 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 6683 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 6684 | freetype/ftoutln.h \ |
| 6685 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6686 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6687 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6688 | echo "$as_me:6688: checking for $ac_header" >&5 |
| 6689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6692 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6693 | cat >conftest.$ac_ext <<_ACEOF |
| 6694 | #line 6694 "configure" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6695 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6696 | #include <$ac_header> |
| 6697 | _ACEOF |
| 6698 | if { (eval echo "$as_me:6698: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6700 | ac_status=$? |
| 6701 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6702 | rm -f conftest.er1 |
| 6703 | cat conftest.err >&5 |
| 6704 | echo "$as_me:6704: \$? = $ac_status" >&5 |
| 6705 | (exit $ac_status); } >/dev/null; then |
| 6706 | if test -s conftest.err; then |
| 6707 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6708 | else |
| 6709 | ac_cpp_err= |
| 6710 | fi |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6711 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6712 | ac_cpp_err=yes |
| 6713 | fi |
| 6714 | if test -z "$ac_cpp_err"; then |
| 6715 | eval "$as_ac_Header=yes" |
| 6716 | else |
| 6717 | echo "$as_me: failed program was:" >&5 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6718 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6719 | eval "$as_ac_Header=no" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6720 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6721 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6722 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6723 | echo "$as_me:6723: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6724 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6725 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6726 | cat >>confdefs.h <<EOF |
| 6727 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6728 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6729 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6730 | fi |
| 6731 | done |
| 6732 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6733 | cat >conftest.$ac_ext <<_ACEOF |
| 6734 | #line 6734 "configure" |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 6735 | #include "confdefs.h" |
| 6736 | #include <ft2build.h> |
| 6737 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6738 | _ACEOF |
| 6739 | if { (eval echo "$as_me:6739: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6740 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6741 | ac_status=$? |
| 6742 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6743 | rm -f conftest.er1 |
| 6744 | cat conftest.err >&5 |
| 6745 | echo "$as_me:6745: \$? = $ac_status" >&5 |
| 6746 | (exit $ac_status); } >/dev/null; then |
| 6747 | if test -s conftest.err; then |
| 6748 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6749 | else |
| 6750 | ac_cpp_err= |
| 6751 | fi |
| 6752 | else |
| 6753 | ac_cpp_err=yes |
| 6754 | fi |
| 6755 | if test -z "$ac_cpp_err"; then |
| 6756 | |
| 6757 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 6758 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
| 6759 | EOF |
| 6760 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 6761 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 6762 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6763 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 6764 | cat conftest.$ac_ext >&5 |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 6765 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 6766 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6767 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 6768 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 6769 | 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] | 6770 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6771 | |
| 6772 | cat >>confdefs.h <<\EOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 6773 | #define HAVE_FREETYPE 1 |
| 6774 | EOF |
| 6775 | |
| 6776 | wine_cv_msg_freetype=no |
| 6777 | else |
| 6778 | FREETYPELIBS="" |
| 6779 | FREETYPEINCL="" |
| 6780 | wine_cv_msg_freetype=yes |
| 6781 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 6782 | fi |
| 6783 | fi |
| 6784 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6785 | echo "$as_me:6785: checking for parport header/ppdev.h" >&5 |
| 6786 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 6787 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 6788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6789 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6790 | cat >conftest.$ac_ext <<_ACEOF |
| 6791 | #line 6791 "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6792 | #include "confdefs.h" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6793 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6794 | int |
| 6795 | main () |
| 6796 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6797 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6798 | ; |
| 6799 | return 0; |
| 6800 | } |
| 6801 | _ACEOF |
| 6802 | rm -f conftest.$ac_objext |
| 6803 | if { (eval echo "$as_me:6803: \"$ac_compile\"") >&5 |
| 6804 | (eval $ac_compile) 2>&5 |
| 6805 | ac_status=$? |
| 6806 | echo "$as_me:6806: \$? = $ac_status" >&5 |
| 6807 | (exit $ac_status); } && |
| 6808 | { ac_try='test -s conftest.$ac_objext' |
| 6809 | { (eval echo "$as_me:6809: \"$ac_try\"") >&5 |
| 6810 | (eval $ac_try) 2>&5 |
| 6811 | ac_status=$? |
| 6812 | echo "$as_me:6812: \$? = $ac_status" >&5 |
| 6813 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6814 | ac_cv_c_ppdev="yes" |
| 6815 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6816 | echo "$as_me: failed program was:" >&5 |
| 6817 | cat conftest.$ac_ext >&5 |
| 6818 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6819 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6820 | rm -f conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6821 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6822 | fi |
| 6823 | echo "$as_me:6823: result: $ac_cv_c_ppdev" >&5 |
| 6824 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6825 | if test "$ac_cv_c_ppdev" = "yes" |
| 6826 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6827 | |
| 6828 | cat >>confdefs.h <<\EOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6829 | #define HAVE_PPDEV 1 |
| 6830 | EOF |
| 6831 | |
| 6832 | fi |
| 6833 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6834 | echo "$as_me:6834: checking for GNU style IPX support" >&5 |
| 6835 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 6836 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 6837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6838 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6839 | cat >conftest.$ac_ext <<_ACEOF |
| 6840 | #line 6840 "configure" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 6841 | #include "confdefs.h" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6842 | #include <sys/socket.h> |
| 6843 | #include <netipx/ipx.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6844 | int |
| 6845 | main () |
| 6846 | { |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6847 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6848 | ; |
| 6849 | return 0; |
| 6850 | } |
| 6851 | _ACEOF |
| 6852 | rm -f conftest.$ac_objext |
| 6853 | if { (eval echo "$as_me:6853: \"$ac_compile\"") >&5 |
| 6854 | (eval $ac_compile) 2>&5 |
| 6855 | ac_status=$? |
| 6856 | echo "$as_me:6856: \$? = $ac_status" >&5 |
| 6857 | (exit $ac_status); } && |
| 6858 | { ac_try='test -s conftest.$ac_objext' |
| 6859 | { (eval echo "$as_me:6859: \"$ac_try\"") >&5 |
| 6860 | (eval $ac_try) 2>&5 |
| 6861 | ac_status=$? |
| 6862 | echo "$as_me:6862: \$? = $ac_status" >&5 |
| 6863 | (exit $ac_status); }; }; then |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 6864 | ac_cv_c_ipx_gnu="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6865 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6866 | echo "$as_me: failed program was:" >&5 |
| 6867 | cat conftest.$ac_ext >&5 |
| 6868 | ac_cv_c_ipx_gnu="no" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6869 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6870 | rm -f conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6871 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6872 | fi |
| 6873 | echo "$as_me:6873: result: $ac_cv_c_ipx_gnu" >&5 |
| 6874 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 6875 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 6876 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6877 | |
| 6878 | cat >>confdefs.h <<\EOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 6879 | #define HAVE_IPX_GNU 1 |
| 6880 | EOF |
| 6881 | |
| 6882 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6883 | |
| 6884 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 6885 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6886 | echo "$as_me:6886: checking for linux style IPX support" >&5 |
| 6887 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 6888 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 6889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6890 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6891 | cat >conftest.$ac_ext <<_ACEOF |
| 6892 | #line 6892 "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6893 | #include "confdefs.h" |
| 6894 | #include <sys/socket.h> |
| 6895 | #include <asm/types.h> |
| 6896 | #include <linux/ipx.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6897 | int |
| 6898 | main () |
| 6899 | { |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6900 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6901 | ; |
| 6902 | return 0; |
| 6903 | } |
| 6904 | _ACEOF |
| 6905 | rm -f conftest.$ac_objext |
| 6906 | if { (eval echo "$as_me:6906: \"$ac_compile\"") >&5 |
| 6907 | (eval $ac_compile) 2>&5 |
| 6908 | ac_status=$? |
| 6909 | echo "$as_me:6909: \$? = $ac_status" >&5 |
| 6910 | (exit $ac_status); } && |
| 6911 | { ac_try='test -s conftest.$ac_objext' |
| 6912 | { (eval echo "$as_me:6912: \"$ac_try\"") >&5 |
| 6913 | (eval $ac_try) 2>&5 |
| 6914 | ac_status=$? |
| 6915 | echo "$as_me:6915: \$? = $ac_status" >&5 |
| 6916 | (exit $ac_status); }; }; then |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 6917 | ac_cv_c_ipx_linux="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6918 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6919 | echo "$as_me: failed program was:" >&5 |
| 6920 | cat conftest.$ac_ext >&5 |
| 6921 | ac_cv_c_ipx_linux="no" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6922 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6923 | rm -f conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6924 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6925 | fi |
| 6926 | echo "$as_me:6926: result: $ac_cv_c_ipx_linux" >&5 |
| 6927 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 6928 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 6929 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6930 | |
| 6931 | cat >>confdefs.h <<\EOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 6932 | #define HAVE_IPX_LINUX 1 |
| 6933 | EOF |
| 6934 | |
| 6935 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 6936 | fi |
| 6937 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6938 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6939 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6940 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6941 | echo "$as_me:6941: checking for $ac_header" >&5 |
| 6942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6945 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6946 | cat >conftest.$ac_ext <<_ACEOF |
| 6947 | #line 6947 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6948 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6949 | #include <$ac_header> |
| 6950 | _ACEOF |
| 6951 | if { (eval echo "$as_me:6951: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6953 | ac_status=$? |
| 6954 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6955 | rm -f conftest.er1 |
| 6956 | cat conftest.err >&5 |
| 6957 | echo "$as_me:6957: \$? = $ac_status" >&5 |
| 6958 | (exit $ac_status); } >/dev/null; then |
| 6959 | if test -s conftest.err; then |
| 6960 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6961 | else |
| 6962 | ac_cpp_err= |
| 6963 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6964 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6965 | ac_cpp_err=yes |
| 6966 | fi |
| 6967 | if test -z "$ac_cpp_err"; then |
| 6968 | eval "$as_ac_Header=yes" |
| 6969 | else |
| 6970 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6971 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6972 | eval "$as_ac_Header=no" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6973 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6974 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6975 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6976 | echo "$as_me:6976: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6977 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6978 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6979 | cat >>confdefs.h <<EOF |
| 6980 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6981 | EOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6982 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6983 | fi |
| 6984 | done |
| 6985 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6986 | echo "$as_me:6986: checking for Open Sound System" >&5 |
| 6987 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 6988 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 6989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 6990 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 6991 | cat >conftest.$ac_ext <<_ACEOF |
| 6992 | #line 6992 "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 6993 | #include "confdefs.h" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6994 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6995 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6996 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6997 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6998 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 6999 | #elif defined(HAVE_SOUNDCARD_H) |
| 7000 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 7001 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7002 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7003 | int |
| 7004 | main () |
| 7005 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 7006 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 7007 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 7008 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7009 | #error No open sound system |
| 7010 | #endif |
| 7011 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7012 | ; |
| 7013 | return 0; |
| 7014 | } |
| 7015 | _ACEOF |
| 7016 | rm -f conftest.$ac_objext |
| 7017 | if { (eval echo "$as_me:7017: \"$ac_compile\"") >&5 |
| 7018 | (eval $ac_compile) 2>&5 |
| 7019 | ac_status=$? |
| 7020 | echo "$as_me:7020: \$? = $ac_status" >&5 |
| 7021 | (exit $ac_status); } && |
| 7022 | { ac_try='test -s conftest.$ac_objext' |
| 7023 | { (eval echo "$as_me:7023: \"$ac_try\"") >&5 |
| 7024 | (eval $ac_try) 2>&5 |
| 7025 | ac_status=$? |
| 7026 | echo "$as_me:7026: \$? = $ac_status" >&5 |
| 7027 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7028 | ac_cv_c_opensoundsystem="yes" |
| 7029 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7030 | echo "$as_me: failed program was:" >&5 |
| 7031 | cat conftest.$ac_ext >&5 |
| 7032 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7033 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7034 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7035 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7036 | echo "$as_me:7036: result: $ac_cv_c_opensoundsystem" >&5 |
| 7037 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7038 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 7039 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 7040 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7041 | |
| 7042 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 7043 | #define HAVE_OSS 1 |
| 7044 | EOF |
| 7045 | |
| 7046 | fi |
| 7047 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7048 | echo "$as_me:7048: checking for Open Sound System/MIDI interface" >&5 |
| 7049 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 7050 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 7051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7052 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7053 | cat >conftest.$ac_ext <<_ACEOF |
| 7054 | #line 7054 "configure" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7055 | #include "confdefs.h" |
| 7056 | |
| 7057 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 7058 | #include <sys/soundcard.h> |
| 7059 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 7060 | #include <machine/soundcard.h> |
| 7061 | #elif defined(HAVE_SOUNDCARD_H) |
| 7062 | #include <soundcard.h> |
| 7063 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7065 | int |
| 7066 | main () |
| 7067 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7068 | |
| 7069 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 7070 | #if !defined(SNDCTL_SEQ_SYNC) |
| 7071 | #error No open sound system MIDI interface |
| 7072 | #endif |
| 7073 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7074 | ; |
| 7075 | return 0; |
| 7076 | } |
| 7077 | _ACEOF |
| 7078 | rm -f conftest.$ac_objext |
| 7079 | if { (eval echo "$as_me:7079: \"$ac_compile\"") >&5 |
| 7080 | (eval $ac_compile) 2>&5 |
| 7081 | ac_status=$? |
| 7082 | echo "$as_me:7082: \$? = $ac_status" >&5 |
| 7083 | (exit $ac_status); } && |
| 7084 | { ac_try='test -s conftest.$ac_objext' |
| 7085 | { (eval echo "$as_me:7085: \"$ac_try\"") >&5 |
| 7086 | (eval $ac_try) 2>&5 |
| 7087 | ac_status=$? |
| 7088 | echo "$as_me:7088: \$? = $ac_status" >&5 |
| 7089 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7090 | ac_cv_c_opensoundsystem_midi="yes" |
| 7091 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7092 | echo "$as_me: failed program was:" >&5 |
| 7093 | cat conftest.$ac_ext >&5 |
| 7094 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7095 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7096 | rm -f conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7097 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7098 | echo "$as_me:7098: result: $ac_cv_c_opensoundsystem_midi" >&5 |
| 7099 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7100 | |
| 7101 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 7102 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7103 | |
| 7104 | cat >>confdefs.h <<\EOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 7105 | #define HAVE_OSS_MIDI 1 |
| 7106 | EOF |
| 7107 | |
| 7108 | fi |
| 7109 | |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 7110 | if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi |
| 7111 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7112 | echo "$as_me:7112: checking whether mmap64 works defined as mmap" >&5 |
| 7113 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 7114 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 7115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 7116 | else |
| 7117 | if test "$cross_compiling" = yes; then |
| 7118 | ac_cv_mmap64_works="no" |
| 7119 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7120 | cat >conftest.$ac_ext <<_ACEOF |
| 7121 | #line 7121 "configure" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 7122 | #include "confdefs.h" |
| 7123 | |
| 7124 | #define _FILE_OFFSET_BITS 64 |
| 7125 | #include <stdio.h> |
| 7126 | #include <unistd.h> |
| 7127 | #include <fcntl.h> |
| 7128 | #include <sys/mman.h> |
| 7129 | #include <errno.h> |
| 7130 | |
| 7131 | int main(int argc,char **argv) { |
| 7132 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 7133 | if (fd == -1) exit(1); |
| 7134 | |
| 7135 | unlink("conftest.map"); |
| 7136 | |
| 7137 | write(fd,"test",4); |
| 7138 | |
| 7139 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 7140 | (errno == EINVAL) |
| 7141 | ) { |
| 7142 | exit(1); |
| 7143 | } |
| 7144 | close(fd); |
| 7145 | fprintf(stderr,"success!\n"); |
| 7146 | exit(0); |
| 7147 | } |
| 7148 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7149 | _ACEOF |
| 7150 | rm -f conftest$ac_exeext |
| 7151 | if { (eval echo "$as_me:7151: \"$ac_link\"") >&5 |
| 7152 | (eval $ac_link) 2>&5 |
| 7153 | ac_status=$? |
| 7154 | echo "$as_me:7154: \$? = $ac_status" >&5 |
| 7155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7156 | { (eval echo "$as_me:7156: \"$ac_try\"") >&5 |
| 7157 | (eval $ac_try) 2>&5 |
| 7158 | ac_status=$? |
| 7159 | echo "$as_me:7159: \$? = $ac_status" >&5 |
| 7160 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 7161 | ac_cv_mmap64_works="yes" |
| 7162 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7163 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7164 | echo "$as_me: failed program was:" >&5 |
| 7165 | cat conftest.$ac_ext >&5 |
| 7166 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 7167 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7168 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 7169 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 7170 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7171 | echo "$as_me:7171: result: $ac_cv_mmap64_works" >&5 |
| 7172 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 7173 | |
| 7174 | if test "$ac_cv_mmap64_works" = "yes" |
| 7175 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7176 | |
| 7177 | cat >>confdefs.h <<\EOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 7178 | #define _FILE_OFFSET_BITS 64 |
| 7179 | EOF |
| 7180 | |
| 7181 | fi |
| 7182 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7183 | if test "x${GCC}" = "xyes" |
| 7184 | then |
| 7185 | CFLAGS="$CFLAGS -Wall" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7186 | echo "$as_me:7186: checking for gcc strength-reduce bug" >&5 |
| 7187 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 7188 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 7189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7190 | else |
| 7191 | if test "$cross_compiling" = yes; then |
| 7192 | ac_cv_c_gcc_strength_bug="yes" |
| 7193 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7194 | cat >conftest.$ac_ext <<_ACEOF |
| 7195 | #line 7195 "configure" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7196 | #include "confdefs.h" |
| 7197 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 7198 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7199 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 7200 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7201 | unsigned int B = 3; |
| 7202 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 7203 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 7204 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 7205 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7206 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 7207 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7208 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7209 | _ACEOF |
| 7210 | rm -f conftest$ac_exeext |
| 7211 | if { (eval echo "$as_me:7211: \"$ac_link\"") >&5 |
| 7212 | (eval $ac_link) 2>&5 |
| 7213 | ac_status=$? |
| 7214 | echo "$as_me:7214: \$? = $ac_status" >&5 |
| 7215 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7216 | { (eval echo "$as_me:7216: \"$ac_try\"") >&5 |
| 7217 | (eval $ac_try) 2>&5 |
| 7218 | ac_status=$? |
| 7219 | echo "$as_me:7219: \$? = $ac_status" >&5 |
| 7220 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7221 | ac_cv_c_gcc_strength_bug="no" |
| 7222 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7223 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7224 | echo "$as_me: failed program was:" >&5 |
| 7225 | cat conftest.$ac_ext >&5 |
| 7226 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7227 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7228 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7229 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7230 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7231 | echo "$as_me:7231: result: $ac_cv_c_gcc_strength_bug" >&5 |
| 7232 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7233 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 7234 | then |
| 7235 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 7236 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7237 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7238 | echo "$as_me:7238: checking for gcc -mpreferred-stack-boundary=2 support" >&5 |
| 7239 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 7240 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 7241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7242 | else |
| 7243 | saved_cflags=$CFLAGS |
| 7244 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7245 | cat >conftest.$ac_ext <<_ACEOF |
| 7246 | #line 7246 "configure" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7247 | #include "confdefs.h" |
| 7248 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7249 | int |
| 7250 | main () |
| 7251 | { |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7252 | return 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7253 | ; |
| 7254 | return 0; |
| 7255 | } |
| 7256 | _ACEOF |
| 7257 | rm -f conftest.$ac_objext |
| 7258 | if { (eval echo "$as_me:7258: \"$ac_compile\"") >&5 |
| 7259 | (eval $ac_compile) 2>&5 |
| 7260 | ac_status=$? |
| 7261 | echo "$as_me:7261: \$? = $ac_status" >&5 |
| 7262 | (exit $ac_status); } && |
| 7263 | { ac_try='test -s conftest.$ac_objext' |
| 7264 | { (eval echo "$as_me:7264: \"$ac_try\"") >&5 |
| 7265 | (eval $ac_try) 2>&5 |
| 7266 | ac_status=$? |
| 7267 | echo "$as_me:7267: \$? = $ac_status" >&5 |
| 7268 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7269 | ac_cv_c_gcc_stack_boundary="yes" |
| 7270 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7271 | echo "$as_me: failed program was:" >&5 |
| 7272 | cat conftest.$ac_ext >&5 |
| 7273 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7274 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7275 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7276 | CFLAGS=$saved_cflags |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7277 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7278 | fi |
| 7279 | echo "$as_me:7279: result: $ac_cv_c_gcc_stack_boundary" >&5 |
| 7280 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 7281 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 7282 | then |
| 7283 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 7284 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7285 | fi |
| 7286 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7287 | echo "$as_me:7287: checking whether .type must sit inside a .def directive" >&5 |
| 7288 | echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6 |
| 7289 | if test "${ac_cv_c_type_in_def+set}" = set; then |
| 7290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7291 | else |
| 7292 | saved_libs=$LIBS |
| 7293 | LIBS="conftest_asm.s $LIBS" |
| 7294 | cat > conftest_asm.s <<EOF |
| 7295 | .globl _ac_test |
| 7296 | .def _ac_test; .scl 2; .type 32; .endef |
| 7297 | _ac_test: |
| 7298 | .long 0 |
| 7299 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7300 | cat >conftest.$ac_ext <<_ACEOF |
| 7301 | #line 7301 "configure" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7302 | #include "confdefs.h" |
| 7303 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7304 | int |
| 7305 | main () |
| 7306 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7307 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7308 | ; |
| 7309 | return 0; |
| 7310 | } |
| 7311 | _ACEOF |
| 7312 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7313 | if { (eval echo "$as_me:7313: \"$ac_link\"") >&5 |
| 7314 | (eval $ac_link) 2>&5 |
| 7315 | ac_status=$? |
| 7316 | echo "$as_me:7316: \$? = $ac_status" >&5 |
| 7317 | (exit $ac_status); } && |
| 7318 | { ac_try='test -s conftest$ac_exeext' |
| 7319 | { (eval echo "$as_me:7319: \"$ac_try\"") >&5 |
| 7320 | (eval $ac_try) 2>&5 |
| 7321 | ac_status=$? |
| 7322 | echo "$as_me:7322: \$? = $ac_status" >&5 |
| 7323 | (exit $ac_status); }; }; then |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7324 | ac_cv_c_type_in_def="yes" |
| 7325 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7326 | echo "$as_me: failed program was:" >&5 |
| 7327 | cat conftest.$ac_ext >&5 |
| 7328 | ac_cv_c_type_in_def="no" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7329 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7330 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7331 | LIBS=$saved_libs |
| 7332 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7333 | echo "$as_me:7333: result: $ac_cv_c_type_in_def" >&5 |
| 7334 | echo "${ECHO_T}$ac_cv_c_type_in_def" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7335 | if test "$ac_cv_c_type_in_def" = "yes" |
| 7336 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7337 | |
| 7338 | cat >>confdefs.h <<\EOF |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7339 | #define NEED_TYPE_IN_DEF 1 |
| 7340 | EOF |
| 7341 | |
| 7342 | fi |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 7343 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7344 | echo "$as_me:7344: checking whether external symbols need an underscore prefix" >&5 |
| 7345 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 7346 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 7347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 7348 | else |
| 7349 | saved_libs=$LIBS |
| 7350 | LIBS="conftest_asm.s $LIBS" |
| 7351 | cat > conftest_asm.s <<EOF |
| 7352 | .globl _ac_test |
| 7353 | _ac_test: |
| 7354 | .long 0 |
| 7355 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7356 | cat >conftest.$ac_ext <<_ACEOF |
| 7357 | #line 7357 "configure" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 7358 | #include "confdefs.h" |
| 7359 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7360 | int |
| 7361 | main () |
| 7362 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 7363 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7364 | ; |
| 7365 | return 0; |
| 7366 | } |
| 7367 | _ACEOF |
| 7368 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7369 | if { (eval echo "$as_me:7369: \"$ac_link\"") >&5 |
| 7370 | (eval $ac_link) 2>&5 |
| 7371 | ac_status=$? |
| 7372 | echo "$as_me:7372: \$? = $ac_status" >&5 |
| 7373 | (exit $ac_status); } && |
| 7374 | { ac_try='test -s conftest$ac_exeext' |
| 7375 | { (eval echo "$as_me:7375: \"$ac_try\"") >&5 |
| 7376 | (eval $ac_try) 2>&5 |
| 7377 | ac_status=$? |
| 7378 | echo "$as_me:7378: \$? = $ac_status" >&5 |
| 7379 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 7380 | ac_cv_c_extern_prefix="yes" |
| 7381 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7382 | echo "$as_me: failed program was:" >&5 |
| 7383 | cat conftest.$ac_ext >&5 |
| 7384 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 7385 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7386 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 7387 | LIBS=$saved_libs |
| 7388 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7389 | echo "$as_me:7389: result: $ac_cv_c_extern_prefix" >&5 |
| 7390 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 7391 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 7392 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7393 | |
| 7394 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 7395 | #define NEED_UNDERSCORE_PREFIX 1 |
| 7396 | EOF |
| 7397 | |
| 7398 | fi |
| 7399 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7400 | echo "$as_me:7400: checking whether stdcall symbols need to be decorated" >&5 |
| 7401 | echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6 |
| 7402 | if test "${ac_cv_c_stdcall_decoration+set}" = set; then |
| 7403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 7404 | else |
| 7405 | saved_libs=$LIBS |
| 7406 | LIBS="conftest_asm.s $LIBS" |
| 7407 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 7408 | then |
| 7409 | cat > conftest_asm.s <<EOF |
| 7410 | .globl _ac_test@0 |
| 7411 | _ac_test@0: |
| 7412 | EOF |
| 7413 | else |
| 7414 | cat > conftest_asm.s <<EOF |
| 7415 | .globl ac_test@0 |
| 7416 | ac_test@0: |
| 7417 | EOF |
| 7418 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7419 | cat >conftest.$ac_ext <<_ACEOF |
| 7420 | #line 7420 "configure" |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 7421 | #include "confdefs.h" |
| 7422 | extern void __attribute__((__stdcall__)) ac_test(void); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7423 | int |
| 7424 | main () |
| 7425 | { |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 7426 | ac_test(); return 0 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7427 | ; |
| 7428 | return 0; |
| 7429 | } |
| 7430 | _ACEOF |
| 7431 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7432 | if { (eval echo "$as_me:7432: \"$ac_link\"") >&5 |
| 7433 | (eval $ac_link) 2>&5 |
| 7434 | ac_status=$? |
| 7435 | echo "$as_me:7435: \$? = $ac_status" >&5 |
| 7436 | (exit $ac_status); } && |
| 7437 | { ac_try='test -s conftest$ac_exeext' |
| 7438 | { (eval echo "$as_me:7438: \"$ac_try\"") >&5 |
| 7439 | (eval $ac_try) 2>&5 |
| 7440 | ac_status=$? |
| 7441 | echo "$as_me:7441: \$? = $ac_status" >&5 |
| 7442 | (exit $ac_status); }; }; then |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 7443 | ac_cv_c_stdcall_decoration="yes" |
| 7444 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7445 | echo "$as_me: failed program was:" >&5 |
| 7446 | cat conftest.$ac_ext >&5 |
| 7447 | ac_cv_c_stdcall_decoration="no" |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 7448 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7449 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 7450 | LIBS=$saved_libs |
| 7451 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7452 | echo "$as_me:7452: result: $ac_cv_c_stdcall_decoration" >&5 |
| 7453 | echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6 |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 7454 | if test "$ac_cv_c_stdcall_decoration" = "yes" |
| 7455 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7456 | |
| 7457 | cat >>confdefs.h <<\EOF |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 7458 | #define NEED_STDCALL_DECORATION 1 |
| 7459 | EOF |
| 7460 | |
| 7461 | fi |
| 7462 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7463 | echo "$as_me:7463: checking whether assembler accepts .string" >&5 |
| 7464 | echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6 |
| 7465 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 7466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7467 | else |
| 7468 | saved_libs=$LIBS |
| 7469 | LIBS="conftest_asm.s $LIBS" |
| 7470 | cat > conftest_asm.s <<EOF |
| 7471 | .string "test" |
| 7472 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7473 | cat >conftest.$ac_ext <<_ACEOF |
| 7474 | #line 7474 "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7475 | #include "confdefs.h" |
| 7476 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7477 | int |
| 7478 | main () |
| 7479 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7480 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7481 | ; |
| 7482 | return 0; |
| 7483 | } |
| 7484 | _ACEOF |
| 7485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7486 | if { (eval echo "$as_me:7486: \"$ac_link\"") >&5 |
| 7487 | (eval $ac_link) 2>&5 |
| 7488 | ac_status=$? |
| 7489 | echo "$as_me:7489: \$? = $ac_status" >&5 |
| 7490 | (exit $ac_status); } && |
| 7491 | { ac_try='test -s conftest$ac_exeext' |
| 7492 | { (eval echo "$as_me:7492: \"$ac_try\"") >&5 |
| 7493 | (eval $ac_try) 2>&5 |
| 7494 | ac_status=$? |
| 7495 | echo "$as_me:7495: \$? = $ac_status" >&5 |
| 7496 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7497 | ac_cv_c_asm_string="yes" |
| 7498 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7499 | echo "$as_me: failed program was:" >&5 |
| 7500 | cat conftest.$ac_ext >&5 |
| 7501 | ac_cv_c_asm_string="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7502 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7504 | LIBS=$saved_libs |
| 7505 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7506 | echo "$as_me:7506: result: $ac_cv_c_asm_string" >&5 |
| 7507 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7508 | if test "$ac_cv_c_asm_string" = "yes" |
| 7509 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7510 | |
| 7511 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 7512 | #define HAVE_ASM_STRING 1 |
| 7513 | EOF |
| 7514 | |
| 7515 | fi |
| 7516 | |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 7517 | LDSHARED="" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 7518 | LDDLLFLAGS="" |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 7519 | if test "$LIBEXT" = "so" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7520 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7521 | echo "$as_me:7521: checking whether we can build a GNU style ELF dll" >&5 |
| 7522 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 7523 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 7524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7525 | else |
| 7526 | saved_cflags=$CFLAGS |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 7527 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7528 | cat >conftest.$ac_ext <<_ACEOF |
| 7529 | #line 7529 "configure" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7530 | #include "confdefs.h" |
| 7531 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7532 | int |
| 7533 | main () |
| 7534 | { |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7535 | return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7536 | ; |
| 7537 | return 0; |
| 7538 | } |
| 7539 | _ACEOF |
| 7540 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7541 | if { (eval echo "$as_me:7541: \"$ac_link\"") >&5 |
| 7542 | (eval $ac_link) 2>&5 |
| 7543 | ac_status=$? |
| 7544 | echo "$as_me:7544: \$? = $ac_status" >&5 |
| 7545 | (exit $ac_status); } && |
| 7546 | { ac_try='test -s conftest$ac_exeext' |
| 7547 | { (eval echo "$as_me:7547: \"$ac_try\"") >&5 |
| 7548 | (eval $ac_try) 2>&5 |
| 7549 | ac_status=$? |
| 7550 | echo "$as_me:7550: \$? = $ac_status" >&5 |
| 7551 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 7552 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7553 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7554 | echo "$as_me: failed program was:" >&5 |
| 7555 | cat conftest.$ac_ext >&5 |
| 7556 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7557 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7558 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7559 | CFLAGS=$saved_cflags |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7560 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7561 | fi |
| 7562 | echo "$as_me:7562: result: $ac_cv_c_dll_gnuelf" >&5 |
| 7563 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 7564 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7565 | then |
Jeremy White | c7b4ed7 | 2001-07-14 00:49:50 +0000 | [diff] [blame] | 7566 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 7567 | LDDLLFLAGS="-Wl,-Bsymbolic" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7568 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7569 | echo "$as_me:7569: checking whether we can build a UnixWare (Solaris) dll" >&5 |
| 7570 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 7571 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 7572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 7573 | else |
| 7574 | saved_cflags=$CFLAGS |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 7575 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7576 | cat >conftest.$ac_ext <<_ACEOF |
| 7577 | #line 7577 "configure" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 7578 | #include "confdefs.h" |
| 7579 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7580 | int |
| 7581 | main () |
| 7582 | { |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 7583 | return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7584 | ; |
| 7585 | return 0; |
| 7586 | } |
| 7587 | _ACEOF |
| 7588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7589 | if { (eval echo "$as_me:7589: \"$ac_link\"") >&5 |
| 7590 | (eval $ac_link) 2>&5 |
| 7591 | ac_status=$? |
| 7592 | echo "$as_me:7592: \$? = $ac_status" >&5 |
| 7593 | (exit $ac_status); } && |
| 7594 | { ac_try='test -s conftest$ac_exeext' |
| 7595 | { (eval echo "$as_me:7595: \"$ac_try\"") >&5 |
| 7596 | (eval $ac_try) 2>&5 |
| 7597 | ac_status=$? |
| 7598 | echo "$as_me:7598: \$? = $ac_status" >&5 |
| 7599 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7600 | ac_cv_c_dll_unixware="yes" |
| 7601 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7602 | echo "$as_me: failed program was:" >&5 |
| 7603 | cat conftest.$ac_ext >&5 |
| 7604 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7605 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7607 | CFLAGS=$saved_cflags |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7608 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7609 | fi |
| 7610 | echo "$as_me:7610: result: $ac_cv_c_dll_unixware" >&5 |
| 7611 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7612 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 7613 | then |
Jeremy White | c7b4ed7 | 2001-07-14 00:49:50 +0000 | [diff] [blame] | 7614 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 7615 | LDDLLFLAGS="-Wl,-B,symbolic" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 7616 | fi |
| 7617 | fi |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 7618 | if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 7619 | then |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7620 | LIBEXT="a" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7621 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 7622 | set dummy dllwrap; ac_word=$2 |
| 7623 | echo "$as_me:7623: checking for $ac_word" >&5 |
| 7624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7625 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 7626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7627 | else |
| 7628 | if test -n "$DLLWRAP"; then |
| 7629 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 7630 | else |
| 7631 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 7632 | ac_dummy="$PATH" |
| 7633 | for ac_dir in $ac_dummy; do |
| 7634 | IFS=$ac_save_IFS |
| 7635 | test -z "$ac_dir" && ac_dir=. |
| 7636 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 7637 | ac_cv_prog_DLLWRAP="dllwrap" |
| 7638 | echo "$as_me:7638: found $ac_dir/$ac_word" >&5 |
| 7639 | break |
| 7640 | done |
| 7641 | |
| 7642 | test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false" |
| 7643 | fi |
| 7644 | fi |
| 7645 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 7646 | if test -n "$DLLWRAP"; then |
| 7647 | echo "$as_me:7647: result: $DLLWRAP" >&5 |
| 7648 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 7649 | else |
| 7650 | echo "$as_me:7650: result: no" >&5 |
| 7651 | echo "${ECHO_T}no" >&6 |
| 7652 | fi |
| 7653 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7654 | if test "$DLLWRAP" = "dllwrap"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7655 | case $host_os in |
| 7656 | *cygwin*) |
| 7657 | LIBEXT="dll" |
| 7658 | ;; |
| 7659 | esac |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7660 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7661 | fi |
| 7662 | fi |
| 7663 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7664 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7665 | { { echo "$as_me:7665: error: could not find a way to build shared libraries. |
| 7666 | It is currently not possible to build Wine without shared library |
| 7667 | (.so) support to allow transparent switch between .so and .dll files. |
| 7668 | If you are using Linux, you will need a newer binutils. |
| 7669 | " >&5 |
| 7670 | echo "$as_me: error: could not find a way to build shared libraries. |
| 7671 | It is currently not possible to build Wine without shared library |
| 7672 | (.so) support to allow transparent switch between .so and .dll files. |
| 7673 | If you are using Linux, you will need a newer binutils. |
| 7674 | " >&2;} |
| 7675 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7676 | fi |
| 7677 | |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 7678 | DLLFLAGS="" |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7679 | LDPATH="" |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 7680 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 7681 | if test "$LIBEXT" = "so"; then |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 7682 | DLLFLAGS="-fPIC" |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7683 | LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\"" |
| 7684 | elif test "$LIBEXT" = "dll"; then |
| 7685 | #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7686 | LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\"" |
Patrik Stridvall | a9ee4a2 | 2000-01-30 00:36:50 +0000 | [diff] [blame] | 7687 | fi |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 7688 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7689 | wine_cv_libc_reentrant=no |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 7690 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7691 | echo "$as_me:7691: checking for reentrant libc: __errno_location" >&5 |
| 7692 | echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6 |
| 7693 | if test "${wine_cv_libc_r___errno_location+set}" = set; then |
| 7694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7695 | else |
| 7696 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7697 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7698 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7699 | cat >conftest.$ac_ext <<_ACEOF |
| 7700 | #line 7700 "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7701 | #include "confdefs.h" |
| 7702 | int myerrno = 0; |
| 7703 | char buf[256]; |
| 7704 | int *__errno_location(){return &myerrno;} |
| 7705 | main(){connect(0,buf,255); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7706 | _ACEOF |
| 7707 | rm -f conftest$ac_exeext |
| 7708 | if { (eval echo "$as_me:7708: \"$ac_link\"") >&5 |
| 7709 | (eval $ac_link) 2>&5 |
| 7710 | ac_status=$? |
| 7711 | echo "$as_me:7711: \$? = $ac_status" >&5 |
| 7712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7713 | { (eval echo "$as_me:7713: \"$ac_try\"") >&5 |
| 7714 | (eval $ac_try) 2>&5 |
| 7715 | ac_status=$? |
| 7716 | echo "$as_me:7716: \$? = $ac_status" >&5 |
| 7717 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7718 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7719 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7720 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7721 | echo "$as_me: failed program was:" >&5 |
| 7722 | cat conftest.$ac_ext >&5 |
| 7723 | wine_cv_libc_r___errno_location=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7724 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7725 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7726 | fi |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 7727 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7728 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7729 | echo "$as_me:7729: result: $wine_cv_libc_r___errno_location" >&5 |
| 7730 | echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6 |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7731 | if test "$wine_cv_libc_r___errno_location" = "yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7732 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7733 | wine_cv_libc_reentrant=__errno_location |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7734 | fi |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7735 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7736 | echo "$as_me:7736: checking for reentrant libc: __error" >&5 |
| 7737 | echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6 |
| 7738 | if test "${wine_cv_libc_r___error+set}" = set; then |
| 7739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7740 | else |
| 7741 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7742 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 7743 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7744 | cat >conftest.$ac_ext <<_ACEOF |
| 7745 | #line 7745 "configure" |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 7746 | #include "confdefs.h" |
| 7747 | int myerrno = 0; |
| 7748 | char buf[256]; |
| 7749 | int *__error(){return &myerrno;} |
| 7750 | main(){connect(0,buf,255); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7751 | _ACEOF |
| 7752 | rm -f conftest$ac_exeext |
| 7753 | if { (eval echo "$as_me:7753: \"$ac_link\"") >&5 |
| 7754 | (eval $ac_link) 2>&5 |
| 7755 | ac_status=$? |
| 7756 | echo "$as_me:7756: \$? = $ac_status" >&5 |
| 7757 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7758 | { (eval echo "$as_me:7758: \"$ac_try\"") >&5 |
| 7759 | (eval $ac_try) 2>&5 |
| 7760 | ac_status=$? |
| 7761 | echo "$as_me:7761: \$? = $ac_status" >&5 |
| 7762 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7763 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 7764 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7765 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7766 | echo "$as_me: failed program was:" >&5 |
| 7767 | cat conftest.$ac_ext >&5 |
| 7768 | wine_cv_libc_r___error=no |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 7769 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7770 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 7771 | fi |
| 7772 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7773 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7774 | echo "$as_me:7774: result: $wine_cv_libc_r___error" >&5 |
| 7775 | echo "${ECHO_T}$wine_cv_libc_r___error" >&6 |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7776 | if test "$wine_cv_libc_r___error" = "yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7777 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7778 | wine_cv_libc_reentrant=__error |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7779 | fi |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7780 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7781 | echo "$as_me:7781: checking for reentrant libc: ___errno" >&5 |
| 7782 | echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6 |
| 7783 | if test "${wine_cv_libc_r____errno+set}" = set; then |
| 7784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7785 | else |
| 7786 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7787 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7788 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7789 | cat >conftest.$ac_ext <<_ACEOF |
| 7790 | #line 7790 "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7791 | #include "confdefs.h" |
| 7792 | int myerrno = 0; |
| 7793 | char buf[256]; |
| 7794 | int *___errno(){return &myerrno;} |
| 7795 | main(){connect(0,buf,255); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7796 | _ACEOF |
| 7797 | rm -f conftest$ac_exeext |
| 7798 | if { (eval echo "$as_me:7798: \"$ac_link\"") >&5 |
| 7799 | (eval $ac_link) 2>&5 |
| 7800 | ac_status=$? |
| 7801 | echo "$as_me:7801: \$? = $ac_status" >&5 |
| 7802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7803 | { (eval echo "$as_me:7803: \"$ac_try\"") >&5 |
| 7804 | (eval $ac_try) 2>&5 |
| 7805 | ac_status=$? |
| 7806 | echo "$as_me:7806: \$? = $ac_status" >&5 |
| 7807 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7808 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7809 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7810 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7811 | echo "$as_me: failed program was:" >&5 |
| 7812 | cat conftest.$ac_ext >&5 |
| 7813 | wine_cv_libc_r____errno=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7814 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7815 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7816 | fi |
| 7817 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7818 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7819 | echo "$as_me:7819: result: $wine_cv_libc_r____errno" >&5 |
| 7820 | echo "${ECHO_T}$wine_cv_libc_r____errno" >&6 |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7821 | if test "$wine_cv_libc_r____errno" = "yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7822 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7823 | wine_cv_libc_reentrant=___errno |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7824 | fi |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7825 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7826 | echo "$as_me:7826: checking for reentrant libc: __thr_errno" >&5 |
| 7827 | echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6 |
| 7828 | if test "${wine_cv_libc_r___thr_errno+set}" = set; then |
| 7829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7830 | else |
| 7831 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7832 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7833 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7834 | cat >conftest.$ac_ext <<_ACEOF |
| 7835 | #line 7835 "configure" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7836 | #include "confdefs.h" |
| 7837 | int myerrno = 0; |
| 7838 | char buf[256]; |
| 7839 | int *__thr_errno(){return &myerrno;} |
| 7840 | main(){connect(0,buf,255); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7841 | _ACEOF |
| 7842 | rm -f conftest$ac_exeext |
| 7843 | if { (eval echo "$as_me:7843: \"$ac_link\"") >&5 |
| 7844 | (eval $ac_link) 2>&5 |
| 7845 | ac_status=$? |
| 7846 | echo "$as_me:7846: \$? = $ac_status" >&5 |
| 7847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7848 | { (eval echo "$as_me:7848: \"$ac_try\"") >&5 |
| 7849 | (eval $ac_try) 2>&5 |
| 7850 | ac_status=$? |
| 7851 | echo "$as_me:7851: \$? = $ac_status" >&5 |
| 7852 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7853 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7854 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7855 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7856 | echo "$as_me: failed program was:" >&5 |
| 7857 | cat conftest.$ac_ext >&5 |
| 7858 | wine_cv_libc_r___thr_errno=no |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7859 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7860 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7861 | fi |
| 7862 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7863 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7864 | echo "$as_me:7864: result: $wine_cv_libc_r___thr_errno" >&5 |
| 7865 | echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6 |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7866 | if test "$wine_cv_libc_r___thr_errno" = "yes" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7867 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7868 | wine_cv_libc_reentrant=__thr_errno |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 7869 | fi |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7870 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7871 | echo "$as_me:7871: checking for reentrant libc: __errno" >&5 |
| 7872 | echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6 |
| 7873 | if test "${wine_cv_libc_r___errno+set}" = set; then |
| 7874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7875 | else |
| 7876 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7877 | wine_cv_libc_r___errno=yes |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7878 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7879 | cat >conftest.$ac_ext <<_ACEOF |
| 7880 | #line 7880 "configure" |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7881 | #include "confdefs.h" |
| 7882 | int myerrno = 0; |
| 7883 | char buf[256]; |
| 7884 | int *__errno(){return &myerrno;} |
| 7885 | main(){connect(0,buf,255); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7886 | _ACEOF |
| 7887 | rm -f conftest$ac_exeext |
| 7888 | if { (eval echo "$as_me:7888: \"$ac_link\"") >&5 |
| 7889 | (eval $ac_link) 2>&5 |
| 7890 | ac_status=$? |
| 7891 | echo "$as_me:7891: \$? = $ac_status" >&5 |
| 7892 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7893 | { (eval echo "$as_me:7893: \"$ac_try\"") >&5 |
| 7894 | (eval $ac_try) 2>&5 |
| 7895 | ac_status=$? |
| 7896 | echo "$as_me:7896: \$? = $ac_status" >&5 |
| 7897 | (exit $ac_status); }; }; then |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7898 | wine_cv_libc_r___errno=yes |
| 7899 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7900 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7901 | echo "$as_me: failed program was:" >&5 |
| 7902 | cat conftest.$ac_ext >&5 |
| 7903 | wine_cv_libc_r___errno=no |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7904 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7905 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7906 | fi |
| 7907 | |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7908 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7909 | echo "$as_me:7909: result: $wine_cv_libc_r___errno" >&5 |
| 7910 | echo "${ECHO_T}$wine_cv_libc_r___errno" >&6 |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7911 | if test "$wine_cv_libc_r___errno" = "yes" |
| 7912 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7913 | wine_cv_libc_reentrant=__errno |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 7914 | fi |
| 7915 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7916 | if test "$wine_cv_libc_reentrant" != "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7917 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7918 | |
| 7919 | cat >>confdefs.h <<EOF |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 7920 | #define ERRNO_LOCATION $wine_cv_libc_reentrant |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7921 | EOF |
| 7922 | |
| 7923 | fi |
| 7924 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7925 | if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7926 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7927 | echo "$as_me:7927: checking for reentrant X libraries" >&5 |
| 7928 | echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6 |
| 7929 | if test "${wine_cv_x_reentrant+set}" = set; then |
| 7930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7931 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7932 | if test "x$with_reentrant_x" = "xno" |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7933 | then |
| 7934 | wine_cv_x_reentrant=no |
| 7935 | else |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7936 | libX11_check=none |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7937 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 7938 | if test -r $dir/libX11.so; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7939 | libX11_check="-D $dir/libX11.so" |
| 7940 | break 1 |
| 7941 | fi |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 7942 | if test -r $dir/libX11.a; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7943 | libX11_check="$dir/libX11.a" |
| 7944 | break 1 |
| 7945 | fi |
| 7946 | done |
| 7947 | if test "$libX11_check" != "none"; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 7948 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 7949 | then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7950 | wine_cv_x_reentrant=yes |
| 7951 | else |
| 7952 | wine_cv_x_reentrant=no |
| 7953 | fi |
| 7954 | else |
| 7955 | wine_cv_x_reentrant=unknown |
| 7956 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7957 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7958 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7959 | echo "$as_me:7959: result: $wine_cv_x_reentrant" >&5 |
| 7960 | echo "${ECHO_T}$wine_cv_x_reentrant" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7961 | else |
| 7962 | wine_cv_x_reentrant=no |
| 7963 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7964 | if test "$wine_cv_x_reentrant" = "no" |
| 7965 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7966 | |
| 7967 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7968 | #define NO_REENTRANT_X11 1 |
| 7969 | EOF |
| 7970 | |
| 7971 | fi |
| 7972 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 7973 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 7974 | # for constant arguments. Useless! |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7975 | echo "$as_me:7975: checking for working alloca.h" >&5 |
| 7976 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 7977 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 7978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 7979 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7980 | cat >conftest.$ac_ext <<_ACEOF |
| 7981 | #line 7981 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 7982 | #include "confdefs.h" |
| 7983 | #include <alloca.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 7984 | int |
| 7985 | main () |
| 7986 | { |
| 7987 | char *p = (char *) alloca (2 * sizeof (int)); |
| 7988 | ; |
| 7989 | return 0; |
| 7990 | } |
| 7991 | _ACEOF |
| 7992 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7993 | if { (eval echo "$as_me:7993: \"$ac_link\"") >&5 |
| 7994 | (eval $ac_link) 2>&5 |
| 7995 | ac_status=$? |
| 7996 | echo "$as_me:7996: \$? = $ac_status" >&5 |
| 7997 | (exit $ac_status); } && |
| 7998 | { ac_try='test -s conftest$ac_exeext' |
| 7999 | { (eval echo "$as_me:7999: \"$ac_try\"") >&5 |
| 8000 | (eval $ac_try) 2>&5 |
| 8001 | ac_status=$? |
| 8002 | echo "$as_me:8002: \$? = $ac_status" >&5 |
| 8003 | (exit $ac_status); }; }; then |
| 8004 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8005 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8006 | echo "$as_me: failed program was:" >&5 |
| 8007 | cat conftest.$ac_ext >&5 |
| 8008 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8009 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8010 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8011 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8012 | echo "$as_me:8012: result: $ac_cv_working_alloca_h" >&5 |
| 8013 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 8014 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8015 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8016 | cat >>confdefs.h <<\EOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8017 | #define HAVE_ALLOCA_H 1 |
| 8018 | EOF |
| 8019 | |
| 8020 | fi |
| 8021 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8022 | echo "$as_me:8022: checking for alloca" >&5 |
| 8023 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 8024 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 8025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8026 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8027 | cat >conftest.$ac_ext <<_ACEOF |
| 8028 | #line 8028 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8029 | #include "confdefs.h" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8030 | #ifdef __GNUC__ |
| 8031 | # define alloca __builtin_alloca |
| 8032 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 8033 | # ifdef _MSC_VER |
| 8034 | # include <malloc.h> |
| 8035 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8036 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 8037 | # if HAVE_ALLOCA_H |
| 8038 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8039 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 8040 | # ifdef _AIX |
| 8041 | #pragma alloca |
| 8042 | # else |
| 8043 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8044 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 8045 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8046 | # endif |
| 8047 | # endif |
| 8048 | # endif |
| 8049 | #endif |
| 8050 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8051 | int |
| 8052 | main () |
| 8053 | { |
| 8054 | char *p = (char *) alloca (1); |
| 8055 | ; |
| 8056 | return 0; |
| 8057 | } |
| 8058 | _ACEOF |
| 8059 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8060 | if { (eval echo "$as_me:8060: \"$ac_link\"") >&5 |
| 8061 | (eval $ac_link) 2>&5 |
| 8062 | ac_status=$? |
| 8063 | echo "$as_me:8063: \$? = $ac_status" >&5 |
| 8064 | (exit $ac_status); } && |
| 8065 | { ac_try='test -s conftest$ac_exeext' |
| 8066 | { (eval echo "$as_me:8066: \"$ac_try\"") >&5 |
| 8067 | (eval $ac_try) 2>&5 |
| 8068 | ac_status=$? |
| 8069 | echo "$as_me:8069: \$? = $ac_status" >&5 |
| 8070 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8071 | ac_cv_func_alloca_works=yes |
| 8072 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8073 | echo "$as_me: failed program was:" >&5 |
| 8074 | cat conftest.$ac_ext >&5 |
| 8075 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8076 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8077 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8078 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8079 | echo "$as_me:8079: result: $ac_cv_func_alloca_works" >&5 |
| 8080 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8081 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8082 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8083 | |
| 8084 | cat >>confdefs.h <<\EOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8085 | #define HAVE_ALLOCA 1 |
| 8086 | EOF |
| 8087 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8088 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8089 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8090 | # that cause trouble. Some versions do not even contain alloca or |
| 8091 | # contain a buggy version. If you still want to use their alloca, |
| 8092 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 8093 | |
| 8094 | ALLOCA=alloca.$ac_objext |
| 8095 | |
| 8096 | cat >>confdefs.h <<\EOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8097 | #define C_ALLOCA 1 |
| 8098 | EOF |
| 8099 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8100 | echo "$as_me:8100: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 8101 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 8102 | if test "${ac_cv_os_cray+set}" = set; then |
| 8103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8104 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8105 | cat >conftest.$ac_ext <<_ACEOF |
| 8106 | #line 8106 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8107 | #include "confdefs.h" |
| 8108 | #if defined(CRAY) && ! defined(CRAY2) |
| 8109 | webecray |
| 8110 | #else |
| 8111 | wenotbecray |
| 8112 | #endif |
| 8113 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8114 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8116 | egrep "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8117 | ac_cv_os_cray=yes |
| 8118 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8119 | ac_cv_os_cray=no |
| 8120 | fi |
| 8121 | rm -f conftest* |
| 8122 | |
| 8123 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8124 | echo "$as_me:8124: result: $ac_cv_os_cray" >&5 |
| 8125 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8126 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8127 | for ac_func in _getb67 GETB67 getb67; do |
| 8128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8129 | echo "$as_me:8129: checking for $ac_func" >&5 |
| 8130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8131 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8133 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8134 | cat >conftest.$ac_ext <<_ACEOF |
| 8135 | #line 8135 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8136 | #include "confdefs.h" |
| 8137 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8138 | which can conflict with char $ac_func (); below. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8139 | #include <assert.h> |
| 8140 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8141 | #ifdef __cplusplus |
| 8142 | extern "C" |
| 8143 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 8144 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8145 | builtin and then its argument prototype would still apply. */ |
| 8146 | char $ac_func (); |
| 8147 | char (*f) (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8148 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8149 | int |
| 8150 | main () |
| 8151 | { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8152 | /* The GNU C library defines this for functions which it implements |
| 8153 | to always fail with ENOSYS. Some functions are actually named |
| 8154 | something starting with __ and the normal name is an alias. */ |
| 8155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8156 | choke me |
| 8157 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8158 | f = $ac_func; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8159 | #endif |
| 8160 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8161 | ; |
| 8162 | return 0; |
| 8163 | } |
| 8164 | _ACEOF |
| 8165 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8166 | if { (eval echo "$as_me:8166: \"$ac_link\"") >&5 |
| 8167 | (eval $ac_link) 2>&5 |
| 8168 | ac_status=$? |
| 8169 | echo "$as_me:8169: \$? = $ac_status" >&5 |
| 8170 | (exit $ac_status); } && |
| 8171 | { ac_try='test -s conftest$ac_exeext' |
| 8172 | { (eval echo "$as_me:8172: \"$ac_try\"") >&5 |
| 8173 | (eval $ac_try) 2>&5 |
| 8174 | ac_status=$? |
| 8175 | echo "$as_me:8175: \$? = $ac_status" >&5 |
| 8176 | (exit $ac_status); }; }; then |
| 8177 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8178 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8179 | echo "$as_me: failed program was:" >&5 |
| 8180 | cat conftest.$ac_ext >&5 |
| 8181 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8182 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8183 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8184 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8185 | echo "$as_me:8185: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8186 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8187 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8188 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8189 | cat >>confdefs.h <<EOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8190 | #define CRAY_STACKSEG_END $ac_func |
| 8191 | EOF |
| 8192 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8193 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8194 | fi |
| 8195 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8196 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8197 | fi |
| 8198 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8199 | echo "$as_me:8199: checking stack direction for C alloca" >&5 |
| 8200 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 8201 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 8202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8203 | else |
| 8204 | if test "$cross_compiling" = yes; then |
| 8205 | ac_cv_c_stack_direction=0 |
| 8206 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8207 | cat >conftest.$ac_ext <<_ACEOF |
| 8208 | #line 8208 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8209 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8210 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8211 | find_stack_direction () |
| 8212 | { |
| 8213 | static char *addr = 0; |
| 8214 | auto char dummy; |
| 8215 | if (addr == 0) |
| 8216 | { |
| 8217 | addr = &dummy; |
| 8218 | return find_stack_direction (); |
| 8219 | } |
| 8220 | else |
| 8221 | return (&dummy > addr) ? 1 : -1; |
| 8222 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8223 | |
| 8224 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8225 | main () |
| 8226 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8227 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8228 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8229 | _ACEOF |
| 8230 | rm -f conftest$ac_exeext |
| 8231 | if { (eval echo "$as_me:8231: \"$ac_link\"") >&5 |
| 8232 | (eval $ac_link) 2>&5 |
| 8233 | ac_status=$? |
| 8234 | echo "$as_me:8234: \$? = $ac_status" >&5 |
| 8235 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8236 | { (eval echo "$as_me:8236: \"$ac_try\"") >&5 |
| 8237 | (eval $ac_try) 2>&5 |
| 8238 | ac_status=$? |
| 8239 | echo "$as_me:8239: \$? = $ac_status" >&5 |
| 8240 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8241 | ac_cv_c_stack_direction=1 |
| 8242 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8243 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8244 | echo "$as_me: failed program was:" >&5 |
| 8245 | cat conftest.$ac_ext >&5 |
| 8246 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8247 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8248 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8249 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8250 | fi |
| 8251 | echo "$as_me:8251: result: $ac_cv_c_stack_direction" >&5 |
| 8252 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8253 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8254 | cat >>confdefs.h <<EOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8255 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 8256 | EOF |
| 8257 | |
| 8258 | fi |
| 8259 | |
| 8260 | for ac_func in \ |
Eric Pouech | f61d7e0 | 2000-04-29 16:44:19 +0000 | [diff] [blame] | 8261 | __libc_fork \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8262 | _lwp_create \ |
| 8263 | clone \ |
Andreas Mohr | a7ca2ba | 2001-01-12 23:07:11 +0000 | [diff] [blame] | 8264 | ecvt \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 8265 | finite \ |
| 8266 | fpclass \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 8267 | ftruncate64 \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 8268 | getnetbyaddr \ |
| 8269 | getnetbyname \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8270 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 8271 | getprotobyname \ |
| 8272 | getprotobynumber \ |
Dimitrie O. Paun | 1ec253d | 2000-12-01 20:47:11 +0000 | [diff] [blame] | 8273 | getrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 8274 | getservbyport \ |
| 8275 | getsockopt \ |
| 8276 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 8277 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 8278 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8279 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 8280 | mmap \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 8281 | pread \ |
| 8282 | pwrite \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8283 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 8284 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8285 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 8286 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8287 | sigaltstack \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 8288 | statfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 8289 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8290 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 8291 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8292 | tcgetattr \ |
| 8293 | timegm \ |
| 8294 | usleep \ |
| 8295 | vfscanf \ |
| 8296 | wait4 \ |
| 8297 | waitpid \ |
| 8298 | |
| 8299 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8300 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8301 | echo "$as_me:8301: checking for $ac_func" >&5 |
| 8302 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8303 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8305 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8306 | cat >conftest.$ac_ext <<_ACEOF |
| 8307 | #line 8307 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8308 | #include "confdefs.h" |
| 8309 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8310 | which can conflict with char $ac_func (); below. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8311 | #include <assert.h> |
| 8312 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8313 | #ifdef __cplusplus |
| 8314 | extern "C" |
| 8315 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8316 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8317 | builtin and then its argument prototype would still apply. */ |
| 8318 | char $ac_func (); |
| 8319 | char (*f) (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8320 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8321 | int |
| 8322 | main () |
| 8323 | { |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8324 | /* The GNU C library defines this for functions which it implements |
| 8325 | to always fail with ENOSYS. Some functions are actually named |
| 8326 | something starting with __ and the normal name is an alias. */ |
| 8327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8328 | choke me |
| 8329 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8330 | f = $ac_func; |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 8331 | #endif |
| 8332 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8333 | ; |
| 8334 | return 0; |
| 8335 | } |
| 8336 | _ACEOF |
| 8337 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8338 | if { (eval echo "$as_me:8338: \"$ac_link\"") >&5 |
| 8339 | (eval $ac_link) 2>&5 |
| 8340 | ac_status=$? |
| 8341 | echo "$as_me:8341: \$? = $ac_status" >&5 |
| 8342 | (exit $ac_status); } && |
| 8343 | { ac_try='test -s conftest$ac_exeext' |
| 8344 | { (eval echo "$as_me:8344: \"$ac_try\"") >&5 |
| 8345 | (eval $ac_try) 2>&5 |
| 8346 | ac_status=$? |
| 8347 | echo "$as_me:8347: \$? = $ac_status" >&5 |
| 8348 | (exit $ac_status); }; }; then |
| 8349 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8350 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8351 | echo "$as_me: failed program was:" >&5 |
| 8352 | cat conftest.$ac_ext >&5 |
| 8353 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8354 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8355 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8356 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8357 | echo "$as_me:8357: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8358 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8359 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8360 | cat >>confdefs.h <<EOF |
| 8361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8362 | EOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 8363 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8364 | fi |
| 8365 | done |
| 8366 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8367 | for ac_header in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8368 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8369 | arpa/nameser.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8370 | elf.h \ |
| 8371 | float.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 8372 | ieeefp.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8373 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 8374 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8375 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8376 | linux/cdrom.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 8377 | linux/input.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 8378 | linux/joystick.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8379 | linux/ucdrom.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8380 | net/if.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 8381 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8382 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 8383 | netinet/in_systm.h \ |
| 8384 | netinet/ip.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8385 | netinet/tcp.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 8386 | pty.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8387 | resolv.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8388 | sched.h \ |
| 8389 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 8390 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8391 | strings.h \ |
| 8392 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 8393 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8394 | sys/file.h \ |
| 8395 | sys/filio.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8396 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 8397 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8398 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 8399 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8400 | sys/modem.h \ |
| 8401 | sys/mount.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8402 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8403 | sys/param.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 8404 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 8405 | sys/reg.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 8406 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8407 | sys/shm.h \ |
| 8408 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8409 | sys/sockio.h \ |
| 8410 | sys/statfs.h \ |
| 8411 | sys/strtio.h \ |
| 8412 | sys/syscall.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 8413 | sys/user.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8414 | sys/wait.h \ |
| 8415 | sys/v86.h \ |
| 8416 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8417 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 8418 | sys/vm86.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8419 | syscall.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 8420 | ucontext.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 8421 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8422 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8423 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8424 | echo "$as_me:8424: checking for $ac_header" >&5 |
| 8425 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8428 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8429 | cat >conftest.$ac_ext <<_ACEOF |
| 8430 | #line 8430 "configure" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8431 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8432 | #include <$ac_header> |
| 8433 | _ACEOF |
| 8434 | if { (eval echo "$as_me:8434: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8435 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8436 | ac_status=$? |
| 8437 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8438 | rm -f conftest.er1 |
| 8439 | cat conftest.err >&5 |
| 8440 | echo "$as_me:8440: \$? = $ac_status" >&5 |
| 8441 | (exit $ac_status); } >/dev/null; then |
| 8442 | if test -s conftest.err; then |
| 8443 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8444 | else |
| 8445 | ac_cpp_err= |
| 8446 | fi |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8447 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8448 | ac_cpp_err=yes |
| 8449 | fi |
| 8450 | if test -z "$ac_cpp_err"; then |
| 8451 | eval "$as_ac_Header=yes" |
| 8452 | else |
| 8453 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8454 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8455 | eval "$as_ac_Header=no" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8456 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8457 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8458 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8459 | echo "$as_me:8459: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8460 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8461 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8462 | cat >>confdefs.h <<EOF |
| 8463 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8464 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8465 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 8466 | fi |
| 8467 | done |
| 8468 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8469 | echo "$as_me:8469: checking whether stat file-mode macros are broken" >&5 |
| 8470 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 8471 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 8472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8473 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8474 | cat >conftest.$ac_ext <<_ACEOF |
| 8475 | #line 8475 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8476 | #include "confdefs.h" |
| 8477 | #include <sys/types.h> |
| 8478 | #include <sys/stat.h> |
| 8479 | |
| 8480 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 8481 | # if S_ISBLK (S_IFDIR) |
| 8482 | You lose. |
| 8483 | # endif |
| 8484 | #endif |
| 8485 | |
| 8486 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 8487 | # if S_ISBLK (S_IFCHR) |
| 8488 | You lose. |
| 8489 | # endif |
| 8490 | #endif |
| 8491 | |
| 8492 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 8493 | # if S_ISLNK (S_IFREG) |
| 8494 | You lose. |
| 8495 | # endif |
| 8496 | #endif |
| 8497 | |
| 8498 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 8499 | # if S_ISSOCK (S_IFREG) |
| 8500 | You lose. |
| 8501 | # endif |
| 8502 | #endif |
| 8503 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8504 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8506 | egrep "You lose" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8507 | ac_cv_header_stat_broken=yes |
| 8508 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8509 | ac_cv_header_stat_broken=no |
| 8510 | fi |
| 8511 | rm -f conftest* |
| 8512 | |
| 8513 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8514 | echo "$as_me:8514: result: $ac_cv_header_stat_broken" >&5 |
| 8515 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8516 | if test $ac_cv_header_stat_broken = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8517 | |
| 8518 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8519 | #define STAT_MACROS_BROKEN 1 |
| 8520 | EOF |
| 8521 | |
| 8522 | fi |
| 8523 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8524 | echo "$as_me:8524: checking for $CC option to accept ANSI C" >&5 |
| 8525 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 8526 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 8527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8528 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8529 | ac_cv_prog_cc_stdc=no |
| 8530 | ac_save_CC=$CC |
| 8531 | cat >conftest.$ac_ext <<_ACEOF |
| 8532 | #line 8532 "configure" |
| 8533 | #include "confdefs.h" |
| 8534 | #include <stdarg.h> |
| 8535 | #include <stdio.h> |
| 8536 | #include <sys/types.h> |
| 8537 | #include <sys/stat.h> |
| 8538 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 8539 | struct buf { int x; }; |
| 8540 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 8541 | static char *e (p, i) |
| 8542 | char **p; |
| 8543 | int i; |
| 8544 | { |
| 8545 | return p[i]; |
| 8546 | } |
| 8547 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 8548 | { |
| 8549 | char *s; |
| 8550 | va_list v; |
| 8551 | va_start (v,p); |
| 8552 | s = g (p, va_arg (v,int)); |
| 8553 | va_end (v); |
| 8554 | return s; |
| 8555 | } |
| 8556 | int test (int i, double x); |
| 8557 | struct s1 {int (*f) (int a);}; |
| 8558 | struct s2 {int (*f) (double a);}; |
| 8559 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 8560 | int argc; |
| 8561 | char **argv; |
| 8562 | int |
| 8563 | main () |
| 8564 | { |
| 8565 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 8566 | ; |
| 8567 | return 0; |
| 8568 | } |
| 8569 | _ACEOF |
| 8570 | # Don't try gcc -ansi; that turns off useful extensions and |
| 8571 | # breaks some systems' header files. |
| 8572 | # AIX -qlanglvl=ansi |
| 8573 | # Ultrix and OSF/1 -std1 |
| 8574 | # HP-UX 10.20 and later -Ae |
| 8575 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 8576 | # SVR4 -Xc -D__EXTENSIONS__ |
| 8577 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 8578 | do |
| 8579 | CC="$ac_save_CC $ac_arg" |
| 8580 | rm -f conftest.$ac_objext |
| 8581 | if { (eval echo "$as_me:8581: \"$ac_compile\"") >&5 |
| 8582 | (eval $ac_compile) 2>&5 |
| 8583 | ac_status=$? |
| 8584 | echo "$as_me:8584: \$? = $ac_status" >&5 |
| 8585 | (exit $ac_status); } && |
| 8586 | { ac_try='test -s conftest.$ac_objext' |
| 8587 | { (eval echo "$as_me:8587: \"$ac_try\"") >&5 |
| 8588 | (eval $ac_try) 2>&5 |
| 8589 | ac_status=$? |
| 8590 | echo "$as_me:8590: \$? = $ac_status" >&5 |
| 8591 | (exit $ac_status); }; }; then |
| 8592 | ac_cv_prog_cc_stdc=$ac_arg |
| 8593 | break |
| 8594 | else |
| 8595 | echo "$as_me: failed program was:" >&5 |
| 8596 | cat conftest.$ac_ext >&5 |
| 8597 | fi |
| 8598 | rm -f conftest.$ac_objext |
| 8599 | done |
| 8600 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 8601 | CC=$ac_save_CC |
| 8602 | |
| 8603 | fi |
| 8604 | |
| 8605 | case "x$ac_cv_prog_cc_stdc" in |
| 8606 | x|xno) |
| 8607 | echo "$as_me:8607: result: none needed" >&5 |
| 8608 | echo "${ECHO_T}none needed" >&6 ;; |
| 8609 | *) |
| 8610 | echo "$as_me:8610: result: $ac_cv_prog_cc_stdc" >&5 |
| 8611 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 8612 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 8613 | esac |
| 8614 | |
| 8615 | echo "$as_me:8615: checking for an ANSI C-conforming const" >&5 |
| 8616 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 8617 | if test "${ac_cv_c_const+set}" = set; then |
| 8618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8619 | else |
| 8620 | cat >conftest.$ac_ext <<_ACEOF |
| 8621 | #line 8621 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8622 | #include "confdefs.h" |
| 8623 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8624 | int |
| 8625 | main () |
| 8626 | { |
| 8627 | /* FIXME: Include the comments suggested by Paul. */ |
| 8628 | #ifndef __cplusplus |
| 8629 | /* Ultrix mips cc rejects this. */ |
| 8630 | typedef int charset[2]; |
| 8631 | const charset x; |
| 8632 | /* SunOS 4.1.1 cc rejects this. */ |
| 8633 | char const *const *ccp; |
| 8634 | char **p; |
| 8635 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8636 | struct point {int x, y;}; |
| 8637 | static struct point const zero = {0,0}; |
| 8638 | /* AIX XL C 1.02.0.0 rejects this. |
| 8639 | It does not let you subtract one const X* pointer from another in |
| 8640 | an arm of an if-expression whose if-part is not a constant |
| 8641 | expression */ |
| 8642 | const char *g = "string"; |
| 8643 | ccp = &g + (g ? g-g : 0); |
| 8644 | /* HPUX 7.0 cc rejects these. */ |
| 8645 | ++ccp; |
| 8646 | p = (char**) ccp; |
| 8647 | ccp = (char const *const *) p; |
| 8648 | { /* SCO 3.2v4 cc rejects this. */ |
| 8649 | char *t; |
| 8650 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8651 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8652 | *t++ = 0; |
| 8653 | } |
| 8654 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8655 | int x[] = {25, 17}; |
| 8656 | const int *foo = &x[0]; |
| 8657 | ++foo; |
| 8658 | } |
| 8659 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8660 | typedef const int *iptr; |
| 8661 | iptr p = 0; |
| 8662 | ++p; |
| 8663 | } |
| 8664 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8665 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8666 | struct s { int j; const int *ap[3]; }; |
| 8667 | struct s *b; b->j = 5; |
| 8668 | } |
| 8669 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8670 | const int foo = 10; |
| 8671 | } |
| 8672 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8673 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8674 | ; |
| 8675 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8676 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8677 | _ACEOF |
| 8678 | rm -f conftest.$ac_objext |
| 8679 | if { (eval echo "$as_me:8679: \"$ac_compile\"") >&5 |
| 8680 | (eval $ac_compile) 2>&5 |
| 8681 | ac_status=$? |
| 8682 | echo "$as_me:8682: \$? = $ac_status" >&5 |
| 8683 | (exit $ac_status); } && |
| 8684 | { ac_try='test -s conftest.$ac_objext' |
| 8685 | { (eval echo "$as_me:8685: \"$ac_try\"") >&5 |
| 8686 | (eval $ac_try) 2>&5 |
| 8687 | ac_status=$? |
| 8688 | echo "$as_me:8688: \$? = $ac_status" >&5 |
| 8689 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8690 | ac_cv_c_const=yes |
| 8691 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8692 | echo "$as_me: failed program was:" >&5 |
| 8693 | cat conftest.$ac_ext >&5 |
| 8694 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8695 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8696 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8697 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8698 | echo "$as_me:8698: result: $ac_cv_c_const" >&5 |
| 8699 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8700 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8701 | |
| 8702 | cat >>confdefs.h <<\EOF |
| 8703 | #define const |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8704 | EOF |
| 8705 | |
| 8706 | fi |
| 8707 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8708 | echo "$as_me:8708: checking for inline" >&5 |
| 8709 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 8710 | if test "${ac_cv_c_inline+set}" = set; then |
| 8711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8712 | else |
| 8713 | ac_cv_c_inline=no |
| 8714 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8715 | cat >conftest.$ac_ext <<_ACEOF |
| 8716 | #line 8716 "configure" |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8717 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8718 | #ifndef __cplusplus |
| 8719 | static $ac_kw int static_foo () {return 0; } |
| 8720 | $ac_kw int foo () {return 0; } |
| 8721 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8722 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8723 | _ACEOF |
| 8724 | rm -f conftest.$ac_objext |
| 8725 | if { (eval echo "$as_me:8725: \"$ac_compile\"") >&5 |
| 8726 | (eval $ac_compile) 2>&5 |
| 8727 | ac_status=$? |
| 8728 | echo "$as_me:8728: \$? = $ac_status" >&5 |
| 8729 | (exit $ac_status); } && |
| 8730 | { ac_try='test -s conftest.$ac_objext' |
| 8731 | { (eval echo "$as_me:8731: \"$ac_try\"") >&5 |
| 8732 | (eval $ac_try) 2>&5 |
| 8733 | ac_status=$? |
| 8734 | echo "$as_me:8734: \$? = $ac_status" >&5 |
| 8735 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8736 | ac_cv_c_inline=$ac_kw; break |
| 8737 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8738 | echo "$as_me: failed program was:" >&5 |
| 8739 | cat conftest.$ac_ext >&5 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8740 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8741 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8742 | done |
| 8743 | |
| 8744 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8745 | echo "$as_me:8745: result: $ac_cv_c_inline" >&5 |
| 8746 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 8747 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8748 | inline | yes) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8749 | no) |
| 8750 | cat >>confdefs.h <<\EOF |
| 8751 | #define inline |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8752 | EOF |
| 8753 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8754 | *) cat >>confdefs.h <<EOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 8755 | #define inline $ac_cv_c_inline |
| 8756 | EOF |
| 8757 | ;; |
| 8758 | esac |
| 8759 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8760 | echo "$as_me:8760: checking for ANSI C header files" >&5 |
| 8761 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 8762 | if test "${ac_cv_header_stdc+set}" = set; then |
| 8763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8764 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8765 | cat >conftest.$ac_ext <<_ACEOF |
| 8766 | #line 8766 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8767 | #include "confdefs.h" |
| 8768 | #include <stdlib.h> |
| 8769 | #include <stdarg.h> |
| 8770 | #include <string.h> |
| 8771 | #include <float.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8772 | |
| 8773 | _ACEOF |
| 8774 | if { (eval echo "$as_me:8774: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8775 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8776 | ac_status=$? |
| 8777 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8778 | rm -f conftest.er1 |
| 8779 | cat conftest.err >&5 |
| 8780 | echo "$as_me:8780: \$? = $ac_status" >&5 |
| 8781 | (exit $ac_status); } >/dev/null; then |
| 8782 | if test -s conftest.err; then |
| 8783 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8784 | else |
| 8785 | ac_cpp_err= |
| 8786 | fi |
| 8787 | else |
| 8788 | ac_cpp_err=yes |
| 8789 | fi |
| 8790 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8791 | ac_cv_header_stdc=yes |
| 8792 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8793 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 8794 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8795 | ac_cv_header_stdc=no |
| 8796 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8797 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8798 | |
| 8799 | if test $ac_cv_header_stdc = yes; then |
| 8800 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8801 | cat >conftest.$ac_ext <<_ACEOF |
| 8802 | #line 8802 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8803 | #include "confdefs.h" |
| 8804 | #include <string.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8805 | |
| 8806 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8808 | egrep "memchr" >/dev/null 2>&1; then |
| 8809 | : |
| 8810 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8811 | ac_cv_header_stdc=no |
| 8812 | fi |
| 8813 | rm -f conftest* |
| 8814 | |
| 8815 | fi |
| 8816 | |
| 8817 | if test $ac_cv_header_stdc = yes; then |
| 8818 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8819 | cat >conftest.$ac_ext <<_ACEOF |
| 8820 | #line 8820 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8821 | #include "confdefs.h" |
| 8822 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8823 | |
| 8824 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8826 | egrep "free" >/dev/null 2>&1; then |
| 8827 | : |
| 8828 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8829 | ac_cv_header_stdc=no |
| 8830 | fi |
| 8831 | rm -f conftest* |
| 8832 | |
| 8833 | fi |
| 8834 | |
| 8835 | if test $ac_cv_header_stdc = yes; then |
| 8836 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8837 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 8838 | : |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8839 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8840 | cat >conftest.$ac_ext <<_ACEOF |
| 8841 | #line 8841 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8842 | #include "confdefs.h" |
| 8843 | #include <ctype.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8844 | #if ((' ' & 0x0FF) == 0x020) |
| 8845 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 8846 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 8847 | #else |
| 8848 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 8849 | || ('j' <= (c) && (c) <= 'r') \ |
| 8850 | || ('s' <= (c) && (c) <= 'z')) |
| 8851 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 8852 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8853 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8854 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 8855 | int |
| 8856 | main () |
| 8857 | { |
| 8858 | int i; |
| 8859 | for (i = 0; i < 256; i++) |
| 8860 | if (XOR (islower (i), ISLOWER (i)) |
| 8861 | || toupper (i) != TOUPPER (i)) |
| 8862 | exit(2); |
| 8863 | exit (0); |
| 8864 | } |
| 8865 | _ACEOF |
| 8866 | rm -f conftest$ac_exeext |
| 8867 | if { (eval echo "$as_me:8867: \"$ac_link\"") >&5 |
| 8868 | (eval $ac_link) 2>&5 |
| 8869 | ac_status=$? |
| 8870 | echo "$as_me:8870: \$? = $ac_status" >&5 |
| 8871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8872 | { (eval echo "$as_me:8872: \"$ac_try\"") >&5 |
| 8873 | (eval $ac_try) 2>&5 |
| 8874 | ac_status=$? |
| 8875 | echo "$as_me:8875: \$? = $ac_status" >&5 |
| 8876 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8877 | : |
| 8878 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8879 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8880 | echo "$as_me: failed program was:" >&5 |
| 8881 | cat conftest.$ac_ext >&5 |
| 8882 | ac_cv_header_stdc=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8883 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8884 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 8885 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8886 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8887 | fi |
| 8888 | echo "$as_me:8888: result: $ac_cv_header_stdc" >&5 |
| 8889 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8890 | if test $ac_cv_header_stdc = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8891 | |
| 8892 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8893 | #define STDC_HEADERS 1 |
| 8894 | EOF |
| 8895 | |
| 8896 | fi |
| 8897 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8898 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 8899 | |
| 8900 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 8901 | inttypes.h stdint.h unistd.h |
| 8902 | do |
| 8903 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8904 | echo "$as_me:8904: checking for $ac_header" >&5 |
| 8905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8908 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8909 | cat >conftest.$ac_ext <<_ACEOF |
| 8910 | #line 8910 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8911 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8912 | $ac_includes_default |
| 8913 | #include <$ac_header> |
| 8914 | _ACEOF |
| 8915 | rm -f conftest.$ac_objext |
| 8916 | if { (eval echo "$as_me:8916: \"$ac_compile\"") >&5 |
| 8917 | (eval $ac_compile) 2>&5 |
| 8918 | ac_status=$? |
| 8919 | echo "$as_me:8919: \$? = $ac_status" >&5 |
| 8920 | (exit $ac_status); } && |
| 8921 | { ac_try='test -s conftest.$ac_objext' |
| 8922 | { (eval echo "$as_me:8922: \"$ac_try\"") >&5 |
| 8923 | (eval $ac_try) 2>&5 |
| 8924 | ac_status=$? |
| 8925 | echo "$as_me:8925: \$? = $ac_status" >&5 |
| 8926 | (exit $ac_status); }; }; then |
| 8927 | eval "$as_ac_Header=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8928 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8929 | echo "$as_me: failed program was:" >&5 |
| 8930 | cat conftest.$ac_ext >&5 |
| 8931 | eval "$as_ac_Header=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8932 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8933 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8934 | fi |
| 8935 | echo "$as_me:8935: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8938 | cat >>confdefs.h <<EOF |
| 8939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8940 | EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8941 | |
| 8942 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 8943 | done |
| 8944 | |
| 8945 | echo "$as_me:8945: checking for mode_t" >&5 |
| 8946 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 8947 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 8948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8949 | else |
| 8950 | cat >conftest.$ac_ext <<_ACEOF |
| 8951 | #line 8951 "configure" |
| 8952 | #include "confdefs.h" |
| 8953 | $ac_includes_default |
| 8954 | int |
| 8955 | main () |
| 8956 | { |
| 8957 | if ((mode_t *) 0) |
| 8958 | return 0; |
| 8959 | if (sizeof (mode_t)) |
| 8960 | return 0; |
| 8961 | ; |
| 8962 | return 0; |
| 8963 | } |
| 8964 | _ACEOF |
| 8965 | rm -f conftest.$ac_objext |
| 8966 | if { (eval echo "$as_me:8966: \"$ac_compile\"") >&5 |
| 8967 | (eval $ac_compile) 2>&5 |
| 8968 | ac_status=$? |
| 8969 | echo "$as_me:8969: \$? = $ac_status" >&5 |
| 8970 | (exit $ac_status); } && |
| 8971 | { ac_try='test -s conftest.$ac_objext' |
| 8972 | { (eval echo "$as_me:8972: \"$ac_try\"") >&5 |
| 8973 | (eval $ac_try) 2>&5 |
| 8974 | ac_status=$? |
| 8975 | echo "$as_me:8975: \$? = $ac_status" >&5 |
| 8976 | (exit $ac_status); }; }; then |
| 8977 | ac_cv_type_mode_t=yes |
| 8978 | else |
| 8979 | echo "$as_me: failed program was:" >&5 |
| 8980 | cat conftest.$ac_ext >&5 |
| 8981 | ac_cv_type_mode_t=no |
| 8982 | fi |
| 8983 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8984 | fi |
| 8985 | echo "$as_me:8985: result: $ac_cv_type_mode_t" >&5 |
| 8986 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 8987 | if test $ac_cv_type_mode_t = yes; then |
| 8988 | : |
| 8989 | else |
| 8990 | |
| 8991 | cat >>confdefs.h <<EOF |
| 8992 | #define mode_t int |
| 8993 | EOF |
| 8994 | |
| 8995 | fi |
| 8996 | |
| 8997 | echo "$as_me:8997: checking for off_t" >&5 |
| 8998 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 8999 | if test "${ac_cv_type_off_t+set}" = set; then |
| 9000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9001 | else |
| 9002 | cat >conftest.$ac_ext <<_ACEOF |
| 9003 | #line 9003 "configure" |
| 9004 | #include "confdefs.h" |
| 9005 | $ac_includes_default |
| 9006 | int |
| 9007 | main () |
| 9008 | { |
| 9009 | if ((off_t *) 0) |
| 9010 | return 0; |
| 9011 | if (sizeof (off_t)) |
| 9012 | return 0; |
| 9013 | ; |
| 9014 | return 0; |
| 9015 | } |
| 9016 | _ACEOF |
| 9017 | rm -f conftest.$ac_objext |
| 9018 | if { (eval echo "$as_me:9018: \"$ac_compile\"") >&5 |
| 9019 | (eval $ac_compile) 2>&5 |
| 9020 | ac_status=$? |
| 9021 | echo "$as_me:9021: \$? = $ac_status" >&5 |
| 9022 | (exit $ac_status); } && |
| 9023 | { ac_try='test -s conftest.$ac_objext' |
| 9024 | { (eval echo "$as_me:9024: \"$ac_try\"") >&5 |
| 9025 | (eval $ac_try) 2>&5 |
| 9026 | ac_status=$? |
| 9027 | echo "$as_me:9027: \$? = $ac_status" >&5 |
| 9028 | (exit $ac_status); }; }; then |
| 9029 | ac_cv_type_off_t=yes |
| 9030 | else |
| 9031 | echo "$as_me: failed program was:" >&5 |
| 9032 | cat conftest.$ac_ext >&5 |
| 9033 | ac_cv_type_off_t=no |
| 9034 | fi |
| 9035 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9036 | fi |
| 9037 | echo "$as_me:9037: result: $ac_cv_type_off_t" >&5 |
| 9038 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 9039 | if test $ac_cv_type_off_t = yes; then |
| 9040 | : |
| 9041 | else |
| 9042 | |
| 9043 | cat >>confdefs.h <<EOF |
| 9044 | #define off_t long |
| 9045 | EOF |
| 9046 | |
| 9047 | fi |
| 9048 | |
| 9049 | echo "$as_me:9049: checking for pid_t" >&5 |
| 9050 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 9051 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 9052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9053 | else |
| 9054 | cat >conftest.$ac_ext <<_ACEOF |
| 9055 | #line 9055 "configure" |
| 9056 | #include "confdefs.h" |
| 9057 | $ac_includes_default |
| 9058 | int |
| 9059 | main () |
| 9060 | { |
| 9061 | if ((pid_t *) 0) |
| 9062 | return 0; |
| 9063 | if (sizeof (pid_t)) |
| 9064 | return 0; |
| 9065 | ; |
| 9066 | return 0; |
| 9067 | } |
| 9068 | _ACEOF |
| 9069 | rm -f conftest.$ac_objext |
| 9070 | if { (eval echo "$as_me:9070: \"$ac_compile\"") >&5 |
| 9071 | (eval $ac_compile) 2>&5 |
| 9072 | ac_status=$? |
| 9073 | echo "$as_me:9073: \$? = $ac_status" >&5 |
| 9074 | (exit $ac_status); } && |
| 9075 | { ac_try='test -s conftest.$ac_objext' |
| 9076 | { (eval echo "$as_me:9076: \"$ac_try\"") >&5 |
| 9077 | (eval $ac_try) 2>&5 |
| 9078 | ac_status=$? |
| 9079 | echo "$as_me:9079: \$? = $ac_status" >&5 |
| 9080 | (exit $ac_status); }; }; then |
| 9081 | ac_cv_type_pid_t=yes |
| 9082 | else |
| 9083 | echo "$as_me: failed program was:" >&5 |
| 9084 | cat conftest.$ac_ext >&5 |
| 9085 | ac_cv_type_pid_t=no |
| 9086 | fi |
| 9087 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9088 | fi |
| 9089 | echo "$as_me:9089: result: $ac_cv_type_pid_t" >&5 |
| 9090 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 9091 | if test $ac_cv_type_pid_t = yes; then |
| 9092 | : |
| 9093 | else |
| 9094 | |
| 9095 | cat >>confdefs.h <<EOF |
| 9096 | #define pid_t int |
| 9097 | EOF |
| 9098 | |
| 9099 | fi |
| 9100 | |
| 9101 | echo "$as_me:9101: checking for size_t" >&5 |
| 9102 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 9103 | if test "${ac_cv_type_size_t+set}" = set; then |
| 9104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9105 | else |
| 9106 | cat >conftest.$ac_ext <<_ACEOF |
| 9107 | #line 9107 "configure" |
| 9108 | #include "confdefs.h" |
| 9109 | $ac_includes_default |
| 9110 | int |
| 9111 | main () |
| 9112 | { |
| 9113 | if ((size_t *) 0) |
| 9114 | return 0; |
| 9115 | if (sizeof (size_t)) |
| 9116 | return 0; |
| 9117 | ; |
| 9118 | return 0; |
| 9119 | } |
| 9120 | _ACEOF |
| 9121 | rm -f conftest.$ac_objext |
| 9122 | if { (eval echo "$as_me:9122: \"$ac_compile\"") >&5 |
| 9123 | (eval $ac_compile) 2>&5 |
| 9124 | ac_status=$? |
| 9125 | echo "$as_me:9125: \$? = $ac_status" >&5 |
| 9126 | (exit $ac_status); } && |
| 9127 | { ac_try='test -s conftest.$ac_objext' |
| 9128 | { (eval echo "$as_me:9128: \"$ac_try\"") >&5 |
| 9129 | (eval $ac_try) 2>&5 |
| 9130 | ac_status=$? |
| 9131 | echo "$as_me:9131: \$? = $ac_status" >&5 |
| 9132 | (exit $ac_status); }; }; then |
| 9133 | ac_cv_type_size_t=yes |
| 9134 | else |
| 9135 | echo "$as_me: failed program was:" >&5 |
| 9136 | cat conftest.$ac_ext >&5 |
| 9137 | ac_cv_type_size_t=no |
| 9138 | fi |
| 9139 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9140 | fi |
| 9141 | echo "$as_me:9141: result: $ac_cv_type_size_t" >&5 |
| 9142 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 9143 | if test $ac_cv_type_size_t = yes; then |
| 9144 | : |
| 9145 | else |
| 9146 | |
| 9147 | cat >>confdefs.h <<EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 9148 | #define size_t unsigned |
| 9149 | EOF |
| 9150 | |
| 9151 | fi |
| 9152 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9153 | echo "$as_me:9153: checking for long long" >&5 |
| 9154 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9155 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9157 | else |
| 9158 | cat >conftest.$ac_ext <<_ACEOF |
| 9159 | #line 9159 "configure" |
| 9160 | #include "confdefs.h" |
| 9161 | $ac_includes_default |
| 9162 | int |
| 9163 | main () |
| 9164 | { |
| 9165 | if ((long long *) 0) |
| 9166 | return 0; |
| 9167 | if (sizeof (long long)) |
| 9168 | return 0; |
| 9169 | ; |
| 9170 | return 0; |
| 9171 | } |
| 9172 | _ACEOF |
| 9173 | rm -f conftest.$ac_objext |
| 9174 | if { (eval echo "$as_me:9174: \"$ac_compile\"") >&5 |
| 9175 | (eval $ac_compile) 2>&5 |
| 9176 | ac_status=$? |
| 9177 | echo "$as_me:9177: \$? = $ac_status" >&5 |
| 9178 | (exit $ac_status); } && |
| 9179 | { ac_try='test -s conftest.$ac_objext' |
| 9180 | { (eval echo "$as_me:9180: \"$ac_try\"") >&5 |
| 9181 | (eval $ac_try) 2>&5 |
| 9182 | ac_status=$? |
| 9183 | echo "$as_me:9183: \$? = $ac_status" >&5 |
| 9184 | (exit $ac_status); }; }; then |
| 9185 | ac_cv_type_long_long=yes |
| 9186 | else |
| 9187 | echo "$as_me: failed program was:" >&5 |
| 9188 | cat conftest.$ac_ext >&5 |
| 9189 | ac_cv_type_long_long=no |
| 9190 | fi |
| 9191 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9192 | fi |
| 9193 | echo "$as_me:9193: result: $ac_cv_type_long_long" >&5 |
| 9194 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9195 | |
| 9196 | echo "$as_me:9196: checking size of long long" >&5 |
| 9197 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9198 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9200 | else |
| 9201 | if test "$ac_cv_type_long_long" = yes; then |
| 9202 | if test "$cross_compiling" = yes; then |
| 9203 | # Depending upon the size, compute the lo and hi bounds. |
| 9204 | cat >conftest.$ac_ext <<_ACEOF |
| 9205 | #line 9205 "configure" |
| 9206 | #include "confdefs.h" |
| 9207 | $ac_includes_default |
| 9208 | int |
| 9209 | main () |
| 9210 | { |
| 9211 | int _array_ [1 - 2 * !((sizeof (long long)) >= 0)] |
| 9212 | ; |
| 9213 | return 0; |
| 9214 | } |
| 9215 | _ACEOF |
| 9216 | rm -f conftest.$ac_objext |
| 9217 | if { (eval echo "$as_me:9217: \"$ac_compile\"") >&5 |
| 9218 | (eval $ac_compile) 2>&5 |
| 9219 | ac_status=$? |
| 9220 | echo "$as_me:9220: \$? = $ac_status" >&5 |
| 9221 | (exit $ac_status); } && |
| 9222 | { ac_try='test -s conftest.$ac_objext' |
| 9223 | { (eval echo "$as_me:9223: \"$ac_try\"") >&5 |
| 9224 | (eval $ac_try) 2>&5 |
| 9225 | ac_status=$? |
| 9226 | echo "$as_me:9226: \$? = $ac_status" >&5 |
| 9227 | (exit $ac_status); }; }; then |
| 9228 | ac_lo=0 ac_mid=0 |
| 9229 | while :; do |
| 9230 | cat >conftest.$ac_ext <<_ACEOF |
| 9231 | #line 9231 "configure" |
| 9232 | #include "confdefs.h" |
| 9233 | $ac_includes_default |
| 9234 | int |
| 9235 | main () |
| 9236 | { |
| 9237 | int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)] |
| 9238 | ; |
| 9239 | return 0; |
| 9240 | } |
| 9241 | _ACEOF |
| 9242 | rm -f conftest.$ac_objext |
| 9243 | if { (eval echo "$as_me:9243: \"$ac_compile\"") >&5 |
| 9244 | (eval $ac_compile) 2>&5 |
| 9245 | ac_status=$? |
| 9246 | echo "$as_me:9246: \$? = $ac_status" >&5 |
| 9247 | (exit $ac_status); } && |
| 9248 | { ac_try='test -s conftest.$ac_objext' |
| 9249 | { (eval echo "$as_me:9249: \"$ac_try\"") >&5 |
| 9250 | (eval $ac_try) 2>&5 |
| 9251 | ac_status=$? |
| 9252 | echo "$as_me:9252: \$? = $ac_status" >&5 |
| 9253 | (exit $ac_status); }; }; then |
| 9254 | ac_hi=$ac_mid; break |
| 9255 | else |
| 9256 | echo "$as_me: failed program was:" >&5 |
| 9257 | cat conftest.$ac_ext >&5 |
| 9258 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9259 | fi |
| 9260 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9261 | done |
| 9262 | else |
| 9263 | echo "$as_me: failed program was:" >&5 |
| 9264 | cat conftest.$ac_ext >&5 |
| 9265 | ac_hi=-1 ac_mid=-1 |
| 9266 | while :; do |
| 9267 | cat >conftest.$ac_ext <<_ACEOF |
| 9268 | #line 9268 "configure" |
| 9269 | #include "confdefs.h" |
| 9270 | $ac_includes_default |
| 9271 | int |
| 9272 | main () |
| 9273 | { |
| 9274 | int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)] |
| 9275 | ; |
| 9276 | return 0; |
| 9277 | } |
| 9278 | _ACEOF |
| 9279 | rm -f conftest.$ac_objext |
| 9280 | if { (eval echo "$as_me:9280: \"$ac_compile\"") >&5 |
| 9281 | (eval $ac_compile) 2>&5 |
| 9282 | ac_status=$? |
| 9283 | echo "$as_me:9283: \$? = $ac_status" >&5 |
| 9284 | (exit $ac_status); } && |
| 9285 | { ac_try='test -s conftest.$ac_objext' |
| 9286 | { (eval echo "$as_me:9286: \"$ac_try\"") >&5 |
| 9287 | (eval $ac_try) 2>&5 |
| 9288 | ac_status=$? |
| 9289 | echo "$as_me:9289: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); }; }; then |
| 9291 | ac_lo=$ac_mid; break |
| 9292 | else |
| 9293 | echo "$as_me: failed program was:" >&5 |
| 9294 | cat conftest.$ac_ext >&5 |
| 9295 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` |
| 9296 | fi |
| 9297 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9298 | done |
| 9299 | fi |
| 9300 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9301 | # Binary search between lo and hi bounds. |
| 9302 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9303 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9304 | cat >conftest.$ac_ext <<_ACEOF |
| 9305 | #line 9305 "configure" |
| 9306 | #include "confdefs.h" |
| 9307 | $ac_includes_default |
| 9308 | int |
| 9309 | main () |
| 9310 | { |
| 9311 | int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)] |
| 9312 | ; |
| 9313 | return 0; |
| 9314 | } |
| 9315 | _ACEOF |
| 9316 | rm -f conftest.$ac_objext |
| 9317 | if { (eval echo "$as_me:9317: \"$ac_compile\"") >&5 |
| 9318 | (eval $ac_compile) 2>&5 |
| 9319 | ac_status=$? |
| 9320 | echo "$as_me:9320: \$? = $ac_status" >&5 |
| 9321 | (exit $ac_status); } && |
| 9322 | { ac_try='test -s conftest.$ac_objext' |
| 9323 | { (eval echo "$as_me:9323: \"$ac_try\"") >&5 |
| 9324 | (eval $ac_try) 2>&5 |
| 9325 | ac_status=$? |
| 9326 | echo "$as_me:9326: \$? = $ac_status" >&5 |
| 9327 | (exit $ac_status); }; }; then |
| 9328 | ac_hi=$ac_mid |
| 9329 | else |
| 9330 | echo "$as_me: failed program was:" >&5 |
| 9331 | cat conftest.$ac_ext >&5 |
| 9332 | ac_lo=`expr $ac_mid + 1` |
| 9333 | fi |
| 9334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9335 | done |
| 9336 | ac_cv_sizeof_long_long=$ac_lo |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9337 | else |
| 9338 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9339 | { { echo "$as_me:9339: error: cannot run test program while cross compiling" >&5 |
| 9340 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 9341 | { (exit 1); exit 1; }; } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9342 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9343 | cat >conftest.$ac_ext <<_ACEOF |
| 9344 | #line 9344 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9345 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9346 | $ac_includes_default |
| 9347 | int |
| 9348 | main () |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9349 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9350 | FILE *f = fopen ("conftest.val", "w"); |
| 9351 | if (!f) |
| 9352 | exit (1); |
| 9353 | fprintf (f, "%d", (sizeof (long long))); |
| 9354 | fclose (f); |
| 9355 | ; |
| 9356 | return 0; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9357 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9358 | _ACEOF |
| 9359 | rm -f conftest$ac_exeext |
| 9360 | if { (eval echo "$as_me:9360: \"$ac_link\"") >&5 |
| 9361 | (eval $ac_link) 2>&5 |
| 9362 | ac_status=$? |
| 9363 | echo "$as_me:9363: \$? = $ac_status" >&5 |
| 9364 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9365 | { (eval echo "$as_me:9365: \"$ac_try\"") >&5 |
| 9366 | (eval $ac_try) 2>&5 |
| 9367 | ac_status=$? |
| 9368 | echo "$as_me:9368: \$? = $ac_status" >&5 |
| 9369 | (exit $ac_status); }; }; then |
| 9370 | ac_cv_sizeof_long_long=`cat conftest.val` |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9371 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9372 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9373 | echo "$as_me: failed program was:" >&5 |
| 9374 | cat conftest.$ac_ext >&5 |
| 9375 | fi |
| 9376 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 9377 | fi |
| 9378 | fi |
| 9379 | rm -f conftest.val |
| 9380 | else |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9381 | ac_cv_sizeof_long_long=0 |
| 9382 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9383 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9384 | echo "$as_me:9384: result: $ac_cv_sizeof_long_long" >&5 |
| 9385 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9386 | cat >>confdefs.h <<EOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9387 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 9388 | EOF |
| 9389 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9390 | echo "$as_me:9390: checking whether linux/input.h is for real" >&5 |
| 9391 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 9392 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 9393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 9394 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9395 | cat >conftest.$ac_ext <<_ACEOF |
| 9396 | #line 9396 "configure" |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 9397 | #include "confdefs.h" |
| 9398 | |
| 9399 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9400 | |
| 9401 | int |
| 9402 | main () |
| 9403 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 9404 | |
| 9405 | int foo = EVIOCGBIT(EV_ABS,42); |
| 9406 | int bar = BTN_PINKIE; |
| 9407 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9408 | |
| 9409 | ; |
| 9410 | return 0; |
| 9411 | } |
| 9412 | _ACEOF |
| 9413 | rm -f conftest.$ac_objext |
| 9414 | if { (eval echo "$as_me:9414: \"$ac_compile\"") >&5 |
| 9415 | (eval $ac_compile) 2>&5 |
| 9416 | ac_status=$? |
| 9417 | echo "$as_me:9417: \$? = $ac_status" >&5 |
| 9418 | (exit $ac_status); } && |
| 9419 | { ac_try='test -s conftest.$ac_objext' |
| 9420 | { (eval echo "$as_me:9420: \"$ac_try\"") >&5 |
| 9421 | (eval $ac_try) 2>&5 |
| 9422 | ac_status=$? |
| 9423 | echo "$as_me:9423: \$? = $ac_status" >&5 |
| 9424 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 9425 | wine_cv_linux_input_h=yes |
| 9426 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9427 | echo "$as_me: failed program was:" >&5 |
| 9428 | cat conftest.$ac_ext >&5 |
| 9429 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 9430 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9431 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 9432 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9433 | fi |
| 9434 | echo "$as_me:9434: result: $wine_cv_linux_input_h" >&5 |
| 9435 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 9436 | if test "$wine_cv_linux_input_h" = "yes" |
| 9437 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9438 | |
| 9439 | cat >>confdefs.h <<\EOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 9440 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
| 9441 | EOF |
| 9442 | |
| 9443 | fi |
| 9444 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9445 | echo "$as_me:9445: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
| 9446 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 9447 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 9448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 9449 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9450 | cat >conftest.$ac_ext <<_ACEOF |
| 9451 | #line 9451 "configure" |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 9452 | #include "confdefs.h" |
| 9453 | |
| 9454 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9455 | |
| 9456 | int |
| 9457 | main () |
| 9458 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 9459 | |
| 9460 | char *name=NULL; |
| 9461 | struct hostent he; |
| 9462 | struct hostent *result; |
| 9463 | char *buf=NULL; |
| 9464 | int bufsize=0; |
| 9465 | int res,errnr; |
| 9466 | char *addr=NULL; |
| 9467 | int addrlen=0; |
| 9468 | int addrtype=0; |
| 9469 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 9470 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9471 | |
| 9472 | ; |
| 9473 | return 0; |
| 9474 | } |
| 9475 | _ACEOF |
| 9476 | rm -f conftest.$ac_objext |
| 9477 | if { (eval echo "$as_me:9477: \"$ac_compile\"") >&5 |
| 9478 | (eval $ac_compile) 2>&5 |
| 9479 | ac_status=$? |
| 9480 | echo "$as_me:9480: \$? = $ac_status" >&5 |
| 9481 | (exit $ac_status); } && |
| 9482 | { ac_try='test -s conftest.$ac_objext' |
| 9483 | { (eval echo "$as_me:9483: \"$ac_try\"") >&5 |
| 9484 | (eval $ac_try) 2>&5 |
| 9485 | ac_status=$? |
| 9486 | echo "$as_me:9486: \$? = $ac_status" >&5 |
| 9487 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 9488 | wine_cv_linux_gethostbyname_r_6=yes |
| 9489 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9490 | echo "$as_me: failed program was:" >&5 |
| 9491 | cat conftest.$ac_ext >&5 |
| 9492 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 9493 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9494 | fi |
| 9495 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9496 | |
| 9497 | fi |
| 9498 | echo "$as_me:9498: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
| 9499 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 9500 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 9501 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9502 | |
| 9503 | cat >>confdefs.h <<\EOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 9504 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
| 9505 | EOF |
| 9506 | |
| 9507 | fi |
| 9508 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9509 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9510 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9511 | echo "$as_me:9511: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
| 9512 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 9513 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 9514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9515 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9516 | cat >conftest.$ac_ext <<_ACEOF |
| 9517 | #line 9517 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9518 | #include "confdefs.h" |
| 9519 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9520 | #include <sys/ioctl.h> |
| 9521 | #include <linux/joystick.h> |
| 9522 | |
| 9523 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 9524 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 9525 | #error "no 2.2 header" |
| 9526 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9527 | |
| 9528 | int |
| 9529 | main () |
| 9530 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9531 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9532 | ; |
| 9533 | return 0; |
| 9534 | } |
| 9535 | _ACEOF |
| 9536 | rm -f conftest.$ac_objext |
| 9537 | if { (eval echo "$as_me:9537: \"$ac_compile\"") >&5 |
| 9538 | (eval $ac_compile) 2>&5 |
| 9539 | ac_status=$? |
| 9540 | echo "$as_me:9540: \$? = $ac_status" >&5 |
| 9541 | (exit $ac_status); } && |
| 9542 | { ac_try='test -s conftest.$ac_objext' |
| 9543 | { (eval echo "$as_me:9543: \"$ac_try\"") >&5 |
| 9544 | (eval $ac_try) 2>&5 |
| 9545 | ac_status=$? |
| 9546 | echo "$as_me:9546: \$? = $ac_status" >&5 |
| 9547 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9548 | wine_cv_linux_joystick_22_api=yes |
| 9549 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9550 | echo "$as_me: failed program was:" >&5 |
| 9551 | cat conftest.$ac_ext >&5 |
| 9552 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9553 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9554 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9555 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9556 | fi |
| 9557 | echo "$as_me:9557: result: $wine_cv_linux_joystick_22_api" >&5 |
| 9558 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 9559 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9560 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9561 | |
| 9562 | cat >>confdefs.h <<\EOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9563 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
| 9564 | EOF |
| 9565 | |
| 9566 | fi |
| 9567 | fi |
| 9568 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9569 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 9570 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9571 | echo "$as_me:9571: checking whether sys/vfs.h defines statfs" >&5 |
| 9572 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 9573 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 9574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9575 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9576 | cat >conftest.$ac_ext <<_ACEOF |
| 9577 | #line 9577 "configure" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 9578 | #include "confdefs.h" |
| 9579 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9580 | #include <sys/types.h> |
| 9581 | #ifdef HAVE_SYS_PARAM_H |
| 9582 | # include <sys/param.h> |
| 9583 | #endif |
| 9584 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9585 | |
| 9586 | int |
| 9587 | main () |
| 9588 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9589 | |
| 9590 | struct statfs stfs; |
| 9591 | |
| 9592 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9593 | |
| 9594 | ; |
| 9595 | return 0; |
| 9596 | } |
| 9597 | _ACEOF |
| 9598 | rm -f conftest.$ac_objext |
| 9599 | if { (eval echo "$as_me:9599: \"$ac_compile\"") >&5 |
| 9600 | (eval $ac_compile) 2>&5 |
| 9601 | ac_status=$? |
| 9602 | echo "$as_me:9602: \$? = $ac_status" >&5 |
| 9603 | (exit $ac_status); } && |
| 9604 | { ac_try='test -s conftest.$ac_objext' |
| 9605 | { (eval echo "$as_me:9605: \"$ac_try\"") >&5 |
| 9606 | (eval $ac_try) 2>&5 |
| 9607 | ac_status=$? |
| 9608 | echo "$as_me:9608: \$? = $ac_status" >&5 |
| 9609 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9610 | wine_cv_sys_vfs_has_statfs=yes |
| 9611 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9612 | echo "$as_me: failed program was:" >&5 |
| 9613 | cat conftest.$ac_ext >&5 |
| 9614 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9615 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9616 | fi |
| 9617 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9618 | |
| 9619 | fi |
| 9620 | echo "$as_me:9620: result: $wine_cv_sys_vfs_has_statfs" >&5 |
| 9621 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9622 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 9623 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9624 | |
| 9625 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9626 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
| 9627 | EOF |
| 9628 | |
| 9629 | fi |
| 9630 | fi |
| 9631 | |
| 9632 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 9633 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9634 | echo "$as_me:9634: checking whether sys/statfs.h defines statfs" >&5 |
| 9635 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 9636 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 9637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9638 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9639 | cat >conftest.$ac_ext <<_ACEOF |
| 9640 | #line 9640 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9641 | #include "confdefs.h" |
| 9642 | |
| 9643 | #include <sys/types.h> |
| 9644 | #ifdef HAVE_SYS_PARAM_H |
| 9645 | # include <sys/param.h> |
| 9646 | #endif |
| 9647 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9648 | |
| 9649 | int |
| 9650 | main () |
| 9651 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9652 | |
| 9653 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9654 | |
| 9655 | ; |
| 9656 | return 0; |
| 9657 | } |
| 9658 | _ACEOF |
| 9659 | rm -f conftest.$ac_objext |
| 9660 | if { (eval echo "$as_me:9660: \"$ac_compile\"") >&5 |
| 9661 | (eval $ac_compile) 2>&5 |
| 9662 | ac_status=$? |
| 9663 | echo "$as_me:9663: \$? = $ac_status" >&5 |
| 9664 | (exit $ac_status); } && |
| 9665 | { ac_try='test -s conftest.$ac_objext' |
| 9666 | { (eval echo "$as_me:9666: \"$ac_try\"") >&5 |
| 9667 | (eval $ac_try) 2>&5 |
| 9668 | ac_status=$? |
| 9669 | echo "$as_me:9669: \$? = $ac_status" >&5 |
| 9670 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9671 | wine_cv_sys_statfs_has_statfs=yes |
| 9672 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9673 | echo "$as_me: failed program was:" >&5 |
| 9674 | cat conftest.$ac_ext >&5 |
| 9675 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9676 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9677 | fi |
| 9678 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9679 | |
| 9680 | fi |
| 9681 | echo "$as_me:9681: result: $wine_cv_sys_statfs_has_statfs" >&5 |
| 9682 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9683 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 9684 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9685 | |
| 9686 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9687 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
| 9688 | EOF |
| 9689 | |
| 9690 | fi |
| 9691 | fi |
| 9692 | |
| 9693 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 9694 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9695 | echo "$as_me:9695: checking whether sys/mount.h defines statfs" >&5 |
| 9696 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 9697 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 9698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9699 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9700 | cat >conftest.$ac_ext <<_ACEOF |
| 9701 | #line 9701 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9702 | #include "confdefs.h" |
| 9703 | |
| 9704 | #include <sys/types.h> |
| 9705 | #ifdef HAVE_SYS_PARAM_H |
| 9706 | # include <sys/param.h> |
| 9707 | #endif |
| 9708 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9709 | |
| 9710 | int |
| 9711 | main () |
| 9712 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9713 | |
| 9714 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9715 | |
| 9716 | ; |
| 9717 | return 0; |
| 9718 | } |
| 9719 | _ACEOF |
| 9720 | rm -f conftest.$ac_objext |
| 9721 | if { (eval echo "$as_me:9721: \"$ac_compile\"") >&5 |
| 9722 | (eval $ac_compile) 2>&5 |
| 9723 | ac_status=$? |
| 9724 | echo "$as_me:9724: \$? = $ac_status" >&5 |
| 9725 | (exit $ac_status); } && |
| 9726 | { ac_try='test -s conftest.$ac_objext' |
| 9727 | { (eval echo "$as_me:9727: \"$ac_try\"") >&5 |
| 9728 | (eval $ac_try) 2>&5 |
| 9729 | ac_status=$? |
| 9730 | echo "$as_me:9730: \$? = $ac_status" >&5 |
| 9731 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9732 | wine_cv_sys_mount_has_statfs=yes |
| 9733 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9734 | echo "$as_me: failed program was:" >&5 |
| 9735 | cat conftest.$ac_ext >&5 |
| 9736 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9737 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9738 | fi |
| 9739 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9740 | |
| 9741 | fi |
| 9742 | echo "$as_me:9742: result: $wine_cv_sys_mount_has_statfs" >&5 |
| 9743 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9744 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 9745 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9746 | |
| 9747 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9748 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
| 9749 | EOF |
| 9750 | |
| 9751 | fi |
| 9752 | fi |
| 9753 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9754 | echo "$as_me:9754: checking for f_bfree in struct statfs" >&5 |
| 9755 | echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6 |
| 9756 | if test "${ac_cv_c_statfs_f_bfree+set}" = set; then |
| 9757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9758 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9759 | cat >conftest.$ac_ext <<_ACEOF |
| 9760 | #line 9760 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9761 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9762 | #include <sys/types.h> |
| 9763 | #ifdef HAVE_SYS_PARAM_H |
| 9764 | # include <sys/param.h> |
| 9765 | #endif |
| 9766 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 9767 | # include <sys/mount.h> |
| 9768 | #else |
| 9769 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 9770 | # include <sys/vfs.h> |
| 9771 | # else |
| 9772 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 9773 | # include <sys/statfs.h> |
| 9774 | # endif |
| 9775 | # endif |
| 9776 | #endif |
| 9777 | int |
| 9778 | main () |
| 9779 | { |
| 9780 | struct statfs s; s.f_bfree = 0 |
| 9781 | ; |
| 9782 | return 0; |
| 9783 | } |
| 9784 | _ACEOF |
| 9785 | rm -f conftest.$ac_objext |
| 9786 | if { (eval echo "$as_me:9786: \"$ac_compile\"") >&5 |
| 9787 | (eval $ac_compile) 2>&5 |
| 9788 | ac_status=$? |
| 9789 | echo "$as_me:9789: \$? = $ac_status" >&5 |
| 9790 | (exit $ac_status); } && |
| 9791 | { ac_try='test -s conftest.$ac_objext' |
| 9792 | { (eval echo "$as_me:9792: \"$ac_try\"") >&5 |
| 9793 | (eval $ac_try) 2>&5 |
| 9794 | ac_status=$? |
| 9795 | echo "$as_me:9795: \$? = $ac_status" >&5 |
| 9796 | (exit $ac_status); }; }; then |
| 9797 | ac_cv_c_statfs_f_bfree="yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9798 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9799 | echo "$as_me: failed program was:" >&5 |
| 9800 | cat conftest.$ac_ext >&5 |
| 9801 | ac_cv_c_statfs_f_bfree="no" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9802 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9803 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9804 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9805 | echo "$as_me:9805: result: $ac_cv_c_statfs_f_bfree" >&5 |
| 9806 | echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6 |
| 9807 | if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9808 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9809 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9810 | #define STATFS_HAS_BFREE 1 |
| 9811 | EOF |
| 9812 | |
| 9813 | fi |
| 9814 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9815 | echo "$as_me:9815: checking for f_bavail in struct statfs" >&5 |
| 9816 | echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6 |
| 9817 | if test "${ac_cv_c_statfs_f_bavail+set}" = set; then |
| 9818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9819 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9820 | cat >conftest.$ac_ext <<_ACEOF |
| 9821 | #line 9821 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9822 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9823 | #include <sys/types.h> |
| 9824 | #ifdef HAVE_SYS_PARAM_H |
| 9825 | # include <sys/param.h> |
| 9826 | #endif |
| 9827 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 9828 | # include <sys/mount.h> |
| 9829 | #else |
| 9830 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 9831 | # include <sys/vfs.h> |
| 9832 | # else |
| 9833 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 9834 | # include <sys/statfs.h> |
| 9835 | # endif |
| 9836 | # endif |
| 9837 | #endif |
| 9838 | int |
| 9839 | main () |
| 9840 | { |
| 9841 | struct statfs s; s.f_bavail = 0 |
| 9842 | ; |
| 9843 | return 0; |
| 9844 | } |
| 9845 | _ACEOF |
| 9846 | rm -f conftest.$ac_objext |
| 9847 | if { (eval echo "$as_me:9847: \"$ac_compile\"") >&5 |
| 9848 | (eval $ac_compile) 2>&5 |
| 9849 | ac_status=$? |
| 9850 | echo "$as_me:9850: \$? = $ac_status" >&5 |
| 9851 | (exit $ac_status); } && |
| 9852 | { ac_try='test -s conftest.$ac_objext' |
| 9853 | { (eval echo "$as_me:9853: \"$ac_try\"") >&5 |
| 9854 | (eval $ac_try) 2>&5 |
| 9855 | ac_status=$? |
| 9856 | echo "$as_me:9856: \$? = $ac_status" >&5 |
| 9857 | (exit $ac_status); }; }; then |
| 9858 | ac_cv_c_statfs_f_bavail="yes" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9859 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9860 | echo "$as_me: failed program was:" >&5 |
| 9861 | cat conftest.$ac_ext >&5 |
| 9862 | ac_cv_c_statfs_f_bavail="no" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9863 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9864 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9865 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9866 | echo "$as_me:9866: result: $ac_cv_c_statfs_f_bavail" >&5 |
| 9867 | echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6 |
| 9868 | if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9869 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9870 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9871 | #define STATFS_HAS_BAVAIL 1 |
| 9872 | EOF |
| 9873 | |
| 9874 | fi |
| 9875 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9876 | echo "$as_me:9876: checking for msg_accrights in struct msghdr" >&5 |
| 9877 | echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6 |
| 9878 | if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then |
| 9879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 9880 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9881 | cat >conftest.$ac_ext <<_ACEOF |
| 9882 | #line 9882 "configure" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 9883 | #include "confdefs.h" |
| 9884 | #include <sys/types.h> |
| 9885 | #include <sys/socket.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9886 | int |
| 9887 | main () |
| 9888 | { |
| 9889 | struct msghdr s; s.msg_accrights = 0 |
| 9890 | ; |
| 9891 | return 0; |
| 9892 | } |
| 9893 | _ACEOF |
| 9894 | rm -f conftest.$ac_objext |
| 9895 | if { (eval echo "$as_me:9895: \"$ac_compile\"") >&5 |
| 9896 | (eval $ac_compile) 2>&5 |
| 9897 | ac_status=$? |
| 9898 | echo "$as_me:9898: \$? = $ac_status" >&5 |
| 9899 | (exit $ac_status); } && |
| 9900 | { ac_try='test -s conftest.$ac_objext' |
| 9901 | { (eval echo "$as_me:9901: \"$ac_try\"") >&5 |
| 9902 | (eval $ac_try) 2>&5 |
| 9903 | ac_status=$? |
| 9904 | echo "$as_me:9904: \$? = $ac_status" >&5 |
| 9905 | (exit $ac_status); }; }; then |
| 9906 | ac_cv_c_msghdr_msg_accrights="yes" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 9907 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9908 | echo "$as_me: failed program was:" >&5 |
| 9909 | cat conftest.$ac_ext >&5 |
| 9910 | ac_cv_c_msghdr_msg_accrights="no" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 9911 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9912 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 9913 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9914 | echo "$as_me:9914: result: $ac_cv_c_msghdr_msg_accrights" >&5 |
| 9915 | echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6 |
| 9916 | if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 9917 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9918 | cat >>confdefs.h <<\EOF |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 9919 | #define HAVE_MSGHDR_ACCRIGHTS 1 |
| 9920 | EOF |
| 9921 | |
| 9922 | fi |
| 9923 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9924 | echo "$as_me:9924: checking for sa_len in struct sockaddr" >&5 |
| 9925 | echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 |
| 9926 | if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then |
| 9927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 9928 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9929 | cat >conftest.$ac_ext <<_ACEOF |
| 9930 | #line 9930 "configure" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 9931 | #include "confdefs.h" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 9932 | #include <sys/types.h> |
| 9933 | #include <sys/socket.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9934 | int |
| 9935 | main () |
| 9936 | { |
| 9937 | struct sockaddr s; s.sa_len = 0 |
| 9938 | ; |
| 9939 | return 0; |
| 9940 | } |
| 9941 | _ACEOF |
| 9942 | rm -f conftest.$ac_objext |
| 9943 | if { (eval echo "$as_me:9943: \"$ac_compile\"") >&5 |
| 9944 | (eval $ac_compile) 2>&5 |
| 9945 | ac_status=$? |
| 9946 | echo "$as_me:9946: \$? = $ac_status" >&5 |
| 9947 | (exit $ac_status); } && |
| 9948 | { ac_try='test -s conftest.$ac_objext' |
| 9949 | { (eval echo "$as_me:9949: \"$ac_try\"") >&5 |
| 9950 | (eval $ac_try) 2>&5 |
| 9951 | ac_status=$? |
| 9952 | echo "$as_me:9952: \$? = $ac_status" >&5 |
| 9953 | (exit $ac_status); }; }; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 9954 | ac_cv_c_sockaddr_sa_len="yes" |
| 9955 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9956 | echo "$as_me: failed program was:" >&5 |
| 9957 | cat conftest.$ac_ext >&5 |
| 9958 | ac_cv_c_sockaddr_sa_len="no" |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 9959 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9960 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 9961 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9962 | echo "$as_me:9962: result: $ac_cv_c_sockaddr_sa_len" >&5 |
| 9963 | echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6 |
| 9964 | if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 9965 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9966 | cat >>confdefs.h <<\EOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 9967 | #define HAVE_SOCKADDR_SA_LEN 1 |
| 9968 | EOF |
| 9969 | |
| 9970 | fi |
| 9971 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9972 | echo "$as_me:9972: checking for sun_len in struct sockaddr_un" >&5 |
| 9973 | echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6 |
| 9974 | if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then |
| 9975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 9976 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9977 | cat >conftest.$ac_ext <<_ACEOF |
| 9978 | #line 9978 "configure" |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 9979 | #include "confdefs.h" |
| 9980 | #include <sys/types.h> |
| 9981 | #include <sys/socket.h> |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 9982 | #include <sys/un.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 9983 | int |
| 9984 | main () |
| 9985 | { |
| 9986 | struct sockaddr_un s; s.sun_len = 0 |
| 9987 | ; |
| 9988 | return 0; |
| 9989 | } |
| 9990 | _ACEOF |
| 9991 | rm -f conftest.$ac_objext |
| 9992 | if { (eval echo "$as_me:9992: \"$ac_compile\"") >&5 |
| 9993 | (eval $ac_compile) 2>&5 |
| 9994 | ac_status=$? |
| 9995 | echo "$as_me:9995: \$? = $ac_status" >&5 |
| 9996 | (exit $ac_status); } && |
| 9997 | { ac_try='test -s conftest.$ac_objext' |
| 9998 | { (eval echo "$as_me:9998: \"$ac_try\"") >&5 |
| 9999 | (eval $ac_try) 2>&5 |
| 10000 | ac_status=$? |
| 10001 | echo "$as_me:10001: \$? = $ac_status" >&5 |
| 10002 | (exit $ac_status); }; }; then |
| 10003 | ac_cv_c_sockaddr_un_sun_len="yes" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 10004 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10005 | echo "$as_me: failed program was:" >&5 |
| 10006 | cat conftest.$ac_ext >&5 |
| 10007 | ac_cv_c_sockaddr_un_sun_len="no" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 10008 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10009 | rm -f conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 10010 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10011 | echo "$as_me:10011: result: $ac_cv_c_sockaddr_un_sun_len" >&5 |
| 10012 | echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6 |
| 10013 | if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 10014 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10015 | cat >>confdefs.h <<\EOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 10016 | #define HAVE_SOCKADDR_SUN_LEN 1 |
| 10017 | EOF |
| 10018 | |
| 10019 | fi |
| 10020 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10021 | case $target_cpu in |
| 10022 | *i345678986* ) |
| 10023 | echo "$as_me:10023: checking whether we need to define __i386__" >&5 |
| 10024 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6 |
| 10025 | if test "${ac_cv_cpp_def_i386+set}" = set; then |
| 10026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 10027 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10028 | cat >conftest.$ac_ext <<_ACEOF |
| 10029 | #line 10029 "configure" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 10030 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10031 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 10032 | yes |
| 10033 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10034 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 10035 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10036 | egrep "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 10037 | ac_cv_cpp_def_i386="yes" |
| 10038 | else |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 10039 | ac_cv_cpp_def_i386="no" |
| 10040 | fi |
| 10041 | rm -f conftest* |
| 10042 | |
| 10043 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10044 | echo "$as_me:10044: result: $ac_cv_cpp_def_i386" >&5 |
| 10045 | echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6 |
| 10046 | ;; |
| 10047 | esac |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 10048 | if test "$ac_cv_cpp_def_i386" = "yes" |
| 10049 | then |
| 10050 | CFLAGS="$CFLAGS -D__i386__" |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 10051 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 10052 | fi |
| 10053 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10054 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 10055 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10056 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 10057 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10058 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 10059 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10060 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 10061 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10062 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 10063 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10064 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 10065 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10066 | ac_config_commands="$ac_config_commands dlls/dinput/joystick" |
| 10067 | |
| 10068 | ac_config_commands="$ac_config_commands dlls/dinput/keyboard" |
| 10069 | |
| 10070 | ac_config_commands="$ac_config_commands dlls/dinput/mouse" |
| 10071 | |
| 10072 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
| 10073 | |
| 10074 | ac_config_commands="$ac_config_commands dlls/user/dde" |
| 10075 | |
| 10076 | ac_config_commands="$ac_config_commands dlls/user/resources" |
| 10077 | |
| 10078 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
| 10079 | |
| 10080 | ac_config_commands="$ac_config_commands include/wine" |
| 10081 | |
| 10082 | ac_config_commands="$ac_config_commands include/wine/version.h" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 10083 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 10084 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10085 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 10086 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 10087 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 10088 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 10089 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10090 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile console/Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile files/Makefile graphics/Makefile graphics/enhmetafiledrv/Makefile graphics/metafiledrv/Makefile graphics/win16drv/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile windows/x11drv/Makefile" |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 10091 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10092 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10093 | # This file is a shell script that caches the results of configure |
| 10094 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10095 | # scripts and configure runs, see configure's option --config-cache. |
| 10096 | # It is not useful on other systems. If it contains results you don't |
| 10097 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10098 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10099 | # config.status only pays attention to the cache file if you give it |
| 10100 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10101 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10102 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 10103 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 10104 | # following values. |
| 10105 | |
| 10106 | _ACEOF |
| 10107 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10108 | # The following way of writing the cache mishandles newlines in values, |
| 10109 | # but we know of no workaround that is simple, portable, and efficient. |
| 10110 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10111 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 10112 | # and sets the high bit in the cache file unless we assign to the vars. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10113 | { |
| 10114 | (set) 2>&1 | |
| 10115 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 10116 | *ac_space=\ *) |
| 10117 | # `set' does not quote correctly, so add quotes (double-quote |
| 10118 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 10119 | sed -n \ |
| 10120 | "s/'/'\\\\''/g; |
| 10121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 10122 | ;; |
| 10123 | *) |
| 10124 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 10125 | sed -n \ |
| 10126 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 10127 | ;; |
| 10128 | esac; |
| 10129 | } | |
| 10130 | sed ' |
| 10131 | t clear |
| 10132 | : clear |
| 10133 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 10134 | t end |
| 10135 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 10136 | : end' >>confcache |
| 10137 | if cmp -s $cache_file confcache; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10138 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10139 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 10140 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10141 | else |
| 10142 | echo "not updating unwritable cache $cache_file" |
| 10143 | fi |
| 10144 | fi |
| 10145 | rm -f confcache |
| 10146 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10147 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 10148 | # Let make expand exec_prefix. |
| 10149 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 10150 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10151 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 10152 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 10153 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 10154 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10155 | if test "x$srcdir" = x.; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10156 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 10157 | s/:*\$(srcdir):*/:/; |
| 10158 | s/:*\${srcdir}:*/:/; |
| 10159 | s/:*@srcdir@:*/:/; |
| 10160 | s/^\([^=]*=[ ]*\):*/\1/; |
| 10161 | s/:*$//; |
| 10162 | s/^[^=]*=[ ]*$//; |
| 10163 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10164 | fi |
| 10165 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10166 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10167 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10168 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10169 | ac_clean_files_save=$ac_clean_files |
| 10170 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 10171 | { echo "$as_me:10171: creating $CONFIG_STATUS" >&5 |
| 10172 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 10173 | cat >$CONFIG_STATUS <<_ACEOF |
| 10174 | #! $SHELL |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10175 | # Generated automatically by configure. |
| 10176 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10177 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10178 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10179 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10180 | debug=false |
| 10181 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 10182 | ac_cs_invocation="\$0 \$@" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10183 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10184 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10185 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10186 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10187 | # Be Bourne compatible |
| 10188 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 10189 | emulate sh |
| 10190 | NULLCMD=: |
| 10191 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 10192 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 10193 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10194 | |
| 10195 | # Name of the executable. |
| 10196 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| 10197 | |
| 10198 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 10199 | as_expr=expr |
| 10200 | else |
| 10201 | as_expr=false |
| 10202 | fi |
| 10203 | |
| 10204 | rm -f conf$$ conf$$.exe conf$$.file |
| 10205 | echo >conf$$.file |
| 10206 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 10207 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 10208 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 10209 | if test -f conf$$.exe; then |
| 10210 | # Don't use ln at all; we don't have any links |
| 10211 | as_ln_s='cp -p' |
| 10212 | else |
| 10213 | as_ln_s='ln -s' |
| 10214 | fi |
| 10215 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 10216 | as_ln_s=ln |
| 10217 | else |
| 10218 | as_ln_s='cp -p' |
| 10219 | fi |
| 10220 | rm -f conf$$ conf$$.exe conf$$.file |
| 10221 | |
| 10222 | as_executable_p="test -f" |
| 10223 | |
| 10224 | # Support unset when possible. |
| 10225 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 10226 | as_unset=unset |
| 10227 | else |
| 10228 | as_unset=false |
| 10229 | fi |
| 10230 | |
| 10231 | # NLS nuisances. |
| 10232 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 10233 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 10234 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 10235 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 10236 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 10237 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 10238 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 10239 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| 10240 | |
| 10241 | # IFS |
| 10242 | # We need space, tab and new line, in precisely that order. |
| 10243 | as_nl=' |
| 10244 | ' |
| 10245 | IFS=" $as_nl" |
| 10246 | |
| 10247 | # CDPATH. |
| 10248 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 10249 | |
| 10250 | exec 6>&1 |
| 10251 | |
| 10252 | _ACEOF |
| 10253 | |
| 10254 | # Files that config.status was made for. |
| 10255 | if test -n "$ac_config_files"; then |
| 10256 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 10257 | fi |
| 10258 | |
| 10259 | if test -n "$ac_config_headers"; then |
| 10260 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 10261 | fi |
| 10262 | |
| 10263 | if test -n "$ac_config_links"; then |
| 10264 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 10265 | fi |
| 10266 | |
| 10267 | if test -n "$ac_config_commands"; then |
| 10268 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 10269 | fi |
| 10270 | |
| 10271 | cat >>$CONFIG_STATUS <<\EOF |
| 10272 | |
| 10273 | ac_cs_usage="\ |
| 10274 | \`$as_me' instantiates files from templates according to the |
| 10275 | current configuration. |
| 10276 | |
| 10277 | Usage: $0 [OPTIONS] [FILE]... |
| 10278 | |
| 10279 | -h, --help print this help, then exit |
| 10280 | -V, --version print version number, then exit |
| 10281 | -d, --debug don't remove temporary files |
| 10282 | --recheck update $as_me by reconfiguring in the same conditions |
| 10283 | --file=FILE[:TEMPLATE] |
| 10284 | instantiate the configuration file FILE |
| 10285 | --header=FILE[:TEMPLATE] |
| 10286 | instantiate the configuration header FILE |
| 10287 | |
| 10288 | Configuration files: |
| 10289 | $config_files |
| 10290 | |
| 10291 | Configuration headers: |
| 10292 | $config_headers |
| 10293 | |
| 10294 | Configuration commands: |
| 10295 | $config_commands |
| 10296 | |
| 10297 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 10298 | EOF |
| 10299 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10300 | cat >>$CONFIG_STATUS <<EOF |
| 10301 | ac_cs_version="\\ |
| 10302 | Wine config.status 20020122 |
| 10303 | configured by $0, generated by GNU Autoconf 2.52, |
| 10304 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10305 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10306 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 10307 | Free Software Foundation, Inc. |
| 10308 | This config.status script is free software; the Free Software Foundation |
| 10309 | gives unlimited permission to copy, distribute and modify it." |
| 10310 | srcdir=$srcdir |
| 10311 | INSTALL="$INSTALL" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10312 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10313 | |
| 10314 | cat >>$CONFIG_STATUS <<\EOF |
| 10315 | # If no file are specified by the user, then we need to provide default |
| 10316 | # value. By we need to know if files were specified by the user. |
| 10317 | ac_need_defaults=: |
| 10318 | while test $# != 0 |
| 10319 | do |
| 10320 | case $1 in |
| 10321 | --*=*) |
| 10322 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 10323 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 10324 | shift |
| 10325 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 10326 | shift |
| 10327 | ;; |
| 10328 | -*);; |
| 10329 | *) # This is not an option, so the user has probably given explicit |
| 10330 | # arguments. |
| 10331 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10332 | esac |
| 10333 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10334 | case $1 in |
| 10335 | # Handling of the options. |
| 10336 | EOF |
| 10337 | cat >>$CONFIG_STATUS <<EOF |
| 10338 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 10339 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 10340 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 10341 | EOF |
| 10342 | cat >>$CONFIG_STATUS <<\EOF |
| 10343 | --version | --vers* | -V ) |
| 10344 | echo "$ac_cs_version"; exit 0 ;; |
| 10345 | --he | --h) |
| 10346 | # Conflict between --help and --header |
| 10347 | { { echo "$as_me:10347: error: ambiguous option: $1 |
| 10348 | Try \`$0 --help' for more information." >&5 |
| 10349 | echo "$as_me: error: ambiguous option: $1 |
| 10350 | Try \`$0 --help' for more information." >&2;} |
| 10351 | { (exit 1); exit 1; }; };; |
| 10352 | --help | --hel | -h ) |
| 10353 | echo "$ac_cs_usage"; exit 0 ;; |
| 10354 | --debug | --d* | -d ) |
| 10355 | debug=: ;; |
| 10356 | --file | --fil | --fi | --f ) |
| 10357 | shift |
| 10358 | CONFIG_FILES="$CONFIG_FILES $1" |
| 10359 | ac_need_defaults=false;; |
| 10360 | --header | --heade | --head | --hea ) |
| 10361 | shift |
| 10362 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 10363 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10364 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10365 | # This is an error. |
| 10366 | -*) { { echo "$as_me:10366: error: unrecognized option: $1 |
| 10367 | Try \`$0 --help' for more information." >&5 |
| 10368 | echo "$as_me: error: unrecognized option: $1 |
| 10369 | Try \`$0 --help' for more information." >&2;} |
| 10370 | { (exit 1); exit 1; }; } ;; |
| 10371 | |
| 10372 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 10373 | |
| 10374 | esac |
| 10375 | shift |
| 10376 | done |
| 10377 | |
| 10378 | exec 5>>config.log |
| 10379 | cat >&5 << _ACEOF |
| 10380 | |
| 10381 | ## ----------------------- ## |
| 10382 | ## Running config.status. ## |
| 10383 | ## ----------------------- ## |
| 10384 | |
| 10385 | This file was extended by $as_me (Wine 20020122) 2.52, executed with |
| 10386 | CONFIG_FILES = $CONFIG_FILES |
| 10387 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 10388 | CONFIG_LINKS = $CONFIG_LINKS |
| 10389 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 10390 | > $ac_cs_invocation |
| 10391 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 10392 | |
| 10393 | _ACEOF |
| 10394 | EOF |
| 10395 | |
| 10396 | cat >>$CONFIG_STATUS <<EOF |
| 10397 | # |
| 10398 | # INIT-COMMANDS section. |
| 10399 | # |
| 10400 | |
| 10401 | wine_version=$PACKAGE_VERSION |
| 10402 | |
| 10403 | EOF |
| 10404 | |
| 10405 | cat >>$CONFIG_STATUS <<\EOF |
| 10406 | for ac_config_target in $ac_config_targets |
| 10407 | do |
| 10408 | case "$ac_config_target" in |
| 10409 | # Handling of arguments. |
| 10410 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 10411 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 10412 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 10413 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 10414 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
| 10415 | "controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES controls/Makefile" ;; |
| 10416 | "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;; |
| 10417 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 10418 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
| 10419 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 10420 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
| 10421 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
| 10422 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 10423 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 10424 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
| 10425 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 10426 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 10427 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 10428 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
| 10429 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 10430 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
| 10431 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
| 10432 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
| 10433 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 10434 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 10435 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 10436 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
| 10437 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
| 10438 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
| 10439 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 10440 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 10441 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
| 10442 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 10443 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
| 10444 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
| 10445 | "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
| 10446 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
| 10447 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
| 10448 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
| 10449 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
| 10450 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
| 10451 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 10452 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 10453 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
| 10454 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 10455 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 10456 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 10457 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 10458 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 10459 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 10460 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 10461 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 10462 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 10463 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 10464 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
| 10465 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 10466 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 10467 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 10468 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
| 10469 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 10470 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
| 10471 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 10472 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 10473 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
| 10474 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 10475 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
| 10476 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
| 10477 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 10478 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 10479 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
| 10480 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 10481 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 10482 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
| 10483 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 10484 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 10485 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 10486 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 10487 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 10488 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 10489 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 10490 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
| 10491 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
| 10492 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 10493 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 10494 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
| 10495 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
| 10496 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 10497 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 10498 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 10499 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 10500 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
| 10501 | "files/Makefile" ) CONFIG_FILES="$CONFIG_FILES files/Makefile" ;; |
| 10502 | "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;; |
| 10503 | "graphics/enhmetafiledrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/enhmetafiledrv/Makefile" ;; |
| 10504 | "graphics/metafiledrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/metafiledrv/Makefile" ;; |
| 10505 | "graphics/win16drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/win16drv/Makefile" ;; |
| 10506 | "graphics/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/x11drv/Makefile" ;; |
| 10507 | "if1632/Makefile" ) CONFIG_FILES="$CONFIG_FILES if1632/Makefile" ;; |
| 10508 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 10509 | "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;; |
| 10510 | "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;; |
| 10511 | "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; |
| 10512 | "loader/ne/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/ne/Makefile" ;; |
| 10513 | "memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;; |
| 10514 | "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; |
| 10515 | "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;; |
| 10516 | "msdos/Makefile" ) CONFIG_FILES="$CONFIG_FILES msdos/Makefile" ;; |
| 10517 | "objects/Makefile" ) CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;; |
| 10518 | "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;; |
| 10519 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 10520 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 10521 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 10522 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 10523 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
| 10524 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
| 10525 | "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;; |
| 10526 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 10527 | "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;; |
| 10528 | "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;; |
| 10529 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 10530 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 10531 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
| 10532 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
| 10533 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
| 10534 | "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
| 10535 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 10536 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
| 10537 | "relay32/Makefile" ) CONFIG_FILES="$CONFIG_FILES relay32/Makefile" ;; |
| 10538 | "scheduler/Makefile" ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;; |
| 10539 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 10540 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 10541 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 10542 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 10543 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 10544 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 10545 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
| 10546 | "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;; |
| 10547 | "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;; |
| 10548 | "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;; |
| 10549 | "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;; |
| 10550 | "windows/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/x11drv/Makefile" ;; |
| 10551 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 10552 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 10553 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 10554 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 10555 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 10556 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
| 10557 | "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;; |
| 10558 | "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;; |
| 10559 | "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;; |
| 10560 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 10561 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 10562 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 10563 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
| 10564 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
| 10565 | "include/wine/version.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine/version.h" ;; |
| 10566 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 10567 | *) { { echo "$as_me:10567: error: invalid argument: $ac_config_target" >&5 |
| 10568 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 10569 | { (exit 1); exit 1; }; };; |
| 10570 | esac |
| 10571 | done |
| 10572 | |
| 10573 | # If the user did not use the arguments to specify the items to instantiate, |
| 10574 | # then the envvar interface is used. Set only those that are not. |
| 10575 | # We use the long form for the default assignment because of an extremely |
| 10576 | # bizarre bug on SunOS 4.1.3. |
| 10577 | if $ac_need_defaults; then |
| 10578 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 10579 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 10580 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 10581 | fi |
| 10582 | |
| 10583 | # Create a temporary directory, and hook for its removal unless debugging. |
| 10584 | $debug || |
| 10585 | { |
| 10586 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 10587 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 10588 | } |
| 10589 | |
| 10590 | # Create a (secure) tmp directory for tmp files. |
| 10591 | : ${TMPDIR=/tmp} |
| 10592 | { |
| 10593 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 10594 | test -n "$tmp" && test -d "$tmp" |
| 10595 | } || |
| 10596 | { |
| 10597 | tmp=$TMPDIR/cs$$-$RANDOM |
| 10598 | (umask 077 && mkdir $tmp) |
| 10599 | } || |
| 10600 | { |
| 10601 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 10602 | { (exit 1); exit 1; } |
| 10603 | } |
| 10604 | |
| 10605 | EOF |
| 10606 | |
| 10607 | cat >>$CONFIG_STATUS <<EOF |
| 10608 | |
| 10609 | # |
| 10610 | # CONFIG_FILES section. |
| 10611 | # |
| 10612 | |
| 10613 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 10614 | # This happens for instance when ./config.status config.h |
| 10615 | if test -n "\$CONFIG_FILES"; then |
| 10616 | # Protect against being on the right side of a sed subst in config.status. |
| 10617 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 10618 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 10619 | s,@SHELL@,$SHELL,;t t |
| 10620 | s,@exec_prefix@,$exec_prefix,;t t |
| 10621 | s,@prefix@,$prefix,;t t |
| 10622 | s,@program_transform_name@,$program_transform_name,;t t |
| 10623 | s,@bindir@,$bindir,;t t |
| 10624 | s,@sbindir@,$sbindir,;t t |
| 10625 | s,@libexecdir@,$libexecdir,;t t |
| 10626 | s,@datadir@,$datadir,;t t |
| 10627 | s,@sysconfdir@,$sysconfdir,;t t |
| 10628 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 10629 | s,@localstatedir@,$localstatedir,;t t |
| 10630 | s,@libdir@,$libdir,;t t |
| 10631 | s,@includedir@,$includedir,;t t |
| 10632 | s,@oldincludedir@,$oldincludedir,;t t |
| 10633 | s,@infodir@,$infodir,;t t |
| 10634 | s,@mandir@,$mandir,;t t |
| 10635 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 10636 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 10637 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 10638 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 10639 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 10640 | s,@build_alias@,$build_alias,;t t |
| 10641 | s,@host_alias@,$host_alias,;t t |
| 10642 | s,@target_alias@,$target_alias,;t t |
| 10643 | s,@ECHO_C@,$ECHO_C,;t t |
| 10644 | s,@ECHO_N@,$ECHO_N,;t t |
| 10645 | s,@ECHO_T@,$ECHO_T,;t t |
| 10646 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 10647 | s,@DEFS@,$DEFS,;t t |
| 10648 | s,@LIBS@,$LIBS,;t t |
| 10649 | s,@OPTIONS@,$OPTIONS,;t t |
| 10650 | s,@build@,$build,;t t |
| 10651 | s,@build_cpu@,$build_cpu,;t t |
| 10652 | s,@build_vendor@,$build_vendor,;t t |
| 10653 | s,@build_os@,$build_os,;t t |
| 10654 | s,@host@,$host,;t t |
| 10655 | s,@host_cpu@,$host_cpu,;t t |
| 10656 | s,@host_vendor@,$host_vendor,;t t |
| 10657 | s,@host_os@,$host_os,;t t |
| 10658 | s,@target@,$target,;t t |
| 10659 | s,@target_cpu@,$target_cpu,;t t |
| 10660 | s,@target_vendor@,$target_vendor,;t t |
| 10661 | s,@target_os@,$target_os,;t t |
| 10662 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 10663 | s,@CC@,$CC,;t t |
| 10664 | s,@CFLAGS@,$CFLAGS,;t t |
| 10665 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 10666 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 10667 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 10668 | s,@EXEEXT@,$EXEEXT,;t t |
| 10669 | s,@OBJEXT@,$OBJEXT,;t t |
| 10670 | s,@CPP@,$CPP,;t t |
| 10671 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 10672 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 10673 | s,@X_LIBS@,$X_LIBS,;t t |
| 10674 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 10675 | s,@YACC@,$YACC,;t t |
| 10676 | s,@LEX@,$LEX,;t t |
| 10677 | s,@LEXLIB@,$LEXLIB,;t t |
| 10678 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 10679 | s,@XYACC@,$XYACC,;t t |
| 10680 | s,@XLEX@,$XLEX,;t t |
| 10681 | s,@RANLIB@,$RANLIB,;t t |
| 10682 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 10683 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 10684 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 10685 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 10686 | s,@LN_S@,$LN_S,;t t |
| 10687 | s,@C2MAN@,$C2MAN,;t t |
| 10688 | s,@LDCONFIG@,$LDCONFIG,;t t |
| 10689 | s,@LINT@,$LINT,;t t |
| 10690 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
| 10691 | s,@LDCOMBINE@,$LDCOMBINE,;t t |
| 10692 | s,@UTILLIBS@,$UTILLIBS,;t t |
| 10693 | s,@DLLIBS@,$DLLIBS,;t t |
| 10694 | s,@JPEGLIB@,$JPEGLIB,;t t |
| 10695 | s,@XLIB@,$XLIB,;t t |
| 10696 | s,@XFILES@,$XFILES,;t t |
| 10697 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 10698 | s,@GLU32FILES@,$GLU32FILES,;t t |
| 10699 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
| 10700 | s,@CUPSLIBS@,$CUPSLIBS,;t t |
| 10701 | s,@ft_devel@,$ft_devel,;t t |
| 10702 | s,@ft_devel2@,$ft_devel2,;t t |
| 10703 | s,@FREETYPELIBS@,$FREETYPELIBS,;t t |
| 10704 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
| 10705 | s,@DLLWRAP@,$DLLWRAP,;t t |
| 10706 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 10707 | s,@LDSHARED@,$LDSHARED,;t t |
| 10708 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
| 10709 | s,@LIBEXT@,$LIBEXT,;t t |
| 10710 | s,@LDPATH@,$LDPATH,;t t |
| 10711 | s,@ALLOCA@,$ALLOCA,;t t |
| 10712 | /@MAKE_RULES@/r $MAKE_RULES |
| 10713 | s,@MAKE_RULES@,,;t t |
| 10714 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 10715 | s,@MAKE_DLL_RULES@,,;t t |
| 10716 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 10717 | s,@MAKE_PROG_RULES@,,;t t |
| 10718 | CEOF |
| 10719 | |
| 10720 | EOF |
| 10721 | |
| 10722 | cat >>$CONFIG_STATUS <<\EOF |
| 10723 | # Split the substitutions into bite-sized pieces for seds with |
| 10724 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10725 | ac_max_sed_lines=48 |
| 10726 | ac_sed_frag=1 # Number of current file. |
| 10727 | ac_beg=1 # First line for current file. |
| 10728 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 10729 | ac_more_lines=: |
| 10730 | ac_sed_cmds= |
| 10731 | while $ac_more_lines; do |
| 10732 | if test $ac_beg -gt 1; then |
| 10733 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10734 | else |
| 10735 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10736 | fi |
| 10737 | if test ! -s $tmp/subs.frag; then |
| 10738 | ac_more_lines=false |
| 10739 | else |
| 10740 | # The purpose of the label and of the branching condition is to |
| 10741 | # speed up the sed processing (if there are no `@' at all, there |
| 10742 | # is no need to browse any of the substitutions). |
| 10743 | # These are the two extra sed commands mentioned above. |
| 10744 | (echo ':t |
| 10745 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 10746 | if test -z "$ac_sed_cmds"; then |
| 10747 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10748 | else |
| 10749 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10750 | fi |
| 10751 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 10752 | ac_beg=$ac_end |
| 10753 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 10754 | fi |
| 10755 | done |
| 10756 | if test -z "$ac_sed_cmds"; then |
| 10757 | ac_sed_cmds=cat |
| 10758 | fi |
| 10759 | fi # test -n "$CONFIG_FILES" |
| 10760 | |
| 10761 | EOF |
| 10762 | cat >>$CONFIG_STATUS <<\EOF |
| 10763 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 10764 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10765 | case $ac_file in |
| 10766 | - | *:- | *:-:* ) # input from stdin |
| 10767 | cat >$tmp/stdin |
| 10768 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10769 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10770 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10771 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10772 | * ) ac_file_in=$ac_file.in ;; |
| 10773 | esac |
| 10774 | |
| 10775 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 10776 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10777 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10778 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10779 | X"$ac_file" : 'X\(/\)' \| \ |
| 10780 | . : '\(.\)' 2>/dev/null || |
| 10781 | echo X"$ac_file" | |
| 10782 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10783 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10784 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10785 | /^X\(\/\).*/{ s//\1/; q; } |
| 10786 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10787 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10788 | { case "$ac_dir" in |
| 10789 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 10790 | *) as_incr_dir=.;; |
| 10791 | esac |
| 10792 | as_dummy="$ac_dir" |
| 10793 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 10794 | case $as_mkdir_dir in |
| 10795 | # Skip DOS drivespec |
| 10796 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 10797 | *) |
| 10798 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 10799 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| 10800 | ;; |
| 10801 | esac |
| 10802 | done; } |
| 10803 | |
| 10804 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10805 | # A "../" for each directory in $ac_dir_suffix. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10806 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10807 | else |
| 10808 | ac_dir_suffix= ac_dots= |
| 10809 | fi |
| 10810 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10811 | case $srcdir in |
| 10812 | .) ac_srcdir=. |
| 10813 | if test -z "$ac_dots"; then |
| 10814 | ac_top_srcdir=. |
| 10815 | else |
| 10816 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` |
| 10817 | fi ;; |
| 10818 | [\\/]* | ?:[\\/]* ) |
| 10819 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10820 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10821 | *) # Relative path. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10822 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
| 10823 | ac_top_srcdir=$ac_dots$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10824 | esac |
| 10825 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10826 | case $INSTALL in |
| 10827 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 10828 | *) ac_INSTALL=$ac_dots$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 10829 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 10830 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10831 | if test x"$ac_file" != x-; then |
| 10832 | { echo "$as_me:10832: creating $ac_file" >&5 |
| 10833 | echo "$as_me: creating $ac_file" >&6;} |
| 10834 | rm -f "$ac_file" |
| 10835 | fi |
| 10836 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10837 | # use $as_me), people would be surprised to read: |
| 10838 | # /* config.h. Generated automatically by config.status. */ |
| 10839 | configure_input="Generated automatically from `echo $ac_file_in | |
| 10840 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10841 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10842 | # First look for the input files in the build tree, otherwise in the |
| 10843 | # src tree. |
| 10844 | ac_file_inputs=`IFS=: |
| 10845 | for f in $ac_file_in; do |
| 10846 | case $f in |
| 10847 | -) echo $tmp/stdin ;; |
| 10848 | [\\/$]*) |
| 10849 | # Absolute (can't be DOS-style, as IFS=:) |
| 10850 | test -f "$f" || { { echo "$as_me:10850: error: cannot find input file: $f" >&5 |
| 10851 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10852 | { (exit 1); exit 1; }; } |
| 10853 | echo $f;; |
| 10854 | *) # Relative |
| 10855 | if test -f "$f"; then |
| 10856 | # Build tree |
| 10857 | echo $f |
| 10858 | elif test -f "$srcdir/$f"; then |
| 10859 | # Source tree |
| 10860 | echo $srcdir/$f |
| 10861 | else |
| 10862 | # /dev/null tree |
| 10863 | { { echo "$as_me:10863: error: cannot find input file: $f" >&5 |
| 10864 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10865 | { (exit 1); exit 1; }; } |
| 10866 | fi;; |
| 10867 | esac |
| 10868 | done` || { (exit 1); exit 1; } |
| 10869 | EOF |
| 10870 | cat >>$CONFIG_STATUS <<EOF |
| 10871 | sed "$ac_vpsub |
| 10872 | $extrasub |
| 10873 | EOF |
| 10874 | cat >>$CONFIG_STATUS <<\EOF |
| 10875 | :t |
| 10876 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10877 | s,@configure_input@,$configure_input,;t t |
| 10878 | s,@srcdir@,$ac_srcdir,;t t |
| 10879 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 10880 | s,@INSTALL@,$ac_INSTALL,;t t |
| 10881 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10882 | rm -f $tmp/stdin |
| 10883 | if test x"$ac_file" != x-; then |
| 10884 | mv $tmp/out $ac_file |
| 10885 | else |
| 10886 | cat $tmp/out |
| 10887 | rm -f $tmp/out |
| 10888 | fi |
| 10889 | |
| 10890 | done |
| 10891 | EOF |
| 10892 | cat >>$CONFIG_STATUS <<\EOF |
| 10893 | |
| 10894 | # |
| 10895 | # CONFIG_HEADER section. |
| 10896 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 10897 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10898 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 10899 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 10900 | # |
| 10901 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10902 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 10903 | ac_dB='[ ].*$,\1#\2' |
| 10904 | ac_dC=' ' |
| 10905 | ac_dD=',;t' |
| 10906 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 10907 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 10908 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10909 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10910 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10911 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10912 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10913 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10914 | case $ac_file in |
| 10915 | - | *:- | *:-:* ) # input from stdin |
| 10916 | cat >$tmp/stdin |
| 10917 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10918 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10919 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10920 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10921 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10922 | esac |
| 10923 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10924 | test x"$ac_file" != x- && { echo "$as_me:10924: creating $ac_file" >&5 |
| 10925 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10926 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10927 | # First look for the input files in the build tree, otherwise in the |
| 10928 | # src tree. |
| 10929 | ac_file_inputs=`IFS=: |
| 10930 | for f in $ac_file_in; do |
| 10931 | case $f in |
| 10932 | -) echo $tmp/stdin ;; |
| 10933 | [\\/$]*) |
| 10934 | # Absolute (can't be DOS-style, as IFS=:) |
| 10935 | test -f "$f" || { { echo "$as_me:10935: error: cannot find input file: $f" >&5 |
| 10936 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10937 | { (exit 1); exit 1; }; } |
| 10938 | echo $f;; |
| 10939 | *) # Relative |
| 10940 | if test -f "$f"; then |
| 10941 | # Build tree |
| 10942 | echo $f |
| 10943 | elif test -f "$srcdir/$f"; then |
| 10944 | # Source tree |
| 10945 | echo $srcdir/$f |
| 10946 | else |
| 10947 | # /dev/null tree |
| 10948 | { { echo "$as_me:10948: error: cannot find input file: $f" >&5 |
| 10949 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10950 | { (exit 1); exit 1; }; } |
| 10951 | fi;; |
| 10952 | esac |
| 10953 | done` || { (exit 1); exit 1; } |
| 10954 | # Remove the trailing spaces. |
| 10955 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10956 | |
| 10957 | EOF |
| 10958 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10959 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 10960 | # `conftest.undefs', that substitutes the proper values into |
| 10961 | # config.h.in to produce config.h. The first handles `#define' |
| 10962 | # templates, and the second `#undef' templates. |
| 10963 | # And first: Protect against being on the right side of a sed subst in |
| 10964 | # config.status. Protect against being in an unquoted here document |
| 10965 | # in config.status. |
| 10966 | rm -f conftest.defines conftest.undefs |
| 10967 | # Using a here document instead of a string reduces the quoting nightmare. |
| 10968 | # Putting comments in sed scripts is not portable. |
| 10969 | # |
| 10970 | # `end' is used to avoid that the second main sed command (meant for |
| 10971 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 10972 | # See the Autoconf documentation for `clear'. |
| 10973 | cat >confdef2sed.sed <<\EOF |
| 10974 | s/[\\&,]/\\&/g |
| 10975 | s,[\\$`],\\&,g |
| 10976 | t clear |
| 10977 | : clear |
| 10978 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
| 10979 | t end |
| 10980 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 10981 | : end |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10982 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10983 | # If some macros were called several times there might be several times |
| 10984 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 10985 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 10986 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 10987 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 10988 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10989 | |
| 10990 | # This sed command replaces #undef with comments. This is necessary, for |
| 10991 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10992 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10993 | cat >>conftest.undefs <<\EOF |
| 10994 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 10995 | EOF |
| 10996 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 10997 | # Break up conftest.defines because some shells have a limit on the size |
| 10998 | # of here documents, and old seds have small limits too (100 cmds). |
| 10999 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 11000 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 11001 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 11002 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 11003 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11004 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 11005 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11006 | # Write a limited-size here document to $tmp/defines.sed. |
| 11007 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 11008 | # Speed up: don't consider the non `#define' lines. |
| 11009 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 11010 | # Work around the forget-to-reset-the-flag bug. |
| 11011 | echo 't clr' >>$CONFIG_STATUS |
| 11012 | echo ': clr' >>$CONFIG_STATUS |
| 11013 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 11014 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11015 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 11016 | rm -f $tmp/in |
| 11017 | mv $tmp/out $tmp/in |
| 11018 | ' >>$CONFIG_STATUS |
| 11019 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 11020 | rm -f conftest.defines |
| 11021 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 11022 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11023 | rm -f conftest.defines |
| 11024 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 11025 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 11026 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11027 | # Break up conftest.undefs because some shells have a limit on the size |
| 11028 | # of here documents, and old seds have small limits too (100 cmds). |
| 11029 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 11030 | rm -f conftest.tail |
| 11031 | while grep . conftest.undefs >/dev/null |
| 11032 | do |
| 11033 | # Write a limited-size here document to $tmp/undefs.sed. |
| 11034 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 11035 | # Speed up: don't consider the non `#undef' |
| 11036 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 11037 | # Work around the forget-to-reset-the-flag bug. |
| 11038 | echo 't clr' >>$CONFIG_STATUS |
| 11039 | echo ': clr' >>$CONFIG_STATUS |
| 11040 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 11041 | echo 'CEOF |
| 11042 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 11043 | rm -f $tmp/in |
| 11044 | mv $tmp/out $tmp/in |
| 11045 | ' >>$CONFIG_STATUS |
| 11046 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 11047 | rm -f conftest.undefs |
| 11048 | mv conftest.tail conftest.undefs |
| 11049 | done |
| 11050 | rm -f conftest.undefs |
| 11051 | |
| 11052 | cat >>$CONFIG_STATUS <<\EOF |
| 11053 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11054 | # use $as_me), people would be surprised to read: |
| 11055 | # /* config.h. Generated automatically by config.status. */ |
| 11056 | if test x"$ac_file" = x-; then |
| 11057 | echo "/* Generated automatically by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 11058 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11059 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 11060 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11061 | cat $tmp/in >>$tmp/config.h |
| 11062 | rm -f $tmp/in |
| 11063 | if test x"$ac_file" != x-; then |
| 11064 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 11065 | { echo "$as_me:11065: $ac_file is unchanged" >&5 |
| 11066 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 11067 | else |
| 11068 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11069 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11070 | X"$ac_file" : 'X\(//\)$' \| \ |
| 11071 | X"$ac_file" : 'X\(/\)' \| \ |
| 11072 | . : '\(.\)' 2>/dev/null || |
| 11073 | echo X"$ac_file" | |
| 11074 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11075 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11076 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11077 | /^X\(\/\).*/{ s//\1/; q; } |
| 11078 | s/.*/./; q'` |
| 11079 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 11080 | { case "$ac_dir" in |
| 11081 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 11082 | *) as_incr_dir=.;; |
| 11083 | esac |
| 11084 | as_dummy="$ac_dir" |
| 11085 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 11086 | case $as_mkdir_dir in |
| 11087 | # Skip DOS drivespec |
| 11088 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 11089 | *) |
| 11090 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 11091 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| 11092 | ;; |
| 11093 | esac |
| 11094 | done; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 11095 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11096 | fi |
| 11097 | rm -f $ac_file |
| 11098 | mv $tmp/config.h $ac_file |
| 11099 | fi |
| 11100 | else |
| 11101 | cat $tmp/config.h |
| 11102 | rm -f $tmp/config.h |
| 11103 | fi |
| 11104 | done |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11105 | EOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11106 | cat >>$CONFIG_STATUS <<\EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11107 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11108 | # |
| 11109 | # CONFIG_COMMANDS section. |
| 11110 | # |
| 11111 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 11112 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 11113 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 11114 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11115 | case $ac_dest in |
| 11116 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:11116: creating dlls/ddraw/d3ddevice" >&5 |
| 11117 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 11118 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:11118: creating dlls/ddraw/dclipper" >&5 |
| 11119 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 11120 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:11120: creating dlls/ddraw/ddraw" >&5 |
| 11121 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 11122 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:11122: creating dlls/ddraw/direct3d" >&5 |
| 11123 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 11124 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:11124: creating dlls/ddraw/dpalette" >&5 |
| 11125 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 11126 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:11126: creating dlls/ddraw/dsurface" >&5 |
| 11127 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
| 11128 | dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:11128: creating dlls/dinput/joystick" >&5 |
| 11129 | echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;; |
| 11130 | dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:11130: creating dlls/dinput/keyboard" >&5 |
| 11131 | echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;; |
| 11132 | dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:11132: creating dlls/dinput/mouse" >&5 |
| 11133 | echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;; |
| 11134 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:11134: creating dlls/kernel/messages" >&5 |
| 11135 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
| 11136 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:11136: creating dlls/user/dde" >&5 |
| 11137 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 11138 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:11138: creating dlls/user/resources" >&5 |
| 11139 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
| 11140 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:11140: creating dlls/wineps/data" >&5 |
| 11141 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
| 11142 | include/wine ) test -d "include/wine" || ({ echo "$as_me:11142: creating include/wine" >&5 |
| 11143 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
| 11144 | include/wine/version.h ) { echo "$as_me:11144: creating include/wine/version.h" >&5 |
| 11145 | echo "$as_me: creating include/wine/version.h" >&6;} |
| 11146 | cat >$tmp/version.h <<CEOF |
| 11147 | /* Generated automatically by configure; DO NOT EDIT! */ |
| 11148 | #define WINE_RELEASE_INFO "Wine version $wine_version" |
| 11149 | CEOF |
| 11150 | if cmp -s $tmp/version.h include/wine/version.h 2>/dev/null; then |
| 11151 | { echo "$as_me:11151: include/wine/version.h is unchanged" >&5 |
| 11152 | echo "$as_me: include/wine/version.h is unchanged" >&6;} |
| 11153 | rm -f $tmp/version.h |
| 11154 | else |
| 11155 | rm -f include/wine/version.h |
| 11156 | mv $tmp/version.h include/wine/version.h |
| 11157 | fi ;; |
| 11158 | esac |
| 11159 | done |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11160 | EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11161 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11162 | cat >>$CONFIG_STATUS <<\EOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 11163 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11164 | { (exit 0); exit 0; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11165 | EOF |
| 11166 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11167 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11168 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11169 | # configure is writing to config.log, and then calls config.status. |
| 11170 | # config.status does its own redirection, appending to config.log. |
| 11171 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 11172 | # by configure, so config.status won't be able to write to it; its |
| 11173 | # output is simply discarded. So we exec the FD to /dev/null, |
| 11174 | # effectively closing config.log, so it can be properly (re)opened and |
| 11175 | # appended to by config.status. When coming back to configure, we |
| 11176 | # need to make the FD available again. |
| 11177 | if test "$no_create" != yes; then |
| 11178 | ac_cs_success=: |
| 11179 | exec 5>/dev/null |
| 11180 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 11181 | exec 5>>config.log |
| 11182 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 11183 | # would make configure fail if this is the last instruction. |
| 11184 | $ac_cs_success || { (exit 1); exit 1; } |
| 11185 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11186 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 11187 | if test "$have_x" = "no" |
| 11188 | then |
| 11189 | echo |
| 11190 | echo "*** Warning: X development files not found. Wine will be built without" |
| 11191 | echo "*** X support, which currently does not work, and would probably not be" |
| 11192 | echo "*** what you want anyway. You will need to install devel packages of" |
Alexandre Julliard | 18e4b5e | 2002-01-04 18:52:40 +0000 | [diff] [blame] | 11193 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 11194 | fi |
| 11195 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 11196 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
| 11197 | then |
| 11198 | echo |
| 11199 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" |
| 11200 | echo "*** terminal resize support. Consider upgrading ncurses." |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 11201 | fi |
| 11202 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11203 | if test "$wine_cv_libc_reentrant" = "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11204 | then |
| 11205 | echo |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11206 | echo "*** Warning: non-reentrant libc detected. Wine will be built without" |
| 11207 | echo "*** threading support. Consider upgrading libc to a more recent" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11208 | echo "*** reentrant version of libc." |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11209 | fi |
| 11210 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 11211 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 11212 | then |
| 11213 | echo |
| 11214 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 11215 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 11216 | fi |
| 11217 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11218 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 11219 | then |
| 11220 | echo |
| 11221 | echo "*** Warning: the OpenGL version you have installed relies on libpthread for" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 11222 | echo "*** thread-safety. To prevent crashes, OpenGL support has been removed." |
Andreas Mohr | 18a9d74 | 2001-01-17 21:52:42 +0000 | [diff] [blame] | 11223 | echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine," |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 11224 | echo "*** start configure with '--enable-opengl' to force OpenGL support." |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 11225 | fi |
| 11226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11227 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 11228 | then |
| 11229 | echo |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 11230 | echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 11231 | echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL" |
| 11232 | echo "*** support before reporting bugs." |
| 11233 | fi |
| 11234 | |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 11235 | if test "$wine_cv_warn_cups_h" = "yes" |
| 11236 | then |
| 11237 | echo |
| 11238 | echo "*** Note: You have cups runtime libraries, but no development" |
| 11239 | echo "*** libraries. Install the cups-devel package or whichever package" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11240 | echo "*** contains cups.h to enable CUPS support in Wine." |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 11241 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 11242 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11243 | if test "$wine_cv_msg_freetype" = "yes" |
| 11244 | then |
| 11245 | echo |
| 11246 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame^] | 11247 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 11248 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 11249 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 11250 | fi |
| 11251 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11252 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 11253 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11254 | echo |
| 11255 | |